[go: up one dir, main page]

CN101163237A - Image processing method and device - Google Patents

Image processing method and device Download PDF

Info

Publication number
CN101163237A
CN101163237A CNA2006101424001A CN200610142400A CN101163237A CN 101163237 A CN101163237 A CN 101163237A CN A2006101424001 A CNA2006101424001 A CN A2006101424001A CN 200610142400 A CN200610142400 A CN 200610142400A CN 101163237 A CN101163237 A CN 101163237A
Authority
CN
China
Prior art keywords
field
data
area
picture frame
image processing
Prior art date
Legal status (The legal status 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 status listed.)
Pending
Application number
CNA2006101424001A
Other languages
Chinese (zh)
Inventor
易四军
王津福
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Ali Corp
Original Assignee
Ali Corp
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 Ali Corp filed Critical Ali Corp
Priority to CNA2006101424001A priority Critical patent/CN101163237A/en
Publication of CN101163237A publication Critical patent/CN101163237A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Compression Or Coding Systems Of Tv Signals (AREA)

Abstract

The present invention provides an image processing method, comprising: decoding the bitstream to reconstruct the B frames and generate data corresponding to the first field and data corresponding to the second field, respectively; and temporarily storing the data corresponding to the first field and the data corresponding to the second field in a frame buffer respectively, for storing a self-use part and a second area of a first area in a buffer area of the B frame, or temporarily storing the data corresponding to the first field and the data corresponding to the second field in the second area respectively at different times, wherein the storage capacity of the second area is large enough to store a complete field, and the storage capacity of the self-use part of the first area is small enough to store a complete field.

Description

图像处理方法与装置 Image processing method and device

技术领域technical field

本发明是有关于低阶视频产品(low-end video product)的MPEG2解码功能,尤指一种图像处理方法与装置。The present invention relates to the MPEG2 decoding function of low-end video products, especially an image processing method and device.

背景技术Background technique

市面上具有MPEG2解码功能的图像处理装置,例如:数字多用途光盘播放机(Digital Versatile Disc player,DVD player)或机顶盒(Set Top Box,STB),通常具有用来当作缓冲器的存储器,以便储存MPEG2解码时所产生的I图框(I frame)、P图框(P frame)、与B图框(B frame)。The image processing device with MPEG2 decoding function on the market, such as: Digital Versatile Disc player (Digital Versatile Disc player, DVD player) or set-top box (Set Top Box, STB), usually has a memory used as a buffer, so that Store the I frame (I frame), P frame (P frame), and B frame (B frame) generated during MPEG2 decoding.

由于I图框与P图框都可用来作为参考图框,所以通常要被保留在存储器当中、直到不再被参考。另一方面,B图框并非用来作为参考图框而是用于显示,也需要被暂时地储存于存储器当中。依据已知技术,在维持画质的前提下,若要将三张大小为(720*576)个像素(pixel)的I图框、P图框、与B图框全部暂时地储存于该存储器,则每一图框需要的储存空间约为608千字节(608 kilobytes),即总共需要约为1824千字节的储存空间。Since both the I frame and the P frame can be used as reference frames, they are usually kept in memory until they are no longer referenced. On the other hand, the B frame is not used as a reference frame but for display and needs to be temporarily stored in the memory. According to the known technology, under the premise of maintaining the image quality, if three I-frames, P-frames, and B-frames with a size of (720*576) pixels are all temporarily stored in the memory , then the storage space required for each frame is about 608 kilobytes (608 kilobytes), that is, a total storage space of about 1824 kilobytes is required.

在低阶数字多用途光盘播放机(low-end DVD player)或低阶机顶盒(low-end STB)中,用来当作缓冲器的存储器的储存容量的大小通常很小,例如:储存容量的大小是小于或等于两兆字节(2megabytes)。若欲选择性地将较高阶产品中的某些功能、特色实现在该低阶数字多用途光盘播放机或该低阶机顶盒中,则往往需要耗用中央处理器资源(central processor resource)来进行欲新增的功能、特色,并且需要充足的存储器的储存容量以利高速运算。此外,这些新增的功能、特色所对应的额外数据也都需要额外的储存空间。因此,即使上述的I图框、P图框、与B图框都已是被压缩的数据(例如:约压缩至66.7%的大小),存储器的储存容量还是非常不足。In a low-end digital versatile disc player (low-end DVD player) or a low-end set-top box (low-end STB), the storage capacity of the memory used as a buffer is usually small, for example: storage capacity The size is less than or equal to two megabytes (2megabytes). If some functions and features in higher-end products are to be selectively implemented in the low-end digital versatile disc player or the low-end set-top box, it is often necessary to consume central processor resources (central processor resources) to The functions and features to be added need sufficient memory storage capacity to facilitate high-speed computing. In addition, additional data corresponding to these new functions and features also require additional storage space. Therefore, even though the above-mentioned I frame, P frame, and B frame are all compressed data (for example: compressed to about 66.7% of the size), the storage capacity of the memory is still very insufficient.

发明内容Contents of the invention

因此本发明的目的之一在于提供一种图像处理方法与装置,以解决上述问题。Therefore, one object of the present invention is to provide an image processing method and device to solve the above problems.

