WO2013124894A1 - Rendering control device and rendering control program - Google Patents

Rendering control device and rendering control program Download PDF

Info

Publication number
WO2013124894A1
WO2013124894A1 PCT/JP2012/001206 JP2012001206W WO2013124894A1 WO 2013124894 A1 WO2013124894 A1 WO 2013124894A1 JP 2012001206 W JP2012001206 W JP 2012001206W WO 2013124894 A1 WO2013124894 A1 WO 2013124894A1
Authority
WO
WIPO (PCT)
Prior art keywords
pixel
value
scissor
allowable range
target
Prior art date
Application number
PCT/JP2012/001206
Other languages
French (fr)
Japanese (ja)
Inventor
雅樹 濱田
加藤 義幸
鳥居 晃
Original Assignee
三菱電機株式会社
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 三菱電機株式会社 filed Critical 三菱電機株式会社
Priority to JP2014500561A priority Critical patent/JP5885827B2/en
Priority to PCT/JP2012/001206 priority patent/WO2013124894A1/en
Priority to TW101121489A priority patent/TW201335883A/en
Publication of WO2013124894A1 publication Critical patent/WO2013124894A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T11/002D [Two Dimensional] image generation
    • G06T11/60Editing figures and text; Combining figures or text

Definitions

  • the present invention relates to a drawing control apparatus and a drawing control program for drawing a figure in a plurality of scissor areas.
  • a drawing allowable range defined by the maximum value and the minimum value is set for each scissor area, and is included in the figure to determine whether or not to write a pixel to the scissor area.
  • a comparator for determining whether or not the coordinate value of the pixel to be included is included in the drawing allowable range of the scissor area is provided for each scissor area.
  • JP-T 2010-510608 (paragraphs [0005] to [0007])
  • the conventional drawing control apparatus is configured as described above, when a part of the scissor area is not used, the comparator of the scissor area is not used. However, an unused comparator is used for other purposes (for example, whether or not the color value or alpha value (transparency) of a pixel included in the figure is included in the drawing allowable range of the scissor area). Therefore, there is a problem that resources cannot be used effectively and resources cannot be effectively used.
  • the present invention has been made to solve the above-described problems, and provides a drawing control apparatus and a drawing control program capable of using resources in the apparatus for various purposes and effectively utilizing the resources.
  • the purpose is to obtain.
  • the drawing control apparatus includes a coordinate value / pixel value calculating unit for calculating a pixel coordinate value and a pixel value included in the figure according to setting information of the figure to be drawn in a plurality of scissor areas, Maximum value / minimum value storage means for storing the maximum value and minimum value for defining the scissor area drawing allowable range, and the coordinate value or pixel value of the pixel included in the figure calculated by the coordinate value / pixel value calculation means Is set as a comparison target value, and for each pixel included in the figure, each scissor area in which the comparison target value of the pixel is defined from the maximum value and the minimum value stored by the maximum value / minimum value storage means Based on the determination result of the drawing allowable range determining means for determining whether or not it is included in the drawing allowable range and the determination result of the drawing allowable range determining means, from among the pixels included in the figure, the drawing target Identify pixels
  • the drawing target pixel discriminating means, and the frame buffer updating means determines the
  • the coordinate value or pixel value of the pixel included in the figure calculated by the coordinate value / pixel value calculating means is set as the comparison target value, and for each pixel included in the figure, the pixel A drawing allowable range determination for determining whether or not the comparison target value is included in the drawing allowable range of each scissor area defined from the maximum value and the minimum value stored by the maximum value / minimum value storage means.
  • a drawing target pixel discriminating unit that discriminates a drawing target pixel from the pixels included in the figure based on the determination result of the drawing allowable range determining unit.
  • the drawing allowable range determining means is set to compare the target value even pixel values. Therefore, there is an effect that the resources can be effectively used.
  • FIG. 1 It is a block diagram which shows the drawing control apparatus by Embodiment 1 of this invention. It is a flowchart which shows the processing content of the drawing control apparatus by Embodiment 1 of this invention. It is explanatory drawing which shows an example of the figure of drawing object. It is explanatory drawing which shows an example of the pixel of drawing object. It is explanatory drawing which shows the case where an icon is expanded with a bilinear filter.
  • FIG. 1 is a block diagram showing a drawing control apparatus according to Embodiment 1 of the present invention.
  • a CPU Central Processing Unit
  • FIG. 1 a CPU 1 is connected to a drawing control device 2 via a CPU bus 3, and when drawing of a figure to a plurality of scissor areas is started, the setting information of the figure (for example, Then, a process of outputting a drawing command including the coordinates of the figure (for example, the coordinates of the vertex of the figure) and information indicating the drawing color to the drawing control apparatus 2 is performed.
  • the CPU 1 when the CPU 1 outputs a drawing command to the drawing control device 2, the maximum / minimum information indicating the maximum value and the minimum value that define the drawing allowable range of each scissor area, the setting flag of each scissor area (use of the scissor area) A flag indicating whether or not each scissor area is judged (a flag indicating whether the inside of the scissor area is “valid” or “external is valid”), and a setting mode for specifying the comparison target data ( A process of outputting the selection information) to the drawing control apparatus 2 is performed. Note that the CPU 1 may output these flags and information by including them in a drawing command.
  • the drawing processing unit 11 of the drawing control device 2 is composed of, for example, a semiconductor integrated circuit on which an MPU (Micro Processing Unit) is mounted or a one-chip microcomputer, and is included in the drawing command output from the CPU 1.
  • MPU Micro Processing Unit
  • the drawing processing unit 11 constitutes coordinate value / pixel value calculation means.
  • the drawing target pixel discriminating unit 12 performs processing for discriminating a drawing target pixel from among pixels included in the figure based on the coordinate value (x, y), the color value and the like calculated by the drawing processing unit 11. carry out.
  • the maximum / minimum value setting register 13 of the drawing target pixel discriminating unit 12 is prepared for each scissor area, and is a memory for storing the maximum value and the minimum value indicated by the maximum / minimum information output from the CPU 1.
  • the maximum value / minimum value setting register 13 constitutes maximum value / minimum value storage means.
  • the setting flag register 14 is prepared for each scissor area, and is a memory for storing a setting flag for the scissor area output from the CPU 1.
  • the condition determination flag register 15 is prepared for each scissor area, and is a memory for storing a condition determination flag for the scissor area output from the CPU 1.
  • the comparator 16 is prepared for each scissor area and includes a selector 16a and a comparison processing unit 16b. If the setting mode output from the CPU 1 indicates that the coordinate value is selected as the comparison target value of the scissor area, the selector 16a of the comparator 16 indicates the coordinate value (x, If y) is set as a comparison target value and output to the comparison processing unit 16b to indicate that a color value is selected as the comparison target value of the scissor area, the color value calculated by the drawing processing unit 11 is used. If the comparison target value is set and output to the comparison processing unit 16b and indicates that the ⁇ value is selected as the comparison target value of the scissor area, the ⁇ value calculated by the drawing processing unit 11 is used as the comparison target value.
  • the comparison processing unit 16b To output to the comparison processing unit 16b. For each pixel included in the figure to be drawn, the comparison processing unit 16b draws the scissor area in which the comparison target value of the pixel is defined by the maximum value and the minimum value stored in the maximum value / minimum value setting register 13. A process of determining whether or not it is within the allowable range is performed.
  • the comparator 16 constitutes a drawing allowable range determining means.
  • the drawing target pixel discrimination processing unit 17 is composed of, for example, a semiconductor integrated circuit in which an MPU is mounted, a one-chip microcomputer, or the like. Based on the determination result of the comparator 16, the pixel to be included in the figure is determined. From this, a process of discriminating a pixel to be drawn is performed. For example, the setting flag stored in the setting flag register 14 indicates that all scissor areas are used, and the condition determination flag stored in the condition determination flag register 15 indicates that all scissor areas In the case where “effective” is indicated, the pixel determined by the comparator 16 that the comparison target value is included in the drawing allowable range of all scissor areas among the pixels included in the figure. And the pixel is determined to be a pixel to be drawn.
  • condition determination flags stored by the condition determination flag register 15 indicate that all scissor areas are “internally valid”, the setting flags stored by the setting flag register 14 are not If the area indicates that the area is not used, the comparator 16 identifies a pixel for which the comparison target value is determined to be included in the drawing allowable range of all scissor areas except the unused scissor area. The pixel is determined to be a pixel to be drawn.
  • the condition determination flag stored by the condition determination flag register 15 indicates that the scissor area “internally valid” and the scissor area “externally valid” are mixed
  • the comparator With reference to the determination result of 16, for the scissor area where “inside is valid”, the condition that the comparison target value is included in the drawing allowable range is satisfied, and “outside area” is valid.
  • a pixel that satisfies the condition that the comparison target value is not included in the drawing allowable range is specified, and the pixel is determined to be the drawing target pixel.
  • the drawing target pixel discrimination processing unit 17 constitutes a drawing target pixel discrimination means.
  • the memory control unit 18 is composed of, for example, a semiconductor integrated circuit in which an MPU is mounted, a one-chip microcomputer, or the like.
  • the memory control unit 18 constitutes a frame buffer update unit.
  • the drawing processing unit 11 the maximum value / minimum value setting register 13, the setting flag register 14, the condition determination flag register 15, the comparator 16, and the drawing target pixel determination processing unit 17 that are components of the drawing control apparatus. It is assumed that each of the memory control unit 18 and the memory control unit 18 is configured by dedicated hardware. However, the drawing control apparatus executes a drawing control program described later in addition to a computer (for example, in addition to a personal computer. Mobile phones, portable information terminals, car navigation devices, and the like are also included.
  • FIG. 2 is a flowchart showing the processing contents of the drawing control apparatus according to Embodiment 1 of the present invention.
  • the graphic setting information includes, for example, information indicating the coordinates of the graphic (for example, the coordinates of the vertex of the graphic) and the drawing color.
  • the figure to be drawn is a triangle
  • the coordinates of the three vertices of the triangle are included in the setting information
  • the color information, ⁇ value (transparency), etc. are included in the setting information as the drawing color of the three vertices It is.
  • the maximum / minimum information of each scissor area, each scissor area setting flag, each scissor area condition determination flag, and each scissor area setting mode. are output to the drawing control apparatus 2.
  • the maximum / minimum information is information indicating the maximum value and the minimum value of the drawing allowable range in the scissor area. If the drawing allowable range is related to the coordinate value, the drawing allowable range is, for example, the value x of the X coordinate. Is within the range of x1 ⁇ x ⁇ x2 and the Y coordinate value y is within the range of y1 ⁇ y ⁇ y2.
  • the drawing allowable range is a range for drawing only pixels whose pixel value c is in the range of c1 ⁇ c ⁇ c2, for example.
  • x1, y1, c1, etc. are the minimum values of the drawing allowable range
  • x2, y2, c2, etc. are the maximum values of the drawing allowable range.
  • the drawing allowable range may be set for each scissor area
  • the drawing allowable range related to the coordinate value may be set for a certain scissor area
  • the drawing allowable range related to the pixel value may be set for a certain scissor area.
  • a similar drawing allowable range (for example, a drawing allowable range related to coordinate values) may be set for all scissor areas.
  • the scissor area setting flag is a flag indicating whether or not the scissor area is used.
  • the scissor area indicating that this flag is “not used” is not handled as a scissor area. For example, when there are N scissor areas, N-2 scissor area setting flags indicate “use”, and the remaining two scissor area setting flags indicate “not used”. Thus, the remaining two scissor areas are not handled as scissor areas, and a graphic drawing process is performed on the N-2 scissor areas.
  • the scissor area condition determination flag is a flag indicating whether “inside is valid” or “outside is valid” of the scissor area. For a scissor area where “inside is valid”, the scissor area For the scissor area in which drawing of the figure is permitted and “external is valid”, drawing of the figure is permitted to the outside of the scissor area.
  • the setting mode is selection information indicating whether the selector 16a of the comparator 16 selects a coordinate value, a color value, or an ⁇ value as comparison target data.
  • a setting mode indicating that the coordinate value is selected is given as comparison target data, and for the scissor area where the maximum value and minimum value of the drawing allowable range regarding the color value are set.
  • a setting mode indicating that a color value is selected is given as comparison target data.
  • the maximum value and the minimum value of the drawing allowable range in the scissor area indicated by the maximum / minimum information output from the CPU 1 are stored in the maximum value / minimum value setting register 13 prepared for each scissor area.
  • the scissor area setting flag output from the CPU 1 is stored in a setting flag register 14 prepared for each scissor area.
  • the scissor area condition determination flag output from the CPU 1 is stored in a condition determination flag register 15 prepared for each scissor area.
  • the drawing processing unit 11 When the drawing processing unit 11 receives a drawing command from the CPU 1 (step ST1 in FIG. 2), according to the setting information of the graphic contained in the drawing command, the coordinate values (x, y) and pixel values such as color values and ⁇ values (transparency) are calculated (step ST2). For example, if the figure to be drawn is a triangle, as shown in FIG. 3, the coordinates (x1, y1), (x2, y2), (x3, y3) of the three vertices P1, P2, and P3 of the triangle are the figures. Therefore, using these coordinates, line segments L1, L2, and L3 connecting the vertices are obtained, and an area (triangle) surrounded by the three line segments L1, L2, and L3 is obtained.
  • the coordinate value (x, y) of each pixel included in the inside of the triangle is calculated.
  • the line segment L1 can be obtained by substituting the coordinates (x1, y1) and (x2, y2) of the vertices P1, P2 into the simultaneous equations shown below.
  • y1 a ⁇ x1 + b
  • y2 a ⁇ x2 + b
  • a is the slope of the line segment L1
  • b is a constant.
  • the color values of the three vertices P1, P2, and P3 of the triangle are included in the figure setting information.
  • an intermediate value between the color value of the vertex P1 and the color value of the vertex P2 is calculated as the color value of the pixel.
  • the vertex P1 to the vertex P2 are calculated in consideration of the distance so that the color value and the like gradually change (gradation).
  • the drawing target pixel determination unit 12 calculates the pixel coordinate value (x, y) and color. Based on the value or the like, the drawing target pixel is determined from the pixels included in the figure. Specifically, it is as follows.
  • the drawing target pixel determination unit 12 uses only the comparator 16 corresponding to the “use” scissor area among the comparators 16 prepared for each scissor area, and performs the comparison corresponding to the “not used” scissor area.
  • each scissor area is referred to by referring to a setting flag (setting flag for the scissor area output from the CPU 1) stored in the setting flag register 14 corresponding to each scissor area. It is determined whether or not the scissor area is “used” (step ST3).
  • the drawing target pixel determination unit 12 activates the comparator 16 corresponding to the scissor area (step ST4).
  • the selector 16a of the activated comparator 16 draws the drawing calculated by the drawing processing unit 11.
  • the coordinate value (x, y) of the pixel included in the target graphic is set as the comparison target value, and the comparison target value is output to the comparison processing unit 16b (step ST5).
  • the selector 16a is included in the drawing target figure calculated by the drawing processing unit 11.
  • the comparison target value is output to the comparison processing unit 16b, and the ⁇ value is selected as the comparison target value of the scissor area, the drawing process
  • the ⁇ value of the pixel included in the drawing target graphic calculated by the unit 11 is set as a comparison target value, and the comparison target value is output to the comparison processing unit 16b (step ST5).
  • the comparison processing unit 16b of the activated comparator 16 receives the comparison target value from the selector 16a, the comparison processing unit 16b acquires the maximum value and the minimum value stored in the maximum value / minimum value setting register 13, and in the scissor area. Specify the allowable drawing range. When the drawing allowable range in the scissor area is specified, the comparison processing unit 16b determines whether the comparison target value of the pixel is included in the drawing allowable range for each pixel included in the figure to be drawn. (Step ST6).
  • the drawing target pixel determination processing unit 17 determines whether the comparison target value of the pixel is included in the drawing allowable range for each pixel included in the figure.
  • the drawing target pixel determination processing unit 17 displays the determination result. Based on the pixel included in the figure, the drawing target pixel is determined. That is, the drawing target pixel determination processing unit 17 sets each scissor region condition determination flag (stored in the condition determination flag register 15) for pixels for which the comparison target value is determined to be included in the drawing allowable range. Referring to the scissor area condition determination flag corresponding to the “use” scissor area, it is determined whether each scissor area is a scissor area of “internally valid” (step ST7).
  • the drawing target pixel discrimination processing unit 17 sets the scissor area “inside is valid” to “pass area” (step ST8), and sets the scissor area “inside is valid” to “fail area” (step ST8). ST9).
  • the drawing target pixel determination processing unit 17 sets each scissor region condition determination flag (stored in the condition determination flag register 15) for pixels for which it is determined that the comparison target value is not included in the drawing allowable range. With reference to the scissor area condition determination flag corresponding to the “used” scissor area, it is determined whether each scissor area is a scissor area of “external valid” (step ST10). Then, the drawing target pixel discrimination processing unit 17 sets the “externally valid” scissor area to the “Pass area” (step ST8), and sets the “internally valid” scissor area to the “Fail area” (step ST8). ST9). Note that the scissor area whose setting flag stored in the setting flag register 14 indicates “not used” is not handled as a scissor area as described above, and therefore this scissor area is set as a “Pass area”. Set.
  • the drawing target pixel discrimination processing unit 17 determines, for each pixel included in the figure, whether or not all scissor areas for the pixel are “pass areas” (step ST11). If it is “Pass region”, it is determined that the pixel is a pixel to be drawn (step ST12). On the other hand, if any one of the scissor areas for the pixel is a “Fail area”, it is determined that the pixel is not a pixel to be rendered (step ST13).
  • steps ST5 to ST13 are performed for each pixel, and if there remains a pixel for which it is not yet determined whether or not it is a drawing target pixel, the processing returns to step ST5, and step ST5. To ST13 are repeated (step ST14). When it is determined whether all the pixels included in the drawing target graphic are the drawing target pixels, the process proceeds to step ST15.
  • FIG. 4 is an explanatory diagram illustrating an example of a drawing target pixel.
  • FIG. 4A shows an example in which there are three scissor areas A, B, and C whose “inside is valid”. Therefore, only the pixels included in all three scissor areas A, B, and C among the pixels in the triangle that is the drawing target graphic are set as the drawing target pixels. For example, the scissor area Pixels that are included in A and C but not included in the scissor area B are not set as drawing target pixels.
  • the scissor areas A and B are “internally valid”, but the scissor area C is “externally valid”. For this reason, only the pixels included in the scissor areas A and B and not included in the scissor area C among the pixels in the triangle that is the drawing target graphic are set as the drawing target pixels.
  • the memory control unit 18 determines the pixel value (color value, ⁇ value, etc.) of the pixel included in the drawing target graphic calculated by the drawing processing unit 11. Among these, a process of writing only the pixel value of the drawing target pixel into the frame buffer 19 is performed (step ST15).
  • the coordinate value or pixel value (color value, ⁇ value, etc.) of the pixel included in the figure calculated by the drawing processing unit 11 is used as the comparison target value.
  • the comparison target value of the pixel is within the drawing allowable range of each scissor area defined by the maximum value and the minimum value stored by the maximum value / minimum value setting register 13.
  • a drawing target pixel discrimination processing unit 17 for discriminating a drawing target pixel from among pixels included in the figure based on the judgment result of the comparator 16.
  • the memory control unit 18 frames only the pixel value of the drawing target pixel among the pixel values (color value, ⁇ value, etc.) of the pixel included in the drawing target figure calculated by the drawing processing unit 11. Write to buffer 19 Thus, not only the coordinate value calculated by the rendering processing unit 11 but also the pixel value (color value, ⁇ value, etc.) can be set as the comparison target value, and the comparator 16 can be used. Therefore, there is an effect that the resources can be effectively used.
  • the comparator 16 prepared for each scissor area is composed of a selector 16a and a comparison processing unit 16b, and the coordinate values and color values calculated by the drawing processing unit 11 in accordance with the setting mode output from the CPU 1. Since the comparison target value is selected from the value, ⁇ value, etc., when performing general scissor processing using the coordinate value as the comparison target value, the maximum value / minimum value of the coordinate value is maximized.
  • the coordinate value stored in the value / minimum value setting register 13 and selected by the selector 16a may be selected.
  • a maximum value / minimum value such as a color value or an ⁇ value is stored in the maximum value / minimum value setting register 13 so that the selector 16a selects a color value, an ⁇ value, or the like calculated by the drawing processing unit 11.
  • a general scissor process but also a scissor process using a color value, an ⁇ value or the like as a comparison target value can be performed. Therefore, since the comparator 16 can be used for other than general scissor processing, it is possible to effectively use resources.
  • any component of the embodiment can be modified or any component of the embodiment can be omitted within the scope of the invention.
  • the drawing control apparatus according to the present invention can be applied to, for example, a control panel for consumer and industrial equipment.

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Image Generation (AREA)

