[go: up one dir, main page]

CN1315059C - Method and device for decoding image sequence using virtual image frame reordering - Google Patents

Method and device for decoding image sequence using virtual image frame reordering Download PDF

Info

Publication number
CN1315059C
CN1315059C CNB021304394A CN02130439A CN1315059C CN 1315059 C CN1315059 C CN 1315059C CN B021304394 A CNB021304394 A CN B021304394A CN 02130439 A CN02130439 A CN 02130439A CN 1315059 C CN1315059 C CN 1315059C
Authority
CN
China
Prior art keywords
picture
image
image frame
buffer
sequence
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.)
Expired - Lifetime
Application number
CNB021304394A
Other languages
Chinese (zh)
Other versions
CN1477521A (en
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.)
MediaTek Inc
Original Assignee
MediaTek Inc
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 MediaTek Inc filed Critical MediaTek Inc
Priority to CNB021304394A priority Critical patent/CN1315059C/en
Publication of CN1477521A publication Critical patent/CN1477521A/en
Application granted granted Critical
Publication of CN1315059C publication Critical patent/CN1315059C/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Images

Landscapes

  • Compression Or Coding Systems Of Tv Signals (AREA)

Abstract

In some cases, the image display system also needs to continuously display the pictures stored in the same buffer. To solve the above problem, the present invention solves the problem of reordering image decoding sequences (decoder) into image display sequences (display orders) by inserting virtual image pictures, achieving minimum hardware and software requirements.

Description

利用虚拟图像画面重新排序的解码图像序列的方法与装置Method and device for decoding image sequence using virtual image frame reordering

技术领域technical field

本发明涉及图像显示系统,尤系涉及图像显示系统中压缩图像解码与显示顺序的排列。The invention relates to an image display system, in particular to the arrangement of compressed image decoding and display sequence in the image display system.

背景技术Background technique

CCITT/ISO(国际电报电话咨询委员会/国际标准化组织)组织针对静止与活动的数字图像制定了压缩与解压缩算法的标准格式,其中包括JPEG(相片编码联合专家组)、MPEG(活动图像专家组)、H.261等,这些标准已被广泛地应用在电视会议、VCD(影碟)、DVD(数字影碟)、视频、随选视频卫星图像传输等,以及其它需要传输数字视频画面的应用上。MPEG标准是由ISO底下的MPEG委员会所制定,在其格式中包括动画、声音与结合两者方式的编码表示方法。The CCITT/ISO (International Telegraph and Telephone Consultative Committee/International Organization for Standardization) organization has formulated standard formats for compression and decompression algorithms for still and moving digital images, including JPEG (Joint Photo Coding Expert Group), MPEG (Motion Picture Expert Group) ), H.261, etc. These standards have been widely used in video conferencing, VCD (video disc), DVD (digital video disc), video, on-demand video satellite image transmission, etc., as well as other applications that require the transmission of digital video images. The MPEG standard is formulated by the MPEG committee under the ISO, and its format includes animation, sound, and coding representation methods that combine the two.

一般来说,在图像处理中,压缩数据是采用运动估计(motion estimation)的方法进行,将目前将被压缩的图像画面的像素与先前的图像画面的像素相对照,求得一个估计的运动向量,接着在传输图像画面时,就不须传送完整的图像画面,而仅需传送运动向量,以及先前图像画面的宏区块(macroblock)与目前图像画面的宏区块之间的差异数据。Generally speaking, in image processing, data compression is carried out by means of motion estimation, comparing the pixels of the image frame to be compressed with the pixels of the previous image frame to obtain an estimated motion vector , then when transmitting the image frame, it is not necessary to transmit the complete image frame, but only the motion vector and the difference data between the macroblock of the previous image frame and the macroblock of the current image frame.

在运动估计的方法中,图像画面被分为I画面(帧内编码画面)、P画面(预测编码画面),以及B画面(双向预测编码画面)。其中I画面在编码时并不需要做运动估计,P画面在编码的过程中会采用前向运动估计(forwardmotion estimation),并且以I画面或者是其它P画面为参考,而B画面会采用前向与后向(backward)运动估计,需要用到I画面或P画面作为参考。I画面、P画面以及B画面在标准MPEG2算法中形成一系列有次序的图像画面序列,称为画面组(Group of Pictures),例如I、B、B、P、B、B、P、B、B、P、B、B、I…。图像画面经过编码后,传送至图像显示系统予以显示。In the method of motion estimation, image pictures are divided into I pictures (intra-coded pictures), P pictures (predictively coded pictures), and B pictures (bidirectionally predictively coded pictures). Among them, the I picture does not need to do motion estimation during encoding, the P picture will use forward motion estimation (forward motion estimation) during the encoding process, and use the I picture or other P pictures as a reference, and the B picture will use forward motion estimation. For backward motion estimation, I-pictures or P-pictures need to be used as references. I pictures, P pictures, and B pictures form a series of ordered image picture sequences in the standard MPEG2 algorithm, called picture groups (Group of Pictures), such as I, B, B, P, B, B, P, B, B, P, B, B, I.... After the image screen is encoded, it is sent to the image display system for display.