本发明的另一目的在于提供一种图像处理方法与装置,以便选择性地将较高阶产品中的某些功能、特色实现于低阶产品中。Another object of the present invention is to provide an image processing method and device for selectively implementing certain functions and features of higher-end products in lower-end products.

本发明的另一目的在于提供一种图像处理方法与装置,以便在选择性地将较高阶产品中的某些功能、特色实现于低阶产品中的同时,仍能维持充足的存储器的储存容量以利中央处理器资源(central processor resource)进行高速运算,并确保显示图像的清晰度与流畅度。Another object of the present invention is to provide an image processing method and device, so that while selectively implementing certain functions and features in higher-end products in lower-end products, sufficient memory storage can still be maintained. The capacity is to facilitate the central processor resource to perform high-speed calculations, and to ensure the clarity and smoothness of the displayed images.

本发明的另一目的在于提供一种图像处理方法与装置,以便实现价廉物美的低阶产品,让众多的使用者受惠;由于产品本身价廉物美,其市场占有率(market share)就会对应地提升。Another object of the present invention is to provide an image processing method and device, so as to realize low-end products with low price and good quality, and benefit many users; because the product itself is cheap and high-quality, its market share (market share) is will increase accordingly.

本发明的一实施例中提供一种图像处理方法。该图像处理方法包含有:解码比特流(bit stream)以重建(reconstruct)B图框(B frame),并分别产生对应于第一图场(field)的数据以及对应于第二图场的数据,其中该第一图场代表该B图框首先要被显示的图场,而该第二图场代表该B图框其次要被显示的图场;以及将对应该第一图场的数据以及对应该第二图场的数据分别暂时地储存于图框缓冲器(frame buffer)当中、用来储存该B图框的缓冲区域中的第一区域的自用部分(private use portion)与第二区域,或于不同的时间将对应该第一图场的数据以及对应该第二图场的数据分别暂时地储存于该第二区域,其中该第二区域的储存容量的大小足以储存一个完整的图场,而该第一区域的该自用部分的储存容量的大小则不足以储存一个完整的图场。An embodiment of the present invention provides an image processing method. The image processing method includes: decoding a bit stream (bit stream) to reconstruct (reconstruct) a B frame (B frame), and respectively generating data corresponding to a first field (field) and data corresponding to a second field , wherein the first field represents the field where the B frame is to be displayed first, and the second field represents the field where the B frame is displayed secondarily; and the data corresponding to the first field and The data corresponding to the second image field is temporarily stored in the frame buffer (frame buffer), which is used to store the private use portion of the first area and the second area in the buffer area of the B frame , or temporarily store the data corresponding to the first image field and the data corresponding to the second image field in the second area at different times, wherein the storage capacity of the second area is sufficient to store a complete image field, and the size of the storage capacity of the self-use part of the first area is not enough to store a complete image field.

本发明于提供上述的图像处理方法的同时,亦对应地提供一种图像处理装置。该图像处理装置包含有:中央处理器(central processor),用来控制该图像处理装置的运作;图框缓冲器,用来暂时地储存数据;视频处理器(video processor),耦接至该图框缓冲器与该中央处理器,用来解码比特流以重建B图框,并分别产生对应于第一图场的数据以及对应于第二图场的数据,以及将对应该第一图场的数据以及对应该第二图场的数据分别暂时地储存于该图框缓冲器当中,其中该第一图场代表该B图框首先要被显示的图场,而该第二图场代表该B图框其次要被显示的图场,以及该视频处理器包含有核心电路(core circuit),用来控制该视频处理器的运作;以及显示处理器(display processor),耦接至该视频处理器、该图框缓冲器、与该中央处理器,用来控制该B图框的显示,以及该显示处理器包含有核心电路,用来控制该显示处理器的运作。其中该视频处理器将对应该第一图场的数据以及对应该第二图场的数据分别暂时地储存于该图框缓冲器当中的运作还包含有:将对应该第一图场的数据以及对应该第二图场的数据分别暂时地储存于该图框缓冲器当中、用来储存该B图框的缓冲区域中的第一区域的自用部分与第二区域,其中该第二区域的储存容量的大小足以储存一个完整的图场,而该第一区域的该自用部分的储存容量的大小则不足以储存一个完整的图场;或者于不同的时间将对应该第一图场的数据以及对应该第二图场的数据分别暂时地储存于该第二区域。While providing the above-mentioned image processing method, the present invention also provides a corresponding image processing device. The image processing device includes: a central processor (central processor), used to control the operation of the image processing device; a frame buffer, used to temporarily store data; a video processor (video processor), coupled to the image The frame buffer and the central processing unit are used to decode the bit stream to reconstruct the B frame, and respectively generate data corresponding to the first field and data corresponding to the second field, and data corresponding to the first field The data and the data corresponding to the second field are temporarily stored in the frame buffer respectively, wherein the first field represents the field where the B frame is first to be displayed, and the second field represents the B The picture frame is displayed next to the image field, and the video processor includes a core circuit (core circuit), used to control the operation of the video processor; and a display processor (display processor), coupled to the video processor , the frame buffer, and the central processing unit are used to control the display of the B frame, and the display processor includes a core circuit, which is used to control the operation of the display processor. Wherein the operation of the video processor temporarily storing the data corresponding to the first image field and the data corresponding to the second image field in the frame buffer also includes: storing the data corresponding to the first image field and the data corresponding to the second image field respectively. The data corresponding to the second field is temporarily stored in the frame buffer, and is used to store the self-use part of the first area and the second area in the buffer area of the B frame, wherein the storage of the second area The size of the capacity is enough to store a complete image field, but the size of the storage capacity of the self-use part of the first area is not enough to store a complete image field; or at different times, the data corresponding to the first image field and The data corresponding to the second field are temporarily stored in the second area respectively.