Abstract

There are provided: a comparator (16) that employs the coordinate values or pixel values (colour value, α value or the like) of pixels included in a figure calculated by a rendering processing section (11) as values to be subjected to a comparison process, and determines, for each of the pixels included within the figure, whether or not the values of these pixels that are to be subjected to the comparison process are included in an allowed rendering range of respective scissor regions, defined from stored maximum values and minimum values by a maximum value/minimum value setting register (13); and a pixels-to-be-rendered distinguishing processing section (17) for identifying pixels that are to be subjected to a rendering process and distinguishing such pixels that are to be rendered from pixels included within the figure, based on the results of this determination by the comparator (16).

Description

描画制御装置及び描画制御プログラムDrawing control apparatus and drawing control program
 この発明は、複数のシザー領域に図形を描画する描画制御装置及び描画制御プログラムに関するものである。 The present invention relates to a drawing control apparatus and a drawing control program for drawing a figure in a plurality of scissor areas.
 従来より、図形を描画する際、複数の領域が組み合わされた領域内に存在する図形部分だけを描画するような複数領域のシザリングに対応するグラフィクスシステムが提案されている。
 例えば、以下の特許文献1には、1つのシザリング領域(以下、「シザー領域」と称する)毎に画素値を書き込み、各シザー領域内の画素のシザー値を更新することによって、任意の数のシザー領域に対して、順々にシザリングを実行するシザリング方式を採用している描画制御装置が開示されている。
 なお、各々のシザー領域毎に、最大値及び最小値で規定される描画許容範囲が設定されており、当該シザー領域に対する画素の書き込みを行うか否かを判定するために、図形の内部に含まれる画素の座標値が当該シザー領域の描画許容範囲内に含まれているか否かを判定する比較器などが、シザー領域毎に設けられている。