图像显示系统在接收到图像压缩序列后必须先解压缩,形成图像解码序列(decode order),在输出为图像显示序列(display order)时必须经过重新排序。在一般解码和显示的过程中,这个重新排序的动作,是由解码序列会依序存于不同的解码缓存器(decoding buffer)中,显示时则是再依照显示顺序取出不同解码缓存器所存储的画面,以实现重新排序为图像显示序列的目的。但是在某些情况下,显示系统必须连续显示某一解码缓存器内的画面,这样,就无法再利用上述的方法将图像解码序列重新排序成图像显示序列,例如,有些光盘显示系统提供盘预视(digest view)的功能,方便使用者快速浏览光盘的内容,不同图像序列画面或同一图像序列不同时间点画面的缩小版本必须同时显示。为了支持预视的功能,目前正在解码的画面就必须和其它先前已显示过的画面一同显示,意即均存储于同一显示缓存器(display buffer)中,显示系统必须连续显示这个显示缓存器内的画面。而目前正在解码的序列也必须依照显示的顺序依序存储进这个显示缓存器中,如表1所示:After the image display system receives the image compression sequence, it must first decompress to form an image decoding sequence (decode order), and must be reordered when outputting the image display sequence (display order). In the process of general decoding and display, this reordering action is that the decoding sequence will be sequentially stored in different decoding buffers (decoding buffer), and when displaying, it will be stored in different decoding buffers according to the display order. Frames, in order to achieve the purpose of rearranging the image display sequence. However, in some cases, the display system must continuously display the pictures in a certain decoding buffer. In this way, the above-mentioned method cannot be used to reorder the image decoding sequence into an image display sequence. For example, some optical disc display systems provide disc preview. The function of digest view is convenient for users to quickly browse the content of the CD, and the reduced versions of different image sequences or different time points of the same image sequence must be displayed at the same time. In order to support the preview function, the picture currently being decoded must be displayed together with other previously displayed pictures, which means that they are all stored in the same display buffer, and the display system must continuously display this display buffer. screen. The sequence currently being decoded must also be stored in the display buffer in the order displayed, as shown in Table 1:

表1  解码序列与显示序列的关系   时间 1 2 3 4 5 6 7 8 9 10 11 12 13 14   解码序列 I0 P3 B1 B2 P6 B4 B5 I9 B7 B8 P12 B10 B11   显示序列 I0 B1 B2 P3 B4 B5 P6 B7 B8 I9 B10 B11 P12 Table 1 Relationship between decoding sequence and display sequence time 1 2 3 4 5 6 7 8 9 10 11 12 13 14 decoding sequence I0 P3 B1 B2 P6 B4 B5 I9 B7 B8 P12 B10 B11 display sequence I0 B1 B2 P3 B4 B5 P6 B7 B8 I9 B10 B11 P12

假设所有缓存器的大小均相同,而图像画面尺寸可以由系统自行控制,例如原尺寸的1/3或1/4,由表1可知,I0解码并存储于一解码缓存器后必须进行P3的解码运动,而此时I0经过尺寸缩减(scale down)后存储至显示缓存器中,当系统依序完成B1和B2的解码与存储的运动后,这时应该把缩减尺寸后的P3存储至显示缓存器中,在解码与显示的过程中,用作参考画面的I画面或P画面都会被存储两次,一次是以正常尺寸存储于解码缓存器中,另一次是以缩减后的尺寸存储于显示缓存器中以供显示用途,而B画面解码后会直接送至显示缓存器。Assuming that all buffers have the same size, and the image size can be controlled by the system itself, for example, 1/3 or 1/4 of the original size, as can be seen from Table 1, after I0 is decoded and stored in a decoding buffer, P3 must be performed Decoding movement, and at this time, I0 is stored in the display buffer after being scaled down. When the system completes the decoding and storage of B1 and B2 in sequence, the reduced size P3 should be stored in the display. In the buffer, in the process of decoding and displaying, the I-picture or P-picture used as a reference picture will be stored twice, one is stored in the normal size in the decoding buffer, and the other is stored in the reduced size in the The display buffer is used for display purposes, and the B picture is directly sent to the display buffer after decoding.

公知技术采取解码两次的作法,一次解码之后以正常尺寸存储于解码缓存器,一次解码之后以缩减后的尺寸存储于显示缓存器,但是第二次解码时必须在图像解码序列中重新找回该画面,使得解码控制方式变得较为复杂。另一种公知技术是以额外的直接存储器存取(DMA)硬件执行尺寸缩放的功能,将原先存储于解码缓存器内的图像画面直接传送至显示缓存器中,但是这么做会增加硬件成本。更有一种公知技术是以系统的精简指令集计算机(RISC)执行读取解码缓存器与写入显示缓存器的工作,但是这样做精简指令集计算机需要花更多的输出输入运行周期(I/O cycle),将会降低精简指令集计算机的效能。The known technology adopts the practice of decoding twice, and stores it in the decoding buffer with a normal size after decoding once, and stores it in the display buffer with a reduced size after decoding once, but it must be retrieved in the image decoding sequence for the second decoding. This picture makes the decoding control method more complicated. Another known technique is to perform the resizing function with additional direct memory access (DMA) hardware, and directly transfer the image frame originally stored in the decoding buffer to the display buffer, but this will increase the hardware cost. Another known technique is to use the system's RISC to perform the work of reading the decoding buffer and writing the display buffer, but the RISC needs to spend more I/O cycles (I/ O cycle), will reduce the performance of the RISC computer.