附图说明Description of drawings

图1为依据本发明一实施例所提供的图像处理装置的示意图。FIG. 1 is a schematic diagram of an image processing device provided according to an embodiment of the present invention.

图2为图1所示的图像处理装置所处理的图框(frame)的宏区块(macroblock,MB)及其所构成的宏区块列(MB row)的示意图。FIG. 2 is a schematic diagram of a macroblock (MB) of a frame processed by the image processing device shown in FIG. 1 and a macroblock row (MB row) formed therefrom.

图3为图1所示的图框缓冲器(frame buffer)中、用来暂时地储存B图框(B frame)的缓冲区域(buffering region)的示意图。FIG. 3 is a schematic diagram of a buffering region used to temporarily store a B frame (B frame) in the frame buffer (frame buffer) shown in FIG. 1 .

图4为依据本发明一实施例、图1所示的视频处理器与显示处理器彼此协力运作的示意图。FIG. 4 is a schematic diagram of the cooperative operation of the video processor and the display processor shown in FIG. 1 according to an embodiment of the present invention.

[主要元件标号说明][Description of main component labels]

  100100   图像处理装置Image processing device   106106   总线bus   108108   图框缓冲器frame buffer   108I,108P,108B108I, 108P, 108B   缓冲区域Buffer area   110110   中央处理器 CPU   120120   视频处理器video processor   122,132122,132   核心电路core circuit   130130   显示处理器display processor   MB(1,1),MB(1,2),...,MB(P,Q)MB(1, 1), MB(1, 2), ..., MB(P, Q)   宏区块macro block   R(1),R(2),...,R(P)R(1), R(2), ..., R(P)   宏区块列macro block column   310,310U,310V,320310, 310U, 310V, 320   缓冲区域中的区域或部分A region or part of a buffer zone   VsyncVsync   垂直同步 Vertical sync

  tB1-DIS,tB2-DIS,tB2-DEC t B1-DIS , t B2-DIS , t B2-DEC   时间点point in time   O,E,O,E,...O, E, O, E,...   奇图场与偶图场的显示序列Display sequence of odd and even fields   TB1-DEC,TD,T,T1,T2,T3 T B1-DEC , T D , T, T 1 , T 2 , T 3   时间区间time interval

具体实施方式Detailed ways

请参考图1,图1为依据本发明一实施例所提供的图像处理装置100的示意图,其中图像处理装置100可为具有MPEG2解码功能的图像处理装置,例如:数字多用途光盘播放机(Digital Versatile Disc player,DVDplayer)、机顶盒(Set Top Box,STB)...等。Please refer to FIG. 1, FIG. 1 is a schematic diagram of an image processing device 100 provided according to an embodiment of the present invention, wherein the image processing device 100 can be an image processing device with MPEG2 decoding function, for example: a digital versatile disc player (Digital Versatile Disc player, DVDplayer), Set Top Box (Set Top Box, STB)...etc.

如图1所示,图像处理装置100包含有总线(bus)106、图框缓冲器(framebuffer)108、中央处理器(central processor)110、视频处理器(videoprocessor)120、以及显示处理器(display processor)130,其中视频处理器120包含有核心电路(core circuit)122,而显示处理器130则包含有核心电路132,且核心电路122以及核心电路132分别控制视频处理器120的运作以及显示处理器130的运作。依据本实施例,图框缓冲器108为随机存取存储器(random access memory,RAM),其储存容量的大小是小于或等于两兆字节(2megabytes),其中该随机存取存储器中所暂时地储存的数据并不限于图框数据(frame data)。另外,本实施例的视频处理器120为视频引擎(videoengine,VE),而本实施例的显示处理器130为显示引擎(display engine,DE)。As shown in Figure 1, the image processing device 100 includes a bus (bus) 106, a frame buffer (framebuffer) 108, a central processing unit (central processor) 110, a video processor (videoprocessor) 120, and a display processor (display processor) 130, wherein the video processor 120 includes a core circuit (core circuit) 122, and the display processor 130 includes a core circuit 132, and the core circuit 122 and the core circuit 132 respectively control the operation of the video processor 120 and display processing The operation of device 130. According to this embodiment, the frame buffer 108 is a random access memory (random access memory, RAM), and its storage capacity is less than or equal to 2 megabytes (2megabytes), wherein the temporary The stored data is not limited to frame data. In addition, the video processor 120 in this embodiment is a video engine (video engine, VE), and the display processor 130 in this embodiment is a display engine (display engine, DE).

