TWI474715B - Method, apparatus and system for generating 2d graphics effects - Google Patents
Method, apparatus and system for generating 2d graphics effects Download PDFInfo
- Publication number
- TWI474715B TWI474715B TW98117442A TW98117442A TWI474715B TW I474715 B TWI474715 B TW I474715B TW 98117442 A TW98117442 A TW 98117442A TW 98117442 A TW98117442 A TW 98117442A TW I474715 B TWI474715 B TW I474715B
- Authority
- TW
- Taiwan
- Prior art keywords
- dimensional
- graphic
- special effect
- acceleration device
- digital signal
- Prior art date
Links
Landscapes
- Processing Or Creating Images (AREA)
Description
本發明是關於一種實現圖形特效的方法及相應裝置、系統,特別是關於一種實現二維圖形特效的方法及相應裝置、系統。The invention relates to a method and a corresponding device and system for realizing graphic special effects, in particular to a method and a corresponding device and system for realizing two-dimensional graphic special effects.
運營商通過機上盒向用戶傳送數位電視信號時,為了讓用戶有更加豐富、完美的視覺效果,需要機上盒在圖像轉換時加上各種二維(2D)圖形特效,如百葉窗特效、透明漸隱漸顯特效等生動有趣的顯示形式。When the operator transmits digital TV signals to the user through the set-top box, in order to provide users with richer and more perfect visual effects, the on-board box needs to add various two-dimensional (2D) graphic effects, such as blinds effects, to the image conversion. Transparent and fading is a vivid and interesting display form such as special effects.
目前,借助在個人電腦的網頁上實現二維圖形特效的經驗,得知二維圖形特效可以一幀固定的數位電視畫面,在數位電視的流覽器網頁上顯示出來;並且,二維圖形特效的運算過程由機上盒的數位信號處理器(DSP,digital signal processor)單獨進行處理,並通過顯示記憶體輸出目標物件圖形到顯示屏幕。經測試顯示,二維圖形特效的處理過程對數位信號處理器的佔用率超過80%,並且要求數位信號處理器的運算能力比較高,二維圖形特效才能被保證顯示效果平滑流暢。At present, with the experience of realizing two-dimensional graphics effects on the webpage of a personal computer, it is known that the two-dimensional graphics effect can be displayed on a digital television viewer web page by a fixed-digit digital television screen; and, two-dimensional graphics effects The operation process is separately processed by the digital signal processor (DSP) of the set-top box, and the target object graphic is outputted to the display screen through the display memory. Tests show that the processing of two-dimensional graphics effects on the digital signal processor occupancy rate of more than 80%, and requires the digital signal processor's computing power is relatively high, two-dimensional graphics effects can be guaranteed to be smooth and smooth.
在對現有技術的研究和實踐過程中,本發明的發明人發現存在以下問題:二維圖形的特效顯示處理過程太過佔用數位信號處理器資源,如果僅利用機上盒的數位信號處理器單獨處理二維圖形的特效顯示,則會嚴重影響機上盒的性能,可能導致機上盒不能正常運作。In the research and practice of the prior art, the inventors of the present invention have found that the following problems exist: the special effect display processing process of the two-dimensional graphics is too occupying the digital signal processor resources, if only the digital signal processor of the set-top box is used alone Dealing with the special effects display of the 2D graphics will seriously affect the performance of the set-top box, which may cause the set-top box to not work properly.
本發明實施例要解決的技術問題是提供一種對數位信號處理器的佔用率和性能要求降低的實現二維圖形特效的方法及相應裝置、系統。The technical problem to be solved by the embodiments of the present invention is to provide a method, a corresponding device and a system for realizing a two-dimensional graphic special effect for reducing the occupancy rate and performance requirements of a digital signal processor.
為解決上述技術問題,本發明所提供的實施例是通過以下技術方案實現的:一種實現二維圖形特效的方法,包括下列步驟:確定分別由數位信號處理器和二維圖形加速設備進行二維特效處理的源物件圖形的尺寸和位置;將所述源物件圖形的尺寸、位置和獲取的特效參數發送給數位信號處理器,並在確定由所述二維圖形加速設備處理的源物件圖形參數中添加處理物件標識;數位信號處理器將添加了處理物件標識的源物件圖形的尺寸、位置和特效參數發送給二維圖形加速設備。In order to solve the above technical problem, the embodiment provided by the present invention is implemented by the following technical solution: a method for realizing a two-dimensional graphic special effect, comprising the following steps: determining two-dimensional signal processor and two-dimensional graphics acceleration device for two-dimensional operation The size and position of the source object graphics processed by the special effect; transmitting the size, position, and acquired special effect parameters of the source object graphic to the digital signal processor, and determining the source object graphic parameters processed by the two-dimensional graphics acceleration device The processing object identifier is added; the digital signal processor sends the size, position and special effect parameters of the source object graphic added with the processing object identifier to the two-dimensional graphics acceleration device.
一種實現二維圖形特效的裝置,包括:確定單元,用於確定分別由數位信號處理器和二維圖形加速設備進行二維特效處理的源物件圖形;添加標識單元,用於在確定單元確定由所述二維圖形加速設備處理的源物件圖形參數中添加處理物件標識;獲取單元,用於獲取源物件圖形的特效參數;發送單元,用於將確定單元確定的源物件圖形的位置和獲取單元獲取的特效參數發送給數位信號處理器。An apparatus for implementing a two-dimensional graphic special effect, comprising: a determining unit, configured to determine a source object graphic that is respectively subjected to two-dimensional special effect processing by a digital signal processor and a two-dimensional graphics acceleration device; and an identification unit is configured to determine in the determining unit The processing object identifier is added to the source object graphic parameter processed by the two-dimensional graphics acceleration device; the obtaining unit is configured to obtain the special effect parameter of the source object graphic; and the sending unit is configured to determine the position and the acquiring unit of the source object graphic determined by the determining unit. The acquired effect parameters are sent to the digital signal processor.
一種實現二維圖形特效的系統,包括:分配源物件圖形裝置,用於確定分別由數位信號處理器和二維圖形加速設備進行二維特效處理的源物件圖形後,在由二維圖形加速設備處理的源物件圖形參數中添加處理物件標識,並將源物件圖形的位置和特效參數發送給數位信號處理器;數位信號處理器,用於將添加了處理物件標識的源物件圖形的位置和特效參數發送給二維圖形加速設備,並將自身完成的特效顯示效果輸出到顯示記憶體空間;二維圖形加速設備,用於讀取所述添加了處理物件標識的源物件圖形位置和特效參數,在顯示記憶體空間中完成對應的特效顯示效果,形成並輸出目標物件圖形,目標物件圖形包含了數位信號處理器和二維圖形加速設備完成的二維特效顯示效果。A system for realizing a two-dimensional graphic special effect, comprising: a distribution source object graphic device, configured to determine a source object graphic image respectively processed by a digital signal processor and a two-dimensional graphics acceleration device by a two-dimensional graphics effect, in a two-dimensional graphics acceleration device The processed object object graphic parameter adds a processing object identifier, and sends the position and special effect parameters of the source object graphic to the digital signal processor; the digital signal processor is used to add the position and special effect of the source object graphic to which the processing object is identified. The parameter is sent to the two-dimensional graphics acceleration device, and the effect display effect completed by itself is output to the display memory space; the two-dimensional graphics acceleration device is configured to read the graphic object position and the special effect parameter of the source object to which the processed object identifier is added, The corresponding effect display effect is completed in the display memory space, and the target object graphic is formed and outputted, and the target object graphic includes the two-dimensional special effect display effect completed by the digital signal processor and the two-dimensional graphics acceleration device.
由上述技術方案可以看出,本發明實施例確定出分別由數位信號處理器、以及數位信號處理器自帶的數位二維圖形加速設備進行二維特效處理的源物件圖形的尺寸和位置,將源物件圖形的二維圖形特效顯示的處理分給數位信號處理器和二維圖形加速設備承擔,由於二維圖形加速設備處理圖形的速度遠遠高於數位信號處理器,使得二維圖形特效顯示的大部分處理工作由二維圖形加速設備在顯示記憶體空間中完成,降低對數位信號處理器的佔用率和性能要求。It can be seen from the above technical solution that the embodiment of the present invention determines the size and location of the source object graphics processed by the digital signal processor and the digital two-dimensional graphics acceleration device carried by the digital signal processor respectively for two-dimensional special effects processing. The processing of the two-dimensional graphics effect display of the source object graphics is assigned to the digital signal processor and the two-dimensional graphics acceleration device, and the two-dimensional graphics acceleration device processes the graphics much faster than the digital signal processor, so that the two-dimensional graphics special effects display Most of the processing is done by the 2D graphics acceleration device in the display memory space, reducing the occupancy and performance requirements of the digital signal processor.
下面將結合本發明實施例中的附圖,對本發明實施例中的技術方案進行清楚、完整地描述,顯然,所描述的實施例僅僅是本發明一部分實施例,而不是全部的實施例。基於本發明中的實施例,本領域普通技術人員在沒有作出創造性勞動前提下所獲得的所有其他實施例,都屬於本發明保護的範圍。The technical solutions in the embodiments of the present invention are clearly and completely described in the following with reference to the accompanying drawings in the embodiments of the present invention. It is obvious that the described embodiments are only a part of the embodiments of the present invention, but not all embodiments. All other embodiments obtained by those skilled in the art based on the embodiments of the present invention without creative efforts are within the scope of the present invention.
數位電視的螢幕畫面主要由視頻層畫面和介面層畫面疊加而成的。視頻層是指通過機上盒硬體解析數位電視網路的視頻流而顯示的幀畫面,也就是用戶觀賞的電視畫面;介面層是指機上盒軟體解析用戶介面後顯示的畫面,介面層資料包括功能表、導航條、提示資訊、用戶輸入、二維特效等,對數位電視流覽器軟體而言,通常是指網頁,本發明實施例所提及的實現二維圖形特效即在該介面層網頁上顯示二維特效。The screen of a digital TV is mainly composed of a video layer picture and an interface layer picture. The video layer refers to the frame picture displayed by the on-board hardware analysis of the video stream of the digital TV network, that is, the TV picture viewed by the user; the interface layer refers to the picture displayed by the on-board software after parsing the user interface, and the interface layer The data includes a function table, a navigation bar, a prompt information, a user input, a two-dimensional special effect, etc., and for a digital TV browser software, generally refers to a webpage, and the two-dimensional graphic special effect mentioned in the embodiment of the present invention is The 2D effect is displayed on the interface layer webpage.
通常,機上盒使用的數位信號處理器會自帶一款簡化版的二維圖形加速設備,如意法半導體的STi51XX系列,自帶AGE(Append Graphics Engine);BroadCom公司的974XX系列,自帶GSB(Graphics SubBlock);LSI公司的SC20XX系列,自帶BGE(Block Graphics Engine);華為HISI公司3XXX系列,自帶TDE(Two Dimension Engine);Intel公司的CE21XX系列,自帶2DA(2D Accelerater)等。這些自帶的輔佐的加速設備不算真正意義的圖形加速設備,因為它們缺少基本的圖形解碼功能,比如繪製圖形功能、圖形縮放功能等,而只具備簡單的塊資料搬移、透明度疊加、光柵操作等功能,所以稱為簡化版的二維圖形加速設備。Usually, the digital signal processor used in the set-top box comes with a simplified version of the 2D graphics acceleration device, such as ST's STi51XX series, comes with AGE (Append Graphics Engine); BroadCom's 974XX series, comes with GSB (Graphics SubBlock); LSI's SC20XX series, comes with BGE (Block Graphics Engine); Huawei HISI 3XXX series, comes with TDE (Two Dimension Engine); Intel's CE21XX series, comes with 2DA (2D Accelerater). These self-contained acceleration devices are not really meaningful graphics acceleration devices because they lack basic graphics decoding functions, such as drawing graphics functions, graphics scaling functions, etc., but only simple block data movement, transparency overlay, raster operation. Such functions, so called the simplified version of the 2D graphics acceleration device.
本發明實施例就是充分利用機上盒所使用的數位信號處理器都會自帶的這些圖形加速能力不算強大的二維圖形加速設備,通過軟體演算法的優化及改進,降低二維圖形特效的實現對機上盒數位信號處理器的佔用率和性能要求,在運算能力為80M mips以上,並配備了簡化版的二維圖形加速設備的機上盒數位信號處理器上,平滑實現二維圖形基礎特效顯示。The embodiment of the present invention is to fully utilize the two-dimensional graphics acceleration device that the digital signal processor used by the set-top box is not powerful, and to reduce the two-dimensional graphic special effects through the optimization and improvement of the software algorithm. Achieve the occupancy and performance requirements of the on-board digital signal processor. Smoothly implement two-dimensional graphics on a set-top digital signal processor with a computing power of 80M mips and a simplified version of the two-dimensional graphics acceleration device. Basic effects display.
參見第1圖詳細說明,第1圖為本發明第一實施例的方法流程示意圖。Referring to FIG. 1 in detail, FIG. 1 is a schematic flow chart of a method according to a first embodiment of the present invention.
步驟101:確定分別由數位信號處理器和二維圖形加速設備進行二維特效處理的源物件圖形的尺寸和位置。Step 101: Determine the size and position of the source object graphics that are respectively subjected to the two-dimensional effect processing by the digital signal processor and the two-dimensional graphics acceleration device.
二維圖形加速設備為數位信號處理器自帶,只具備簡單的塊資料搬移、透明度疊加、光柵操作等功能。The two-dimensional graphics acceleration device is self-contained with a digital signal processor, and has only simple functions of block data shifting, transparency superposition, and raster operation.
進行二維特效處理指將多幅二維圖片(兩幅或以上)按照不同的規則,交互替換或疊加形成二維圖形特效,例如24種百葉窗特效、透明漸隱漸顯特效、濾鏡特效等,還可以擴展出動畫特效(二維物件的運動)、光柵特效。Performing 2D special effects refers to replacing or superimposing multiple 2D images (two or more) according to different rules to form two-dimensional graphic effects, such as 24 kinds of shutter effects, transparent fade-out effects, filter effects, etc. You can also extend animation effects (motion of 2D objects) and raster effects.
可預先採集使用數位信號處理器疊加混合圖片的資料資料以及使用數位信號處理器自帶的二維圖形加速設備疊加混合圖片的資料資料,形成一個性能資料庫,該性能資料庫主要由前述兩個設備處理圖片特效的區域尺寸和兩者分別實現該圖片特效需要的時間構成。The data of the superimposed mixed image using the digital signal processor and the data of the superimposed mixed image of the two-dimensional graphics acceleration device provided by the digital signal processor may be pre-acquired to form a performance database, and the performance database is mainly composed of the foregoing two The size of the area in which the device handles the picture effects and the time required to implement the picture effects respectively.
可根據源物件圖形尺寸及該性能資料庫,合理安排哪些源物件圖形由數位信號處理器處理,哪些源物件圖形由二維圖形加速設備來完成,或者可以將某一塊完整的源物件圖形切割成幾部分,一部分由數位信號處理器完成處理,另一部分由二維圖形加速設備來完成,以便使得兩個設備分擔二維特效處理的工作,在同一時間段內完成各自處理的部分,達到平衡負擔、圖形處理時間縮短的優化效果。According to the source object graphic size and the performance database, it is reasonable to arrange which source object graphics are processed by the digital signal processor, which source object graphics are completed by the two-dimensional graphics acceleration device, or a complete source object graphics can be cut into In part, one part is processed by the digital signal processor, and the other part is completed by the two-dimensional graphics acceleration device, so that the two devices share the work of the two-dimensional special effect processing, and the respective processing parts are completed in the same time period, thereby achieving a balance burden. The optimization effect of shortening the graphics processing time.
可以將源物件圖形分割成兩個或者兩個以上部分的圖形。以分割成兩個部分為例,則這兩個部分圖形的具體尺寸為性能資料庫中記錄的兩個尺寸,選擇的原則為:兩個設備分別處理兩個部分物件圖形的時間小於兩個設備中任意一個設備單獨處理完整尺寸的源物件圖形的時間,並且兩個設備的分別處理時間相差不大甚至相等。The source object graphic can be divided into two or more partial graphics. Taking two parts as an example, the specific size of the two parts is the two sizes recorded in the performance database. The principle of selection is that the two devices process two parts of the object separately for less than two devices. The time when any one of the devices processes the full-size source object graph separately, and the processing time of the two devices is not much different or even equal.
例如,源物件圖形尺寸為A*B,根據性能資料庫得知:數位信號處理器處理A1*B大小的圖形需要N1秒,二維圖形加速設備處理A2*B大小的圖形需要N2秒,A1+A2=A,N1和N2均小於數位信號處理器和二維圖形加速設備兩者任意一個處理A*B大小的源物件圖形的時間,且N1與N2相差不大甚至可以相等。在N1與N2相等時,數位信號處理器與二維圖形加速設備同時完成對部分源物件圖形的二維特效處理,使得資源分享優化的效率最高。For example, the size of the source object is A*B. According to the performance database, the digital signal processor needs to process N1 seconds for the A1*B size. The 2D graphics acceleration device needs to process the A2*B size for N2 seconds. +A2=A, N1 and N2 are both less than the time of processing the A*B-sized source object graph by either of the digital signal processor and the two-dimensional graphics acceleration device, and N1 and N2 are not much different or even equal. When N1 and N2 are equal, the digital signal processor and the two-dimensional graphics acceleration device simultaneously perform two-dimensional special effect processing on a part of the source object graphics, so that resource sharing optimization is most efficient.
顯然,可以根據實際情況將源物件圖形切割為兩個以上的部分,例如三個、四個或者更多個部分,都不影響本發明實施例的實現,只要能滿足切割後的圖形處理時間少於單一設備處理完整圖形的時間即可。Obviously, the source object graphic can be cut into two or more parts according to actual conditions, for example, three, four or more parts, which does not affect the implementation of the embodiment of the present invention, as long as the graphic processing time after cutting is satisfied. The time to process a complete graphic on a single device is fine.
步驟102:將源物件圖形的尺寸、位置和獲取的特效參數發送給數位信號處理器,並在確定由二維圖形加速設備處理的源物件圖形的參數中添加處理物件標識。Step 102: Send the size, location, and acquired special effect parameters of the source object graphic to the digital signal processor, and add the processing object identifier to the parameters of the source object graphic determined by the two-dimensional graphics acceleration device.
處理物件標識可以是某個參數或者某個特殊賦值,都不影響本發明實施例的實現。The processing object identifier may be a certain parameter or a special assignment, and does not affect the implementation of the embodiment of the present invention.
步驟103:數位信號處理器將添加了處理物件標識的源物件圖形的尺寸、位置和特效參數發送給二維圖形加速設備。Step 103: The digital signal processor sends the size, location, and special effect parameters of the source object graphic to which the processing object identifier is added to the two-dimensional graphics acceleration device.
數位信號處理器和二維圖形加速設備之間靠一組寄存器來進行協調,這組寄存器可以分為命令參數寄存器和運行狀態寄存器兩類。The digital signal processor and the two-dimensional graphics acceleration device are coordinated by a set of registers, which can be divided into two types: a command parameter register and a running status register.
例如,當需要二維圖形加速設備執行疊加混合任務時,數位信號處理器將相應的命令及參數寫入命令參數寄存器(組)中,二維圖形加速設備從命令參數寄存器(組)中讀取,並將執行疊加混合任務並把正在疊加混合的狀態寫到狀態寄存器中,疊加混合結束時,二維圖形加速設備把疊加混合完畢的狀態寫到狀態寄存器中,數位信號處理器通過查詢狀態寄存器獲得二維圖形加速設備狀態。For example, when a two-dimensional graphics acceleration device is required to perform an overlay mixing task, the digital signal processor writes the corresponding commands and parameters into the command parameter register (group), and the two-dimensional graphics acceleration device reads from the command parameter register (group). And will perform the overlay mixing task and write the state of the overlay mixing to the status register. At the end of the overlay blending, the two-dimensional graphics acceleration device writes the superimposed state to the status register, and the digital signal processor queries the status register. Get 2D graphics to accelerate device status.
二維圖形加速設備獲取添加了處理物件標識源物件圖形位置和特效參數後,按照特效參數,在顯示記憶體空間中完成對應的特效顯示效果,形成目標物件圖形,並輸出目標物件圖形到顯示屏幕。After the two-dimensional graphics acceleration device acquires the graphic position and the special effect parameter of the source object of the processing object identification, according to the special effect parameter, the corresponding special effect display effect is completed in the display memory space, the target object graphic is formed, and the target object graphic is output to the display screen. .
優選地,二維圖形加速設備可按照特效參數,通過一套標準的二維特效移植介面函數,在顯示記憶體空間中完成對應的特效顯示效果。一套標準的二維特效移植介面函數可包括:塊搬移函數、矩形填充函數、分配二維幀空間介面函數、釋放二維幀空間介面函數、取非同步執行狀態介面函數等。該套二維特效移植介面函數可以方便地移植到以自帶二維圖形加速設備的數位信號處理器為核心器件的機上盒或者其他手持數位設備上,例如手機、個人數位助理(PDA,Personal Digital Assistant)等,以便各種設備進行二維特效處理。Preferably, the two-dimensional graphics acceleration device can complete the corresponding special effect display effect in the display memory space by using a set of standard two-dimensional special effects transplantation interface function according to the special effect parameter. A set of standard 2D special effects porting interface functions may include: block shift function, rectangular fill function, allocation of two-dimensional frame space interface function, release of two-dimensional frame space interface function, and acquisition of asynchronous execution state interface function. The 2D effect porting interface function can be easily ported to a set-top box or other handheld digital device with a digital signal processor with a 2D graphics acceleration device as its core device, such as a mobile phone or a personal digital assistant (PDA, Personal). Digital Assistant), etc., for various devices to perform 2D effects processing.
本發明實施例將源物件圖形的二維圖形特效顯示的處理分配給數位信號處理器和數位信號處理器自帶的二維圖形加速設備承擔,由於二維圖形加速設備處理圖形的速度遠遠高於數位信號處理器,使得二維圖形特效顯示的大部分處理工作由二維圖形加速設備在顯示記憶體空間中完成,降低對數位信號處理器的佔用率和性能要求。In the embodiment of the present invention, the processing of the two-dimensional graphic special effect display of the source object graphic is distributed to the digital signal processor and the two-dimensional graphics acceleration device of the digital signal processor, and the processing speed of the graphic is high due to the two-dimensional graphics acceleration device. In the digital signal processor, most of the processing work of the two-dimensional graphics effect display is completed by the two-dimensional graphics acceleration device in the display memory space, which reduces the occupancy and performance requirements of the digital signal processor.
以下第二實施例為第一實施例在實際應用場景中運用的詳細說明,該場景以源物件圖形為640*480尺寸,並將該圖形切割為兩個部分為例。The following second embodiment is a detailed description of the application of the first embodiment in a practical application scenario, where the source object graphic is 640*480 size, and the graphic is cut into two parts as an example.
參見第2圖詳細說明,第2圖為本發明第二實施例的方法流程示意圖。Referring to FIG. 2 in detail, FIG. 2 is a schematic flow chart of a method according to a second embodiment of the present invention.
步驟201:記錄數位信號處理器和二維圖形加速設備分別處理多種尺寸物件圖形的所需時間。Step 201: Record the time required for the digital signal processor and the two-dimensional graphics acceleration device to respectively process the graphic objects of the plurality of sizes.
可以將該尺寸與時間對應關係記錄在一張表格中,如表1所示:The size and time correspondence can be recorded in a table, as shown in Table 1:
從表1可知,在物件圖形為各種尺寸時,數位信號處理器和二維圖形加速設備單獨處理該尺寸大小的物件圖形的所需時間,例如,數位信號處理器單獨處理636*480尺寸圖形的時間為254ms。It can be seen from Table 1 that when the object graphics are of various sizes, the digital signal processor and the two-dimensional graphics acceleration device separately process the time required for the object graphics of the size, for example, the digital signal processor separately processes the 636*480 size graphics. The time is 254ms.
步驟202:確定分別由數位信號處理器和二維圖形加速設備進行二維特效處理的源物件圖形的尺寸和位置,將源物件圖形切割為兩個部分。Step 202: Determine the size and position of the source object graphic processed by the digital signal processor and the two-dimensional graphics acceleration device respectively, and cut the source object graphic into two parts.
從表1可知,在源物件圖形為640*480尺寸時,數位信號處理器單獨處理完整尺寸的源物件圖形的所需時間為260ms,二維圖形加速設備單獨處理完整尺寸的源物件圖形的所需時間為6ms;而數位信號處理器處理4*480尺寸圖形的時間為5ms,二維圖形加速設備處理636*480尺寸圖形的時間也為5ms,且4*480尺寸與636*480尺寸相加正好為640*480尺寸,兩個尺寸對應的所需時間均小於兩者任意一個單獨處理完整尺寸的源物件圖形的所需時間。因此,可以確定將640*480尺寸的源物件圖形切割為A、B兩個部分,A、部分為4*480尺寸,交給數位信號處理器處理二維圖形特效,B部分為636*480尺寸,交給二維圖形加速設備處理二維圖形特效。It can be seen from Table 1 that when the source object graphic is 640*480 size, the time required for the digital signal processor to process the full-size source object graphic separately is 260 ms, and the two-dimensional graphics acceleration device separately processes the full-size source object graphic. The time required is 6ms; the time for the digital signal processor to process 4*480 size graphics is 5ms, and the time for the 2D graphics acceleration device to process 636*480 size graphics is also 5ms, and the 4*480 size is added to the 636*480 size. Just 640*480 size, the required time for both sizes is less than the time required to process the full-size source object graphic separately. Therefore, it can be determined that the source object pattern of 640*480 size is cut into two parts A and B, and the part A is 4*480 size, which is handed to the digital signal processor to process the two-dimensional graphic special effect, and the part B is 636*480 size. , handed over to the 2D graphics acceleration device to handle 2D graphics effects.
可參見第3圖,第3圖為本發明第二實施例中源物件圖形的切割位置示意圖,第3a圖為一種切割方式示意圖,第3b圖為另一種切割方式示意圖。位置是指可以是4*480尺寸的A部分為靠上的部分,636*480尺寸的B部分為靠下的部分,如第3a圖所示;或者是4*480尺寸的A部分為靠下的部分,636*480尺寸的B部分為靠上的部分,如第3b圖所示,都不影響本發明實施例的實現。Referring to FIG. 3, FIG. 3 is a schematic view showing the cutting position of the source object pattern in the second embodiment of the present invention, FIG. 3a is a schematic view of a cutting mode, and FIG. 3b is a schematic view showing another cutting mode. The position refers to the portion where the A portion of the 4*480 size is the upper portion, the portion B of the 636*480 size is the lower portion, as shown in Fig. 3a, or the portion A of the 4*480 size is the lower portion. The portion of the 636*480 size B portion is the upper portion, as shown in Fig. 3b, which does not affect the implementation of the embodiment of the present invention.
步驟203:將所述源物件圖形的切割尺寸、位置和獲取的特效參數發送給數位信號處理器,並在確定由所述二維圖形加速設備處理的源物件圖形參數中添加處理物件標識。Step 203: Send the cut size, the position, and the acquired special effect parameter of the source object graphic to the digital signal processor, and add the processed object identifier to the source object graphic parameter determined by the two-dimensional graphics acceleration device.
例如,從網頁中獲取的代碼為:For example, the code obtained from a web page is:
META http-equiv=Page-Enter content=revealTrans(Duration=5.0,Transition=3)META http-equiv=Page-Enter content=revealTrans(Duration=5.0, Transition=3)
表示需要的二維特效顯示效果為編號為3的百葉窗特效,持續特效時間為5秒。Indicates that the required 2D effect display effect is the louver effect numbered 3, and the continuous effect time is 5 seconds.
則將源物件圖形切割為兩個部分:4*480尺寸的A部分為靠上的部分,636*480尺寸的B部分為靠下的部分,特效類型為百葉窗特效,特效編號為3,特效持續時間為5秒這些參數都發送給數位信號處理器,並在B部分圖形參數中添加處理物件標識。The source object graphic is cut into two parts: the A part of the 4*480 size is the upper part, the B part of the 636*480 size is the lower part, the special effect type is the louver effect, the special effect number is 3, and the special effect continues. These parameters are sent to the digital signal processor for a time of 5 seconds, and the processing object identification is added to the B part graphic parameters.
顯然,特效編號與對應的特效類型之間的關係可自定義,運營商可添加自定義的二維特效類型及其特效編號,並在機上盒上存儲特效編號與自定義的二維特效類型的對應關係即可;例如新增加一個編號的百葉窗特效,則需要擴充一個新特效編號,並在機上盒上存儲新特效編號與新百葉窗特效的對應關係。這樣,運營商可自由製作各種二維特效類型,如電影海報背景、最近熱門劇集背景或者是其他新型的圖像變換方式等豐富多樣的特效顯示效果,以吸引更多用戶。Obviously, the relationship between the effect number and the corresponding effect type can be customized. The operator can add a custom 2D effect type and its effect number, and store the effect number and the customized 2D effect type on the set-top box. The corresponding relationship can be; for example, if a new number of louver effects is added, a new special effect number needs to be expanded, and the correspondence between the new special effect number and the new louver effect is stored on the set-top box. In this way, operators can freely create a variety of 2D special effects types, such as movie poster backgrounds, recent popular episode backgrounds or other new types of image transformation methods, to attract more users.
步驟204:數位信號處理器將添加了處理物件標識的源物件圖形的尺寸、位置和特效參數發送給二維圖形加速設備。Step 204: The digital signal processor sends the size, location, and special effect parameters of the source object graphic to which the processing object identifier is added to the two-dimensional graphics acceleration device.
數位信號處理器可將B部分的圖形的尺寸、位置和特效參數寫入命令參數寄存器,使得二維圖形加速設備從所述命令參數寄存器中讀取B部分圖形的尺寸、位置和特效參數,以便進行處理。The digital signal processor can write the size, position and special effect parameters of the B part of the graphic into the command parameter register, so that the two-dimensional graphics acceleration device reads the size, position and special effect parameters of the B part graphic from the command parameter register, so that Process it.
步驟205:二維圖形加速設備獲取添加了處理物件標識源物件圖形的尺寸、位置和特效參數,特效參數包括特效類型編號、特效持續時間等。Step 205: The two-dimensional graphics acceleration device acquires the size, the position, and the special effect parameter of the image of the source object object to which the processing object identifier is added, and the special effect parameter includes the special effect type number, the special effect duration, and the like.
步驟206:二維圖形加速設備按照特效參數,在顯示記憶體空間中完成對應的特效顯示效果,形成目標物件圖形。Step 206: The two-dimensional graphics acceleration device completes the corresponding special effect display effect in the display memory space according to the special effect parameter, and forms the target object graphic.
例如,二維圖形加速設備在源物件圖形的位置上疊加所述特效類型代碼對應的特效顯示效果,得到目標物件圖形;其中,源物件圖形佔用顯示記憶體一幀的空間,目標物件圖形佔用顯示記憶體一幀的空間。For example, the two-dimensional graphics acceleration device superimposes the special effect display effect corresponding to the special effect type code on the position of the source object graphic to obtain the target object graphic; wherein, the source object graphic occupies a space for displaying one frame of the memory, and the target object graphic occupation display The space of one frame of memory.
二維圖形加速設備通常直接操作物理位址,硬體特點是要求有2~3個類似幀一樣的操作空間來進行操作。機上盒上的螢幕顯示必須有一個幀空間,把這個記憶體空間當作二維圖形加速設備的最終輸出(目標物件圖形),另外需要再給二維圖形加速設備分配兩個幀空間源1和源2,一般來講,這三個幀空間都是按照螢幕的最大寬度和高度給出的大小,在程式的運行過程中三個幀空間的物理位址不會改變,但疊加混合的小區域的位置則有可能會變化。Two-dimensional graphics acceleration devices usually operate directly on physical addresses. The hardware feature requires two to three similar frame-like operating spaces for operation. The screen display on the set-top box must have a frame space, the memory space is regarded as the final output of the two-dimensional graphics acceleration device (target object graphics), and the two-dimensional graphics acceleration device needs to be allocated two frame space sources. And source 2, in general, the three frame spaces are given according to the maximum width and height of the screen. The physical address of the three frame spaces does not change during the running of the program, but the superimposed mixed small The location of the area is subject to change.
參見第4圖,第4圖為本發明第二實施例疊加區域說明示意圖。其中,第4a圖和第4b圖為幀空間源1和源2,第4c圖為目標物件圖形,第4a圖、第4b圖、第4c圖中斜線部分為需要進行二維特效處理的區域。一般來說,源1寬度、源2寬度、目的寬度為顯示屏幕的最大寬度,源1高度、源2高度、目的高度為顯示屏幕的最大高度,第4a圖、第4b圖、第4c圖中斜線部分的高度、寬度相同,第4a圖中的縱向偏移1等於第4b圖中的縱向偏移2,第4a圖中的橫向偏移1等於第4b圖中的橫向偏移2,而第4c圖中的縱向偏移3不一定等於第4a圖中的縱向偏移1,第4c圖中的橫向偏移3不一定等於第4a圖中的橫向偏移1,顯然,第4c圖中的縱向偏移和縱向偏移等於或者不等於第4a圖和第4b圖中的值,或者第4c圖中的縱向偏移3、橫向偏移3為固定值或者為變化值,都不影響本發明實施例的實現,而可以實現二維特效的多種顯示形式,給予用戶豐富的視覺享受。Referring to Fig. 4, Fig. 4 is a schematic view showing the superimposed area of the second embodiment of the present invention. 4a and 4b are frame space source 1 and source 2, and FIG. 4c is a target object pattern, and the oblique line portions in FIG. 4a, FIG. 4b, and FIG. 4c are areas where two-dimensional effect processing is required. Generally, the source 1 width, the source 2 width, and the target width are the maximum width of the display screen, and the source 1 height, the source 2 height, and the target height are the maximum heights of the display screen, in the 4th, 4b, and 4c pictures. The height and width of the shaded portion are the same, the longitudinal offset 1 in Fig. 4a is equal to the longitudinal offset 2 in Fig. 4b, and the lateral offset 1 in Fig. 4a is equal to the lateral offset 2 in Fig. 4b, and the The longitudinal offset 3 in Fig. 4c is not necessarily equal to the longitudinal offset 1 in Fig. 4a, and the lateral offset 3 in Fig. 4c is not necessarily equal to the lateral offset 1 in Fig. 4a, obviously, in Fig. 4c The longitudinal offset and the longitudinal offset are equal to or not equal to the values in FIGS. 4a and 4b, or the longitudinal offset 3 and the lateral offset 3 in FIG. 4c are fixed values or change values, and do not affect the present invention. The implementation of the embodiment can realize various display forms of the two-dimensional special effect, giving the user rich visual enjoyment.
如此,本發明實施例則只需佔用最多不超過3幀滿屏的記憶體空間(包括顯示記憶體之內)就能完成各種二維圖形特效,而現有方法中則需佔用大量的記憶體資源(6~10幀滿屏的記憶體空間),本發明實施例則大大降低了佔用的記憶體空間。並且,本發明實施例使用數位信號處理器和二維圖形加速設備同時進行源物件圖形的二維特效處理,使得該處理過程對數位信號處理器的佔用率從80~95%降到2~10%;還提高了二維特效處理的速度。例如,本發明實施例對640*480尺寸的源物件圖形的處理只需5ms,小於數位信號處理器單獨處理的時間(260ms)和二維圖形加速設備單獨處理的時間(6ms)。Thus, in the embodiment of the present invention, only a memory space of up to 3 frames full screen (including the display memory) can be used to complete various two-dimensional graphics effects, and the existing method requires a large amount of memory resources. (6 to 10 frames of full screen memory space), the embodiment of the invention greatly reduces the occupied memory space. Moreover, the embodiment of the present invention uses a digital signal processor and a two-dimensional graphics acceleration device to simultaneously perform two-dimensional special effect processing of the source object graphics, so that the occupancy rate of the digital signal processor is reduced from 80 to 95% to 2 to 10 in the processing. %; also improved the speed of 2D effects processing. For example, the embodiment of the present invention processes the source object graphics of 640*480 size in only 5 ms, less than the time (260 ms) processed by the digital signal processor alone and the time (6 ms) processed by the two-dimensional graphics acceleration device alone.
由於不同數位信號處理器的性能不同,所以不同數位信號處理器的最終結果可能略有差異。測試表明80M mips以上(含80M)的自帶有二維圖形加速設備的數位信號處理器都能平滑完成各種二維特效。Due to the different performance of different digital signal processors, the final results of different digital signal processors may vary slightly. Tests have shown that 80M mips (including 80M) digital signal processor with two-dimensional graphics acceleration device can smoothly complete a variety of two-dimensional effects.
優選地,二維圖形加速設備可通過二維特效移植介面函數,在顯示記憶體空間中完成對應的特效顯示效果,各二維特效移植介面函數的具體語法格式、功能、參數意義、返回值意義等參見以下表2至表6。Preferably, the two-dimensional graphics acceleration device can perform the corresponding special effect display effect in the display memory space through the two-dimensional special effect transplantation interface function, and the specific syntax format, function, parameter meaning and return value meaning of each two-dimensional special effect transplantation interface function. See Tables 2 to 6 below.
二維特效移植介面函數可方便移植到不同的自帶二維圖形加速設備的數位信號處理器上,具備可攜性和通用性。The 2D effect porting interface function can be easily ported to different digital signal processors with 2D graphics acceleration devices, which is portable and versatile.
二維特效移植介面是以數位信號處理器自帶的二維圖形加速設備所具有的最基本的硬體功能為藍本來設計的,同時它也為較複雜的硬體功能如指令佇列等提供了參數輸入。因此,無論是複雜的二維圖形加速設備還是簡單的二維圖形加速設備,移植介面函數都不必修改。以填充矩形和塊搬移介面函數為例,參見表7為移植介面函數在不同加速設備上參數傳遞涵義表。The 2D effect porting interface is designed based on the most basic hardware functions of the 2D graphics acceleration device that comes with the digital signal processor. It also provides for more complex hardware functions such as command queues. Parameter input. Therefore, whether it is a complex two-dimensional graphics acceleration device or a simple two-dimensional graphics acceleration device, the migration interface function does not have to be modified. Taking the filling rectangle and the block moving interface function as an example, see Table 7 for the parameter transfer meaning table of the transplant interface function on different acceleration devices.
目前已經移植成功的平臺有意法半導體的STi51XX系列的DSP、BroadCom公司的974XX系列的DSP、LSI公司的SC20XX系列的DSP、華為HISI公司3XXX系列的DSP、以及Intel公司的CE21XX系列的DSP。The platforms that have been successfully transplanted include STMicroelectronics' STi51XX series DSP, BroadCom's 974XX series DSP, LSI's SC20XX series DSP, Huawei HISI's 3XXX series DSP, and Intel's CE21XX series DSP.
步驟207:二維圖形加速設備輸出目標物件圖形到顯示屏幕。Step 207: The two-dimensional graphics acceleration device outputs the target object graphic to the display screen.
本發明實施例分別由數位信號處理器和二維圖形加速設備進行源物件圖形的二維特效處理,將源物件圖形的二維圖形特效顯示的處理分給兩個設備承擔,由於二維圖形加速設備處理圖形的速度遠遠高於數位信號處理器,使得二維圖形特效顯示的大部分處理工作由二維圖形加速設備在顯示記憶體空間中完成,降低對數位信號處理器的佔用率和性能要求。In the embodiment of the present invention, the digital signal processor and the two-dimensional graphics acceleration device respectively perform the two-dimensional special effect processing of the source object graphic, and the processing of the two-dimensional graphic special effect display of the source object graphic is distributed to the two devices, and the two-dimensional graphics are accelerated. The processing speed of the device is much higher than that of the digital signal processor, so that most of the processing of the two-dimensional graphics effect display is completed by the two-dimensional graphics acceleration device in the display memory space, reducing the occupancy and performance of the digital signal processor. Claim.
並且,使得二維特效處理過程對數位信號處理器的佔用率從80~95%降到2~10%,還提高了二維特效處理的速度。Moreover, the two-dimensional effect processing process reduces the occupancy rate of the digital signal processor from 80 to 95% to 2 to 10%, and also improves the speed of the two-dimensional effect processing.
需要說明的是,對於前述的各方法實施例,為了簡單描述,故將其都表述為一系列的動作組合,但是本領域技術人員應該知悉,本發明並不受所描述的動作順序的限制,因為依據本發明,某些步驟可以採用其他順序或者同時進行。其次,本領域技術人員也應該知悉,說明書中所描述的實施例均屬於優選實施例,所涉及的動作和模組並不一定是本發明所必須的。It should be noted that, for the foregoing method embodiments, for the sake of simple description, they are all expressed as a series of action combinations, but those skilled in the art should understand that the present invention is not limited by the described action sequence. Because certain steps may be performed in other sequences or concurrently in accordance with the present invention. Secondly, those skilled in the art should also understand that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by the present invention.
在上述實施例中,對各個實施例的描述都各有側重,某個實施例中沒有詳述的部分,可以參見其他實施例的相關描述。In the above embodiments, the descriptions of the various embodiments are different, and the details that are not detailed in a certain embodiment can be referred to the related descriptions of other embodiments.
以上提供了一種實現二維圖形特效的方法,本發明實施例還提供一種實現二維圖形特效的裝置和一種實現二維圖形特效的系統。The above provides a method for realizing a two-dimensional graphic special effect, and an embodiment of the present invention further provides a device for realizing a two-dimensional graphic special effect and a system for realizing a two-dimensional graphic special effect.
一種實現二維圖形特效的裝置,參見第5圖,第5圖為本發明實施例裝置的結構示意圖,包括:確定單元11,用於確定分別由數位信號處理器和二維圖形加速設備進行二維特效處理的源物件圖形;可根據預先記錄的數位信號處理器和二維圖形加速設備分別處理多種尺寸物件圖形的所需時間,將源物件圖形切割為預先記錄的兩個尺寸的圖形;兩個尺寸對應的所需時間均小於兩者任意一個單獨處理完整尺寸的源物件圖形的所需時間;兩個尺寸對應的所需時間相差不大甚至相等;顯然,將源物件圖形切割為兩個以上的部分也不影響本發明實施例的實現。An apparatus for implementing two-dimensional graphics effects, see FIG. 5, FIG. 5 is a schematic structural diagram of an apparatus according to an embodiment of the present invention, including: a determining unit 11 configured to determine, respectively, by a digital signal processor and a two-dimensional graphics acceleration device. The source object graphics processed by the Viter effect; the time required to process the plurality of size object graphics according to the pre-recorded digital signal processor and the two-dimensional graphics acceleration device, and the source object graphics are cut into two sizes of pre-recorded graphics; The required time corresponding to each size is smaller than the time required for any one of the two to process the full-size source object graphics separately; the required time corresponding to the two dimensions is not much different or even equal; obviously, the source object graphics are cut into two The above sections also do not affect the implementation of the embodiments of the present invention.
添加標識單元12,用於在確定單元11確定由所述二維圖形加速設備處理的源物件圖形參數中添加處理物件標識;獲取單元13,用於獲取源物件圖形的特效參數;特效參數可包括特效類型編號、特效持續時間等;發送單元14,用於將確定單元11確定的所述源物件圖形的位置和獲取單元13獲取的特效參數發送給數位信號處理器。The identification unit 12 is configured to add a processing object identifier to the determining unit 11 to determine the source object graphic parameter processed by the two-dimensional graphics acceleration device; the obtaining unit 13 is configured to obtain the special effect parameter of the source object graphic; the special effect parameter may include The effect type number, the effect duration, and the like; the sending unit 14 is configured to send the position of the source object graphic determined by the determining unit 11 and the special effect parameter acquired by the obtaining unit 13 to the digital signal processor.
一種實現二維圖形特效的系統,其特徵在於,參見第6圖,第6圖為本發明實施例系統的結構示意圖,包括:分配源物件圖形裝置21,用於確定分別由數位信號處理器和二維圖形加速設備進行二維特效處理的源物件圖形後,在由二維圖形加速設備處理的源物件圖形參數中添加處理物件標識,並將源物件圖形的位置和特效參數發送給數位信號處理器22;可將一個完整的源物件圖形切割為兩個以上的部分進行二維特效處理;數位信號處理器22,用於將添加了處理物件標識的源物件圖形的位置和特效參數發送給二維圖形加速設備23,並將自身完成的特效顯示效果輸出到顯示記憶體空間;可以將添加了處理物件標識的源物件圖形的位置和特效參數寫入命令參數寄存器,使得二維圖形加速設備23從命令參數寄存器中讀取添加了處理物件標識源物件圖形位置和特效參數,並從狀態寄存器得知二維圖形加速設備的處理狀態;二維圖形加速設備23,用於讀取添加了處理物件標識的源物件圖形位置和特效參數,在顯示記憶體空間中完成對應的特效顯示效果,形成並輸出目標物件圖形,目標物件圖形包含了數位信號處理器和二維圖形加速設備完成的二維特效顯示效果。可以從命令參數寄存器中讀取添加了處理物件標識源物件圖形位置和特效參數。A system for realizing a two-dimensional graphics effect, characterized in that, in FIG. 6, FIG. 6 is a schematic structural diagram of a system according to an embodiment of the present invention, comprising: a distribution source object graphics device 21 for determining respectively by a digital signal processor and After the two-dimensional graphics acceleration device performs the two-dimensional effect processing of the source object graphic, the processing object identifier is added to the source object graphic parameter processed by the two-dimensional graphics acceleration device, and the position and special effect parameters of the source object graphic are sent to the digital signal processing. The device 22 can cut a complete source object graphic into two or more parts for two-dimensional special effect processing; the digital signal processor 22 is configured to send the position and special effect parameters of the source object graphic with the added processing object identification to the second The dimension graphics acceleration device 23 outputs the effect display effect completed by itself to the display memory space; the position and the effect parameter of the source object graphic to which the processing object identifier is added can be written into the command parameter register, so that the two-dimensional graphics acceleration device 23 Read from the command parameter register, add the processed object identification source object graphic position and special effect parameters And learning the processing state of the two-dimensional graphics acceleration device from the status register; the two-dimensional graphics acceleration device 23 is configured to read the image position and the special effect parameter of the source object to which the processing object identifier is added, and complete the corresponding in the display memory space. The effect display effect forms and outputs the target object graphic. The target object graphic contains the two-dimensional effect display effect completed by the digital signal processor and the two-dimensional graphics acceleration device. The image object position and effect parameters of the source object with the processed object identification added can be read from the command parameter register.
本發明實施例設備的各個模組可以集成於一體,也可以分離部署。上述模組可以合併為一個模組,也可以進一步拆分成多個子模組。The modules of the device in the embodiment of the invention may be integrated into one module or may be deployed separately. The above modules can be combined into one module, or can be further split into multiple sub-modules.
本發明實施例闡述的二維圖形特效顯示方法及相應裝置、系統,將源物件圖形的二維特效由數位信號處理器和二維圖形加速設備進行處理,將二維圖形特效顯示的處理分給兩個設備承擔,由於二維圖形加速設備處理圖形的速度遠遠高於數位信號處理器,使得二維圖形特效顯示的大部分處理工作由二維圖形加速設備在顯示記憶體空間中完成,降低對數位信號處理器的佔用率和性能要求。The two-dimensional graphic special effect display method and the corresponding device and system set forth in the embodiments of the present invention process the two-dimensional special effects of the source object graphic by the digital signal processor and the two-dimensional graphics acceleration device, and distribute the processing of the two-dimensional graphic special effect display to The two devices assume that the processing speed of the two-dimensional graphics acceleration device is much higher than that of the digital signal processor, so that most of the processing work of the two-dimensional graphics special effects display is completed by the two-dimensional graphics acceleration device in the display memory space, reducing The occupancy and performance requirements for digital signal processors.
並且,使得二維特效處理過程對數位信號處理器的佔用率從80~95%降到2~10%,還提高了二維特效處理的速度;為頁面圖片定制不同的二維圖形顯示特效,或者在頁面間切換時定制不同的二維圖形顯示特效,讓用戶在觀看數位電視觸發介面顯示時有更多的新奇感,增強用戶觀賞節目時的體驗。Moreover, the two-dimensional effect processing process reduces the occupancy rate of the digital signal processor from 80 to 95% to 2 to 10%, and also improves the speed of the two-dimensional special effect processing; and customizes different two-dimensional graphic display special effects for the page image, Or customize different two-dimensional graphics display effects when switching between pages, so that users have more novelty when watching digital TV trigger interface display, and enhance the user experience when watching programs.
本領域普通技術人員可以理解,實現上述實施例方法中的全部或部分流程,是可以通過電腦程式來指令相關的硬體來完成,程式可存儲於一電腦可讀取存儲介質中,該程式在執行時,可包括如上述各方法的實施例的流程。其中,存儲介質可為磁碟、光碟、唯讀存儲記憶體(ROM,Read-Only Memory)或隨機存儲記憶體(RAM,Random Access Memory)等。A person skilled in the art can understand that all or part of the process of implementing the foregoing method can be completed by a computer program to instruct a related hardware, and the program can be stored in a computer readable storage medium. When executed, the flow of an embodiment of the methods as described above may be included. The storage medium may be a magnetic disk, a optical disk, a read-only memory (ROM), or a random access memory (RAM).
以上對本發明實施例所提供的一種實現二維圖形特效的方法及相應裝置、系統進行了詳細介紹,本文中應用了具體個例對本發明的原理及實施方式進行了闡述,以上實施例的說明只是用於幫助理解本發明的方法及其核心思想;同時,對於本領域的一般技術人員,依據本發明的思想,在具體實施方式及應用範圍上均會有改變之處,綜上所述,本說明書內容不應理解為對本發明的限制。The method and the corresponding device and system for realizing the two-dimensional graphic special effect provided by the embodiment of the present invention are described in detail. The principle and the embodiment of the present invention are described in the following. The description of the above embodiment is only The method for understanding the present invention and its core idea; at the same time, for those of ordinary skill in the art, according to the idea of the present invention, there will be changes in specific embodiments and application scopes. The description should not be construed as limiting the invention.
11...確定單元11. . . Determination unit
12...添加標識單元12. . . Add identification unit
13...獲取單元13. . . Acquisition unit
14...發送單元14. . . Sending unit
21...分配源物件圖形裝置twenty one. . . Distribution source object graphics device
22...數位信號處理器twenty two. . . Digital signal processor
23...二維圖形加速設備twenty three. . . Two-dimensional graphics acceleration device
第1圖是本發明第一實施例的方法流程示意圖。Fig. 1 is a flow chart showing the method of the first embodiment of the present invention.
第2圖是本發明第二實施例的方法流程示意圖。Fig. 2 is a flow chart showing the method of the second embodiment of the present invention.
第3圖是本發明第二實施例中源物件圖形的切割位置示意圖,第3a圖為一種切割方式示意圖,第3b圖為另一種切割方式示意圖。Fig. 3 is a schematic view showing the cutting position of the source object pattern in the second embodiment of the present invention, wherein Fig. 3a is a schematic view of a cutting mode, and Fig. 3b is a schematic view of another cutting mode.
第4圖是本發明第二實施例中疊加區域說明示意圖,第4a圖和第4b圖為幀空間源1和源2,第4c圖為目標物件圖形。Fig. 4 is a schematic diagram showing the superimposed area in the second embodiment of the present invention, the 4a and 4b are frame space source 1 and source 2, and the 4c picture is the target object pattern.
第5圖是本發明實施例裝置的結構示意圖。Fig. 5 is a schematic structural view of an apparatus according to an embodiment of the present invention.
第6圖是本發明實施例系統的結構示意圖。Fig. 6 is a schematic structural view of a system according to an embodiment of the present invention.
Claims (11)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
TW98117442A TWI474715B (en) | 2009-05-26 | 2009-05-26 | Method, apparatus and system for generating 2d graphics effects |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
TW98117442A TWI474715B (en) | 2009-05-26 | 2009-05-26 | Method, apparatus and system for generating 2d graphics effects |
Publications (2)
Publication Number | Publication Date |
---|---|
TW201043022A TW201043022A (en) | 2010-12-01 |
TWI474715B true TWI474715B (en) | 2015-02-21 |
Family
ID=45000776
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
TW98117442A TWI474715B (en) | 2009-05-26 | 2009-05-26 | Method, apparatus and system for generating 2d graphics effects |
Country Status (1)
Country | Link |
---|---|
TW (1) | TWI474715B (en) |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
TW527544B (en) * | 2000-06-16 | 2003-04-11 | Silicon Integrated Sys Corp | An apparatus for supporting cooperation of embedded and additional graphics accelerators and method thereof |
CN1570968A (en) * | 2004-01-18 | 2005-01-26 | 马堃 | Digital image synthesizing method by reusing electronic photo frame |
US20050264669A1 (en) * | 2004-05-31 | 2005-12-01 | Tomohiro Ota | Apparatus and method for image processing |
CN1738367A (en) * | 2004-08-16 | 2006-02-22 | 威盛电子股份有限公司 | Image switching method and device |
-
2009
- 2009-05-26 TW TW98117442A patent/TWI474715B/en active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
TW527544B (en) * | 2000-06-16 | 2003-04-11 | Silicon Integrated Sys Corp | An apparatus for supporting cooperation of embedded and additional graphics accelerators and method thereof |
CN1570968A (en) * | 2004-01-18 | 2005-01-26 | 马堃 | Digital image synthesizing method by reusing electronic photo frame |
US20050264669A1 (en) * | 2004-05-31 | 2005-12-01 | Tomohiro Ota | Apparatus and method for image processing |
CN1738367A (en) * | 2004-08-16 | 2006-02-22 | 威盛电子股份有限公司 | Image switching method and device |
Also Published As
Publication number | Publication date |
---|---|
TW201043022A (en) | 2010-12-01 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US20230144094A1 (en) | Multimedia data processing method, multimedia data generation method, and related device | |
CN111899322B (en) | Video processing method, animation rendering SDK, equipment and computer storage medium | |
CN106611435B (en) | Animation processing method and device | |
WO2018045927A1 (en) | Three-dimensional virtual technology based internet real-time interactive live broadcasting method and device | |
WO2022048097A1 (en) | Single-frame picture real-time rendering method based on multiple graphics cards | |
US9363496B2 (en) | Moving image generation device | |
CN112804459A (en) | Image display method and device based on virtual camera, storage medium and electronic equipment | |
CN108810622A (en) | Extracting method, device, computer-readable medium and the electronic equipment of video frame | |
CN107027046B (en) | Audio and video processing method and device for assisting live broadcast | |
CN106713889B (en) | The rendering method and system and mobile terminal of 3D picture | |
JP5960356B2 (en) | Animation reproduction method, apparatus, device, program, and recording medium | |
CN110996150A (en) | Video fusion method, electronic device and storage medium | |
WO2013082832A1 (en) | Method and device for image processing | |
US20120212503A1 (en) | Method and Mobile Terminal for Enabling Animation during Screen-switching | |
CN112511896A (en) | Video rendering method and device | |
CN114567784B (en) | VPU video decoding output method and system for Feiteng display card | |
US8817013B2 (en) | Method for processing a spatial image | |
CN103312981A (en) | Synthetic multi-picture taking method and shooting device | |
CN112804460A (en) | Image processing method and device based on virtual camera, storage medium and electronic equipment | |
US9047680B2 (en) | Information processing apparatus, information processing method, and data structure of content files | |
JP3860034B2 (en) | Image processing apparatus and image processing method | |
TWI474715B (en) | Method, apparatus and system for generating 2d graphics effects | |
CN111367598B (en) | Method and device for processing action instruction, electronic equipment and computer readable storage medium | |
KR101970787B1 (en) | Video decoding apparatus and method based on android platform using dual memory | |
JP5520890B2 (en) | Image processing apparatus, image data generation apparatus, image processing method, image data generation method, and data structure of image file |