由于图像解码序列在输出为图像显示序列时必须经过重新排序,因此会有参考画面必须解码二次,或是需要额外的直接存储器存取硬件,或增加精简指令集计算机输出输入运行周期的情形,而图像显示系统有时候也需要连续显示同一缓存器内所存储的画面。为解决上述问题,本发明通过插入虚拟图像画面而解决图像解码序列重新排序为图像显示序列的问题,达到最低的硬件与软件需求。Since the image decoding sequence must be reordered when it is output as an image display sequence, there may be situations where the reference picture must be decoded twice, or additional direct memory access hardware is required, or the RISC I/O cycle is increased. The image display system sometimes also needs to continuously display images stored in the same buffer. In order to solve the above problems, the present invention solves the problem of reordering the image decoding sequence into the image display sequence by inserting virtual image frames, and achieves the minimum hardware and software requirements.

发明内容Contents of the invention

本发明的目的在于提供通过插入虚拟图像画面于图像解码序列中,而将一图像解码序列重新排序为一图像显示序列的方法与装置,从而可以降低硬件和软件的复杂度,以降低成本。The object of the present invention is to provide a method and device for reordering an image decoding sequence into an image display sequence by inserting virtual image frames into the image decoding sequence, so as to reduce the complexity of hardware and software and reduce the cost.

本发明提供一种将图像解码序列重新排序为图像显示序列的方法,其中该图像解码序列由I画面、P画面以及B画面所组成,该方法在接收一个压缩图像画面序列后,执行下列步骤:(1)判断该压缩图像画面序列的第一图像画面;(2)若该第一图像画面是I画面,解码该第一图像画面,并存储在第一缓存器;以及(3)根据一个预设方式得到第一虚拟图像画面,将该第一虚拟图像画面传送至第二缓存器,用于图像显示。The present invention provides a method for reordering an image decoding sequence into an image display sequence, wherein the image decoding sequence is composed of an I picture, a P picture and a B picture, and the method performs the following steps after receiving a compressed image sequence: (1) judging the first picture frame of the compressed picture picture sequence; (2) if the first picture picture is an I picture, decoding the first picture picture and storing it in the first buffer; and (3) according to a preset It is assumed that the first virtual image frame is obtained in a manner, and the first virtual image frame is transmitted to the second buffer for image display.

本发明还提供一种将图像解码序列重新排序为一图像显示序列的方法,其中该图像解码序列由I画面、P画面以及B画面所组成,该方法在接收一压缩图像画面序列后,包括下列步骤:(1)检测该压缩图像画面序列的第一图像画面;(2)若该第一图像画面为P画面,解码该第一图像画面,并存储于第一缓存器;以及(3)根据一预设方式得到第一虚拟图像画面,将该第一虚拟像画面传送至第二缓存器,用于图像显示。The present invention also provides a method for reordering an image decoding sequence into an image display sequence, wherein the image decoding sequence is composed of I pictures, P pictures and B pictures, and after receiving a compressed image picture sequence, the method includes the following steps: Steps: (1) detecting the first image frame of the compressed image frame sequence; (2) if the first image frame is a P frame, decoding the first image frame and storing it in the first buffer; and (3) according to A first virtual image frame is obtained in a preset manner, and the first virtual image frame is sent to a second buffer for image display.

本发明还提供一种将图像解码序列重新排序为一图像显示序列的方法,其中该图像解码序列由I画面、P画面以及B画面所组成,该方法在接收一压缩图像画面序列后,包括下列步骤:(1)判断该压缩图像画面序列的第一图像画面;(2)若该第一图像画面为I画面,根据一预设方式得到第一虚拟图像画面,将该第一虚拟图像画面传送至第一缓存器,用于图像显示;以及(3)解码该第一图像画面,并存储于第二缓存器。The present invention also provides a method for reordering an image decoding sequence into an image display sequence, wherein the image decoding sequence is composed of I pictures, P pictures and B pictures, and after receiving a compressed image picture sequence, the method includes the following steps: Steps: (1) judge the first image frame of the compressed image frame sequence; (2) if the first image frame is an I frame, obtain the first virtual image frame according to a preset method, and transmit the first virtual image frame to the first buffer for image display; and (3) decoding the first image frame and storing it in the second buffer.

本发明还提供一种将一图像解码序列重新排序为一图像显示序列的方法,其中该图像解码序列由I画面、P画面以及B画面所组成,该方法于接收一压缩图像画面序列后,包括下列步骤:(1)检测该压缩图像画面序列的第一图像画面;(2)若该第一图像画面为P画面,根据一预设方式得到第一虚拟图像画面,将该第一虚拟图像画面传送至第一缓存器,用于图像显示;以及解码该第一图像画面,并存储于第二缓存器。The present invention also provides a method for reordering an image decoding sequence into an image display sequence, wherein the image decoding sequence is composed of I picture, P picture and B picture, after receiving a compressed image sequence, the method includes The following steps: (1) detect the first image frame of the compressed image frame sequence; (2) if the first image frame is a P frame, obtain a first virtual image frame according to a preset method, and use the first virtual image frame Send to the first buffer for image display; and decode the first image frame and store it in the second buffer.

本发明还提供一种将一图像解码序列重新排序为一图像显示序列的装置,其中该图像解码序列由I画面、P画面以及B画面所组成,该装置接收一图像解码序列,包括下列装置:The present invention also provides a device for reordering an image decoding sequence into an image display sequence, wherein the image decoding sequence is composed of I picture, P picture and B picture, and the device receives an image decoding sequence, including the following devices:

一参数产生装置,用于产生一控制参数;A parameter generating device, used to generate a control parameter;