2. Description of the Related Art Conventionally, there has been proposed a graphics system corresponding to scissoring of a plurality of areas in which only a figure portion existing in an area where a plurality of areas are combined is drawn when a figure is drawn.
For example, in Patent Document 1 below, a pixel value is written for each scissoring region (hereinafter referred to as “scissor region”), and the scissor value of the pixel in each scissor region is updated, thereby allowing an arbitrary number of pixels. A drawing control apparatus that employs a scissoring method that sequentially executes scissoring on a scissor area is disclosed.
Note that a drawing allowable range defined by the maximum value and the minimum value is set for each scissor area, and is included in the figure to determine whether or not to write a pixel to the scissor area. A comparator for determining whether or not the coordinate value of the pixel to be included is included in the drawing allowable range of the scissor area is provided for each scissor area.
特表2010-510608号公報(段落[0005]から[0007])JP-T 2010-510608 (paragraphs [0005] to [0007])
 従来の描画制御装置は以上のように構成されているので、一部のシザー領域を使用しない場合、当該シザー領域の比較器は使用されない。しかし、未使用の比較器を他の用途(例えば、図形の内部に含まれる画素のカラー値やα値(透明度)が、当該シザー領域の描画許容範囲内に含まれているか否かを判定するために使用する用途)で使用することができず、資源の有効活用を図ることができない課題があった。 Since the conventional drawing control apparatus is configured as described above, when a part of the scissor area is not used, the comparator of the scissor area is not used. However, an unused comparator is used for other purposes (for example, whether or not the color value or alpha value (transparency) of a pixel included in the figure is included in the drawing allowable range of the scissor area). Therefore, there is a problem that resources cannot be used effectively and resources cannot be effectively used.
 この発明は上記のような課題を解決するためになされたもので、装置内の資源を各種の用途で使用できるようにして、資源の有効活用を図ることができる描画制御装置及び描画制御プログラムを得ることを目的とする。 The present invention has been made to solve the above-described problems, and provides a drawing control apparatus and a drawing control program capable of using resources in the apparatus for various purposes and effectively utilizing the resources. The purpose is to obtain.
 この発明に係る描画制御装置は、複数のシザー領域に描画する図形の設定情報にしたがって、図形の内部に含まれる画素の座標値と画素値を算出する座標値・画素値算出手段と、各々のシザー領域の描画許容範囲を規定する最大値及び最小値を記憶する最大値・最小値記憶手段と、座標値・画素値算出手段により算出された図形の内部に含まれる画素の座標値又は画素値を比較対象値に設定し、図形の内部に含まれる画素毎に、当該画素の比較対象値が上記最大値・最小値記憶手段により記憶された最大値及び最小値から規定される各々のシザー領域の描画許容範囲内に含まれているか否かを判定する描画許容範囲内判定手段と、描画許容範囲内判定手段の判定結果に基づいて、図形の内部に含まれる画素の中から、描画対象の画素を判別する描画対象画素判別手段とを設け、フレームバッファ更新手段が、座標値・画素値算出手段により算出された図形の内部に含まれる画素の画素値のうち、描画対象画素判別手段により判別された描画対象の画素の画素値だけをフレームバッファに書き込むようにしたものである。 The drawing control apparatus according to the present invention includes a coordinate value / pixel value calculating unit for calculating a pixel coordinate value and a pixel value included in the figure according to setting information of the figure to be drawn in a plurality of scissor areas, Maximum value / minimum value storage means for storing the maximum value and minimum value for defining the scissor area drawing allowable range, and the coordinate value or pixel value of the pixel included in the figure calculated by the coordinate value / pixel value calculation means Is set as a comparison target value, and for each pixel included in the figure, each scissor area in which the comparison target value of the pixel is defined from the maximum value and the minimum value stored by the maximum value / minimum value storage means Based on the determination result of the drawing allowable range determining means for determining whether or not it is included in the drawing allowable range and the determination result of the drawing allowable range determining means, from among the pixels included in the figure, the drawing target Identify pixels The drawing target pixel discriminating means, and the frame buffer updating means determines the drawing determined by the drawing target pixel discriminating means among the pixel values of the pixels included in the figure calculated by the coordinate value / pixel value calculating means. Only the pixel value of the target pixel is written in the frame buffer.
 この発明によれば、座標値・画素値算出手段により算出された図形の内部に含まれる画素の座標値又は画素値を比較対象値に設定し、図形の内部に含まれる画素毎に、当該画素の比較対象値が上記最大値・最小値記憶手段により記憶された最大値及び最小値から規定される各々のシザー領域の描画許容範囲内に含まれているか否かを判定する描画許容範囲内判定手段と、描画許容範囲内判定手段の判定結果に基づいて、図形の内部に含まれる画素の中から、描画対象の画素を判別する描画対象画素判別手段とを設け、フレームバッファ更新手段が、座標値・画素値算出手段により算出された図形の内部に含まれる画素の画素値のうち、描画対象画素判別手段により判別された描画対象の画素の画素値だけをフレームバッファに書き込むように構成したので、座標値・画素値算出手段により算出された座標値だけでなく、画素値も比較対象値に設定して描画許容範囲内判定手段を使用することができる。そのため、資源の有効活用を図ることができる効果がある。 According to this invention, the coordinate value or pixel value of the pixel included in the figure calculated by the coordinate value / pixel value calculating means is set as the comparison target value, and for each pixel included in the figure, the pixel A drawing allowable range determination for determining whether or not the comparison target value is included in the drawing allowable range of each scissor area defined from the maximum value and the minimum value stored by the maximum value / minimum value storage means. And a drawing target pixel discriminating unit that discriminates a drawing target pixel from the pixels included in the figure based on the determination result of the drawing allowable range determining unit. Of the pixel values of the pixels included in the figure calculated by the value / pixel value calculating means, only the pixel value of the drawing target pixel determined by the drawing target pixel determining means is written in the frame buffer. Since it is configured, it is possible to use the coordinate values, as well as the coordinate values calculated by the pixel value calculating means, the drawing allowable range determining means is set to compare the target value even pixel values. Therefore, there is an effect that the resources can be effectively used.
この発明の実施の形態1による描画制御装置を示す構成図である。It is a block diagram which shows the drawing control apparatus by Embodiment 1 of this invention. この発明の実施の形態1による描画制御装置の処理内容を示すフローチャートである。It is a flowchart which shows the processing content of the drawing control apparatus by Embodiment 1 of this invention. 描画対象の図形の一例を示す説明図である。It is explanatory drawing which shows an example of the figure of drawing object. 描画対象の画素の一例を示す説明図である。It is explanatory drawing which shows an example of the pixel of drawing object. アイコンをバイリニアフィルタで拡大する場合を示す説明図である。It is explanatory drawing which shows the case where an icon is expanded with a bilinear filter.
 以下、この発明をより詳細に説明するため、この発明を実施するための形態について、添付の図面に従って説明する。
実施の形態1.
 図1はこの発明の実施の形態1による描画制御装置を示す構成図である。
 図1において、CPU(Central Processing Unit)1は描画制御装置2とCPUバス3を介して接続されており、複数のシザー領域に対して図形の描画を開始する際、その図形の設定情報(例えば、図形の座標(例えば、図形の頂点の座標)や、描画色などを示す情報)を含む描画命令を描画制御装置2に出力する処理を実施する。
 また、CPU1は描画命令を描画制御装置2に出力する際、各々のシザー領域の描画許容範囲を規定する最大値及び最小値を示す最大最小情報、各々のシザー領域の設定フラグ(シザー領域の使用の有無を示すフラグ)、各々のシザー領域の条件判定フラグ(シザー領域の「内部が有効」であるのか、「外部が有効」であるのかを示すフラグ)、比較対象データを指定する設定モード(選択情報)などを描画制御装置2に出力する処理を実施する。
 なお、これらのフラグや情報は、CPU1が描画命令に含めて出力するようにしてもよい。