于本实施例中,中央处理器110可控制图像处理装置100的运作。例如:控制欲解码的比特流(bit stream)进入视频处理器120,以供视频处理器120进行MPEG2解码。于是,视频处理器120对该比特流进行MPEG2解码之后,陆续分别地重建(reconstruct)I图框(I frame)、P图框(P frame)、与B图框(B frame)。图2绘示了这些图框(frame)中每一图框的宏区块(macro block,MB)MB(p,q)(p=1、2、...、P,q=1、2、...、Q),以及各列(row)宏区块所构成的宏区块列(MB row)R(p)(p=1、2、...、P)。依据本实施例,每一图框具有(720*576)个像素(pixel),每一宏区块为(16*16)个像素的大小,所以P=36且Q=45。另外,每一宏区块列的高度为16条线(line)的高度,即对应于16个像素的高度。In this embodiment, the CPU 110 can control the operation of the image processing device 100 . For example: the bit stream to be decoded is controlled to enter the video processor 120 for the video processor 120 to perform MPEG2 decoding. Therefore, after the video processor 120 performs MPEG2 decoding on the bit stream, it successively reconstructs the I frame (I frame), the P frame (P frame), and the B frame (B frame). Fig. 2 depicts the macro block (macro block, MB) MB(p, q) (p=1, 2, . . . , P, q=1, 2 , ..., Q), and a macroblock row (MB row) R(p) (p=1, 2, ..., P) formed by each column (row) of macroblocks. According to this embodiment, each frame has (720*576) pixels, and each macroblock has a size of (16*16) pixels, so P=36 and Q=45. In addition, the height of each macroblock column is the height of 16 lines, which corresponds to the height of 16 pixels.

依据本实施例,视频处理器120可将一个图框的数据的全部或一部分暂时地储存于图框缓冲器108中的某一或某些缓冲区域(buffering region)。例如:视频处理器120可陆续将一整个I图框的数据暂时地储存于图框缓冲器108中的缓冲区域108I,亦可陆续将一整个P图框的数据暂时地储存于图框缓冲器108中的缓冲区域108P。又例如:视频处理器120可将B图框的一部分数据暂时地储存于图框缓冲器108中的缓冲区域108B,亦可将该B图框的后续解码数据覆写(overwrite)于缓冲区域108B中、该部分数据所在之处的至少一部分;更明确而言,视频处理器120以新解码数据取代在缓冲区域108B中、被显示处理器130利用(utilize)过后的解码数据,其中通过核心电路122与132的控制,视频处理器120与显示处理器130可重复利用该图框缓冲器当中、同一缓冲区域(例如:缓冲区域108I、108P、或108B)中的至少一部分的数据。According to this embodiment, the video processor 120 may temporarily store all or part of the data of a frame in one or some buffering regions in the frame buffer 108 . For example: the video processor 120 can temporarily store the data of an entire I frame in the buffer area 108I in the frame buffer 108, and can also temporarily store the data of an entire P frame in the frame buffer successively. Buffer area 108P in 108 . Another example: the video processor 120 can temporarily store a part of the data of the B frame in the buffer area 108B of the frame buffer 108, and can also overwrite (overwrite) the subsequent decoded data of the B frame in the buffer area 108B. In, at least a part of where the part of the data is located; more specifically, the video processor 120 replaces the decoded data in the buffer area 108B with the new decoded data after being utilized (utilized) by the display processor 130, wherein the core circuit Controlled by 122 and 132 , the video processor 120 and the display processor 130 can reuse at least a part of the data in the frame buffer in the same buffer area (eg, buffer area 108I, 108P, or 108B).

本实施例的缓冲区域108B中、用来储存该B图框的储存空间的大小可以被缩小。如图3所示,本实施例的缓冲区域108B包含有第一区域310与第二区域320,分别对应于第一图场(field)与第二图场,其中该第一图场代表该B图框首先要被显示的图场,而该第二图场代表该B图框其次要被显示的图场。另外,第一区域310可区分为自用部分(private use portion)310U与虚拟部分(virtual portion)310V。依据本实施例,缓冲区域108B中、用来储存该B图框的储存空间的大小可以被动态地调整,以挪出额外的储存空间,例如:图3所示的第一区域310中的虚拟部分310V。因此,本发明可利用这些额外的储存空间(例如:虚拟部分310V)作为其它运作(非B图框缓冲储存的运作)所需的储存空间,尤其是图像处理装置100的新增的功能、特色的运作所需的储存空间,例如:增加娱乐性游戏、使OSD色彩更加丰富、...等。如此,上述所挪出额外的储存空间可用来暂时地储存中央处理器110进行较高速或较复杂的运算时所产生的缓冲数据以及运算所需的原始数据。The size of the storage space used to store the B frame in the buffer area 108B of this embodiment can be reduced. As shown in FIG. 3, the buffer area 108B of this embodiment includes a first area 310 and a second area 320, corresponding to a first field (field) and a second field respectively, wherein the first field represents the B The field where the frame is to be displayed first, and the second field represents the field where the B frame is displayed secondarily. In addition, the first area 310 can be divided into a private use portion 310U and a virtual portion 310V. According to this embodiment, the size of the storage space used to store the B frame in the buffer area 108B can be dynamically adjusted to allocate additional storage space, for example: the virtual frame in the first area 310 shown in FIG. 3 Part 310V. Therefore, the present invention can use these additional storage spaces (for example: the virtual part 310V) as the storage space required for other operations (non-B frame buffer storage operations), especially the newly added functions and features of the image processing device 100 The storage space required for the operation of the computer, such as: adding entertainment games, making the OSD more colorful,...etc. In this way, the above-mentioned additional storage space can be used to temporarily store the buffer data generated when the central processing unit 110 performs higher-speed or more complex calculations and the original data required for the calculations.