一运动补偿装置(motion compensation device,MC),根据一预定方式,输出一虚拟图像画面;A motion compensation device (motion compensation device, MC) outputs a virtual image frame according to a predetermined method;

一存储器,其中该存储器包括:A memory, wherein the memory includes:

一第一缓存器,用于存储该图像解码序列的第一已解码图像画面;A first buffer for storing the first decoded image frame of the image decoding sequence;

一第二缓存器,用于存储该虚拟图像画面;a second register for storing the virtual image frame;

一第三缓存器,用于存储该图像解码序列的第二已解码图像画面;A third buffer for storing the second decoded image frame of the image decoding sequence;

一显示控制器(display controller),用于连接该第二缓存器并显示该虚拟图像画面。A display controller (display controller) is used for connecting with the second register and displaying the virtual image frame.

附图说明Description of drawings

图1a,1b是本发明的装置的图Figure 1a, 1b is a diagram of the device of the present invention

图2a,2b,3a,3b是本发明的流程图Fig. 2a, 2b, 3a, 3b are flow charts of the present invention

图4为本发明的具体实施例中各缓存器的存储内容Fig. 4 is the storage content of each buffer in the specific embodiment of the present invention

图标组件符号说明Icon Component Symbol Explanation

100:参数产生器                105:控制参数100: parameter generator 105: control parameter

110:运动补偿器                115:虚拟图像画面110: Motion compensator 115: Virtual image screen

120:总线                      130:存储器120: Bus 130: Memory

131:第一缓存器                132:第二缓存器131: First buffer 132: Second buffer

133:第三缓存器                140:显示控制器133: The third register 140: Display controller

具体实施方式Detailed ways

请参见图1(a),本发明是一种将图像解码序列重新排序为图像显示序列的装置,包括:参数产生装置100,用于产生控制参数105;运动补偿装置110,运动补偿装置110是利用第一缓存器131预先存储的第一已解码图像画面,配合控制参数105产生虚拟图像画面115;总线120,连接本发明的各个装置;存储器130,有关存储器的详细装置图请见图2(b),其中存储器130包括第一缓存器131,用于存储图像解码序列的第一已解码图像画面;第二缓存器132,用于存储虚拟图像画面115;第三缓存器133,用于存储图像解码序列的第二已解码图像画面;显示控制器140,用于连接第二缓存器132并显示虚拟图像画面115。其中图像画面均通过总线120传送,而显示控制器140除接收虚拟图像画面115,并接收已解码图像画面,可执行例如:屏幕上切割选单(OSD)、子画面(subpicture)、画面混合(highlight mixing function)等功能,并将图像画面传送至视频显示设备,比如电视上显示。Please refer to Fig. 1 (a), the present invention is a device for reordering image decoding sequences into image display sequences, including: a parameter generating device 100 for generating control parameters 105; a motion compensation device 110, which is Utilize the first decoded image frame pre-stored in the first buffer 131, and cooperate with the control parameter 105 to generate a virtual image frame 115; the bus 120 is connected to each device of the present invention; the memory 130, see FIG. 2 ( b), wherein the memory 130 includes a first buffer 131 for storing the first decoded image frame of the image decoding sequence; a second buffer 132 for storing the virtual image frame 115; a third buffer 133 for storing The second decoded image frame of the image decoding sequence; the display controller 140 , configured to connect to the second buffer 132 and display the virtual image frame 115 . Wherein the image frames are all transmitted through the bus 120, and the display controller 140 receives the virtual image frame 115 and the decoded image frame, and can execute, for example: on-screen cutting menu (OSD), subpicture (subpicture), picture mixing (highlight) mixing function) and other functions, and transmit the image screen to a video display device, such as a TV.

要注意的是,本发明中所提到的压缩图像画面序列的图像画面可以是图帧(frame)或图场(field)的画面形式,虚拟图像画面亦可以为图帧(frame)或图场(field)的画面形式。而对应的控制参数105,以MPEG2为例,包括:It should be noted that the image frame of the compressed image frame sequence mentioned in the present invention can be in the form of a frame or a field, and the virtual image frame can also be a frame or a field. (field) screen form. The corresponding control parameters 105, taking MPEG2 as an example, include:

a.虚拟图像画面的画面编码类型(picture_coding_type)为P画面a. The picture coding type (picture_coding_type) of the virtual image picture is P picture

b.虚拟图帧的宏区块,其图帧运动类型(frame_motion_type),实施例为「以图帧为主」”Frame-based”;b. The macroblock of the virtual frame, its frame motion type (frame_motion_type), the embodiment is "frame-based";

c.虚拟图场的宏区块,其图场运动类型(field motion type),实施例为「以图场为主」”Field_based”;c. The macroblock of the virtual field, its field motion type (field motion type), the embodiment is "Field_based";

d.运动向量(motion vector)由使用者定义,优选实施例者为0;以及d. The motion vector (motion vector) is defined by the user, and the preferred embodiment is 0; and

e.编码区块类型(coded-block pattern),实施例为0。e. coded-block pattern (coded-block pattern), the embodiment is 0.

f.虚拟图场从与其本身相同空间性(parity)的图场取得预测值f. The virtual map field obtains the predicted value from the map field with the same spatiality (parity) as itself

其中控制参数可进一步包括尺寸缩放系数(scale factor),因此虚拟图像画面的长宽大小可以跟一般图像画面的大小不相同。The control parameter may further include a scale factor, so the length and width of the virtual image frame may be different from the size of the general image frame.