Hereinafter, in order to describe the present invention in more detail, modes for carrying out the present invention will be described with reference to the accompanying drawings.
Embodiment 1 FIG.
FIG. 1 is a block diagram showing a drawing control apparatus according to Embodiment 1 of the present invention.
In FIG. 1, a CPU (Central Processing Unit) 1 is connected to a drawing control device 2 via a CPU bus 3, and when drawing of a figure to a plurality of scissor areas is started, the setting information of the figure (for example, Then, a process of outputting a drawing command including the coordinates of the figure (for example, the coordinates of the vertex of the figure) and information indicating the drawing color to the drawing control apparatus 2 is performed.
Further, when the CPU 1 outputs a drawing command to the drawing control device 2, the maximum / minimum information indicating the maximum value and the minimum value that define the drawing allowable range of each scissor area, the setting flag of each scissor area (use of the scissor area) A flag indicating whether or not each scissor area is judged (a flag indicating whether the inside of the scissor area is “valid” or “external is valid”), and a setting mode for specifying the comparison target data ( A process of outputting the selection information) to the drawing control apparatus 2 is performed.
Note that the CPU 1 may output these flags and information by including them in a drawing command.
 描画制御装置2の描画処理部11は例えばMPU(Micro Processing Unit)を実装している半導体集積回路、あるいは、ワンチップマイコンなどから構成されており、CPU1から出力された描画命令に含まれている図形の設定情報にしたがって、その図形の内部に含まれる画素の座標値(x,y)と、カラー値やα値(透明度)などの画素値を算出する処理を実施する。なお、描画処理部11は座標値・画素値算出手段を構成している。 The drawing processing unit 11 of the drawing control device 2 is composed of, for example, a semiconductor integrated circuit on which an MPU (Micro Processing Unit) is mounted or a one-chip microcomputer, and is included in the drawing command output from the CPU 1. In accordance with the graphic setting information, a process of calculating the coordinate values (x, y) of the pixels included in the graphic and the pixel values such as the color value and the α value (transparency) is performed. The drawing processing unit 11 constitutes coordinate value / pixel value calculation means.
 描画対象画素判別部12は描画処理部11により算出された座標値(x,y)やカラー値などに基づいて、図形の内部に含まれる画素の中から、描画対象の画素を判別する処理を実施する。
 描画対象画素判別部12の最大値・最小値設定レジスタ13はシザー領域毎に用意されており、CPU1から出力された最大最小情報が示す最大値及び最小値を記憶するメモリである。なお、最大値・最小値設定レジスタ13は最大値・最小値記憶手段を構成している。
The drawing target pixel discriminating unit 12 performs processing for discriminating a drawing target pixel from among pixels included in the figure based on the coordinate value (x, y), the color value and the like calculated by the drawing processing unit 11. carry out.
The maximum / minimum value setting register 13 of the drawing target pixel discriminating unit 12 is prepared for each scissor area, and is a memory for storing the maximum value and the minimum value indicated by the maximum / minimum information output from the CPU 1. The maximum value / minimum value setting register 13 constitutes maximum value / minimum value storage means.
 設定フラグレジスタ14はシザー領域毎に用意されており、CPU1から出力された当該シザー領域の設定フラグを記憶するメモリである。
 条件判定フラグレジスタ15はシザー領域毎に用意されており、CPU1から出力された当該シザー領域の条件判定フラグを記憶するメモリである。
The setting flag register 14 is prepared for each scissor area, and is a memory for storing a setting flag for the scissor area output from the CPU 1.
The condition determination flag register 15 is prepared for each scissor area, and is a memory for storing a condition determination flag for the scissor area output from the CPU 1.
 比較器16はシザー領域毎に用意されており、セレクタ16aと比較処理部16bから構成されている。
 比較器16のセレクタ16aはCPU1から出力された設定モードが、当該シザー領域の比較対象値として、座標値を選択する旨を示していれば、描画処理部11により算出された座標値(x,y)を比較対象値に設定して比較処理部16bに出力し、当該シザー領域の比較対象値として、カラー値を選択する旨を示していれば、描画処理部11により算出されたカラー値を比較対象値に設定して比較処理部16bに出力し、当該シザー領域の比較対象値として、α値を選択する旨を示していれば、描画処理部11により算出されたα値を比較対象値に設定して比較処理部16bに出力する処理を実施する。
 比較処理部16bは描画する図形の内部に含まれる画素毎に、当該画素の比較対象値が最大値・最小値設定レジスタ13により記憶された最大値及び最小値から規定される当該シザー領域の描画許容範囲内に含まれているか否かを判定する処理を実施する。
 なお、比較器16は描画許容範囲内判定手段を構成している。
The comparator 16 is prepared for each scissor area and includes a selector 16a and a comparison processing unit 16b.
If the setting mode output from the CPU 1 indicates that the coordinate value is selected as the comparison target value of the scissor area, the selector 16a of the comparator 16 indicates the coordinate value (x, If y) is set as a comparison target value and output to the comparison processing unit 16b to indicate that a color value is selected as the comparison target value of the scissor area, the color value calculated by the drawing processing unit 11 is used. If the comparison target value is set and output to the comparison processing unit 16b and indicates that the α value is selected as the comparison target value of the scissor area, the α value calculated by the drawing processing unit 11 is used as the comparison target value. To output to the comparison processing unit 16b.
For each pixel included in the figure to be drawn, the comparison processing unit 16b draws the scissor area in which the comparison target value of the pixel is defined by the maximum value and the minimum value stored in the maximum value / minimum value setting register 13. A process of determining whether or not it is within the allowable range is performed.
The comparator 16 constitutes a drawing allowable range determining means.
 描画対象画素判別処理部17は例えばMPUを実装している半導体集積回路、あるいは、ワンチップマイコンなどから構成されており、比較器16の判定結果に基づいて、図形の内部に含まれる画素の中から、描画対象の画素を判別する処理を実施する。
 例えば、設定フラグレジスタ14により記憶された設定フラグが、全てのシザー領域が使用される旨を示しており、条件判定フラグレジスタ15により記憶された条件判定フラグが、全てのシザー領域が「内部が有効」である旨を示している場合、図形の内部に含まれる画素の中から、比較器16によって、比較対象値が全てのシザー領域の描画許容範囲内に含まれていると判定された画素を特定して、その画素を描画対象の画素であると判別する。
 条件判定フラグレジスタ15により記憶された条件判定フラグが、全てのシザー領域が「内部が有効」である旨を示している場合において、設定フラグレジスタ14により記憶された設定フラグが、一部のシザー領域が使用されない旨を示している場合、比較器16によって、比較対象値が未使用のシザー領域を除く全てのシザー領域の描画許容範囲内に含まれていると判定された画素を特定して、その画素を描画対象の画素であると判別する。
The drawing target pixel discrimination processing unit 17 is composed of, for example, a semiconductor integrated circuit in which an MPU is mounted, a one-chip microcomputer, or the like. Based on the determination result of the comparator 16, the pixel to be included in the figure is determined. From this, a process of discriminating a pixel to be drawn is performed.
For example, the setting flag stored in the setting flag register 14 indicates that all scissor areas are used, and the condition determination flag stored in the condition determination flag register 15 indicates that all scissor areas In the case where “effective” is indicated, the pixel determined by the comparator 16 that the comparison target value is included in the drawing allowable range of all scissor areas among the pixels included in the figure. And the pixel is determined to be a pixel to be drawn.
When the condition determination flags stored by the condition determination flag register 15 indicate that all scissor areas are “internally valid”, the setting flags stored by the setting flag register 14 are not If the area indicates that the area is not used, the comparator 16 identifies a pixel for which the comparison target value is determined to be included in the drawing allowable range of all scissor areas except the unused scissor area. The pixel is determined to be a pixel to be drawn.
 また、条件判定フラグレジスタ15により記憶された条件判定フラグが、「内部が有効」であるシザー領域と「外部が有効」であるシザー領域とが混在している旨を示している場合、比較器16の判定結果を参照して、「内部が有効」であるシザー領域に対しては、比較対象値が描画許容範囲内に含まれている条件を満足し、「領域の外部」が有効であるシザー領域に対しては、比較対象値が描画許容範囲内に含まれていない条件を満足している画素を特定して、その画素を描画対象の画素であると判別する。
 なお、描画対象画素判別処理部17は描画対象画素判別手段を構成している。
Further, when the condition determination flag stored by the condition determination flag register 15 indicates that the scissor area “internally valid” and the scissor area “externally valid” are mixed, the comparator With reference to the determination result of 16, for the scissor area where “inside is valid”, the condition that the comparison target value is included in the drawing allowable range is satisfied, and “outside area” is valid. For the scissor region, a pixel that satisfies the condition that the comparison target value is not included in the drawing allowable range is specified, and the pixel is determined to be the drawing target pixel.
The drawing target pixel discrimination processing unit 17 constitutes a drawing target pixel discrimination means.
 メモリ制御部18は例えばMPUを実装している半導体集積回路、あるいは、ワンチップマイコンなどから構成されており、描画処理部11により算出された図形の内部に含まれる画素の画素値(カラー値、α値など)のうち、描画対象画素判別処理部17により判別された描画対象の画素の画素値だけをフレームバッファ19に書き込む処理を実施する。なお、メモリ制御部18はフレームバッファ更新手段を構成している。 The memory control unit 18 is composed of, for example, a semiconductor integrated circuit in which an MPU is mounted, a one-chip microcomputer, or the like. The pixel value (color value, pixel value) of a pixel included in the figure calculated by the drawing processing unit 11 Among the α values, the processing for writing only the pixel values of the drawing target pixels determined by the drawing target pixel determination processing unit 17 into the frame buffer 19 is performed. The memory control unit 18 constitutes a frame buffer update unit.
 図1の例では、描画制御装置の構成要素である描画処理部11、最大値・最小値設定レジスタ13、設定フラグレジスタ14、条件判定フラグレジスタ15、比較器16、描画対象画素判別処理部17及びメモリ制御部18のそれぞれが専用のハードウェアで構成されているものを想定しているが、描画制御装置がコンピュータ(コンピュータには、例えば、パソコンのほかに、後述する描画制御プログラムを実行することが可能な携帯電話、携帯情報端末やカーナビゲーション装置なども含まれる)で構成されていてもよい。
 描画制御装置がコンピュータで構成される場合、最大値・最小値設定レジスタ13、設定フラグレジスタ14及び条件判定フラグレジスタ15をコンピュータのメモリ上に構成するとともに、描画処理部11、比較器16、描画対象画素判別処理部17及びメモリ制御部18の処理内容が記述されている描画制御プログラムを当該コンピュータのメモリに格納し、当該コンピュータのCPUが当該メモリに格納されている描画制御プログラムを実行するようにすればよい。
 図2はこの発明の実施の形態1による描画制御装置の処理内容を示すフローチャートである。
In the example of FIG. 1, the drawing processing unit 11, the maximum value / minimum value setting register 13, the setting flag register 14, the condition determination flag register 15, the comparator 16, and the drawing target pixel determination processing unit 17 that are components of the drawing control apparatus. It is assumed that each of the memory control unit 18 and the memory control unit 18 is configured by dedicated hardware. However, the drawing control apparatus executes a drawing control program described later in addition to a computer (for example, in addition to a personal computer. Mobile phones, portable information terminals, car navigation devices, and the like are also included.
When the drawing control device is configured by a computer, the maximum value / minimum value setting register 13, the setting flag register 14, and the condition determination flag register 15 are configured on the memory of the computer, and the drawing processing unit 11, the comparator 16, the drawing A drawing control program in which the processing contents of the target pixel discrimination processing unit 17 and the memory control unit 18 are described is stored in the memory of the computer, and the CPU of the computer executes the drawing control program stored in the memory. You can do it.
FIG. 2 is a flowchart showing the processing contents of the drawing control apparatus according to Embodiment 1 of the present invention.
 次に動作について説明する。
 まず、CPU1は、複数のシザー領域に対して、図形の描画を開始する際、その図形の設定情報を含む描画命令を描画制御装置2に出力する。
 図形の設定情報には、例えば、図形の座標(例えば、図形の頂点の座標)や、描画色などを示す情報が含まれている。
 例えば、描画対象の図形が三角形であれば、三角形の3つの頂点の座標が設定情報に含まれ、また、3つの頂点の描画色として、カラー値やα値(透明度)などが設定情報に含まれる。
Next, the operation will be described.
First, when the CPU 1 starts drawing a figure for a plurality of scissor areas, the CPU 1 outputs a drawing command including setting information for the figure to the drawing control apparatus 2.
The graphic setting information includes, for example, information indicating the coordinates of the graphic (for example, the coordinates of the vertex of the graphic) and the drawing color.
For example, if the figure to be drawn is a triangle, the coordinates of the three vertices of the triangle are included in the setting information, and the color information, α value (transparency), etc. are included in the setting information as the drawing color of the three vertices It is.
 また、CPU1は、描画命令を描画制御装置2に出力する際、各々のシザー領域の最大最小情報、各々のシザー領域の設定フラグ、各々のシザー領域の条件判定フラグ、各々のシザー領域の設定モードなどを描画制御装置2に出力する。
 ここで、最大最小情報は、シザー領域における描画許容範囲の最大値と最小値を示す情報であり、描画許容範囲が座標値に関するものであれば、描画許容範囲は、例えば、X座標の値xがx1<x<x2の範囲内にあり、かつ、Y座標の値yがy1<y<y2の範囲内にある画素だけを描画対象とするための範囲となる。
 また、描画許容範囲が画素値に関するものであれば、描画許容範囲は、例えば、画素値cがc1<c<c2の範囲内にある画素だけを描画対象とするための範囲となる。
 この場合、x1,y1,c1などが描画許容範囲の最小値であり、x2,y2,c2などが描画許容範囲の最大値である。
 なお、描画許容範囲はシザー領域毎に設定され、あるシザー領域については座標値に関する描画許容範囲が設定され、あるシザー領域については画素値に関する描画許容範囲が設定されていてもよい。言うまでもないが、全てのシザー領域について、同様の描画許容範囲(例えば、座標値に関する描画許容範囲)が設定されていてもよい。
Further, when the CPU 1 outputs a drawing command to the drawing control device 2, the maximum / minimum information of each scissor area, each scissor area setting flag, each scissor area condition determination flag, and each scissor area setting mode. Are output to the drawing control apparatus 2.
Here, the maximum / minimum information is information indicating the maximum value and the minimum value of the drawing allowable range in the scissor area. If the drawing allowable range is related to the coordinate value, the drawing allowable range is, for example, the value x of the X coordinate. Is within the range of x1 <x <x2 and the Y coordinate value y is within the range of y1 <y <y2.
Further, if the drawing allowable range relates to the pixel value, the drawing allowable range is a range for drawing only pixels whose pixel value c is in the range of c1 <c <c2, for example.
In this case, x1, y1, c1, etc. are the minimum values of the drawing allowable range, and x2, y2, c2, etc. are the maximum values of the drawing allowable range.
The drawing allowable range may be set for each scissor area, the drawing allowable range related to the coordinate value may be set for a certain scissor area, and the drawing allowable range related to the pixel value may be set for a certain scissor area. Needless to say, a similar drawing allowable range (for example, a drawing allowable range related to coordinate values) may be set for all scissor areas.
 シザー領域の設定フラグは、シザー領域の使用の有無を示すフラグであり、このフラグが「使用しない」旨を示しているシザー領域については、シザー領域として取り扱わないようにするものである。
 例えば、N個のシザー領域が存在するとき、N-2個のシザー領域の設定フラグが「使用する」旨を示し、残りの2個のシザー領域の設定フラグが「使用しない」旨を示していれば、残りの2個のシザー領域については、シザー領域として取り扱わず、N-2個のシザー領域に対して、図形の描画処理を行うようにする。
The scissor area setting flag is a flag indicating whether or not the scissor area is used. The scissor area indicating that this flag is “not used” is not handled as a scissor area.
For example, when there are N scissor areas, N-2 scissor area setting flags indicate “use”, and the remaining two scissor area setting flags indicate “not used”. Thus, the remaining two scissor areas are not handled as scissor areas, and a graphic drawing process is performed on the N-2 scissor areas.
 シザー領域の条件判定フラグは、当該シザー領域の「内部が有効」であるのか、「外部が有効」であるのかを示すフラグであり、「内部が有効」であるシザー領域については、シザー領域の内部に図形の描画を許可し、「外部が有効」であるシザー領域については、シザー領域の外部に図形の描画を許可するものである。
 設定モードは、比較器16のセレクタ16aが、比較対象データとして、座標値、カラー値、α値のいずれを選択するかを示す選択情報であり、例えば、座標値に関する描画許容範囲の最大値と最小値が設定されるシザー領域については、比較対象データとして、座標値を選択する旨を示す設定モードが与えられ、カラー値に関する描画許容範囲の最大値と最小値が設定されるシザー領域については、比較対象データとして、カラー値を選択する旨を示す設定モードが与えられる。
The scissor area condition determination flag is a flag indicating whether “inside is valid” or “outside is valid” of the scissor area. For a scissor area where “inside is valid”, the scissor area For the scissor area in which drawing of the figure is permitted and “external is valid”, drawing of the figure is permitted to the outside of the scissor area.
The setting mode is selection information indicating whether the selector 16a of the comparator 16 selects a coordinate value, a color value, or an α value as comparison target data. For the scissor area where the minimum value is set, a setting mode indicating that the coordinate value is selected is given as comparison target data, and for the scissor area where the maximum value and minimum value of the drawing allowable range regarding the color value are set. A setting mode indicating that a color value is selected is given as comparison target data.
 なお、CPU1から出力された最大最小情報が示すシザー領域における描画許容範囲の最大値及び最小値は、シザー領域毎に用意されている最大値・最小値設定レジスタ13に格納される。
 CPU1から出力されたシザー領域の設定フラグは、シザー領域毎に用意されている設定フラグレジスタ14に格納される。
 また、CPU1から出力されたシザー領域の条件判定フラグは、シザー領域毎に用意されている条件判定フラグレジスタ15に格納される。
Note that the maximum value and the minimum value of the drawing allowable range in the scissor area indicated by the maximum / minimum information output from the CPU 1 are stored in the maximum value / minimum value setting register 13 prepared for each scissor area.
The scissor area setting flag output from the CPU 1 is stored in a setting flag register 14 prepared for each scissor area.
The scissor area condition determination flag output from the CPU 1 is stored in a condition determination flag register 15 prepared for each scissor area.
 描画処理部11は、CPU1から描画命令を受けると(図2のステップST1)、その描画命令に含まれている図形の設定情報にしたがって、その図形の内部に含まれる画素の座標値(x,y)と、カラー値やα値(透明度)などの画素値を算出する(ステップST2)。
 例えば、描画対象の図形が三角形であれば、図3に示すように、三角形の3つの頂点P1,P2,P3の座標(x1,y1),(x2,y2),(x3,y3)が図形の設定情報に含まれているので、これらの座標を用いて、各頂点を結ぶ線分L1,L2,L3を求め、3つの線分L1,L2,L3で囲まれている領域(三角形)を特定することで、三角形の内部に含まれる各画素の座標値(x,y)を算出する。
 例えば、線分L1は、頂点P1,P2の座標(x1,y1),(x2,y2)を下記に示す連立方程式に代入することで求めることができる。
   y1=a・x1+b
   y2=a・x2+b
 ただし、aは線分L1の傾き、bは定数である。
When the drawing processing unit 11 receives a drawing command from the CPU 1 (step ST1 in FIG. 2), according to the setting information of the graphic contained in the drawing command, the coordinate values (x, y) and pixel values such as color values and α values (transparency) are calculated (step ST2).
For example, if the figure to be drawn is a triangle, as shown in FIG. 3, the coordinates (x1, y1), (x2, y2), (x3, y3) of the three vertices P1, P2, and P3 of the triangle are the figures. Therefore, using these coordinates, line segments L1, L2, and L3 connecting the vertices are obtained, and an area (triangle) surrounded by the three line segments L1, L2, and L3 is obtained. By specifying, the coordinate value (x, y) of each pixel included in the inside of the triangle is calculated.
For example, the line segment L1 can be obtained by substituting the coordinates (x1, y1) and (x2, y2) of the vertices P1, P2 into the simultaneous equations shown below.
y1 = a · x1 + b
y2 = a · x2 + b
Here, a is the slope of the line segment L1, and b is a constant.
 カラー値やα値については、例えば、描画対象の図形が三角形であれば、三角形の3つの頂点P1,P2,P3のカラー値が図形の設定情報に含まれているので、例えば、頂点P1と頂点P2の中間に位置している画素のカラー値の場合、頂点P1のカラー値と頂点P2のカラー値との中間値を、当該画素のカラー値として算出する。α値についても同様である。
 ただし、頂点P1と頂点P2の中間に位置している画素が、頂点P1と頂点P2の中点ではなく、頂点P1までの距離と、頂点P2までの距離とが異なる場合、頂点P1から頂点P2までカラー値等が段階的に変化(グラデーション)するように、上記距離を考慮して、カラー値等を算出する。
Regarding the color value and the α value, for example, if the figure to be drawn is a triangle, the color values of the three vertices P1, P2, and P3 of the triangle are included in the figure setting information. In the case of a color value of a pixel located in the middle of the vertex P2, an intermediate value between the color value of the vertex P1 and the color value of the vertex P2 is calculated as the color value of the pixel. The same applies to the α value.
However, when the pixel located between the vertex P1 and the vertex P2 is not the midpoint of the vertex P1 and the vertex P2, but the distance to the vertex P1 and the distance to the vertex P2 are different, the vertex P1 to the vertex P2 The color value and the like are calculated in consideration of the distance so that the color value and the like gradually change (gradation).
 描画対象画素判別部12は、描画処理部11が図形の内部に含まれる画素の座標値(x,y)、カラー値やα値などを算出すると、画素の座標値(x,y)やカラー値等に基づいて、図形の内部に含まれる画素の中から、描画対象の画素を判別する。
 具体的には、以下の通りである。
When the drawing processing unit 11 calculates the coordinate value (x, y), color value, α value, and the like of the pixel included in the figure, the drawing target pixel determination unit 12 calculates the pixel coordinate value (x, y) and color. Based on the value or the like, the drawing target pixel is determined from the pixels included in the figure.
Specifically, it is as follows.
 描画対象画素判別部12は、シザー領域毎に用意されている比較器16のうち、「使用する」シザー領域に対応する比較器16だけを使用して、「使用しない」シザー領域に対応する比較器16を使用しないようにするため、各々のシザー領域に対応する設定フラグレジスタ14に記憶されている設定フラグ(CPU1から出力されたシザー領域の設定フラグ)を参照して、各々のシザー領域が、「使用する」シザー領域であるか否かを判定する(ステップST3)。
 描画対象画素判別部12は、「使用する」シザー領域を特定すると、そのシザー領域に対応する比較器16を起動する(ステップST4)。
The drawing target pixel determination unit 12 uses only the comparator 16 corresponding to the “use” scissor area among the comparators 16 prepared for each scissor area, and performs the comparison corresponding to the “not used” scissor area. In order not to use the device 16, each scissor area is referred to by referring to a setting flag (setting flag for the scissor area output from the CPU 1) stored in the setting flag register 14 corresponding to each scissor area. It is determined whether or not the scissor area is “used” (step ST3).
When the “used” scissor area is specified, the drawing target pixel determination unit 12 activates the comparator 16 corresponding to the scissor area (step ST4).
 起動された比較器16のセレクタ16aは、CPU1から出力された設定モードが、当該シザー領域の比較対象値として、座標値を選択する旨を示していれば、描画処理部11により算出された描画対象の図形に含まれる画素の座標値(x,y)を比較対象値に設定して、その比較対象値を比較処理部16bに出力する(ステップST5)。
 また、セレクタ16aは、CPU1から出力された設定モードが、当該シザー領域の比較対象値として、カラー値を選択する旨を示していれば、描画処理部11により算出された描画対象の図形に含まれる画素のカラー値を比較対象値に設定して、その比較対象値を比較処理部16bに出力し、当該シザー領域の比較対象値として、α値を選択する旨を示していれば、描画処理部11により算出された描画対象の図形に含まれる画素のα値を比較対象値に設定して、その比較対象値を比較処理部16bに出力する(ステップST5)。
If the setting mode output from the CPU 1 indicates that the coordinate value is selected as the comparison target value of the scissor area, the selector 16a of the activated comparator 16 draws the drawing calculated by the drawing processing unit 11. The coordinate value (x, y) of the pixel included in the target graphic is set as the comparison target value, and the comparison target value is output to the comparison processing unit 16b (step ST5).
If the setting mode output from the CPU 1 indicates that the color value is selected as the comparison target value of the scissor area, the selector 16a is included in the drawing target figure calculated by the drawing processing unit 11. If the color value of the pixel to be compared is set as the comparison target value, the comparison target value is output to the comparison processing unit 16b, and the α value is selected as the comparison target value of the scissor area, the drawing process The α value of the pixel included in the drawing target graphic calculated by the unit 11 is set as a comparison target value, and the comparison target value is output to the comparison processing unit 16b (step ST5).
 起動された比較器16の比較処理部16bは、セレクタ16aから比較対象値を受けると、最大値・最小値設定レジスタ13に記憶されている最大値及び最小値を取得して、当該シザー領域における描画許容範囲を特定する。
 比較処理部16bは、シザー領域における描画許容範囲を特定すると、描画する図形の内部に含まれる画素毎に、当該画素の比較対象値が上記の描画許容範囲内に含まれているか否かを判定する(ステップST6)。
When the comparison processing unit 16b of the activated comparator 16 receives the comparison target value from the selector 16a, the comparison processing unit 16b acquires the maximum value and the minimum value stored in the maximum value / minimum value setting register 13, and in the scissor area. Specify the allowable drawing range.
When the drawing allowable range in the scissor area is specified, the comparison processing unit 16b determines whether the comparison target value of the pixel is included in the drawing allowable range for each pixel included in the figure to be drawn. (Step ST6).
 描画対象画素判別処理部17は、比較器16が、図形の内部に含まれる画素毎に、当該画素の比較対象値が描画許容範囲内に含まれているか否かを判定すると、その判定結果に基づいて、図形の内部に含まれる画素の中から、描画対象の画素を判別する。
 即ち、描画対象画素判別処理部17は、比較対象値が描画許容範囲内に含まれていると判定された画素については、条件判定フラグレジスタ15に記憶されている各々のシザー領域条件判定フラグ(「使用する」シザー領域に対応するシザー領域条件判定フラグ)を参照して、各々のシザー領域が、「内部が有効」のシザー領域である否かを判定する(ステップST7)。
 そして、描画対象画素判別処理部17は、「内部が有効」のシザー領域を「Pass領域」に設定し(ステップST8)、「外部が有効」のシザー領域を「Fail領域」に設定する(ステップST9)。
When the drawing target pixel determination processing unit 17 determines whether the comparison target value of the pixel is included in the drawing allowable range for each pixel included in the figure, the drawing target pixel determination processing unit 17 displays the determination result. Based on the pixel included in the figure, the drawing target pixel is determined.
That is, the drawing target pixel determination processing unit 17 sets each scissor region condition determination flag (stored in the condition determination flag register 15) for pixels for which the comparison target value is determined to be included in the drawing allowable range. Referring to the scissor area condition determination flag corresponding to the “use” scissor area, it is determined whether each scissor area is a scissor area of “internally valid” (step ST7).
Then, the drawing target pixel discrimination processing unit 17 sets the scissor area “inside is valid” to “pass area” (step ST8), and sets the scissor area “inside is valid” to “fail area” (step ST8). ST9).
 また、描画対象画素判別処理部17は、比較対象値が描画許容範囲内に含まれていないと判定された画素については、条件判定フラグレジスタ15に記憶されている各々のシザー領域条件判定フラグ(「使用する」シザー領域に対応するシザー領域条件判定フラグ)を参照して、各々のシザー領域が、「外部が有効」のシザー領域である否かを判定する(ステップST10)。
 そして、描画対象画素判別処理部17は、「外部が有効」のシザー領域を「Pass領域」に設定し(ステップST8)、「内部が有効」のシザー領域を「Fail領域」に設定する(ステップST9)。
 なお、設定フラグレジスタ14に記憶されている設定フラグが、「使用しない」旨を示しているシザー領域については、上述したように、シザー領域として取り扱わないため、このシザー領域を「Pass領域」に設定する。
In addition, the drawing target pixel determination processing unit 17 sets each scissor region condition determination flag (stored in the condition determination flag register 15) for pixels for which it is determined that the comparison target value is not included in the drawing allowable range. With reference to the scissor area condition determination flag corresponding to the “used” scissor area, it is determined whether each scissor area is a scissor area of “external valid” (step ST10).
Then, the drawing target pixel discrimination processing unit 17 sets the “externally valid” scissor area to the “Pass area” (step ST8), and sets the “internally valid” scissor area to the “Fail area” (step ST8). ST9).
Note that the scissor area whose setting flag stored in the setting flag register 14 indicates “not used” is not handled as a scissor area as described above, and therefore this scissor area is set as a “Pass area”. Set.
 描画対象画素判別処理部17は、図形の内部に含まれる画素毎に、当該画素に対する全てのシザー領域が「Pass領域」であるか否かを判定し(ステップST11)、全てのシザー領域が「Pass領域」であれば、当該画素は描画対象の画素であると判別する(ステップST12)。
 一方、当該画素に対するシザー領域のいずれか1つでも「Fail領域」であれば、当該画素は描画対象の画素でないと判別する(ステップST13)。