于本实施例中,通过核心电路122与132的控制,视频处理器120的运作以及显示处理器130的运作可互相配合,以便在缓冲区域108B中、用来储存该B图框的储存空间的大小实质上(substantially)被缩小(例如:至少扣除上述的虚拟部分310V)的情况下,显示处理器130仍能正常地控制该B图框的显示,维系其流畅度与显示的正确性。In this embodiment, through the control of the core circuits 122 and 132, the operation of the video processor 120 and the operation of the display processor 130 can cooperate with each other, so that in the buffer area 108B, the storage space used to store the B frame When the size is substantially reduced (for example, at least the virtual part 310V is deducted), the display processor 130 can still normally control the display of the B frame to maintain its smoothness and correctness of display.

依据本实施例,显示处理器130以宏区块列为单位来进行显示的控制。例如:显示处理器130每处理完16条线的数据,这16条线的数据所占用的储存空间即被释放出来。视频处理器120可立即完成一个片段(slice)的数据的解码以产生一个宏区块列的数据,并将这个宏区块列的数据写入缓冲区域108B中。若视频处理器120的解码速度超过显示处理器130所控制的显示速度,则视频处理器120会等待显示处理器130,直到下一个宏区块列再被释放。当视频处理器120写满于缓冲区域108B中所设置的缓冲储存空间(例如:上述的自用部分310U、及/或上述的第二区域320)之后,视频处理器120会依据先前的数据被写入该缓冲储存空间时的顺序,将接下来的宏区块列的解码结果从该缓冲储存空间的起始处开始覆写,亦即依据相同的顺序从头开始写入。According to this embodiment, the display processor 130 performs display control in units of macroblock columns. For example: every time the display processor 130 finishes processing 16 lines of data, the storage space occupied by the 16 lines of data is released. The video processor 120 can immediately complete the decoding of the data of a slice to generate the data of a macroblock column, and write the data of the macroblock column into the buffer area 108B. If the decoding speed of the video processor 120 exceeds the display speed controlled by the display processor 130, the video processor 120 waits for the display processor 130 until the next macroblock sequence is released. After the video processor 120 fills the buffer storage space set in the buffer area 108B (for example: the above-mentioned self-use part 310U, and/or the above-mentioned second area 320), the video processor 120 will be written according to the previous data. According to the sequence when entering the buffer storage space, the decoding results of the next macroblock sequence are overwritten from the beginning of the buffer storage space, that is, they are written from the beginning according to the same sequence.

需要留意的是,显示处理器130也对应地被设计成按顺序重复显示缓冲区域108B中所储存的至少一部分数据。依据本实施例的不同的实施选择,用来暂时地储存该B图框的储存空间的大小可能有所不同,所以上述的重复显示缓冲区域108B中所储存的至少一部分数据的次数也会对应地改变。It should be noted that the display processor 130 is correspondingly designed to repeatedly display at least a part of the data stored in the buffer area 108B sequentially. According to different implementation options of this embodiment, the size of the storage space used to temporarily store the B frame may be different, so the above-mentioned times of repeatedly displaying at least a part of the data stored in the buffer area 108B will be correspondingly Change.

依据本实施例,针对图框图像(frame picture),视频处理器120会同时解码以重建出两图场的数据,即上图场(top field)的数据和下图场(bottomfield)的数据。视频处理器120依据这些数据将被显示的顺序,区分为上述的第一图场以及上述的第二图场,分别代表首先被显示的图场以及其次被显示的图场。According to the present embodiment, for the frame picture, the video processor 120 will simultaneously decode to reconstruct the data of two fields, namely the data of the top field and the data of the bottom field. The video processor 120 divides the data into the above-mentioned first field and the above-mentioned second field according to the order in which the data will be displayed, respectively representing the first field to be displayed and the second field to be displayed.