下述的说明及图示中,具有相同编号的方块代表具有相同的功能。In the following descriptions and illustrations, blocks with the same numbers represent the same functions.

本发明的实施步骤如下,请见图2a:步骤200接收一压缩图像画面序列后,步骤205判断压缩图像画面序列的第一图像画面为I画面、B画面或P画面,在步骤205中若第一图像画面为I画面,步骤210解码第一图像画面,并存储于一第一缓存器131。以及,步骤215利用第三缓存器133预先存储的已解码图像画面,配合控制参数105,产生第一虚拟图像画面115,将第一虚拟图像画面115传送至第二缓存器132,用于图像显示。The implementation steps of the present invention are as follows, please see Fig. 2a: after step 200 receives a compressed image frame sequence, step 205 judges that the first image frame of the compressed image frame sequence is an I frame, a B frame or a P frame, and in step 205 if the first image frame An image frame is an I frame. Step 210 decodes the first image frame and stores it in a first buffer 131 . And, step 215 utilizes the decoded image frame pre-stored in the third buffer 133, cooperates with the control parameter 105 to generate the first virtual image frame 115, and transmits the first virtual image frame 115 to the second buffer 132 for image display .

本发明中进一步包括以下步骤:步骤220判断第二图像画面;在步骤220中若第二图像画面为P画面时,步骤222解码第二图像画面,将第二图像画面存储于第三缓存器133;以及步骤223利用第一缓存器131预先存储的已解码图像画面,配合控制参数105,产生第二虚拟图像画面,将第二虚拟图像画面传送至第二缓存器132,用于图像显示。The present invention further includes the following steps: step 220 judges the second image frame; in step 220 if the second image frame is a P frame, step 222 decodes the second image frame, and stores the second image frame in the third buffer 133 and Step 223 utilizes the decoded image frame pre-stored in the first buffer 131 and cooperates with the control parameter 105 to generate a second virtual image frame, and transmits the second virtual image frame to the second buffer 132 for image display.

在步骤220中若第二图像画面为I画面时,步骤225解码第二图像画面,将第二图像画面存储于第三缓存器133。以及步骤226利用第一缓存器131预先存储的已解码图像画面,配合控制参数105,产生第二虚拟图像画面,将第二虚拟图像画面传送至第二缓存器132,用于图像显示。If the second image frame is an I frame in step 220 , step 225 decodes the second image frame and stores the second image frame in the third buffer 133 . And step 226 utilizes the decoded image frame pre-stored in the first buffer 131 and cooperates with the control parameter 105 to generate a second virtual image frame, and transmits the second virtual image frame to the second buffer 132 for image display.

其中必须注意的是,在步骤205中,若第一图像画面为P画面,如图2b所示,其余实施步骤与第一图像画面为I画面时相同。It must be noted that, in step 205, if the first image frame is a P frame, as shown in FIG. 2b, other implementation steps are the same as when the first image frame is an I frame.

此外,在图2a中步骤210与215可以互换,即本发明可以先产生一虚拟图像画面115,再解码第一图像画面,如图3a的步骤305和310所示。其余实施例步骤与图2a相同。同样的,在图2a中在步骤220之后,步骤222解码图像画面与步骤223产生第二虚拟图像画面也可以互换,步骤225与步骤226也可以互换。同理可推,在图3a中在步骤220之后,步骤222与步骤223可以互换,而步骤225与步骤226可以互换。In addition, steps 210 and 215 in FIG. 2a can be interchanged, that is, the present invention can first generate a virtual image frame 115, and then decode the first image frame, as shown in steps 305 and 310 in FIG. 3a. The steps of other embodiments are the same as those in Fig. 2a. Similarly, after step 220 in FIG. 2 a , step 222 to decode the image frame and step 223 to generate the second virtual image frame can also be interchanged, and step 225 and step 226 can also be interchanged. Similarly, after step 220 in FIG. 3 a , step 222 and step 223 can be interchanged, and step 225 and step 226 can be interchanged.

在图2b中210与215的步骤也可以互换,如图3b的步骤305与步骤310所示。而图2b中在步骤220之后,步骤222与223可以互换,步骤225与步骤226可以互换。同样的在图3b中,步骤222与步骤223可以互换,步骤225与步骤226可以互换。Steps 210 and 215 in FIG. 2b can also be interchanged, as shown in steps 305 and 310 in FIG. 3b. However, after step 220 in FIG. 2 b , steps 222 and 223 can be interchanged, and steps 225 and 226 can be interchanged. Similarly in FIG. 3b, step 222 and step 223 can be interchanged, and step 225 and step 226 can be interchanged.

现在举出本发明的一个优选实施例如下,请见图4,当接收到一图像画面P6时,解码图像画面P6并存储于第一缓存器131,并同时将原先存储于第三缓存器133的P3配合控制参数105,产生P3的虚拟图像画面传送至第二缓存器132,而接下来所接收到的B4与B5经过解码后直接送至第二缓存器,由显示控制器140控制显示。接着在接收到一图像画面I9时,将I9解码并存储在第三缓存器中,并将原先存储于第一缓存器131的P6配合控制参数105,产生P6的虚拟画面并传送至第二缓存器132,而后续所接收到的B7与B8经过解码后也直接送到第二缓存器,由显示控制器140控制显示。Now enumerate a preferred embodiment of the present invention as follows, please see Fig. 4, when receiving an image frame P6, decode the image frame P6 and store in the first cache memory 131, and store in the 3rd cache memory 133 originally at the same time The P3 of P3 cooperates with the control parameter 105 to generate a virtual image frame of P3 and send it to the second buffer 132 , and then the received B4 and B5 are decoded and directly sent to the second buffer for display by the display controller 140 . Then when an image frame I9 is received, I9 is decoded and stored in the third buffer, and the P6 previously stored in the first buffer 131 is matched with the control parameter 105 to generate a virtual frame of P6 and sent to the second buffer 132, and the subsequent received B7 and B8 are also directly sent to the second buffer after being decoded, and the display is controlled by the display controller 140 .