The drawing target pixel discrimination processing unit 17 determines, for each pixel included in the figure, whether or not all scissor areas for the pixel are “pass areas” (step ST11). If it is “Pass region”, it is determined that the pixel is a pixel to be drawn (step ST12).
On the other hand, if any one of the scissor areas for the pixel is a “Fail area”, it is determined that the pixel is not a pixel to be rendered (step ST13).
 なお、ステップST5~ST13の処理は画素毎に実施されるものであり、未だ描画対象の画素であるか否かが判別されていない画素が残っていれば、ステップST5の処理に戻り、ステップST5~ST13の処理を繰り返し実施する(ステップST14)。
 描画対象の図形に含まれる全ての画素について、描画対象の画素であるか否かの判別が行われると、ステップST15の処理に移行する。
Note that the processing in steps ST5 to ST13 is performed for each pixel, and if there remains a pixel for which it is not yet determined whether or not it is a drawing target pixel, the processing returns to step ST5, and step ST5. To ST13 are repeated (step ST14).
When it is determined whether all the pixels included in the drawing target graphic are the drawing target pixels, the process proceeds to step ST15.
 ここで、図4は描画対象の画素の一例を示す説明図である。
 図4(a)では、「内部が有効」である3個のシザー領域A,B,Cが存在している例を示している。このため、描画対象の図形である三角形内の画素のうち、3個のシザー領域A,B,Cの全てに含まれている画素だけが描画対象の画素に設定されており、例えば、シザー領域A,Cには含まれているが、シザー領域Bには含まれていない画素は描画対象の画素に設定されていない。
 図4(b)の例では、シザー領域A,Bは「内部が有効」であるが、シザー領域Cは「外部が有効」である例を示している。このため、描画対象の図形である三角形内の画素のうち、シザー領域A,Bに含まれており、かつ、シザー領域Cに含まれていない画素だけが描画対象の画素に設定されている。
