CN1535029A - A reference image buffer management method - Google Patents
A reference image buffer management method Download PDFInfo
- Publication number
- CN1535029A CN1535029A CNA2003101160851A CN200310116085A CN1535029A CN 1535029 A CN1535029 A CN 1535029A CN A2003101160851 A CNA2003101160851 A CN A2003101160851A CN 200310116085 A CN200310116085 A CN 200310116085A CN 1535029 A CN1535029 A CN 1535029A
- Authority
- CN
- China
- Prior art keywords
- frame
- field
- image
- reference picture
- present image
- 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.)
- Granted
Links
- 239000000872 buffer Substances 0.000 title claims abstract description 59
- 238000007726 management method Methods 0.000 title claims abstract description 23
- 230000003139 buffering effect Effects 0.000 claims abstract description 10
- 230000001174 ascending effect Effects 0.000 claims description 2
- 239000003550 marker Substances 0.000 claims 1
- 238000000034 method Methods 0.000 abstract description 22
- 238000010586 diagram Methods 0.000 description 7
- 238000005516 engineering process Methods 0.000 description 7
- 238000011161 development Methods 0.000 description 2
- 238000012544 monitoring process Methods 0.000 description 2
- 230000009466 transformation Effects 0.000 description 2
- 230000000007 visual effect Effects 0.000 description 2
- 230000002457 bidirectional effect Effects 0.000 description 1
- 230000005540 biological transmission Effects 0.000 description 1
- 238000004364 calculation method Methods 0.000 description 1
- 238000004891 communication Methods 0.000 description 1
- 230000006835 compression Effects 0.000 description 1
- 238000007906 compression Methods 0.000 description 1
- 238000013500 data storage Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N19/00—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
- H04N19/42—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals characterised by implementation details or hardware specially adapted for video compression or decompression, e.g. dedicated software implementation
- H04N19/423—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals characterised by implementation details or hardware specially adapted for video compression or decompression, e.g. dedicated software implementation characterised by memory arrangements
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N19/00—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
- H04N19/50—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using predictive coding
- H04N19/503—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using predictive coding involving temporal prediction
- H04N19/51—Motion estimation or motion compensation
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N19/00—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
- H04N19/60—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using transform coding
- H04N19/61—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using transform coding in combination with predictive coding
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Compression Or Coding Systems Of Tv Signals (AREA)
Abstract
一种参考图像缓冲区管理方法,包括:根据编码的方式,在缓冲区中保留用于编/解码的参考图像;每一个参考图像都通过一个参考索引来标记;当前图像根据参考索引来确定参考图像,完成编解码;如果当前编/解码图像为I帧/场或P帧/场,则将解码后的I/P帧/场替换缓冲区中离当前图像最远的参考帧/场,编/解码下一个图像;如果当前编/解码图像为B帧/场,不改变参考图像的参考索引,编/解码下一个图像;如果所有的图像都完成了编/解码,则删除缓冲区中的所有图像。本发明通过对参考图像进行有效地管理,提高编解码器对参考图像的存取效率,只保留用作参考的图像,降低了对缓存的需求,同时这些参考图像在内存中的统一管理可以提高访存速度。
A reference image buffer management method, including: according to the encoding method, retaining reference images for encoding/decoding in the buffer; each reference image is marked by a reference index; the current image determines the reference image according to the reference index image, complete encoding and decoding; if the current encoded/decoded image is an I frame/field or a P frame/field, replace the reference frame/field farthest from the current image in the buffer with the decoded I/P frame/field, and encode /Decode the next image; if the current encoding/decoding image is a B frame/field, encode/decode the next image without changing the reference index of the reference image; if all images have been encoded/decoded, delete the buffer in the buffer All images. The present invention improves the access efficiency of the codec to the reference images by effectively managing the reference images, only retains the images used as references, and reduces the demand for buffering. At the same time, the unified management of these reference images in the memory can improve Access speed.
Description
技术领域technical field
本发明涉及一种缓冲区管理方法,尤其是一种视频编解码过程中,参考图像缓冲区管理方法。The invention relates to a buffer management method, in particular to a reference image buffer management method in a video encoding and decoding process.
背景技术Background technique
随着科技的飞速发展,高清数字电视广播、多媒体网络通信、视频监控、远程监控等对高效的视频编解码技术的需求越来越突出。高效的视频编解码技术是实现高质量、低成本多媒体数据存储与传输的关键。现在比较流行的视频编码国际标准一般采用预测/变换的混合编码方法。通过预测/变换去除视频图像的时间、空间及主观视觉上的冗余,使得在保持一定视觉效果的条件下,将数据量降到最低。这种预测可以是在当前图像内进行,也可以是在图像间进行。对于帧间预测,现在一般采用基于块匹配的运动搜索策略,既对当前图像中的每个块,根据某种策略在其参考图像中寻找最佳匹配位置。为了提高预测的准确度,通常可能在几个参考图像中进行匹配,如B帧使用前向、后向两个参考帧,因此在编解码器中需要对参考图像进行有效的管理以提高编解码器中参考图像的存取效率。当然多帧参考预测在实现上具有一定的复杂度,如需要分配更多的缓存以保存参考图像、需要进行更多的计算以进行参考图像选择等。With the rapid development of science and technology, high-definition digital TV broadcasting, multimedia network communication, video monitoring, remote monitoring, etc. have increasingly prominent demands on efficient video codec technology. Efficient video codec technology is the key to realize high-quality, low-cost multimedia data storage and transmission. The more popular international standards for video coding now generally adopt a hybrid coding method of prediction/transformation. The time, space and subjective visual redundancy of video images are removed through prediction/transformation, so that the amount of data can be minimized while maintaining a certain visual effect. This prediction can be performed within the current picture or between pictures. For inter-frame prediction, a motion search strategy based on block matching is generally used now, that is, for each block in the current image, find the best matching position in its reference image according to a certain strategy. In order to improve the accuracy of prediction, it is usually possible to match in several reference images, such as B frames using two reference frames forward and backward, so the reference images need to be effectively managed in the codec to improve codec The access efficiency of the reference image in the device. Of course, the multi-frame reference prediction has a certain complexity in implementation, for example, more buffers need to be allocated to store reference images, more calculations need to be performed to select reference images, and so on.
在以前的编码标准中如MPEG-1,MPEG-2,MPEG-4等,帧间预测分为两种,一种是只来自于前向预测的P帧,另一种是进行双向预测的B帧。这里的P帧预测都是基于一个参考图像进行的,而B帧则使用前、后向两个参考图像进行预测,这里的帧间预测较为简单,相应的参考图像缓冲区管理也比较简单,只需保留最近的两个参考帧即可对P,B帧进行帧间预测。In previous coding standards such as MPEG-1, MPEG-2, MPEG-4, etc., there are two types of inter-frame prediction, one is the P frame that only comes from the forward prediction, and the other is the B frame that performs bidirectional prediction. frame. The P frame prediction here is based on a reference image, while the B frame is predicted using two forward and backward reference images. The inter-frame prediction here is relatively simple, and the corresponding reference image buffer management is also relatively simple. It is necessary to keep the last two reference frames to perform inter-frame prediction on P and B frames.
随着计算技术的快速发展,多帧参考预测的实现已经不是十分困难的问题,并且能带来显著的增益,因为采用多参考帧预测技术是提高压缩效率的一个很有效的途径。但是,由于过多的参考帧预测在实现上所带来的复杂度远超过其所带来的增益,而且由于通常B帧至少需要使用前、后两个参考帧,为了充分利用参考图像缓冲区,一般限制P帧至多使用两个参考帧,这样可以在对P帧进行多帧预测的条件下不必增大图像缓冲区的大小。With the rapid development of computing technology, the realization of multi-frame reference prediction is not very difficult, and can bring significant gains, because the use of multi-reference frame prediction technology is a very effective way to improve compression efficiency. However, since the complexity of too many reference frame predictions far outweighs the gains it brings, and since B frames usually need to use at least two reference frames before and after, in order to make full use of the reference image buffer , the P frame is generally restricted to use at most two reference frames, so that the size of the image buffer does not have to be increased under the condition of performing multi-frame prediction on the P frame.
多参考帧预测技术的一个重要环节是如何对参考图像缓冲区进行有效的管理。在最新的编码标准H.264中也采用了多帧参考技术,但其中的参考图像缓冲区管理十分复杂,首先它对每幅解码图像都进行保存,不管该图像是否用作参考图像,并以索引标记其顺序,并另外有一个标记表示该图像是否用作参考图像;此外,对于参考图像进出缓冲区也有十分复杂的规定,比如,一帧图像只有当其不被用作参考图像且用于显示时才从缓冲区中移出。这样管理复杂,并且占用了大量的存储空间,缓冲区使用效率低下。An important part of the multi-reference frame prediction technology is how to effectively manage the reference image buffer. Multi-frame reference technology is also used in the latest coding standard H.264, but the reference image buffer management is very complicated. First, it saves each decoded image, no matter whether the image is used as a reference image or not, and uses The index marks its order, and there is another mark indicating whether the image is used as a reference image; in addition, there are also very complicated regulations for reference images in and out of the buffer, for example, a frame image can only be used if it is not used as a reference image and is used for It is only removed from the buffer when it is displayed. Such management is complicated, and takes up a large amount of storage space, and buffer usage is inefficient.
发明内容Contents of the invention
本发明提出了一种有效的参考图像缓冲区管理方法,只保存所有用作参考的参考图像,以及一个当前正在重构图像的缓冲区,实现参考图像的存取、更新等操作。The present invention proposes an effective reference image buffer management method, which only saves all reference images used as references and a buffer of an image currently being reconstructed, and realizes operations such as accessing and updating of reference images.
本发明的技术方案,包括如下步骤:Technical scheme of the present invention, comprises the steps:
步骤一、根据编码的方式,在缓冲区中保留用于编/解码的参考图像;
步骤二、每一个参考图像都通过一个参考索引来标记;Step 2, each reference image is marked by a reference index;
步骤三、当前图像根据参考索引来确定参考图像,完成编解码;Step 3, the current image determines the reference image according to the reference index, and completes encoding and decoding;
步骤四、如果当前编/解码图像为I帧/场或P帧/场,则将解码后的I/P帧/场替换缓冲区中离当前图像最远的参考帧/场,编/解码下一个图像,重新执行步骤二;Step 4. If the current encoding/decoding image is an I frame/field or a P frame/field, replace the reference frame/field farthest from the current image in the buffer with the decoded I/P frame/field, and encode/decode One image, re-execute step 2;
步骤五、如果当前编/解码图像为B帧/场,不改变参考图像的参考索引,编/解码下一个图像,重新执行步骤三;Step 5. If the current encoding/decoding image is a B frame/field, the reference index of the reference image is not changed, and the next image is encoded/decoded, and step 3 is performed again;
步骤六、如果所有的图像都完成了编/解码,则删除缓冲区中的所有图像。Step 6, if all the images have been encoded/decoded, then delete all the images in the buffer.
本发明通过对参考图像进行有效地管理,提高编解码器对参考图像的存取效率,只保留用作参考的图像,降低了对缓存的需求,同时这些参考图像在内存中的统一管理可以提高访存速度。The present invention improves the access efficiency of the codec to the reference images by effectively managing the reference images, only retains the images used as references, and reduces the demand for buffering, and at the same time, the unified management of these reference images in the memory can improve Access speed.
附图说明Description of drawings
图1是当前图像为I帧并且作为两场编码时,当前解码场在显示顺序上是第二场的标记方法示意图;Fig. 1 is when the current image is an I frame and is encoded as two fields, the current decoded field is a schematic diagram of the marking method of the second field in the display order;
图2是当前图像为P帧并且作为帧编码的标记方法示意图;Fig. 2 is a schematic diagram of a marking method in which the current image is a P frame and is coded as a frame;
图3是当前图像为P帧并且该帧作为两场编码时,当前解码场在显示顺序上是第一场的标记方法示意图;Fig. 3 is a schematic diagram of a marking method in which the current decoded field is the first field in the display order when the current image is a P frame and the frame is coded as two fields;
图4是当前图像为P帧并且该帧作为两场编码,同时当前解码场在显示顺序上是第二场的标记方法示意图;Fig. 4 is a schematic diagram of a marking method in which the current image is a P frame and the frame is coded as two fields, and the current decoding field is the second field in the display order;
图5是当前图像为B帧并且作为帧编码的标记方法示意图;Fig. 5 is a schematic diagram of a marking method in which the current image is a B frame and is coded as a frame;
图6是当前图像为B帧并且该帧作为两场编码时,当前解码场在显示顺序上是第一场的标记方法示意图;Fig. 6 is a schematic diagram of a marking method in which the current decoded field is the first field in the display order when the current image is a B frame and the frame is coded as two fields;
图7是当前图像是B帧并且该帧作为两场编码时,当前解码场在显示顺序上是第二场的标记方法示意图;Fig. 7 is a schematic diagram of a marking method in which the current decoded field is the second field in the display order when the current image is a B frame and the frame is coded as two fields;
图8是本发明更新图像缓冲区中参考图像的流程图。Fig. 8 is a flow chart of updating the reference image in the image buffer according to the present invention.
具体实施方式Detailed ways
本发明的参考图像缓冲区管理机制,使得P/B帧或场能够对参考图像进行高效的存取,同时对于P/B帧/场中的特殊编码模式的宏块,如跳过宏块模式(Skip mode)、直接模式(Direct mode)、对称模式(Symmetric mode)在存取参考图像时能够很直接地找到其前向、后向参考图像。The reference image buffer management mechanism of the present invention enables the P/B frame or field to efficiently access the reference image, and at the same time, for the macroblock of the special coding mode in the P/B frame/field, such as skipping the macroblock mode (Skip mode), direct mode (Direct mode), and symmetric mode (Symmetric mode) can directly find its forward and backward reference images when accessing reference images.
本发明的技术方案,包括如下步骤:Technical scheme of the present invention, comprises the steps:
步骤一、根据编码的方式,在缓冲区中保留用于编/解码的参考图像;
步骤二、每一个参考图像都通过一个参考索引来标记;Step 2, each reference image is marked by a reference index;
步骤三、当前图像根据参考索引来确定参考图像,完成编解码;Step 3, the current image determines the reference image according to the reference index, and completes encoding and decoding;
步骤四、如果当前编/解码图像为I帧/场或P帧/场,则将解码后的I/P帧/场替换缓冲区中离当前图像最远的参考帧/场,编/解码下一个图像,重新执行步骤二;Step 4. If the current encoding/decoding image is an I frame/field or a P frame/field, replace the reference frame/field farthest from the current image in the buffer with the decoded I/P frame/field, and encode/decode One image, re-execute step 2;
步骤五、如果当前编/解码图像为B帧/场,不改变参考图像的参考索引,编/解码下一个图像,重新执行步骤三;Step 5. If the current encoding/decoding image is a B frame/field, the reference index of the reference image is not changed, and the next image is encoded/decoded, and step 3 is performed again;
步骤六、如果所有的图像都完成了编/解码,则删除缓冲区中的所有图像。Step 6, if all the images have been encoded/decoded, then delete all the images in the buffer.
无论是图像的编码还是解码过程中,都涉及到图像在缓冲区中进行编/解码,都涉及到本发明所述的缓冲区的管理。Both image encoding and decoding involve image encoding/decoding in the buffer, and both involve buffer management in the present invention.
本发明的步骤一,在图像缓冲区中,只保留用于所有用作参考的图像,参考图像只能是I图像或P图像。根据不同的编码方式,保留的参考图像的数量也不相同,对于基于帧的编码,在参考图像缓冲区中,保留最近2个用于参考的参考图像;对于基于场的编码,在参考图像缓冲区中,保留最近4个用于参考的参考场图像。In
参考图像的标记是本发明的关键步骤,缓冲区中图像的存取以及编/解码完成后,参考图像的更新,都是根据图像的标记进行的。本发明通过简单的标记方式,实现了方便的图像缓冲区管理。The marking of the reference image is a key step of the present invention. After the image is accessed in the buffer and the encoding/decoding is completed, the updating of the reference image is carried out according to the marking of the image. The invention realizes convenient image buffer management through a simple marking method.
每一个参考图像都用一个参考索引来标记,标记的原则为:前向参考图像依照显示顺序,参考索引按降序排列,显示顺序上离当前图像最近的参考图像的参考索引为0;后向参考图像依照显示顺序,参考索引按升序排列,显示顺序上离当前图像最近的参考图像的参考索引为0。Each reference image is marked with a reference index. The principle of marking is: the forward reference image is in the display order, the reference index is in descending order, and the reference index of the reference image closest to the current image in the display order is 0; the backward reference The images are arranged in ascending order according to the display order, and the reference index of the reference image closest to the current image in the display order is 0.
对于基于帧的编码方式,若当前图像为P帧,则它的两个前向参考帧即为缓冲区中这两个参考图像,其中在显示顺序上离当前图像最近的图像标记为0,较远的另一个标记为1;为若当前帧为B帧,它的后向参考帧为在显示顺序上位于当前图像之后的参考帧,在后向参考顺序中标记为0,前向参考帧为在显示顺序位于当前图像之前的参考帧,在前向参考顺序中标记为0。For the frame-based encoding method, if the current image is a P frame, its two forward reference frames are the two reference images in the buffer, and the image closest to the current image in the display order is marked as 0, compared with The other mark far away is 1; if the current frame is a B frame, its backward reference frame is the reference frame after the current image in the display order, marked as 0 in the backward reference order, and the forward reference frame is Reference frames preceding the current image in display order, marked with 0 in forward reference order.
对于基于场的编码方式,若当前场为P场,它的4个前向参考即为缓冲区中这四个参考图像,其中在显示顺序上离当前图像最近的图像标记为0;为若当前场为B场,它的后向参考场为在显示顺序上位于当前图像之后的两个参考场,其中在显示顺序上离当前图像最近的图像标记为0,另一个标记为1,前向参考场为在显示顺序位于当前图像之前的参考图像,离当前图像最近的场标记为0,另一个标记为1。For the field-based encoding method, if the current field is a P field, its four forward references are the four reference images in the buffer, and the image closest to the current image in the display order is marked as 0; if the current The field is the B field, and its backward reference field is two reference fields located after the current image in the display order, where the image closest to the current image in the display order is marked as 0, and the other is marked as 1, forward reference The field is the reference image before the current image in the display sequence, the field closest to the current image is marked as 0, and the other is marked as 1.
下面通过具体的一系列实例,以解码中不同情况下的标记方式,说明本发明的标记过程:图中的数字表示参考索引值,箭头所指的图像是参考图像,Below, through a series of specific examples, the marking process of the present invention is illustrated in the marking mode in different situations in decoding: the numbers in the figure represent the reference index value, the image indicated by the arrow is the reference image,
如图1所示,如果当前图像是I图像,并且该图像作为两场编码,同时当前解码场在显示顺序上是第二场,标记当前解码场上方的第一场为0;As shown in Figure 1, if the current image is an I image, and the image is coded as two fields, and the current decoding field is the second field in the display order, mark the first field above the current decoding field as 0;
如图2所示,如果当前图像是P图像,并且进行帧编码,标记离当前图像最近的前向参考图像为0;最前方前向参考图像为1;As shown in Figure 2, if the current image is a P image and frame coding is performed, mark the forward reference image closest to the current image as 0; the frontmost forward reference image is 1;
如图3所示,如果当前图像是P图像,并且该图像作为两场编码,同时当前解码场在显示顺序上是第一场,标记当前场最近的前向参考图像的第二场为0,向远离当前图像的方向,顺次标记4个场。As shown in Figure 3, if the current picture is a P picture, and the picture is coded as two fields, and the current decoding field is the first field in the display order, the second field marking the nearest forward reference picture of the current field is 0, In the direction away from the current image, mark 4 fields in sequence.
如图4所示,如果当前图像是P图像,并且该帧作为两场编码,同时当前解码场在显示顺序上是第二场,标记当前场上方的第一场为0,向远离当前图像的方向,顺次标记4个场。As shown in Figure 4, if the current picture is a P picture, and the frame is coded as two fields, and the current decoded field is the second field in the display order, the first field above the current field is marked as 0, and the field farther away from the current picture is Direction, mark 4 fields in sequence.
如图5所示,如果当前图像是B图像,并且作为帧编码,标记前向参考图像为0,标记后向参考图像也为0,这两个图像根据与当前图像在时序上的不同进行区分。As shown in Figure 5, if the current picture is a B picture, and it is coded as a frame, the forward reference picture is marked as 0, and the backward reference picture is also marked as 0. These two pictures are distinguished according to the difference in time sequence from the current picture .
如图6所示,如果当前图像是B图像,并且作为两场编码,同时当前解码场在显示顺序上是第一场,标记前向参考图像的第二场为0,第一场为1;标记后向参考图像第一场为0,第二场为1;B图像只能索引前后向参考图像,这样在不标记当前场下方的第二场限制下,同样是根据距离当前场的远近标记出4个参考场。As shown in Figure 6, if the current picture is a B picture, and it is coded as two fields, and the current decoding field is the first field in the display order, the second field marking the forward reference picture is 0, and the first field is 1; The first field of the marked backward reference image is 0, and the second field is 1; the B image can only index the forward and backward reference images, so that under the restriction of not marking the second field below the current field, it is also marked according to the distance from the current field There are 4 reference fields.
如图7所示,如果当前图像是B图像,并且作为两场编码,同时当前解码场在显示顺序上是第二场,标记前向参考图像的第二场为0,第一场为1;标记后向参考图像第一场为0,第二场为1,原因如上。As shown in Figure 7, if the current picture is a B picture, and it is coded as two fields, and the current decoding field is the second field in the display order, the second field marking the forward reference picture is 0, and the first field is 1; The first field of the marked backward reference image is 0, and the second field is 1, for the above reasons.
一些P/B帧/场中的特殊编码模式,本发明也对其进行了考虑:Special coding modes in some P/B frames/fields, which are also considered by the present invention:
对于I帧图像的底场进行编码时,底场总是编为P场,其参考图像只有一个,即顶场,也是参考图像缓冲区中标记为0的场。When encoding the bottom field of an I-frame image, the bottom field is always coded as a P field, and there is only one reference image, that is, the top field, which is also the field marked as 0 in the reference image buffer.
对于B帧或B场中的Direct mode,其缺省的前后向参考图像为最近的参考图像,即标记为0的参考图像。For Direct mode in B frame or B field, the default forward and backward reference image is the nearest reference image, that is, the reference image marked as 0.
对于B帧中的Symmetric mode,其缺省的后向参考图像由前向参考图像导出,若前向参考图像为标记0的参考图像,则后向参考图像为标记为1的参考图像;反之若前向参考图像为标记1的参考图像,则后向参考图像为标记为0的参考图像。For the Symmetric mode in the B frame, its default backward reference image is derived from the forward reference image. If the forward reference image is the reference image marked 0, then the backward reference image is the reference image marked 1; otherwise, if The forward reference picture is the reference picture marked 1, and the backward reference picture is the reference picture marked 0.
完成缓冲区中图像的标记后,就可以根据标记,进行图像的编/解码了。在当前图像的编/解码过程中,保持图像缓冲区中的数据不变,直到当前图像编/解码完成,需要对参考图像缓冲区中参考图像进行更新。After marking the image in the buffer, you can encode/decode the image according to the mark. During the encoding/decoding process of the current image, the data in the image buffer remains unchanged until the encoding/decoding of the current image is completed, and the reference image in the reference image buffer needs to be updated.
本发明的步骤三中,根据参考图像对当前图像进行编码的方法可以是任意一种利用参考图像进行预测编码的方法。In step 3 of the present invention, the method of encoding the current image based on the reference image may be any method of predictive encoding using the reference image.
如图8所示是本发明更新图像缓冲区中参考图像的流程图,解码一幅图像,若当前图像为I或P帧/场,则用该图像替换参考图像缓冲区中距离当前图像最远的帧/场,重新进行索引标记。As shown in Figure 8, it is the flow chart of the present invention to update the reference image in the image buffer, decode an image, if the current image is I or P frame/field, then replace the farthest distance from the current image in the reference image buffer with this image frame/field, re-index marking.
对于基于帧的编码,若当前解码帧为I或P帧,则将解码后的I/P帧替换缓冲区中离当前图像最远的参考帧,然后进行步骤二中的标记。For frame-based encoding, if the currently decoded frame is an I or P frame, replace the reference frame in the buffer with the farthest from the current image with the decoded I/P frame, and then mark in step 2.
例如,若当前解码帧为I或P帧,则将解码后的该帧替换原来缓冲区中标记为1的参考帧,这样一来这个新插入的参考帧为下一要解码图像的最近参考帧,标记为0,另一图像原先标记为0,现在要更新标记为1。For example, if the current decoded frame is an I or P frame, replace the decoded frame with the reference frame marked 1 in the original buffer, so that the newly inserted reference frame is the latest reference frame of the next image to be decoded , marked as 0, another image was originally marked as 0, and now it is updated to be marked as 1.
对于基于场的编码,若当前解码帧为I或P场,则将解码后的I/P场替换缓冲区中离当前图像最远的参考场,然后进行步骤二中的标记。For field-based coding, if the current decoded frame is an I or P field, replace the reference field in the buffer with the farthest from the current image with the decoded I/P field, and then mark in step 2.
例如,若当前解码图像为I或P场,则将解码后的该图像替换原来缓冲区中标记为3的参考场,这样一来这个新插入的参考场为下一要解码图像的最近参考场,标记为0,另一图像原先标记为2,现在要更新标记为3,原标记为1的先更新为2,原标记为0的更新为1。For example, if the currently decoded picture is an I or P field, replace the decoded picture with the reference field marked 3 in the original buffer, so that the newly inserted reference field is the nearest reference field of the next picture to be decoded , marked as 0, another image was originally marked as 2, and now it needs to be updated to be marked as 3, the original marked as 1 is first updated to 2, and the original marked as 0 is updated to 1.
解码B帧或B场,缓冲区状态保持不变。Decoding B frame or B field, the buffer state remains unchanged.
如果所有的图像都完成了编/解码,则整个编/解码过程已经完成,删除缓冲区中的所有图像,释放资源。If all images have been encoded/decoded, the entire encoding/decoding process has been completed, and all images in the buffer are deleted to release resources.
最后所应说明的是:以上实施例仅用以说明而非限制本发明的技术方案,尽管参照上述实施例对本发明进行了详细说明,本领域的普通技术人员应当理解:依然可以对本发明进行修改或者等同替换,而不脱离本发明的精神和范围的任何修改或局部替换,其均应涵盖在本发明的权利要求范围当中。Finally, it should be noted that the above embodiments are only used to illustrate and not limit the technical solutions of the present invention, although the present invention has been described in detail with reference to the above embodiments, those of ordinary skill in the art should understand that: the present invention can still be modified Or an equivalent replacement, any modification or partial replacement without departing from the spirit and scope of the present invention shall fall within the scope of the claims of the present invention.
Claims (10)
Priority Applications (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN 200310116085 CN1284380C (en) | 2003-12-31 | 2003-12-31 | Reference image buffer region management method |
| PCT/CN2004/000751 WO2005067297A1 (en) | 2003-12-31 | 2004-07-05 | Method for managing the reference image in the buffer |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN 200310116085 CN1284380C (en) | 2003-12-31 | 2003-12-31 | Reference image buffer region management method |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN1535029A true CN1535029A (en) | 2004-10-06 |
| CN1284380C CN1284380C (en) | 2006-11-08 |
Family
ID=34304830
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN 200310116085 Expired - Fee Related CN1284380C (en) | 2003-12-31 | 2003-12-31 | Reference image buffer region management method |
Country Status (2)
| Country | Link |
|---|---|
| CN (1) | CN1284380C (en) |
| WO (1) | WO2005067297A1 (en) |
Cited By (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN100455017C (en) * | 2006-05-12 | 2009-01-21 | 四川长虹电器股份有限公司 | A decoding image buffer management method |
| CN102215399A (en) * | 2010-04-09 | 2011-10-12 | 新港传播媒介公司 | Frame buffer compression method, video encoder and system of video encoder |
| CN102547292A (en) * | 2012-02-15 | 2012-07-04 | 北京大学深圳研究生院 | Methods for realizing coding and decoding by using unfixed reference field forward prediction skipping mode |
| CN103916666A (en) * | 2013-01-09 | 2014-07-09 | 北京大学 | Video coding method, video decoding method, coder and decoder |
| CN112055231A (en) * | 2020-08-31 | 2020-12-08 | 浙江大华技术股份有限公司 | Video decoding method, decoding device, decoder and electronic equipment |
Families Citing this family (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN104717512B (en) | 2013-12-16 | 2019-07-23 | 浙江大学 | A kind of encoding and decoding method and device for forward double-hypothesis encoding image block |
Family Cites Families (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPH1070727A (en) * | 1996-06-21 | 1998-03-10 | Sanyo Electric Co Ltd | Method and device for transmitting moving picture |
| US6453115B1 (en) * | 2000-08-31 | 2002-09-17 | Keen Personal Media, Inc. | Digital video recording system which generates an index data structure for displaying a video stream in trickplay mode |
| CN1229940C (en) * | 2002-04-30 | 2005-11-30 | 电子科技大学 | Same-channel multi-stream transparent transmission method for video/data broadcasting |
-
2003
- 2003-12-31 CN CN 200310116085 patent/CN1284380C/en not_active Expired - Fee Related
-
2004
- 2004-07-05 WO PCT/CN2004/000751 patent/WO2005067297A1/en not_active Ceased
Cited By (9)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN100455017C (en) * | 2006-05-12 | 2009-01-21 | 四川长虹电器股份有限公司 | A decoding image buffer management method |
| CN102215399A (en) * | 2010-04-09 | 2011-10-12 | 新港传播媒介公司 | Frame buffer compression method, video encoder and system of video encoder |
| CN102215399B (en) * | 2010-04-09 | 2014-07-09 | 新港传播媒介公司 | Frame buffer compression method, video encoder and system of video encoder |
| CN102547292A (en) * | 2012-02-15 | 2012-07-04 | 北京大学深圳研究生院 | Methods for realizing coding and decoding by using unfixed reference field forward prediction skipping mode |
| CN102547292B (en) * | 2012-02-15 | 2018-07-06 | 北京大学深圳研究生院 | Use the coding-decoding method of on-fixed reference field forward prediction skip mode |
| CN103916666A (en) * | 2013-01-09 | 2014-07-09 | 北京大学 | Video coding method, video decoding method, coder and decoder |
| CN103916666B (en) * | 2013-01-09 | 2017-07-14 | 北京大学 | Method for video coding, coding/decoding method, encoder and decoder |
| CN112055231A (en) * | 2020-08-31 | 2020-12-08 | 浙江大华技术股份有限公司 | Video decoding method, decoding device, decoder and electronic equipment |
| CN112055231B (en) * | 2020-08-31 | 2021-10-15 | 浙江大华技术股份有限公司 | Video decoding method, decoding device, decoder and electronic equipment |
Also Published As
| Publication number | Publication date |
|---|---|
| CN1284380C (en) | 2006-11-08 |
| WO2005067297A1 (en) | 2005-07-21 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN1669321A (en) | Method for random access and progressive update of images in video coding | |
| CN1525762A (en) | A Encoder/Decoder Bidirectional Prediction Method for Video Coding | |
| CN1450813A (en) | Video encoding method and device, and video decoding method and device | |
| CN103281529A (en) | Image signal decoding apparatus, image signal decoding method, image signal encoding apparatus, image signal encoding method, and program | |
| CN101039430A (en) | Method for scanning quickly residual matrix in video coding | |
| CN1617593A (en) | Signals a valid entry point in the video stream | |
| CN1535029A (en) | A reference image buffer management method | |
| CN1268136C (en) | Frame field adaptive coding method based on image slice structure | |
| CN1346573A (en) | Method and apparatus for performing motion compensation in a texture mapping engine | |
| CN1147157C (en) | Decoding device and decoding method | |
| CN1728831A (en) | Use the method and apparatus of the decoding moving picture of back filtering | |
| CN1295920C (en) | Synchronous control device and control method for video elecoding and display | |
| CN1449197A (en) | B image mode determining method and apparatus of video coding system | |
| CN101080932A (en) | Image decoder with context-based parameter buffer | |
| CN1306825C (en) | Reference storage device and method based on line buffer in video decoding chip | |
| CN103796021B (en) | Video coding-decoding method and device | |
| CN104243988B (en) | Video encoding and decoding method and device, method for transmitting video code stream | |
| CN1589014A (en) | Video frequency decoding control method and device | |
| CN1925616B (en) | A Macroblock Pairwise Frame Field Adaptive Codec Method | |
| CN1271864C (en) | Control device and method for video frequency decoding buffer zone | |
| CN100496126C (en) | Image coding device and method thereof | |
| CN1219404C (en) | Storage method of reference buffer storage of two stage coding used on macro block group structure | |
| CN1535025A (en) | Method for obtaining image reference block under fixed reference frame number coding mode | |
| CN1756355A (en) | Motion estimating method in video data compression | |
| CN1284379C (en) | A method for positioning identification of coded image |
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 | ||
| ASS | Succession or assignment of patent right |
Owner name: UNITED XINYUAN DIGITAL AUDIO-VIDEO TECHNOLOGY (BE Free format text: FORMER OWNER: INST. OF COMPUTING TECHN. ACADEMIA SINICA Effective date: 20080411 |
|
| C41 | Transfer of patent application or patent right or utility model | ||
| TR01 | Transfer of patent right |
Effective date of registration: 20080411 Address after: Beijing city Haidian District East Road No. 1 Yingchuang power building block A room 701 Patentee after: UNITED XINYUAN DIGITAL AUDIO V Address before: Joint laboratory, South Gate graduate building, Institute of physics, Chinese Academy of Sciences, 8 South Avenue, Beijing, Haidian District, Zhongguancun Patentee before: Institute of Computing Technology, Chinese Academy of Sciences |
|
| CF01 | Termination of patent right due to non-payment of annual fee | ||
| CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20061108 Termination date: 20211231 |