请继续参考图4,当接收到一图像画面P12时,解码图像画面P12并存储于第一缓存器131,并同时将原先存储于第三缓存器133的I9配合控制参数105,产生I9的虚拟图像画面传送至第二缓存器132,而接下来接收到的B10与B11经过解码后直接送至第二缓存器,由显示控制器140控制显示。以后在接收到图像画面P15时,将P15解码并存储在第三缓存器中,并将原先存储于第一缓存器131的P12配合控制参数105,产生P12的虚拟画面并传送至第二缓存器132,由显示控制器140控制显示。Please continue to refer to FIG. 4, when an image frame P12 is received, the image frame P12 is decoded and stored in the first buffer 131, and at the same time, the I9 previously stored in the third buffer 133 is combined with the control parameter 105 to generate a virtual image of I9. The image frames are sent to the second buffer 132 , and the received B10 and B11 are decoded and directly sent to the second buffer for display by the display controller 140 . When the image picture P15 is received later, P15 is decoded and stored in the third buffer, and the P12 originally stored in the first buffer 131 is combined with the control parameter 105 to generate a virtual picture of P12 and send it to the second buffer 132. Control the display by the display controller 140.

插入虚拟图像画面后解码序列与显示序列的关系请见表2所示。See Table 2 for the relationship between the decoding sequence and the display sequence after inserting the virtual image picture.

表2  插入虚拟图像画面后解码序列与显示序列的关系   时间   1 2   3   4   5   6   7   解码序列   I0 (I0_vp)、P3   B1   B2   (P3_vp)、P6   B4   B5   显示序列 I0   B1   B2   P3   B4   B5   时间   8   9   10   11   12   13   14   解码序列   (P6_vp)、I9   B7   B8   (I9_vp)、P12   B10   B11   (P12_vp)、P15   显示序列   P6   B7   B8   I9   B10   B11   P12 Table 2 Relationship between decoding sequence and display sequence after inserting virtual image picture time 1 2 3 4 5 6 7 decoding sequence I0 (I0_vp), P3 B1 B2 (P3_vp), P6 B4 B5 display sequence I0 B1 B2 P3 B4 B5 time 8 9 10 11 12 13 14 decoding sequence (P6_vp), I9 B7 B8 (I9_vp), P12 B10 B11 (P12_vp), P15 display sequence P6 B7 B8 I9 B10 B11 P12

在表2中,运动补偿器110发挥了类似DMA的功能,将预先存储于一个缓存器内的图像画面写入另一缓存器中。另外需注意的是,在接收到参考图像画面(I画面或P画面)时,本发明的装置会将接收到的图像画面存储至第一或第三缓存器中,覆盖第一或第三缓存器中较旧的数据,如图4所示,当接收到P6画面时,系统会将P6存储在原来I0所存储的缓存器中,而不会覆盖到P3所在的缓存器。In Table 2, the motion compensator 110 performs a function similar to DMA, and writes the image frames pre-stored in one buffer into another buffer. In addition, it should be noted that when receiving a reference image frame (I-frame or P-frame), the device of the present invention will store the received frame into the first or third buffer, covering the first or third buffer Older data in the register, as shown in Figure 4, when the P6 picture is received, the system will store P6 in the original buffer stored in I0, and will not overwrite the buffer where P3 is located.

本发明利用运动补偿器110产生虚拟图像画面的方法,省除需要额外DMA硬件,或增加精简指令集计算机输出输入运行周期的情形,因此可以降低硬件与软件的复杂度,达到降低成本的目的。The present invention uses the motion compensator 110 to generate a virtual image frame, eliminating the need for additional DMA hardware, or increasing the RISC computer output and input operation cycle, thereby reducing the complexity of hardware and software and achieving the purpose of reducing costs.

虽然本发明以一优选实施例公布如上,然其并非用于限定本发明,任何本领域的技术人员。在不脱离本发明的精神和范围内,应当可作各种修改与改变,因此本发明的保护范围以后附的权利要求所保护的范围为准。Although the present invention is disclosed above with a preferred embodiment, it is not intended to limit the present invention to anyone skilled in the art. Various modifications and changes should be made without departing from the spirit and scope of the present invention. Therefore, the protection scope of the present invention shall prevail in the protection scope of the appended claims.

Claims (17)