Here, FIG. 4 is an explanatory diagram illustrating an example of a drawing target pixel.
FIG. 4A shows an example in which there are three scissor areas A, B, and C whose “inside is valid”. Therefore, only the pixels included in all three scissor areas A, B, and C among the pixels in the triangle that is the drawing target graphic are set as the drawing target pixels. For example, the scissor area Pixels that are included in A and C but not included in the scissor area B are not set as drawing target pixels.
In the example of FIG. 4B, the scissor areas A and B are “internally valid”, but the scissor area C is “externally valid”. For this reason, only the pixels included in the scissor areas A and B and not included in the scissor area C among the pixels in the triangle that is the drawing target graphic are set as the drawing target pixels.
 メモリ制御部18は、描画対象画素判別処理部17が描画対象の画素を判別すると、描画処理部11により算出された描画対象の図形に含まれる画素の画素値(カラー値、α値など)のうち、描画対象の画素の画素値だけをフレームバッファ19に書き込む処理を実施する(ステップST15)。 When the drawing target pixel determination processing unit 17 determines the drawing target pixel, the memory control unit 18 determines the pixel value (color value, α value, etc.) of the pixel included in the drawing target graphic calculated by the drawing processing unit 11. Among these, a process of writing only the pixel value of the drawing target pixel into the frame buffer 19 is performed (step ST15).
 以上で明らかなように、この実施の形態1によれば、描画処理部11により算出された図形の内部に含まれる画素の座標値又は画素値(カラー値、α値など)を比較対象値に設定し、図形の内部に含まれる画素毎に、当該画素の比較対象値が最大値・最小値設定レジスタ13により記憶された最大値及び最小値から規定される各々のシザー領域の描画許容範囲内に含まれているか否かを判定する比較器16と、比較器16の判定結果に基づいて、図形の内部に含まれる画素の中から、描画対象の画素を判別する描画対象画素判別処理部17とを設け、メモリ制御部18が、描画処理部11により算出された描画対象の図形に含まれる画素の画素値(カラー値、α値など)のうち、描画対象の画素の画素値だけをフレームバッファ19に書き込むように構成したので、描画処理部11により算出された座標値だけでなく、画素値(カラー値、α値など)も比較対象値に設定して、比較器16を使用することができる。そのため、資源の有効活用を図ることができる効果を奏する。 As apparent from the above, according to the first embodiment, the coordinate value or pixel value (color value, α value, etc.) of the pixel included in the figure calculated by the drawing processing unit 11 is used as the comparison target value. For each pixel included in the figure, the comparison target value of the pixel is within the drawing allowable range of each scissor area defined by the maximum value and the minimum value stored by the maximum value / minimum value setting register 13. And a drawing target pixel discrimination processing unit 17 for discriminating a drawing target pixel from among pixels included in the figure based on the judgment result of the comparator 16. The memory control unit 18 frames only the pixel value of the drawing target pixel among the pixel values (color value, α value, etc.) of the pixel included in the drawing target figure calculated by the drawing processing unit 11. Write to buffer 19 Thus, not only the coordinate value calculated by the rendering processing unit 11 but also the pixel value (color value, α value, etc.) can be set as the comparison target value, and the comparator 16 can be used. Therefore, there is an effect that the resources can be effectively used.
 即ち、シザー領域毎に用意されている比較器16が、セレクタ16aと比較処理部16bから構成されており、CPU1から出力された設定モードにしたがって、描画処理部11により算出された座標値、カラー値、α値などの中から、比較対象値を選択するようにしているので、比較対象値として座標値を用いる一般的なシザー処理を行う際には、座標値の最大値・最小値を最大値・最小値設定レジスタ13に格納して、セレクタ16aが描画処理部11により算出された座標値を選択すればよい。
 一方、カラー値やα値などの最大値・最小値を最大値・最小値設定レジスタ13に格納して、セレクタ16aが描画処理部11により算出されたカラー値やα値などを選択するようにすれば、一般的なシザー処理だけでなく、比較対象値としてカラー値、α値などを用いるシザー処理も実施することができるようになる。
 したがって、比較器16を一般的なシザー処理以外にも使用することができるため、資源の有効活用を図ることができる。