需要留意的是,针对图框图像,视频处理器120在解码任一B图框时,会将其第二图场的数据暂时地存入完整的图场缓冲储存空间,例如:图3所示的第二区域320,其储存容量的大小足以储存一个完整的图场。另一方面,视频处理器120在解码此B图框时,会将对应该第一图场的数据暂时地存入另一个只有部分大小、不足以储存一个完整的图场的缓冲储存空间,例如:图3所示的第一区域310的自用部分310U,其储存容量的大小N(N=0、1、...、或P)是以宏区块列为单位来计量,其中N可被动态地调整。针对图框图像,N≥2;亦即,典型状况下,自用部分310U的储存容量的大小可储存两个以上完整的宏区块列。在上述的I图框、P图框、与B图框的数据都被压缩至66.7%的大小的状况下,存储器的储存容量中对应于B图框的缓冲空间还可进一步节省空间约11千字节(11 kilobytes)至191千字节。It should be noted that, for the frame image, when the video processor 120 decodes any B frame, it will temporarily store the data of the second field into the complete field buffer storage space, for example: as shown in FIG. 3 The second region 320 has a storage capacity sufficient to store a complete image field. On the other hand, when the video processor 120 decodes the B frame, it will temporarily store the data corresponding to the first frame into another buffer storage space that has only a partial size and is not enough to store a complete frame, for example : the self-use part 310U of the first area 310 shown in FIG. 3 , the size N (N=0, 1, . Adjust dynamically. For frame images, N≧2; that is, under typical conditions, the size of the storage capacity of the self-use part 310U can store more than two complete macroblock rows. Under the condition that the data of the above-mentioned I frame, P frame, and B frame are all compressed to 66.7% of the size, the buffer space corresponding to the B frame in the storage capacity of the memory can further save about 11,000 space. Bytes (11 kilobytes) to 191 kilobytes.

另外,依据本实施例,针对图场图像(field picture),第一区域310的自用部分310U的大小被设定为零,即N=0,而虚拟部分310V所提供的额外的储存空间就被扩大了,可作为图像处理装置100的新增的功能、特色的运作所需。例如:虚拟部分310V所提供的额外的储存空间的大小约为203千字节,而第二区域320的大小也约为203千字节。In addition, according to this embodiment, for the field picture, the size of the self-use part 310U of the first area 310 is set to zero, that is, N=0, and the extra storage space provided by the virtual part 310V is set to zero. Expanded, it can be used as an additional function and characteristic operation of the image processing device 100 . For example: the size of the extra storage space provided by the virtual part 310V is about 203 kilobytes, and the size of the second area 320 is also about 203 kilobytes.

图4为依据本发明一实施例、图1所示的视频处理器120与显示处理器130彼此协力运作的示意图,其中本实施例是用来说明图1所示的实施例可能面临的各种状况中、条件较严苛的一种状况;若较严苛的状况可实施,则条件较宽松的状况的实施就会游刃有余。FIG. 4 is a schematic diagram of the cooperative operation of the video processor 120 and the display processor 130 shown in FIG. 1 according to an embodiment of the present invention, wherein this embodiment is used to illustrate various possible problems faced by the embodiment shown in FIG. 1 Among the conditions, one of the stricter conditions; if the stricter condition can be implemented, the implementation of the looser condition will be easy.

如图4所示,时间点tB1-DIS与时间点tB2-DIS分别代表显示处理器130控制两个B图框B1、B2开始显示的时间点,其中一般MPEG2解码过程中所产生的B图框不见得会连续出现,而是依据由I、P、与B组成的预定序列来解码,故如图4所示的状况为可能出现的各种状况中、条件较严苛的一种,即连续出现两个B图框的状况。另外,图4上半部所示的序列{O,E,0,E,...}代表奇图场(odd field)与偶图场(even field)的显示序列,且图4下半部绘示解码相关的时间点与时间区间。As shown in FIG. 4, the time point t B1-DIS and the time point t B2-DIS respectively represent the time points when the display processor 130 controls the two B picture frames B1 and B2 to start displaying. Frames do not necessarily appear continuously, but are decoded according to a predetermined sequence composed of I, P, and B. Therefore, the situation shown in Figure 4 is one of the more severe conditions among the various situations that may occur. That is, the situation where two B frames appear consecutively. In addition, the sequence {O, E, 0, E, ...} shown in the upper part of Figure 4 represents the display sequence of the odd field (odd field) and the even field (even field), and the lower part of Figure 4 The time points and time intervals related to decoding are shown.

依据本实施例,视频处理器120会先解码出对应B图框B1的第一图场的数据,并将这些数据存入第二区域320。在此,对应B图框B1的第一图场的数据代表B图框B1的数据中首先要被显示的图场数据,而解码出对应该第一图场的数据的时间区间不超出图4所示的时间区间TB1-DEC之外。于时间点tB1-DIS起,显示处理器130开始显示刚解码完成的数据,也就是储存于第二区域320中的数据。According to this embodiment, the video processor 120 first decodes the data of the first field corresponding to the B frame B1 and stores the data into the second area 320 . Here, the data of the first field corresponding to the B frame B1 represents the field data to be displayed first among the data of the B frame B1, and the time interval for decoding the data corresponding to the first field does not exceed that shown in FIG. 4 Outside the time interval T B1-DEC shown. From the time point t B1-DIS , the display processor 130 starts to display the data that has just been decoded, that is, the data stored in the second area 320 .

于时间点tB1-DIS时,视频处理器120不会立刻接着进行B图框B1的后续解码。视频处理器120会等待显示处理器130用完第二区域320当中至少一个宏区块列的时间TD之后,才开始解码对应B图框B1的第二图场的数据,并开始将解码该第二图场所产生的数据陆续写入第二区域320,逐渐以对应该第二图场的数据取代对应该第一图场的数据中、显示处理器130不再使用的部分。于是,视频处理器120陆续依序将对应该第二图场的数据覆写在原本用来暂时地储存对应该第一图场的数据的储存空间。At the time point t B1-DIS , the video processor 120 does not immediately proceed to subsequent decoding of the B frame B1. The video processor 120 will wait until the display processor 130 has used up the time T D of at least one macroblock column in the second area 320 before starting to decode the data of the second field corresponding to the B frame B1, and start to decode the data of the second field of the frame B1. The data generated by the second image field is written into the second area 320 successively, and the data corresponding to the second image field gradually replaces the part of the data corresponding to the first image field that is no longer used by the display processor 130 . Therefore, the video processor 120 sequentially overwrites the data corresponding to the second field in the storage space originally used to temporarily store the data corresponding to the first field.

相仿地,于时间点tB2-DEC时,视频处理器120不会立刻进行B图框B2的解码。视频处理器120也会等待显示处理器130用完第二区域320当中至少一个宏区块列的时间TD之后,才开始解码B图框B2的第一图场,并开始将解码B图框B2的第一图场所产生的数据陆续写入第二区域320,逐渐以对应B图框B2的第一图场的数据取代对应B图框B1的第二图场的数据中、显示处理器130不再使用的部分。于是,视频处理器120陆续依序将对应B图框B2的第一图场的数据覆写在原本用来暂时地储存对应B图框B1的第二图场的数据的储存空间。于是,于时间点tB2-DIS起,显示处理器130开始显示B图框B2。本领域技术人员于获悉上述揭露的内容之后,应可理解于时间点tB2-DIS之后的解码及显示操作,故不在此重复赘述。Similarly, at the time point t B2-DEC , the video processor 120 does not decode the B frame B2 immediately. The video processor 120 will also wait for the display processor 130 to use up the time T D of at least one macroblock column in the second area 320 before starting to decode the first field of the B frame B2, and start decoding the B frame The data generated in the first field of B2 is written into the second area 320 one after another, gradually replacing the data corresponding to the second field of the B frame B1 with the data corresponding to the first field of the B frame B2. The display processor 130 parts no longer used. Therefore, the video processor 120 sequentially overwrites the data of the first field corresponding to the B frame B2 in the storage space originally used to temporarily store the data of the second field corresponding to the B frame B1. Then, from the time point t B2-DIS , the display processor 130 starts to display the B frame B2. Those skilled in the art should be able to understand the decoding and display operations after the time point t B2 -DIS after learning the above disclosed content, so the details will not be repeated here.

相较于已知技术,本发明对于低阶视频产品(low-end video product)的MPEG2解码功能所需的缓冲储存空间更为节省,以便选择性地将较高阶产品中的某些功能、特色实现于低阶产品中。Compared with the known technology, the present invention saves more buffer storage space required for the MPEG2 decoding function of low-end video products, so that some functions in higher-end products, Features are implemented in low-end products.

本发明的另一好处是,本发明的图像处理方法与装置在选择性地将较高阶产品中的某些功能、特色实现于低阶产品中的同时,仍能维持充足的存储器的储存容量以利中央处理器资源(central processor resource)进行高速运算,并确保显示图像的清晰度与流畅度。Another benefit of the present invention is that the image processing method and device of the present invention can maintain sufficient memory storage capacity while selectively implementing certain functions and features in higher-end products in lower-end products. To facilitate high-speed computing with central processor resources, and ensure the clarity and fluency of displayed images.

以上所述仅为本发明的较佳实施例,凡依本发明权利要求范围所做的均等变化与修饰,皆应属本发明的涵盖范围。The above descriptions are only preferred embodiments of the present invention, and all equivalent changes and modifications made according to the claims of the present invention shall fall within the scope of the present invention.

Claims (12)

1. image processing method, it includes:
Decoding bit stream is to rebuild the B picture frame, and produce respectively corresponding to the data of the first figure field and corresponding to the data of the second figure field, the figure field of representing this B picture frame at first will be shown, this first figure field wherein, and its less important figure field that is shown of this B picture frame is represented in this second figure field; And
To temporarily be stored in the middle of the picture frame buffer respectively, be used for storing the personal part and the second area of the first area in the buffer area of this B picture frame to data that should the first figure field and to data that should the second figure field, or will temporarily be stored in this second area respectively to data that should the first figure field and to data that should the second figure field in the different time, wherein the size of the storage volume of this second area is enough to store a complete figure field, and the size of the storage volume of the part of should using by oneself of this first area then is not enough to store a complete figure field.
2. image processing method according to claim 1, it is at the picture frame image, be with to data that should the first figure field and to data that should the second figure field temporarily be stored in the middle of this picture frame buffer respectively, be used for storing this first area in the buffer area of this B picture frame should personal part and this second area.
3. image processing method according to claim 2, the big I of the storage volume of the part of wherein should using by oneself stores macro block column complete more than two.
4. image processing method according to claim 1, it is at the figure field picture, is will temporarily be stored in this second area respectively to data that should the first figure field and to data that should the second figure field in the different time.
5. image processing method according to claim 4, the size of the storage volume of the part of wherein should using by oneself is set to zero.
6. image processing method according to claim 1, wherein this personal part and virtual part can be divided in this first area, and this image processing method also includes:
By adjusting the size of this personal part, dynamically adjust the size of the storage area that is used for storing this B picture frame; Or
Utilize this virtual part as the required storage area of other running.
7. image processing method according to claim 1, wherein the size of the storage volume of this picture frame buffer is to be less than or equal to two Mbytes.
8. image processing apparatus, it includes:
Central processing unit is used for controlling the running of this image processing apparatus;
The picture frame buffer is used for temporarily storage data;
Video processor, be coupled to this picture frame buffer and this central processing unit, be used for decoding bit stream to rebuild the B picture frame, and produce respectively corresponding to the data of the first figure field and corresponding to the data of the second figure field, and will temporarily be stored in respectively in the middle of this picture frame buffer to data that should the first figure field and to data that should the second figure field, the figure field of representing this B picture frame at first will be shown, this first figure field wherein, and its less important figure field that is shown of this B picture frame is represented in this second figure field, and this video processor includes core circuit, is used for controlling the running of this video processor; And
Video-stream processor, be coupled to this video processor, this picture frame buffer, with this central processing unit, be used for controlling the demonstration of this B picture frame, and this video-stream processor includes core circuit, be used for controlling the running of this video-stream processor;
Wherein this video processor will also include data that should the first figure field and the running that data that should the second figure field temporarily are stored in respectively in the middle of this picture frame buffer:
To temporarily be stored in the middle of this picture frame buffer respectively, be used for storing the personal part and the second area of the first area in the buffer area of this B picture frame to data that should the first figure field and to data that should the second figure field, wherein the size of the storage volume of this second area is enough to store a complete figure field, and the size of the storage volume of the part of should using by oneself of this first area then is not enough to store a complete figure field; Perhaps
To temporarily be stored in this second area respectively to data that should the first figure field and to data that should the second figure field in the different time.
9. image processing apparatus according to claim 8, wherein at the picture frame image, this video processor be with to data that should the first figure field and to data that should the second figure field temporarily be stored in the middle of this picture frame buffer respectively, be used for storing this first area in the buffer area of this B picture frame should personal part and this second area.
10. image processing apparatus according to claim 8, wherein at the figure field picture, this video processor is will temporarily be stored in this second area respectively to data that should the first figure field and to data that should the second figure field in the different time.
11. image processing apparatus according to claim 8, wherein this video processor and this video-stream processor can reuse in the middle of this picture frame buffer, the data of at least a portion in the same buffer area.
12. image processing apparatus according to claim 8, wherein the size of the storage volume of this picture frame buffer is to be less than or equal to two Mbytes.
CNA2006101424001A 2006-10-11 2006-10-11 Image processing method and device Pending CN101163237A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNA2006101424001A CN101163237A (en) 2006-10-11 2006-10-11 Image processing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNA2006101424001A CN101163237A (en) 2006-10-11 2006-10-11 Image processing method and device

Publications (1)

Publication Number Publication Date
CN101163237A true CN101163237A (en) 2008-04-16

Family

ID=39298046

Family Applications (1)

Application Number Title Priority Date Filing Date
CNA2006101424001A Pending CN101163237A (en) 2006-10-11 2006-10-11 Image processing method and device

Country Status (1)

Country Link
CN (1) CN101163237A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101847394B (en) * 2009-03-26 2012-03-07 珠海扬智电子有限公司 Storage mapping method and device for encoding and displaying video files
CN103297792A (en) * 2012-02-29 2013-09-11 联发科技股份有限公司 Data buffer device and data buffer method

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101847394B (en) * 2009-03-26 2012-03-07 珠海扬智电子有限公司 Storage mapping method and device for encoding and displaying video files
CN103297792A (en) * 2012-02-29 2013-09-11 联发科技股份有限公司 Data buffer device and data buffer method

Similar Documents

Publication Publication Date Title
CN109618179B (en) Rapid play starting method and device for ultra-high definition video live broadcast
CN107493448B (en) Image processing system, image display method and display device
JP3943129B2 (en) Using memory to decode and display video with 3: 2 pulldown
CN108574806B (en) Video playing method and device
JP4889573B2 (en) Image processing device
CN103377030B (en) image rotation control method and device
US20070080971A1 (en) Method and apparatus of image buffer compression for display device
JP5156655B2 (en) Image processing device
US10446071B2 (en) Device and method of using slice update map
US20130148740A1 (en) Method and apparatus for processing partial video frame data
US10984832B2 (en) Video processing system using ring buffer and racing-mode ring buffer access control scheme
US20050123046A1 (en) Method and device for sharing MPEG frame buffers
US8269786B2 (en) Method for reading and writing image data in memory
KR102619668B1 (en) Apparatus and method of using a slice update map
CN112073725A (en) Method for supporting local refreshing of any display area
CN114339412A (en) Video quality enhancement method, mobile terminal, storage medium and device
JP2011034370A (en) Memory controller
US20080056381A1 (en) Image compression and decompression with fast storage device accessing
CN101163237A (en) Image processing method and device
CN101594477B (en) Processing system of ultralong caption rendering
US7256797B2 (en) Image processing device with synchronized sprite rendering and sprite buffer
US20040218670A1 (en) Method and apparatus for reducing the bandwidth required for transmitting video data for display
JP3004232B2 (en) Decryption device
CN110930480B (en) Direct rendering method of boot animation video of liquid crystal instrument
US9990900B2 (en) Image processing device and method thereof

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C02 Deemed withdrawal of patent application after publication (patent law 2001)
WD01 Invention patent application deemed withdrawn after publication