1. one kind be the method for image display sequence with picture decoding sequence rearrangement, and wherein this picture decoding sequence is made up of I picture, P picture and B picture, and this method comprises the following steps: behind compressed image picture sequence of reception
(1.1) judge first image frame of this compressed image picture sequence;
(1.2) if this first image frame is the I picture, this first image frame of decoding, and be stored in first buffer; And
(1.3) utilize a decoded picture picture, cooperate a controlled variable that is produced by a parameter generating device to obtain the first virtual image picture, this first virtual image picture is sent to second buffer, be used for image and show.
2. the method for claim 1, wherein in the step of (1.3), this decoded picture picture be to be stored in one the 3rd buffer.
3. the method for claim 1 wherein also comprises after the step of (1.3):
(3.1) judge second image frame;
When (3.2) being the P picture as if this second image frame, this second image frame of decoding is stored in the 3rd buffer with this second image frame; And
(3.3) utilize decoded this first image frame, cooperate controlled variable, this second virtual image picture is sent to this second buffer, be used for image and show to obtain one second virtual image picture.
4. the method for claim 1 wherein also comprises after the step of (1.3):
(4.1) judge second image frame;
When (4.2) being the I picture as if this second image frame, this second image frame of decoding is stored in the 3rd buffer with this second image frame; And
(4.3) utilize decoded this first image frame, cooperate this controlled variable, this second virtual image picture is sent to this second buffer, be used for image and show to obtain the second virtual image picture.
5. one kind is the method for an image display sequence with the rearrangement of picture decoding sequence, and wherein this picture decoding sequence is made up of I picture, P picture and B picture, and this method comprises the following steps: after receiving a compressed image picture sequence
(5.1) detect first image frame of this compressed image picture sequence;
(5.2) if this first image frame is the P picture, this first image frame of decoding, and be stored in first buffer; And
(5.3) utilize a decoded picture picture, cooperate a controlled variable that is produced by a parameter generating device to obtain the first virtual image picture, this first virtual image picture is sent to second buffer, be used for image and show.
6. method as claimed in claim 5, wherein in the step of (5.3), this decoded picture picture be to be stored in one the 3rd buffer.
7. method as claimed in claim 5 wherein also comprises after the step of (5.3):
(7.1) judge second image frame;
When (7.2) being the P picture as if this second image frame, this second image frame of decoding is stored in the 3rd buffer with this second image frame; And
(7.3) utilize decoded this first image frame, cooperate controlled variable, this second virtual image picture is sent to this second buffer, be used for image and show to obtain the second virtual image picture.
8. method as claimed in claim 5 wherein also comprises after the step of (5.3):
(8.1) judge second image frame;
When (8.2) being the I picture as if this second image frame, this second image frame of decoding is stored in one the 3rd buffer with this second image frame; And
(8.3) utilize decoded this first image frame, cooperate controlled variable, this second virtual image picture is sent to this second buffer, be used for image and show to obtain the second virtual image picture.
9. one kind is the method for an image display sequence with the rearrangement of picture decoding sequence, and wherein this picture decoding sequence is made up of I picture, P picture and B picture, and this method comprises the following steps: after receiving a compressed image picture sequence
(9.1) judge first image frame of this compressed image picture sequence;
(9.2) if this first image frame is the I picture, utilize a decoded picture picture, cooperation obtains the first virtual image picture by the controlled variable that a parameter generating device is produced, and this first virtual image picture is sent to first buffer, is used for image and shows; And
(9.3) this first image frame of decoding, and be stored in second buffer.
10. method as claimed in claim 9, wherein in the step of (9.2), this decoded picture picture be to be stored in one the 3rd buffer.
11. method as claimed in claim 9 wherein also comprises after the step of (9.3):
(11.1) judge second image frame;
When (11.2) being the P picture as if this second image frame, this second image frame of decoding is stored in the 3rd buffer with this second image frame; And
(11.3) utilize decoded this first image frame, cooperate controlled variable, this second virtual image picture is sent to this first buffer, be used for image and show to obtain the second virtual image picture.
12. method as claimed in claim 9 wherein also comprises after the step of (9.3):
(12.1) judge one second image frame;
When (12.2) being the I picture as if this second image frame, this second image frame of decoding is stored in the 3rd buffer with this second image frame; And
(12.3) utilize decoded this first image frame, cooperate this controlled variable, this second virtual image picture is sent to this first buffer, be used for image and show to obtain the second virtual image picture.
13. one kind is the method for an image display sequence with picture decoding sequence rearrangement, wherein this picture decoding sequence is made up of I picture, P picture and B picture, and this method comprises the following steps: after receiving a compressed image picture sequence
(13.1) detect first image frame of this compressed image picture sequence;
(13.2) if this first image frame is the P picture, utilize a decoded picture picture, cooperation obtains the first virtual image picture by the controlled variable that a parameter generating device is produced, and this first virtual image picture is sent to first buffer, is used for image and shows; And
(13.3) this first image frame of decoding, and be stored in second buffer.
14. method as claimed in claim 13, wherein in the step of (13.2), this decoded picture picture be stored in one the 3rd buffer.
15. method as claimed in claim 13 wherein also comprises after the step of (13.3):
(15.1) judge second image frame;
When (15.2) being the P picture as if this second image frame, this second image frame of decoding is stored in one the 3rd buffer with this second image frame; And
(15.3) utilize a decoded image frame, cooperate controlled variable, this second virtual image picture is sent to this first buffer, be used for image and show to obtain the second virtual image picture.
16. method as claimed in claim 13 wherein also comprises after the step of (13.3):
(16.1) judge second image frame;
When (16.2) being the I picture as if this second image frame, this second image frame of decoding is stored in the 3rd buffer with this second image frame; And
(16.3) utilize decoded this first image frame, cooperate controlled variable, this second virtual image picture is sent to this first buffer, be used for image and show to obtain the second virtual image picture.
17. one kind is the device of an image display sequence with picture decoding sequence rearrangement, wherein this picture decoding sequence is made up of I picture, P picture and B picture, and this device receives a picture decoding sequence, comprises array apparatus down:
One parameter generating device is used to produce a controlled variable;
One storer, wherein this storer comprises:
One first buffer is used to store the first decoded picture picture of this picture decoding sequence;
One second buffer is used to store a virtual image picture; And
One the 3rd buffer is used to store the second decoded picture picture of this picture decoding sequence;
One motion compensator unit according to this controlled variable and this first decoded picture picture, is exported this virtual image picture;
One display controller is used to connect this second buffer and shows this virtual image picture.
CNB021304394A 2002-08-20 2002-08-20 Method and device for decoding image sequence using virtual image frame reordering Expired - Lifetime CN1315059C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNB021304394A CN1315059C (en) 2002-08-20 2002-08-20 Method and device for decoding image sequence using virtual image frame reordering

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNB021304394A CN1315059C (en) 2002-08-20 2002-08-20 Method and device for decoding image sequence using virtual image frame reordering