That is, the comparator 16 prepared for each scissor area is composed of a selector 16a and a comparison processing unit 16b, and the coordinate values and color values calculated by the drawing processing unit 11 in accordance with the setting mode output from the CPU 1. Since the comparison target value is selected from the value, α value, etc., when performing general scissor processing using the coordinate value as the comparison target value, the maximum value / minimum value of the coordinate value is maximized. The coordinate value stored in the value / minimum value setting register 13 and selected by the selector 16a may be selected.
On the other hand, a maximum value / minimum value such as a color value or an α value is stored in the maximum value / minimum value setting register 13 so that the selector 16a selects a color value, an α value, or the like calculated by the drawing processing unit 11. Thus, not only a general scissor process but also a scissor process using a color value, an α value or the like as a comparison target value can be performed.
Therefore, since the comparator 16 can be used for other than general scissor processing, it is possible to effectively use resources.
 なお、この実施の形態1の描画制御装置の応用例としては、以下のような用途が考えられる。
 例えば、図5に示すように、アイコンをバイリニアフィルタで拡大する場合、アイコンの境界(輪郭)部分には、アイコンの色と透過色との中間色が混ざり合うため、通常、1つの透過色を指定するだけでは、綺麗に透過させることができない。
 これに対して、図1の描画制御装置を使用する場合、カラー値に関する描画許容範囲(最大値、最小値)を設定して、描画許容範囲のカラー値だけを透過させることが可能であるため、アイコンをバイリニアフィルタで拡大する場合でも、綺麗に透過させることができる。
 また、グラフィクスウィンドウとビデオウィンドウの重ね合わせが可能な描画処理システムにおいては、シザー領域の設定レジスタと、ビデオウィンドウ領域の設定レジスタとを共用化することで、回路規模を削減するような用途にも適用可能である。
Note that the following uses are conceivable as application examples of the drawing control apparatus of the first embodiment.
For example, as shown in FIG. 5, when enlarging an icon with a bilinear filter, an intermediate color between the icon color and the transparent color is mixed in the boundary (contour) portion of the icon, so normally one transparent color is designated. It is not possible to make it transparent through just doing.
On the other hand, when the drawing control apparatus of FIG. 1 is used, it is possible to set a drawing allowable range (maximum value, minimum value) relating to color values and transmit only the color values within the drawing allowable range. Even when the icon is enlarged with a bilinear filter, it can be transmitted clearly.
Also, in a drawing processing system that can superimpose a graphics window and a video window, by sharing the scissor area setting register and the video window area setting register, the circuit size can be reduced. Applicable.
 なお、本願発明はその発明の範囲内において、実施の形態の任意の構成要素の変形、もしくは実施の形態の任意の構成要素の省略が可能である。 In the present invention, any component of the embodiment can be modified or any component of the embodiment can be omitted within the scope of the invention.
 この発明に係る描画制御装置は、例えば、民生・産業機器向けの制御パネル等に適用することができる。 The drawing control apparatus according to the present invention can be applied to, for example, a control panel for consumer and industrial equipment.
 1 CPU、2 描画制御装置、3 CPUバス、11 描画処理部(座標値・画素値算出手段)、12 描画対象画素判別部、13 最大値・最小値設定レジスタ(最大値・最小値記憶手段)、14 設定フラグレジスタ、15 条件判定フラグレジスタ、16 比較器(描画許容範囲内判定手段)、16a セレクタ、16b 比較処理部、17 描画対象画素判別処理部(描画対象画素判別手段)、18 メモリ制御部(フレームバッファ更新手段)、19 フレームバッファ。 1 CPU, 2 drawing control device, 3 CPU bus, 11 drawing processing unit (coordinate value / pixel value calculation means), 12 drawing target pixel discrimination unit, 13 maximum value / minimum value setting register (maximum value / minimum value storage means) , 14 setting flag register, 15 condition determination flag register, 16 comparator (rendering tolerance determination unit), 16a selector, 16b comparison processing unit, 17 rendering target pixel discrimination processing unit (rendering target pixel discrimination unit), 18 memory control Part (frame buffer update means), 19 frame buffer.

