TWI488142B - An operation method of a hierarchical buffer for application of vector graphics rasterization - Google Patents

An operation method of a hierarchical buffer for application of vector graphics rasterization Download PDF

Info

Publication number
TWI488142B
TWI488142B TW101106179A TW101106179A TWI488142B TW I488142 B TWI488142 B TW I488142B TW 101106179 A TW101106179 A TW 101106179A TW 101106179 A TW101106179 A TW 101106179A TW I488142 B TWI488142 B TW I488142B
Authority
TW
Taiwan
Prior art keywords
buffer
level buffer
level
value
group
Prior art date
Application number
TW101106179A
Other languages
Chinese (zh)
Other versions
TW201335881A (en
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 TW101106179A priority Critical patent/TWI488142B/en
Publication of TW201335881A publication Critical patent/TW201335881A/en
Application granted granted Critical
Publication of TWI488142B publication Critical patent/TWI488142B/en

Links

Landscapes

  • Image Generation (AREA)
  • Controls And Circuits For Display Device (AREA)

Description

應用於向量圖形點陣化之階層式緩衝器之運算方法Operation method of hierarchical buffer applied to vector graphics lattice

本發明係有關於一種運算方法,特別係有關於一種應用於向量圖形點陣化之階層式緩衝器之運算方法及階層式緩衝器之架構。The invention relates to an operation method, in particular to an operation method of a hierarchical buffer applied to a vector graphics dot matrix and a structure of a hierarchical buffer.

習知應用於向量圖形點陣化之運算方式係以單一掃描線找出與一向量圖形相交的交點後,再按其交點的水平座標位置由左而右進行排序,以找出所有位於掃描線上之像素的繞線匝數(Winding Count),惟,其運算方式需額外之排序處理步驟,將大幅增加向量圖形之繪圖時間。The conventional operation method applied to vector graphics dot matrixization is to find the intersection point intersecting a vector figure with a single scan line, and then sort the horizontal coordinate positions of the intersection points from left to right to find all the scan lines. The Winding Count of the pixel, however, the operation method requires an additional sorting step, which will greatly increase the drawing time of the vector graphics.

本發明之主要目的係在於提供一種應用於向量圖形點陣化之階層式緩衝器之運算方法,可加速向量圖形點陣化中像素的繞線匝數(Winding Count)運算過程,係包含以下步驟,首先,提供一顯示器;提供一階層式緩衝器,該階層式緩衝器係包含有一第一階層緩衝區、一第二階層緩衝區及一第三階層緩衝區,該第一階層緩衝區係具有一第一緩衝群組、一第二緩衝群組及一第三緩衝群組,該第一階層緩衝區之位址數量係大於該第二階層緩衝區之位址數量,該第二階層緩衝區之位址數量係大於該第三階層緩衝區之位址數量;清除該第一階層緩衝區、該第二階層緩衝區及該第三階層緩衝區,該第一階層緩衝區之所有位址對應之數值係設定為0,該第二階層緩衝區及該第三階層緩衝區之旗標係設定為重置狀態;使該顯示器之螢幕顯示有一向量圖形,該顯示器係以至少一掃瞄線掃描該向量圖形,若該向量圖形與該掃瞄線相交而產生至少一交點,則該交點所對應之該第一階層緩衝區之位址的數值係可進行狀態更新,更新後之數值所對應之該第二階層緩衝區及該第三階層緩衝區之位址的旗標係被更新為設定狀態;讀取該第三階層緩衝區且判斷旗標是否為設定或重置狀態,若旗標為重置狀態,則讀取該第三階層緩衝區之下一個旗標,若旗標為設定狀態,則依序讀取該旗標所對應之該第二階層緩衝區之每個位址的旗標且判斷旗標是否為設定或重置狀態,若為設定狀態,則讀取該旗標所對應之該第一階層緩衝區;從該第一緩衝群組輸出至少一第一數值及一第二數值,從該第二緩衝群組輸出至少一第三數值及一第四數值,從該第三緩衝群組輸出至少一第五數值及一第六數值,該第一數值、該第二數值、該第三數值、該第四數值、該第五數值及該第六數值係為對應至該螢幕之像素位置的繞線匝數,本發明係以該第一階層緩衝區、該第二階層緩衝區及該第三階層緩衝區建構出該階層式緩衝器,當第三階層緩衝區讀取其旗標的狀態,若該掃瞄線對該向量圖形進行掃描,而該掃瞄線的像素沒有與該向量圖形相交時,該些像素對應至該第三階層緩衝區之旗標係為重置狀態,此時可省略往該第二階層緩衝區及該第一階層緩衝區進行資料存取之步驟,因此能有效減少圖形之繪製時間。The main object of the present invention is to provide an operation method for a hierarchical buffer applied to a vector graphics dot matrix, which can accelerate the winding count operation process of a pixel in a vector graphics dot matrix, and includes the following steps. First, providing a display; providing a hierarchical buffer, the hierarchical buffer includes a first hierarchical buffer, a second hierarchical buffer, and a third hierarchical buffer, the first hierarchical buffer having a first buffer group, a second buffer group, and a third buffer group, the number of addresses of the first level buffer is greater than the number of addresses of the second level buffer, the second level buffer The number of addresses is greater than the number of addresses of the third level buffer; the first level buffer, the second level buffer, and the third level buffer are cleared, and all addresses of the first level buffer correspond to The value is set to 0, the flag of the second level buffer and the third level buffer is set to a reset state; the display of the display is displayed with a vector graphic, the display is at least A scan line scans the vector pattern. If the vector pattern intersects the scan line to generate at least one intersection, the value of the address of the first level buffer corresponding to the intersection may be updated, and the updated The flag corresponding to the address of the second level buffer and the third level buffer corresponding to the value is updated to a set state; the third level buffer is read and the flag is determined to be a set or reset state, If the flag is in the reset state, reading a flag below the third-level buffer, and if the flag is in the set state, sequentially reading each of the second-level buffers corresponding to the flag. a flag of the address and determining whether the flag is a set or reset state; if it is a set state, reading the first level buffer corresponding to the flag; outputting at least one first from the first buffer group And a second value, the at least one third value and the fourth value are output from the second buffer group, and at least a fifth value and a sixth value are output from the third buffer group, the first value, The second value, the third value, the fourth The value, the fifth value, and the sixth value are the number of windings corresponding to the pixel position of the screen, and the first hierarchical buffer, the second hierarchical buffer, and the third hierarchical buffer are used in the present invention. Constructing the hierarchical buffer, when the third-level buffer reads the state of its flag, if the scan line scans the vector graphic, and the pixels of the scan line do not intersect the vector graphic, The flag corresponding to the third-level buffer is reset, and the step of accessing the data to the second-level buffer and the first-level buffer may be omitted, thereby effectively reducing the drawing of the graphic. time.

請參閱第1圖,其係本發明之一較佳實施例,一種應用於向量圖形點陣化之階層式緩衝器之運算方法,係包含以下步驟,首先,請參閱第1圖之步驟(a)及第2A圖,提供一顯示器200,該顯示器200之螢幕210係具有一寬度W,該寬度W係代表該螢幕210寬度之像素個數;接著,請參閱第1圖之步驟(b)及第3圖,提供一階層式緩衝器100,該階層式緩衝器100係包含有一第一階層緩衝區110、一第二階層緩衝區120及一第三階層緩衝區130,其中該第一階層緩衝區110之位址數量係大於該第二階層緩衝區120之位址數量,該第二階層緩衝區120之位址數量係大於該第三階層緩衝區130之位址數量,在本實施例中,該第一階層緩衝區110之位址數量為32,該第二階層緩衝區120之位址數量為8,該第三階層緩衝區130之位址數量為2,該第一階層緩衝區110係具有八個緩衝群組111,各該緩衝群組111係具有四個位址,該第二階層緩衝區120之八個位址係各別對應該第一階層緩衝區110之各該緩衝群組111之所有位址,該第三階層緩衝區130之兩個位址係各別對應該第二階層緩衝區120之四個位址,並且該顯示器200之螢幕210的寬度W係為該第一階層緩衝區110之寬度;之後,請參閱第1圖之步驟(c)及第4圖,清除該第一階層緩衝區110、該第二階層緩衝區120及該第三階層緩衝區130,該第一緩衝區110之位址的資料型態為數值,其可為0、一正整數或一負整數,該第二緩衝區120及該第三緩衝區130之資料型態為旗標,其係可表示為設定(set)或重置(reset)狀態,較佳地,本實施例之設定狀態係以1表示,重置狀態係以0表示,在步驟(c)中,該第一階層緩衝區110之所有位址對應之數值係設定為0,該第二階層緩衝區120及該第三階層緩衝區130之旗標係設定為重置狀態,此外,該第一階層緩衝區110及該第二階層緩衝區120之間所產生的關係係以下式表示:Referring to FIG. 1 , which is a preferred embodiment of the present invention, a method for computing a hierarchical buffer applied to a vector graphics dot matrix includes the following steps. First, refer to the step of FIG. 1 (a) And FIG. 2A, a display 200 is provided. The screen 210 of the display 200 has a width W, which is the number of pixels representing the width of the screen 210. Then, refer to step (b) of FIG. 1 and FIG. 3, a hierarchical buffer 100 is provided. The hierarchical buffer 100 includes a first hierarchical buffer 110, a second hierarchical buffer 120, and a third hierarchical buffer 130. The first hierarchical buffer The number of addresses in the area 110 is greater than the number of addresses in the second level buffer 120. The number of addresses in the second level buffer 120 is greater than the number of addresses in the third level buffer 130, in this embodiment. The number of addresses of the first level buffer 110 is 32, the number of addresses of the second level buffer 120 is 8, and the number of addresses of the third level buffer 130 is 2. The first level buffer 110 There are eight buffer groups 111, each of which has a buffer group 111 Four addresses, the eight addresses of the second level buffer 120 are all corresponding to each of the buffer groups 111 of the first level buffer 110, and two of the third level buffers 130 The address points correspond to the four addresses of the second level buffer 120, and the width W of the screen 210 of the display 200 is the width of the first level buffer 110; after that, please refer to the steps of FIG. (c) and FIG. 4, the first level buffer 110, the second level buffer 120, and the third level buffer 130 are cleared, and the data type of the address of the first buffer 110 is a numerical value. The data type of the second buffer 120 and the third buffer 130 may be a flag, which may be represented as a set or a reset state, or may be a positive integer or a negative integer. Preferably, the setting state of the embodiment is represented by 1, and the reset state is represented by 0. In step (c), the values corresponding to all the addresses of the first hierarchical buffer 110 are set to 0. The flag of the second level buffer 120 and the third level buffer 130 is set to a reset state, and further, the first level is slowed down. Relations, region 110 and the second class generated between the buffer 120 represented by the following formula:

其中SB L2 代表第二階層緩衝區120,SB L1 代表該第一階層緩衝區110,HF L1_L2 為第二階層緩衝區之旗標對應至該第一階層緩衝區110之位址數量,另外,該第二階層緩衝區120與該第三階層緩衝區130之間的關係係可以下式表示:Wherein SB L2 represents the second level buffer 120, SB L1 represents the first level buffer 110, and HF L1_L2 is the number of addresses of the second level buffer corresponding to the address of the first level buffer 110. The relationship between the second level buffer 120 and the third level buffer 130 can be expressed as:

其中SB L3 代表該第三階層緩衝區130,SB L2 代表該第二階層緩衝區120,HF L2 _ L3 為該第三階層緩衝區130之旗標對應至該第二階層緩衝區120之位址數量,較佳地,該第二階層緩衝區120與該第三階層緩衝區130之關係式可擴充成一第M-1階層緩衝區與一第M階層緩衝區之通式,其係表示如下:Wherein the third layer SB L3 representing the buffer 130, SB L2 representing the second level buffer 120, HF L2 _ L3 third layer buffers corresponding to the flag 130 to the second level address for the buffer 120 Preferably, the relationship between the second level buffer 120 and the third level buffer 130 can be expanded into a general formula of the M-1th level buffer and an Mth level buffer, which are expressed as follows:

,其中SBLM 代表第M階層緩衝區、SBLM-1 代表第M-1階層緩衝區、M>2、HF LM-1 _ LM 為一第M階層緩衝區之旗標對應至第M-1階層緩衝區之位址數量。Where SB LM represents the Mth level buffer, SB LM-1 represents the M-1th level buffer, M>2, HF LM-1 _ LM is an Mth level buffer flag corresponding to the M-1 The number of addresses in the hierarchy buffer.

接下來,請參閱第1圖之步驟(d)、第2B圖及第5圖,使該顯示器200之螢幕210顯示有一向量圖形(vector graphics)G,該顯示器200係以至少一掃瞄線掃描該向量圖形G,或者,在另一實施例中,該顯示器200係可以複數條掃描線掃描該向量圖形G,若該向量圖形G與該掃瞄線相交而產生一個或複數個交點,則該些交點所對應之該第一階層緩衝區110之位址的數值係可以一方程式進行狀態更新,該方程式係如下式所示:SB []=SB []+direct (E ),其中α為交點的水平座標位址,direct (E )為向量圖形G之有效邊線的方向,若方向為順時針則以數值1表示,若方向為逆時針則以數值-1表示,狀態更新後之數值所對應之該第二階層緩衝區120與該第三階層緩衝區130之位址的旗標係被更新為設定狀態,如第5圖所示;接著,請參閱第1圖之步驟(e),由左至右依序讀取該第三階層緩衝區130且判斷其旗標是否為設定或重置狀態,若旗標為重置狀態,則讀取該第三階層緩衝區130之下一個旗標,若旗標為設定狀態,則讀取該旗標所對應之該第二階層緩衝區120之位址的旗標且判斷其旗標是否為設定或重置狀態,若旗標為重置狀態,則讀取該第二階層緩衝區120之下一個旗標,若為設定狀態,則讀取該旗標所對應之該第一階層緩衝區110之該緩衝群組111中的數值,請參閱第1圖之步驟(f),在讀取階層式緩衝器的過程中,若該第三階層緩衝區130及該第二階層緩衝區120之旗標的狀態或該第一階層緩衝區110之該些緩衝群組111的數值為已知,則可將緩衝區中的已知狀態或已知數值清除;最後,請參閱第1圖之步驟(g),以該些緩衝群組111之前三個緩衝群組為例,若每個緩衝群組僅有兩個位址,則從該第一緩衝群組輸出一第一數值及一第二數值,從該第二緩衝群組輸出一第三數值及一第四數值,從該第三緩衝群組輸出一第五數值及一第六數值,該第一數值、該第二數值、該第三數值、該第四數值、該第五數值及該第六數值係為對應至該螢幕210之像素位置的繞線匝數(Winding Count),以此類推,若每個緩衝群組有四個位址,則從該第一緩衝群組輸出一第一數值、一第二數值、一第三數值及一第四數值,從該第二緩衝群組輸出一第五數值、一第六數值、一第七數值及一第八數值,從該第三緩衝群組輸出一第九數值、一第十數值、一第十一數值及一第十二數值,該第一數值至該第十二數值係為對應至該螢幕210之像素位置的繞線匝數,由於該向量圖形G於點陣化階段時需決定要填色的像素區域,而該向量圖形G之每個像素皆有其對應之繞線匝數,每個像素是否填色即由該像素之繞線匝數及向量圖形G之填色規則決定,因此本發明之各該緩衝群組111能有效輸出該向量圖形G所需之繞線匝數,在本實施例中,步驟(e)及步驟(f)係可以下述程式完成:Next, referring to steps (d), 2B, and 5 of FIG. 1, the screen 210 of the display 200 is displayed with a vector graphics G, and the display 200 scans the at least one scan line. The vector graphic G, or, in another embodiment, the display 200 may scan the vector graphic G by a plurality of scan lines, and if the vector graphic G intersects the scan line to generate one or more intersection points, the display The value of the address of the first-level buffer 110 corresponding to the intersection point can be updated by a program, and the equation is as follows: SB [ ]= SB [ ] + direct ( E ), where α is the horizontal coordinate address of the intersection, and direct ( E ) is the direction of the effective edge of the vector graph G. If the direction is clockwise, it is represented by the value 1, if the direction is counterclockwise, the value is -1 indicates that the flag of the second-level buffer 120 and the address of the third-level buffer 130 corresponding to the value after the status update is updated to the set state, as shown in FIG. 5; Referring to step (e) of FIG. 1, the third-level buffer 130 is sequentially read from left to right and judged whether the flag is set or reset. If the flag is reset, the read is read. The third level buffer 130 is below a flag. If the flag is in the set state, the flag of the address of the second level buffer 120 corresponding to the flag is read and the flag is determined to be set or The reset state, if the flag is in the reset state, the next flag of the second level buffer 120 is read, and if it is the set state, the first level buffer 110 corresponding to the flag is read. For the value in the buffer group 111, refer to step (f) of FIG. 1 in reading the hierarchical buffer. In the process, if the state of the flag of the third-level buffer 130 and the second-level buffer 120 or the values of the buffer groups 111 of the first-level buffer 110 are known, the buffer may be The known state or known value is cleared; finally, please refer to step (g) of FIG. 1 , taking the three buffer groups of the buffer group 111 as an example, if each buffer group has only two bits And outputting a first value and a second value from the first buffer group, outputting a third value and a fourth value from the second buffer group, and outputting a fifth value from the third buffer group a value and a sixth value, the first value, the second value, the third value, the fourth value, the fifth value, and the sixth value are windings corresponding to pixel positions of the screen 210 Winding Count, and so on. If each buffer group has four addresses, a first value, a second value, a third value, and a fourth value are output from the first buffer group. Outputting a fifth value, a sixth value, a seventh value, and an eighth number from the second buffer group a value, a ninth value, a tenth value, an eleventh value, and a twelfth value are outputted from the third buffer group, the first value to the twelfth value being corresponding to the screen 210 The number of windings of the pixel position, since the vector pattern G needs to determine the pixel area to be filled in the dot matrix stage, and each pixel of the vector pattern G has its corresponding winding number, each pixel Whether the coloring is determined by the number of windings of the pixel and the coloring rule of the vector graphic G, so that each of the buffer groups 111 of the present invention can effectively output the number of windings required for the vector graphic G, in this implementation In the example, step (e) and step (f) can be completed by the following program:

其中K係為第一階層緩衝區110至第M階層緩衝區的階層關聯參數之乘積,即HFLM-1_LM ×HFLM-2_LM-1 ×...×HFL2_L1Where K is the product of the hierarchical correlation parameters of the first level buffer 110 to the Mth level buffer, that is, HF LM-1_LM × HF LM-2_LM-1 × ... × HF L2_L1 .

本發明係以該第一階層緩衝區110、該第二階層緩衝區120及該第三階層緩衝區130建構出該階層式緩衝器100,當第三階層緩衝區130讀取其旗標的狀態時,若該掃瞄線對該向量圖形G進行掃描,而該掃瞄線的像素沒有與該向量圖形G相交時,該些像素對應至該第三階層緩衝區130之旗標係為重置狀態,此時可省略往該第二階層緩衝區120及該第一階層緩衝區110進行存取之步驟,因此能有效減少向量圖形的繪製時間。In the present invention, the hierarchical buffer 100 is constructed by the first hierarchical buffer 110, the second hierarchical buffer 120, and the third hierarchical buffer 130. When the third hierarchical buffer 130 reads the state of its flag. If the scan line scans the vector graphic G, and the pixels of the scan line do not intersect the vector graphic G, the flags corresponding to the third level buffer 130 are reset. At this time, the step of accessing the second-level buffer 120 and the first-level buffer 110 can be omitted, so that the drawing time of the vector graphics can be effectively reduced.

本發明之保護範圍當視後附之申請專利範圍所界定者為準,任何熟知此項技藝者,在不脫離本發明之精神和範圍內所作之任何變化與修改,均屬於本發明之保護範圍。The scope of the present invention is defined by the scope of the appended claims, and any changes and modifications made by those skilled in the art without departing from the spirit and scope of the invention are within the scope of the present invention. .

100...階層式緩衝器100. . . Hierarchical buffer

110...第一階層緩衝區110. . . First level buffer

111...緩衝群組111. . . Buffer group

120...第二階層緩衝區120. . . Second level buffer

130...第三階層緩衝區130. . . Third level buffer

(a) 提供一顯示器(a) providing a display

(b) 提供一階層式緩衝器,該階層式緩衝器係包含有一第一階層緩衝區、一第二階層緩衝區及一第三階層緩衝區,該第一階層緩衝區係具有一第一緩衝群組、一第二緩衝群組及一第三緩衝群組(b) providing a hierarchical buffer, the hierarchical buffer comprising a first level buffer, a second level buffer and a third level buffer, the first level buffer having a first buffer Group, a second buffer group, and a third buffer group

(c) 清除該第一階層緩衝區、該第二階層緩衝區及該第三階層緩衝區(c) clearing the first level buffer, the second level buffer, and the third level buffer

(d) 使該顯示器之螢幕顯示有一向量圖形,若該向量圖形與一掃瞄線相交而產生一交點,則該交點所對應之該第一階層緩衝區之的數值可進行狀態更新,更新後之數值所對應之該第二階層緩衝區及該第三階層緩衝區之位址的旗標被更新為設定狀態(d) causing the screen of the display to display a vector graphic. If the vector graphic intersects with a scan line to generate an intersection, the value of the first level buffer corresponding to the intersection can be updated, and the updated The flag corresponding to the address of the second level buffer and the third level buffer corresponding to the value is updated to the set state

(e) 依序讀取該第三階層緩衝區且判斷旗標是否為設定或重置狀態,若旗標為重置狀態,則讀取該第三階層緩衝區之下一個旗標,若旗標為設定狀態,則讀取該旗標所對應之該第二階層緩衝區之的旗標且判斷旗標是否為設定或重置狀態,若為設定狀態,則讀取該旗標所對應之該第一階層緩衝區(e) sequentially reading the third-level buffer and determining whether the flag is set or reset. If the flag is reset, reading a flag below the third-level buffer, if the flag When the flag is set, the flag of the second-level buffer corresponding to the flag is read and the flag is determined to be a set or reset state. If the flag is set, the corresponding flag is read. The first level buffer

(f)‧‧‧若該第三階層緩衝區及該第二階層緩衝區之旗標的狀態或該第一階層緩衝區之該些緩衝群組的數值為已知,則可將緩衝區中的已知狀態或已知數值清除(f) ‧‧‧ If the state of the third-level buffer and the flag of the second-level buffer or the buffer group of the first-level buffer are known, the buffer Known state or known value clear

(g)‧‧‧從該第一緩衝群組輸出至少一第一數值及一第二數值,從該第二緩衝群組輸出至少一第三數值及一第四數值,從該第三緩衝群組輸出至少一第五數值及一第六數值,該些數值係為對應至該螢幕之像素位置的繞線匝數(g) ‧ ‧ output at least a first value and a second value from the first buffer group, and output at least a third value and a fourth value from the second buffer group, from the third buffer group The group outputs at least a fifth value and a sixth value, the values being the number of windings corresponding to the pixel position of the screen

第1圖:依據本發明之一較佳實施例,一種應用於向量圖形點陣化之運算方法之流程圖。Figure 1 is a flow chart showing an operation method applied to vector graphics dot matrixing in accordance with a preferred embodiment of the present invention.

第2A圖:依據本發明之一較佳實施例,該應用於向量圖形點陣化之運算方法之顯示器之示意圖。2A is a schematic diagram of a display applied to a method of computing a vector graphics dot matrix in accordance with a preferred embodiment of the present invention.

第2B圖:依據本發明之一較佳實施例,該應用於向量圖形點陣化之運算方法於顯示器之螢幕顯示有一向量圖形之示意圖。FIG. 2B is a schematic diagram showing the operation of the vector graphics dot matrix on the screen of the display with a vector graphic according to a preferred embodiment of the present invention.

第3圖:依據本發明之一較佳實施例,該應用於向量圖形點陣化之運算方法之階層式緩衝器之示意圖。Figure 3 is a schematic diagram of a hierarchical buffer applied to a method of vector graphics dot matrixization in accordance with a preferred embodiment of the present invention.

第4圖:依據本發明之一較佳實施例,該應用於向量圖形點陣化之運算方法之清除階層式緩衝器之示意圖。Figure 4 is a schematic diagram of a clear hierarchical buffer applied to a method of vector graphics dot matrixization in accordance with a preferred embodiment of the present invention.

第5圖:依據本發明之一較佳實施例,該應用於向量圖形點陣化之運算方法之階層式緩衝器之示意圖。Figure 5 is a schematic diagram of a hierarchical buffer applied to a method of vector graphics dot matrixization in accordance with a preferred embodiment of the present invention.

100‧‧‧階層式緩衝器100‧‧‧Strategy buffer

110‧‧‧第一階層緩衝區110‧‧‧First level buffer zone

111‧‧‧緩衝群組111‧‧‧Buffering group

120‧‧‧第二階層緩衝區120‧‧‧Second level buffer zone

130‧‧‧第三階層緩衝區130‧‧‧third-tier buffer zone

Claims (10)

一種應用於向量圖形點陣化之運算方法,其包含:提供一顯示器;提供一階層式緩衝器,該階層式緩衝器係包含有一第一階層緩衝區、一第二階層緩衝區及一第三階層緩衝區,該第一階層緩衝區係至少具有一第一緩衝群組、一第二緩衝群組及一第三緩衝群組,該第一緩衝群組、該第二緩衝群組及該第三緩衝群組係各具有至少兩個位址,該第一階層緩衝區之位址數量係大於該第二階層緩衝區之位址數量,該第二階層緩衝區之位址數量係大於該第三階層緩衝區之位址數量,該第一緩衝群組、該第二緩衝群組及該第三緩衝群組之各該位址的數值可為0、一正整數或一負整數;清除該第一階層緩衝區、該第二階層緩衝區及該第三階層緩衝區,該第一階層緩衝區之所有位址對應之數值係設定為0,該第二階層緩衝區及該第三階層緩衝區之旗標係設定為重置狀態;使該顯示器之螢幕顯示有一向量圖形,該顯示器係以至少一掃瞄線掃描該向量圖形,若該向量圖形與該掃瞄線相交而產生至少一交點,則 該交點所對應之該第一階層緩衝區之位址的數值係可進行狀態更新,更新後之數值所對應之該第二階層緩衝區及該第三階層緩衝區之位址的旗標係被更新為設定狀態;讀取該第三階層緩衝區且判斷旗標是否為設定或重置狀態,若旗標為重置狀態,則讀取該第三階層緩衝區之下一個旗標,若旗標為設定狀態,則讀取該旗標所對應之該第二階層緩衝區之位址的旗標且判斷旗標是否為設定或重置狀態,若為設定狀態,則讀取該旗標所對應之該第一階層緩衝區;以及從該第一緩衝群組輸出至少一第一數值及一第二數值,從該第二緩衝群組輸出至少一第三數值及一第四數值,從該第三緩衝群組輸出至少一第五數值及一第六數值,該第一數值、該第二數值、該第三數值、該第四數值、該第五數值及該第六數值係為對應至該螢幕之像素位置的繞線匝數。 An operation method for vector graphics dot matrixization, comprising: providing a display; providing a hierarchical buffer, the hierarchical buffer comprising a first hierarchical buffer, a second hierarchical buffer, and a third a first level buffer group having at least a first buffer group, a second buffer group, and a third buffer group, the first buffer group, the second buffer group, and the first The three buffer groups each have at least two addresses, and the number of addresses of the first level buffer is greater than the number of addresses of the second level buffer, and the number of addresses of the second level buffer is greater than the number of addresses. The number of addresses of the three-level buffer, the value of each of the first buffer group, the second buffer group, and the third buffer group may be 0, a positive integer, or a negative integer; The first level buffer, the second level buffer, and the third level buffer, the values corresponding to all the addresses of the first level buffer are set to 0, the second level buffer and the third level buffer The flag of the zone is set to the reset state. So that the display screen of a vector graphics display, the display system at least one of the scan lines scanned vector graphics, vector graphics if the scan line intersects the generating the at least one intersection is The value of the address of the first-level buffer corresponding to the intersection may be updated, and the flag of the second-level buffer and the address of the third-level buffer corresponding to the updated value is Update to the set state; read the third-level buffer and determine whether the flag is set or reset state, if the flag is reset, read a flag below the third-level buffer, if the flag When the flag is set, the flag of the address of the second-level buffer corresponding to the flag is read and the flag is determined to be a set or reset state. If the flag is set, the flag is read. Corresponding to the first level buffer; and outputting at least a first value and a second value from the first buffer group, and outputting at least a third value and a fourth value from the second buffer group, The third buffer group outputs at least a fifth value and a sixth value, the first value, the second value, the third value, the fourth value, the fifth value, and the sixth value are corresponding to The number of turns of the pixel position of the screen. 如申請專利範圍第1項所述之應用於向量圖形點陣化之運算方法,其中該第一階層緩衝區與該第二階層緩衝區之間的關係可以下式表示: ,其中SB L2 代表該第二階層緩衝區,SN L1 代表該 第一階層緩衝區,HF L1_L2 為第二階層緩衝區之旗標對應至該第一階層緩衝區之位址數量。The method for applying a vector graphics dot matrix as described in claim 1 wherein the relationship between the first level buffer and the second level buffer is expressed by: Where SB L2 represents the second level buffer, SN L1 represents the first level buffer, and HF L1_L2 is the number of addresses of the second level buffer corresponding to the address of the first level buffer. 如申請專利範圍第1項所述之應用於向量圖形點陣化之運算方法,其中該第二階層緩衝區與該第三階層緩衝區之間的關係可以一通式表示: ,其中SBLM 代表第M階層緩衝區,該第M階層緩衝區係可為該第三階層緩衝區,SBLM-1 代表第M-1階層緩衝區,該第M-1階層緩衝區係可為該第二階層緩衝區,M>2,HF LM-1_LM 為一第M階層緩衝區之旗標對應至第M-1階層緩衝區之位址數量。The method for applying the vector graphics dot matrixization according to the first aspect of the patent application, wherein the relationship between the second hierarchical buffer and the third hierarchical buffer can be expressed by a general formula: Where SB LM represents the Mth level buffer, the Mth level buffer may be the third level buffer, and SB LM-1 represents the M-1th level buffer, and the M-1th level buffer is For the second level buffer, M>2, HF LM-1_LM is the number of addresses of the Mth level buffer corresponding to the address of the M -1th level buffer. 如申請專利範圍第1項所述之應用於向量圖形點陣化之運算方法,其中在使該顯示器之螢幕顯示有一向量圖形,該顯示器係以至少一掃瞄線掃描該向量圖形之步驟中,該交點所對應之該第一階層緩衝區之位址的數值係以可以下述 方程式進行更新: An operation method for vector graphics dot matrixization according to claim 1, wherein in the step of causing the display of the display to display a vector graphic, the display is to scan the vector graphic with at least one scan line, The value of the address of the first-level buffer corresponding to the intersection is updated by the following equation: 如申請專利範圍第1項所述之應用於向量圖形點陣化之運算方法,其中該顯示器之螢幕寬度係為該第一階層緩衝區之寬度。 The method for calculating a vector graphics dot matrix as described in claim 1, wherein the screen width of the display is the width of the first level buffer. 如申請專利範圍第1項所述之應用於向量圖形 點陣化之運算方法,其中在讀取該第三階層緩衝區之步驟中,其另包含有若該第三階層緩衝區及該第二階層緩衝區之旗標的狀態或該第一階層緩衝區之該些緩衝群組的數值為已知,則可將緩衝區中的已知狀態或已知數值清除之步驟。 Applied to vector graphics as described in claim 1 a matrixing operation method, wherein in the step of reading the third-level buffer, the method further includes a state of the flag of the third-level buffer and the second-level buffer or the first-level buffer If the values of the buffer groups are known, the known state or known value in the buffer can be cleared. 一種階層式緩衝器,其係包含:一第一階層緩衝區,其係至少具有一第一緩衝群組及一第二緩衝群組,該第一緩衝群組及該第二緩衝群組係各具有至少兩個位址;一第二階層緩衝區,其係具有至少一第一位址及一第二位址,該第一位址係對應該第一階層緩衝區之第一緩衝群組之所有位址,該第二位址係對應該第一階層緩衝區之第二緩衝群組之所有位址;以及一第三階層緩衝區,其係具有至少一位址,該位址係對應該第二階層緩衝區之該第一位址及該第二位址。 A hierarchical buffer includes: a first level buffer having at least a first buffer group and a second buffer group, wherein the first buffer group and the second buffer group are each Having at least two addresses; a second level buffer having at least one first address and a second address, the first address being corresponding to the first buffer group of the first level buffer All addresses, the second address is all addresses corresponding to the second buffer group of the first level buffer; and a third level buffer having at least one address, the address corresponding to The first address of the second level buffer and the second address. 如申請專利範圍第7項所述之階層式緩衝器,其中該第一階層緩衝區與該第二階層緩衝區之間的關係可以下式表示: ,其中SB L2 代表該第二階層緩衝區,SB L1 代表該 第一階層緩衝區,HF L1_L2 為第二階層緩衝區之旗標對應至該第一階層緩衝區之位址數量。The hierarchical buffer of claim 7, wherein the relationship between the first level buffer and the second level buffer is expressed by: Where SB L2 represents the second level buffer, SB L1 represents the first level buffer, and HF L1_L2 is the number of addresses of the second level buffer corresponding to the address of the first level buffer. 如申請專利範圍第7項所述之階層式緩衝器,其中該第二階層緩衝區與該第三階層緩衝區之間的關係可以一通式表示: ,其中SB Lm 代表第M階層緩衝區,該第M階層緩衝區係可為該第三階層緩衝區,SB Lm-1 代表第M-1階層緩衝區,該第M-1階層緩衝區係可為該第二階層緩衝區,M>2,HF LM-1_LM 為一第M階層緩衝區之旗標對應至第M-1階層緩衝區之位址數量。The hierarchical buffer of claim 7, wherein the relationship between the second hierarchical buffer and the third hierarchical buffer is expressed by a general formula: Where SB Lm represents the Mth level buffer, the Mth level buffer may be the third level buffer, SB Lm-1 represents the M-1 level buffer, and the M-1 level buffer is For the second level buffer, M>2, HF LM-1_LM is the number of addresses of the Mth level buffer corresponding to the address of the M -1th level buffer. 如申請專利範圍第7項所述之階層式緩衝器,其中該第一階層緩衝區之第一緩衝群組及該第二緩衝群組之各該位址的數值可為0、一正整數或一負整數。 The hierarchical buffer of claim 7, wherein the value of each of the first buffer group and the second buffer group of the first level buffer may be 0, a positive integer or A negative integer.
TW101106179A 2012-02-24 2012-02-24 An operation method of a hierarchical buffer for application of vector graphics rasterization TWI488142B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW101106179A TWI488142B (en) 2012-02-24 2012-02-24 An operation method of a hierarchical buffer for application of vector graphics rasterization

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW101106179A TWI488142B (en) 2012-02-24 2012-02-24 An operation method of a hierarchical buffer for application of vector graphics rasterization

Publications (2)

Publication Number Publication Date
TW201335881A TW201335881A (en) 2013-09-01
TWI488142B true TWI488142B (en) 2015-06-11

Family

ID=49627440

Family Applications (1)

Application Number Title Priority Date Filing Date
TW101106179A TWI488142B (en) 2012-02-24 2012-02-24 An operation method of a hierarchical buffer for application of vector graphics rasterization

Country Status (1)

Country Link
TW (1) TWI488142B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US3895357A (en) * 1973-02-23 1975-07-15 Ibm Buffer memory arrangement for a digital television display system
US7064752B1 (en) * 1998-10-14 2006-06-20 Hewlett-Packard Development Company, L.P. Multi-function unit of a graphics system for updating a hierarchical Z buffer
TW200945247A (en) * 2008-04-22 2009-11-01 Via Tech Inc Constant buffering for a computational core of a programmable graphics processing unit
US7633506B1 (en) * 2002-11-27 2009-12-15 Ati Technologies Ulc Parallel pipeline graphics system
TW201037592A (en) * 2008-11-24 2010-10-16 Koninkl Philips Electronics Nv Extending 2D graphics in a 3D GUI

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US3895357A (en) * 1973-02-23 1975-07-15 Ibm Buffer memory arrangement for a digital television display system
US7064752B1 (en) * 1998-10-14 2006-06-20 Hewlett-Packard Development Company, L.P. Multi-function unit of a graphics system for updating a hierarchical Z buffer
US7633506B1 (en) * 2002-11-27 2009-12-15 Ati Technologies Ulc Parallel pipeline graphics system
TW200945247A (en) * 2008-04-22 2009-11-01 Via Tech Inc Constant buffering for a computational core of a programmable graphics processing unit
TW201037592A (en) * 2008-11-24 2010-10-16 Koninkl Philips Electronics Nv Extending 2D graphics in a 3D GUI

Also Published As

Publication number Publication date
TW201335881A (en) 2013-09-01

Similar Documents

Publication Publication Date Title
EP1918878B1 (en) Hierarchical tile-based rasterization algorithm
JP4621618B2 (en) Graphic drawing apparatus, graphic drawing method, and program
KR102122454B1 (en) Apparatus and Method for rendering a current frame using an image of previous tile
US20200226828A1 (en) Method and System for Multisample Antialiasing
JP4987070B2 (en) Image generating apparatus and image generating method
KR102454893B1 (en) Graphic Processing Apparatus and Operating Method thereof
US6963346B2 (en) Method and system for efficiently using fewer blending units for antialiasing
JP2001005989A (en) Anti-aliasing method and picture processor using the method
US20150242988A1 (en) Methods of eliminating redundant rendering of frames
JP4372066B2 (en) Drawing method, data broadcast receiving apparatus and program
JP4664169B2 (en) Graphic drawing apparatus and graphic drawing program
TWI488142B (en) An operation method of a hierarchical buffer for application of vector graphics rasterization
JP5362915B2 (en) Drawing apparatus and drawing method
US20180315216A1 (en) Digital Content Rendering that Supports Alpha Is Shape (AIS) as part of Knockout Groups
JP5159949B2 (en) Vector drawing equipment
US7701463B2 (en) Accelerated rendering of images with transparent pixels using a spatial index
JP2011065571A (en) Graphic display method and graphic display device
CN106485767B (en) Method and device for drawing symbols
JP2007141196A (en) Polygon/silhouette line/anti-aliasing circuit
WO2010053175A1 (en) Vector image drawing device, vector image drawing method, and recording medium
KR100441079B1 (en) apparatus and method for antialiasing
US20240020806A1 (en) System and method for dynamic binning
KR20060132519A (en) A method for visualizing geography based on a quadtree using a error buffer and a flag buffer
JP5661134B2 (en) Image processing apparatus and image processing method
JPH1021415A (en) Graphic processor and graphic processing method

Legal Events

Date Code Title Description
MM4A Annulment or lapse of patent due to non-payment of fees