Publications (2)

Publication Number Publication Date
CN1477521A CN1477521A (en) 2004-02-25
CN1315059C true CN1315059C (en) 2007-05-09

Family

ID=34144476

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB021304394A Expired - Lifetime CN1315059C (en) 2002-08-20 2002-08-20 Method and device for decoding image sequence using virtual image frame reordering

Country Status (1)

Country Link
CN (1) CN1315059C (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101841717A (en) * 2010-05-07 2010-09-22 华为技术有限公司 Method for realizing decoding, software decoder and decoding device

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100334548C (en) * 2004-03-23 2007-08-29 英特维数位科技股份有限公司 Method for computer system to download and play video and audio data from remote server

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5608459A (en) * 1993-08-13 1997-03-04 Texas Instruments Incorporated Video data decoder having motion compensation and image memory circuitry on single substrate
CN1164166A (en) * 1996-03-29 1997-11-05 大宇电子株式会社 Method and apparatus for reordering frames in MPEG (moving picture expert group) coder/decoder
JPH104550A (en) * 1995-12-04 1998-01-06 Sgs Thomson Microelettronica Spa MPEG-2 decoding method and MPEG-2 video decoder
CN1192106A (en) * 1997-02-26 1998-09-02 迪维安公司 MPEG decoder memory manager
US5909224A (en) * 1996-10-18 1999-06-01 Samsung Electronics Company, Ltd. Apparatus and method for managing a frame buffer for MPEG video decoding in a PC environment

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5608459A (en) * 1993-08-13 1997-03-04 Texas Instruments Incorporated Video data decoder having motion compensation and image memory circuitry on single substrate
JPH104550A (en) * 1995-12-04 1998-01-06 Sgs Thomson Microelettronica Spa MPEG-2 decoding method and MPEG-2 video decoder
CN1164166A (en) * 1996-03-29 1997-11-05 大宇电子株式会社 Method and apparatus for reordering frames in MPEG (moving picture expert group) coder/decoder
US5909224A (en) * 1996-10-18 1999-06-01 Samsung Electronics Company, Ltd. Apparatus and method for managing a frame buffer for MPEG video decoding in a PC environment
CN1192106A (en) * 1997-02-26 1998-09-02 迪维安公司 MPEG decoder memory manager

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101841717A (en) * 2010-05-07 2010-09-22 华为技术有限公司 Method for realizing decoding, software decoder and decoding device

Also Published As

Publication number Publication date
CN1477521A (en) 2004-02-25

Similar Documents

Publication Publication Date Title
JP2912593B2 (en) System for encoding and decoding multimedia data, MPEG system for compressing and expanding multimedia data, and method for compressing and expanding multimedia data
US7483580B2 (en) System and program product for error recovery while decoding cached compressed data
CN1256048A (en) Error concealment for video image
CN1155254C (en) Programmable filter for removing chosen user data from MPEG-2 bit stream
CN1108020A (en) Decoder for a compressed digital video signal using a common memory for decoding and 2/3 pull-down conversion
US8154776B2 (en) Bitstream format for compressed image data
WO2007136093A1 (en) Image decoding device
US9386310B2 (en) Image reproducing method, image reproducing device, image reproducing program, imaging system, and reproducing system
JPH08251422A (en) Block distortion corrector and image signal expansion device
CN1214648C (en) Method and apparatus for performing motion compensation in a texture mapping engine
JP2004514353A (en) Scalable MPEG-2 video system
US20050089232A1 (en) Method of video compression that accommodates scene changes
US6313766B1 (en) Method and apparatus for accelerating software decode of variable length encoded information
CN1315059C (en) Method and device for decoding image sequence using virtual image frame reordering
US7426238B2 (en) Method and an apparatus for recording a decoded picture sequence using virtual picture
CN1117484C (en) Process for decoding and coding compressed video data stream with reduced memory requirements
CN1436427A (en) Method and device for storing and processing image information of temporally successive images
CN1976475A (en) Image processing device and method
TWI439137B (en) A method and apparatus for restructuring a group of pictures to provide for random access into the group of pictures
CN1902659A (en) Method and apparatus for image processing in a handheld device
CN100461866C (en) Image device, image processing system and method thereof
TW498688B (en) Method and device for resorting an image decode order using the pseudo-image pictures
Fautier VLSI Implementation of MPED Decoders
CN1604651A (en) Method and apparatus for video decoding and de-interlacing
CN114040198A (en) Image data optimization device and method

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CX01 Expiry of patent term
CX01 Expiry of patent term

Granted publication date: 20070509