Claims (6)

  1.  複数のシザー領域に描画する図形の設定情報にしたがって上記図形の内部に含まれる画素の座標値と画素値を算出する座標値・画素値算出手段と、各々のシザー領域の描画許容範囲を規定する最大値及び最小値を記憶する最大値・最小値記憶手段と、上記座標値・画素値算出手段により算出された図形の内部に含まれる画素の座標値又は画素値を比較対象値に設定し、上記図形の内部に含まれる画素毎に、当該画素の比較対象値が上記最大値・最小値記憶手段により記憶された最大値及び最小値から規定される各々のシザー領域の描画許容範囲内に含まれているか否かを判定する描画許容範囲内判定手段と、上記描画許容範囲内判定手段の判定結果に基づいて、上記図形の内部に含まれる画素の中から、描画対象の画素を判別する描画対象画素判別手段と、上記座標値・画素値算出手段により算出された図形の内部に含まれる画素の画素値のうち、上記描画対象画素判別手段により判別された描画対象の画素の画素値だけをフレームバッファに書き込むフレームバッファ更新手段とを備えた描画制御装置。 Coordinate values / pixel value calculating means for calculating pixel coordinate values and pixel values included in the figure according to the setting information of the figure to be drawn in a plurality of scissor areas, and a drawing allowable range for each scissor area Maximum value / minimum value storage means for storing the maximum value and minimum value, and the coordinate value or pixel value of the pixel included in the figure calculated by the coordinate value / pixel value calculation means is set as a comparison target value, For each pixel included in the figure, the comparison target value of the pixel is included in the drawing allowable range of each scissor area defined by the maximum value and the minimum value stored by the maximum value / minimum value storage means. A drawing allowable range determination unit that determines whether or not the image is drawn, and a drawing that determines a pixel to be drawn from among pixels included in the figure based on a determination result of the drawing allowable range determination unit Target Of the pixel values of the pixels included in the figure calculated by the element determination means and the coordinate value / pixel value calculation means, only the pixel values of the drawing target pixels determined by the drawing target pixel determination means are framed. A drawing control apparatus comprising frame buffer update means for writing to a buffer.
  2.  描画許容範囲内判定手段は、座標値・画素値算出手段により算出された座標値を選択する旨を示す選択情報が入力された場合、上記座標値を比較対象値に設定し、上記座標値・画素値算出手段により算出された画素値を選択する旨を示す選択情報が入力された場合、上記画素値を比較対象値に設定することを特徴とする請求項1記載の描画制御装置。 When selection information indicating that the coordinate value calculated by the coordinate value / pixel value calculation unit is selected is input, the drawing allowable range determination unit sets the coordinate value as a comparison target value, and sets the coordinate value / 2. The drawing control apparatus according to claim 1, wherein when selection information indicating that the pixel value calculated by the pixel value calculation means is selected is input, the pixel value is set as a comparison target value.
  3.  描画対象画素判別手段は、図形の内部に含まれる画素の中から、描画許容範囲内判定手段によって、比較対象値が全てのシザー領域の描画許容範囲内に含まれていると判定された画素を特定して、上記画素を描画対象の画素であると判別することを特徴とする請求項1記載の描画制御装置。 The drawing target pixel discriminating means selects pixels for which the comparison target value is determined to be included in the drawing allowable range of all scissor areas by the drawing allowable range determining means from the pixels included in the figure. The drawing control apparatus according to claim 1, wherein the drawing control device identifies and identifies the pixel as a drawing target pixel.
  4.  描画対象画素判別手段は、使用しないシザー領域が設定されている場合、図形の内部に含まれる画素の中から、描画許容範囲内判定手段によって、比較対象値が未使用のシザー領域を除く全てのシザー領域の描画許容範囲内に含まれていると判定された画素を特定して、上記画素を描画対象の画素であると判別することを特徴とする請求項1記載の描画制御装置。 When a scissor area that is not used is set, the drawing target pixel determination means determines all of the pixels included in the figure except for the scissor area whose comparison target value is not used by the drawing allowable range determination means. The drawing control apparatus according to claim 1, wherein a pixel determined to be included in the drawing allowable range of the scissor area is specified, and the pixel is determined as a drawing target pixel.
  5.  描画対象画素判別手段は、内部が有効であるシザー領域と、外部が有効であるシザー領域とが存在する場合、描画許容範囲内判定手段の判定結果を参照して、内部が有効であるシザー領域に対しては、比較対象値が描画許容範囲内に含まれている条件を満足し、外部が有効であるシザー領域に対しては、比較対象値が描画許容範囲内に含まれていない条件を満足している画素を特定し、上記画素を描画対象の画素であると判別することを特徴とする請求項1記載の描画制御装置。 When there is a scissor area whose inside is effective and a scissor area whose outside is effective, the drawing target pixel determining means refers to the determination result of the drawing allowable range determining means, and the scissor area where the inside is effective For the scissor area that satisfies the condition that the comparison target value is included in the drawing allowable range, and the outside is effective, the condition that the comparison target value is not included in the drawing allowable range is satisfied. The drawing control apparatus according to claim 1, wherein a satisfied pixel is specified, and the pixel is determined to be a drawing target pixel.
  6.  複数のシザー領域に描画する図形の設定情報にしたがって上記図形の内部に含まれる画素の座標値と画素値を算出する座標値・画素値算出処理手順と、各々のシザー領域の描画許容範囲を規定する最大値及び最小値を記憶する最大値・最小値記憶処理手順と、上記座標値・画素値算出処理手順により算出された図形の内部に含まれる画素の座標値又は画素値を比較対象値に設定し、上記図形の内部に含まれる画素毎に、当該画素の比較対象値が上記最大値・最小値記憶処理手順により記憶された最大値及び最小値から規定される各々のシザー領域の描画許容範囲内に含まれているか否かを判定する描画許容範囲内判定処理手順と、上記描画許容範囲内判定処理手順での判定結果に基づいて、上記図形の内部に含まれる画素の中から、描画対象の画素を判別する描画対象画素判別処理手順と、上記座標値・画素値算出処理手順により算出された図形の内部に含まれる画素の画素値のうち、上記描画対象画素判別処理手順により判別された描画対象の画素の画素値だけをフレームバッファに書き込むフレームバッファ更新処理手順とをコンピュータに実行させるための描画制御プログラム。 Defines the coordinate value and pixel value calculation processing procedure for calculating the pixel coordinate value and pixel value contained in the figure according to the setting information of the figure to be drawn in multiple scissor areas, and the drawing allowable range for each scissor area The maximum value / minimum value storage processing procedure for storing the maximum value and the minimum value to be stored, and the coordinate value or pixel value of the pixel included in the figure calculated by the coordinate value / pixel value calculation processing procedure are used as comparison target values. For each pixel included in the figure, the permissible drawing of each scissor area in which the comparison target value of the pixel is defined by the maximum value and the minimum value stored by the maximum value / minimum value storage processing procedure Based on the drawing allowable range determination processing procedure for determining whether or not it is included in the range and the determination result in the drawing allowable range determination processing procedure, drawing is performed from among the pixels included in the graphic. versus Among the pixel values of the pixels included in the figure calculated by the coordinate value / pixel value calculation processing procedure and the pixel value of the pixel included in the figure calculated by the coordinate value / pixel value calculation processing procedure, A drawing control program for causing a computer to execute a frame buffer update processing procedure for writing only a pixel value of a drawing target pixel into a frame buffer.
PCT/JP2012/001206 2012-02-22 2012-02-22 Rendering control device and rendering control program WO2013124894A1 (en)

Priority Applications (3)

Application Number Priority Date Filing Date Title
JP2014500561A JP5885827B2 (en) 2012-02-22 2012-02-22 Drawing control apparatus and drawing control program
PCT/JP2012/001206 WO2013124894A1 (en) 2012-02-22 2012-02-22 Rendering control device and rendering control program
TW101121489A TW201335883A (en) 2012-02-22 2012-06-15 Apparatus for controlling drawing process and program therefor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/JP2012/001206 WO2013124894A1 (en) 2012-02-22 2012-02-22 Rendering control device and rendering control program

Publications (1)

Publication Number Publication Date
WO2013124894A1 true WO2013124894A1 (en) 2013-08-29

Family

ID=49005122

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/JP2012/001206 WO2013124894A1 (en) 2012-02-22 2012-02-22 Rendering control device and rendering control program

Country Status (3)

Country Link
JP (1) JP5885827B2 (en)
TW (1) TW201335883A (en)
WO (1) WO2013124894A1 (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006164078A (en) * 2004-12-09 2006-06-22 Minoru Takayama Drawing method and device thereof
JP2010510608A (en) * 2006-11-21 2010-04-02 クゥアルコム・インコーポレイテッド Efficient scissoring for graphics applications

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006164078A (en) * 2004-12-09 2006-06-22 Minoru Takayama Drawing method and device thereof
JP2010510608A (en) * 2006-11-21 2010-04-02 クゥアルコム・インコーポレイテッド Efficient scissoring for graphics applications

Also Published As

Publication number Publication date
TW201335883A (en) 2013-09-01
JP5885827B2 (en) 2016-03-16
JPWO2013124894A1 (en) 2015-05-21

Similar Documents

Publication Publication Date Title
US10614549B2 (en) Varying effective resolution by screen location by changing active color sample count within multiple render targets
JP6676703B2 (en) Selective rasterization
US8294714B1 (en) Accelerated rendering with temporally interleaved details
US9449421B2 (en) Method and apparatus for rendering image data
US20150301731A1 (en) User interface apparatus
KR102381945B1 (en) Graphic processing apparatus and method for performing graphics pipeline thereof
JP2018512644A (en) System and method for reducing memory bandwidth using low quality tiles
CN105550973B (en) Graphics processing unit, graphics processing system and anti-aliasing processing method
CN106156132B (en) Picture loading display method and device
KR20130097886A (en) Apparatus and method for rendering
EP3438965A1 (en) Method and apparatus for blending layers within a graphics display component
JP6364066B2 (en) Graphic processing using multiple primitives
US9412194B2 (en) Method for sub-pixel texture mapping and filtering
US20210272348A1 (en) Varying effective resolution by screen location by changing active color sample count within multiple render targets
US9019284B2 (en) Input output connector for accessing graphics fixed function units in a software-defined pipeline and a method of operating a pipeline
JP5885827B2 (en) Drawing control apparatus and drawing control program
WO2016077025A1 (en) Dynamic pipeline for graphics processing
US20190108814A1 (en) Method for improving system performance, device for improving system performance, and display apparatus
US20160321835A1 (en) Image processing device, image processing method, and display device
US20150062127A1 (en) Rendering method and apparatus
CN110264393B (en) Information processing method, terminal and storage medium
EP2637164B1 (en) Drawing device and drawing method
WO2017043287A1 (en) User interface program and computer implementation method

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 12869448

Country of ref document: EP

Kind code of ref document: A1

ENP Entry into the national phase

Ref document number: 2014500561

Country of ref document: JP

Kind code of ref document: A

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 12869448

Country of ref document: EP

Kind code of ref document: A1