HK1243571B - Methods and devices for video coding - Google Patents
Methods and devices for video coding Download PDFInfo
- Publication number
- HK1243571B HK1243571B HK18102791.7A HK18102791A HK1243571B HK 1243571 B HK1243571 B HK 1243571B HK 18102791 A HK18102791 A HK 18102791A HK 1243571 B HK1243571 B HK 1243571B
- Authority
- HK
- Hong Kong
- Prior art keywords
- picture
- reference picture
- list
- image
- pictures
- Prior art date
Links
Description
分案申请的相关信息Information about divisional applications
本案是分案申请。该分案的母案是申请日为2012年9月20日、申请号为PCT/US2012/056362的国际申请进入中国后发明名称为“用于视频译码的参考图像列表构造”,申请号为201280046488.0的发明专利申请案。This application is a divisional application. The parent application is an international application filed on September 20, 2012, with application number PCT/US2012/056362, which, after entering China, is titled “Reference Picture List Construction for Video Decoding” and has application number 201280046488.0.
本申请案主张以下各申请案的权利:This application claims the rights of:
2011年9月23日申请的第61/538,787号美国临时申请案;U.S. Provisional Application No. 61/538,787, filed September 23, 2011;
2011年9月26日申请的第61/539,433号美国临时专利申请案;以及U.S. Provisional Patent Application No. 61/539,433, filed September 26, 2011; and
2011年9月30日申请的第61/542,034号美国临时专利申请案,所述申请案中的每一者的全部内容以其全文引用的方式并入本文中。U.S. Provisional Patent Application No. 61/542,034, filed September 30, 2011, the entire contents of each of which are incorporated herein by reference in their entirety.
技术领域Technical Field
本发明涉及视频译码且,更明确地说,涉及用于译码视频数据的技术。This disclosure relates to video coding and, more particularly, to techniques for coding video data.
背景技术Background Art
数字视频能力可并入到广泛范围的装置中,所述装置包含数字电视、数字直播系统、无线广播系统、个人数字助理(PDA)、膝上型或桌上型计算机、平板型计算机、电子书阅读器、数字摄像机、数字记录装置、数字媒体播放器、视频游戏装置、视频游戏控制台、蜂窝式或卫星无线电电话、所谓的“智能型电话”、视频电信会议装置、视频流装置,及其类似者。数字视频装置实施视频压缩技术,例如以下各者中所描述的那些技术:由MPEG-2、MPEG-4、ITU-T H.263、ITU-T H.264/MPEG-4第10部分(高级视频译码(AVC))定义的标准、目前在开发中的高效率视频译码(HEVC)标准,以及这些标准的扩展。视频装置可通过实施这些视频压缩技术而更有效率地传输、接收、编码、解码及/或存储数字视频信息。Digital video capabilities can be incorporated into a wide range of devices, including digital televisions, digital live broadcast systems, wireless broadcast systems, personal digital assistants (PDAs), laptop or desktop computers, tablet computers, e-book readers, digital camcorders, digital recording devices, digital media players, video game devices, video game consoles, cellular or satellite radio telephones, so-called "smartphones," video teleconferencing devices, video streaming devices, and the like. Digital video devices implement video compression techniques, such as those described in the standards defined by MPEG-2, MPEG-4, ITU-T H.263, ITU-T H.264/MPEG-4 Part 10 (Advanced Video Coding (AVC)), the High Efficiency Video Coding (HEVC) standard currently under development, and extensions of these standards. By implementing these video compression techniques, video devices can more efficiently transmit, receive, encode, decode, and/or store digital video information.
视频压缩技术执行空间(图像内)预测和/或时间(图像间)预测,以减少或去除视频序列中所固有的冗余。对于基于块的视频译码,可将视频切片(即,视频图像或视频图像的一部分)分割成视频块,视频块还可被称作树块、译码树块(CTB)、译码树单元(CTU)、译码单元(CU)和/或译码节点。使用相对于相同图像中的相邻块中的参考样本的空间预测来编码图像的经帧内译码(I)切片中的视频块。图像的经帧间译码(P或B)切片中的视频块可使用相对于相同图像中的相邻块中的参考样本的空间预测或相对于其它参考图像中的参考样本的时间预测。图像可被称作帧,且参考图像可被称作参考帧。Video compression techniques perform spatial (intra-picture) prediction and/or temporal (inter-picture) prediction to reduce or remove redundancy inherent in video sequences. For block-based video coding, a video slice (i.e., a video picture or portion of a video picture) may be partitioned into video blocks, which may also be referred to as treeblocks, coding tree blocks (CTBs), coding tree units (CTUs), coding units (CUs), and/or coding nodes. Video blocks in an intra-coded (I) slice of a picture are encoded using spatial prediction with respect to reference samples in neighboring blocks in the same picture. Video blocks in an inter-coded (P or B) slice of a picture may use spatial prediction with respect to reference samples in neighboring blocks in the same picture or temporal prediction with respect to reference samples in other reference pictures. Pictures may be referred to as frames, and reference pictures may be referred to as reference frames.
空间预测或时间预测导致译码用于块的预测性块。残余数据表示待译码的原始块与预测性块之间的像素差。根据指向形成预测性块的参考样本的块的运动向量和指示经译码块与预测性块之间的差异的残余数据来编码经帧间译码块。根据帧内译码模式和残余数据来编码经帧内译码块。为了进行进一步压缩,可将残余数据从像素域变换到变换域,从而产生残余变换系数,可然后量化残余变换系数。可扫描最初布置成二维阵列的经量化的变换系数,以便产生变换系数的一维向量,且可应用熵译码以实现甚至更多压缩。Spatial prediction or temporal prediction results in coding a predictive block for the block. Residual data represents the pixel differences between the original block to be coded and the predictive block. Inter-coded blocks are encoded based on a motion vector pointing to a block of reference samples forming the predictive block and residual data indicating the difference between the coded block and the predictive block. Intra-coded blocks are encoded based on an intra-coding mode and the residual data. For further compression, the residual data can be transformed from the pixel domain to the transform domain, thereby generating residual transform coefficients, which can then be quantized. The quantized transform coefficients, initially arranged in a two-dimensional array, can be scanned to generate a one-dimensional vector of transform coefficients, and entropy coding can be applied to achieve even more compression.
发明内容Summary of the Invention
一般来说,本发明描述与导出用于视频译码中的参考图像集有关的技术。举例来说,所述参考图像集可构成多个参考图像子集的组合。所述参考图像子集中的每一者可识别多个潜在参考图像,但少于全部的潜在参考图像。在本发明中所描述的实例技术中,一种视频译码器(编码器或解码器)可构造多个列表,每一列表包含所述潜在参考图像的一子集的识别符。从这些多个列表,所述视频译码器可构造所述多个参考图像子集,此情形导致所述视频译码器导出所述参考图像集。In general, this disclosure describes techniques related to deriving a reference picture set for use in video coding. For example, the reference picture set may constitute a combination of multiple reference picture subsets. Each of the reference picture subsets may identify multiple potential reference pictures, but fewer than all potential reference pictures. In the example techniques described in this disclosure, a video coder (encoder or decoder) may construct multiple lists, each list including identifiers of a subset of the potential reference pictures. From these multiple lists, the video coder may construct the multiple reference picture subsets, which results in the video coder deriving the reference picture set.
除与导出所述参考图像集有关的技术之外,本发明还描述简化的参考图像列表初始化技术。此参考图像列表初始化可去除对将所述参考图像重新排序的需要。举例来说,如果不需要参考图像列表修改,那么所述初始参考图像列表可形成所述最终参考图像列表,且可能不需要任何进一步重新排序。所述技术还可关于以如下方式构造所述参考图像列表:其中所述视频译码器重复地将参考图像添加到所述参考图像列表,直到所述参考图像列表的条目数等于条目的最大可允许数目为止。In addition to techniques related to deriving the reference picture set, this disclosure also describes simplified reference picture list initialization techniques. This reference picture list initialization can eliminate the need to reorder the reference pictures. For example, if reference picture list modification is not required, the initial reference picture list can form the final reference picture list, and no further reordering may be required. The techniques may also relate to constructing the reference picture list in a manner in which the video coder repeatedly adds reference pictures to the reference picture list until the number of entries in the reference picture list equals the maximum allowable number of entries.
在一些实例中,所述技术是关于参考图像列表修改。举例来说,所述视频译码器可通过以下操作来修改所述初始参考图像列表:参考所述参考图像子集中的一者或一者以上,且在所述构造所述初始参考图像列表之后将所述参考图像子集中的一个或一个以上图像包含在所述参考图像列表中。In some examples, the techniques relate to reference picture list modification. For example, the video coder may modify the initial reference picture list by referencing one or more pictures in the reference picture subset and including one or more pictures in the reference picture subset in the reference picture list after constructing the initial reference picture list.
在一些实例中,所述视频译码器可执行已解码图像缓冲器(DPB)管理。在这些实例中,如果已解码图像并不属于所述参考图像集,那么所述视频译码器可将所述已解码图像从所述DPB中去除。在一些实例中,所述视频译码器可在译码当前图像之前去除所述已解码图像。In some examples, the video coder may perform decoded picture buffer (DPB) management. In these examples, if a decoded picture does not belong to the reference picture set, the video coder may remove the decoded picture from the DPB. In some examples, the video coder may remove the decoded picture before decoding the current picture.
在一个实例中,本发明描述一种用于译码视频数据的方法,所述方法包含译码指示属于参考图像集的参考图像的信息。在此实例中,所述参考图像集识别可潜在地用于对当前图像进行帧间预测且可潜在地用于对在解码次序上在所述当前图像之后的一个或一个以上图像进行帧间预测的所述参考图像。所述方法还包含:构造多个参考图像子集,每一参考图像子集识别所述参考图像集的所述参考图像中的零者或多者;以及基于所述多个参考图像子集而译码所述当前图像。In one example, the disclosure describes a method for coding video data, the method comprising coding information indicating reference pictures belonging to a reference picture set. In this example, the reference picture set identifies the reference pictures that can potentially be used for inter-prediction of a current picture and can potentially be used for inter-prediction of one or more pictures that follow the current picture in decoding order. The method further comprises: constructing a plurality of reference picture subsets, each reference picture subset identifying zero or more of the reference pictures of the reference picture set; and coding the current picture based on the plurality of reference picture subsets.
在一个实例中,本发明描述一种用于译码视频数据的装置。所述装置包含视频译码器,所述视频译码器经配置以译码指示属于参考图像集的参考图像的信息。在此实例中,所述参考图像集识别可潜在地用于对当前图像进行帧间预测且可潜在地用于对在解码次序上在所述当前图像之后的一个或一个以上图像进行帧间预测的所述参考图像。所述视频译码器还经配置以:构造多个参考图像子集,每一参考图像子集识别所述参考图像集的所述参考图像中的零者或多者;以及基于所述多个参考图像子集而译码所述当前图像。In one example, the disclosure describes a device for decoding video data. The device includes a video coder configured to decode information indicating reference images belonging to a reference picture set. In this example, the reference picture set identifies the reference images that can potentially be used for inter-prediction of a current picture and can potentially be used for inter-prediction of one or more pictures that follow the current picture in decoding order. The video coder is further configured to: construct a plurality of reference picture subsets, each reference picture subset identifying zero or more of the reference pictures of the reference picture set; and decode the current picture based on the plurality of reference picture subsets.
在一个实例中,本发明描述一种具有存储在其上的指令的计算机可读存储媒体,所述指令在经执行时致使用于译码视频数据的装置的处理器译码指示属于参考图像集的参考图像的信息。在此实例中,所述参考图像集识别可潜在地用于对当前图像进行帧间预测且可潜在地用于对在解码次序上在所述当前图像之后的一个或一个以上图像进行帧间预测的所述参考图像。所述指令还致使所述处理器:构造多个参考图像子集,每一参考图像子集识别所述参考图像集的所述参考图像中的零者或多者;以及基于所述多个参考图像子集而译码所述当前图像。In one example, the present disclosure describes a computer-readable storage medium having instructions stored thereon that, when executed, cause a processor of a device for decoding video data to decode information indicating reference images belonging to a reference picture set. In this example, the reference picture set identifies the reference images that can potentially be used for inter-prediction of a current picture and can potentially be used for inter-prediction of one or more pictures that follow the current picture in decoding order. The instructions further cause the processor to: construct a plurality of reference picture subsets, each reference picture subset identifying zero or more of the reference pictures of the reference picture set; and decode the current picture based on the plurality of reference picture subsets.
在一个实例中,本发明描述一种用于译码视频数据的装置。所述装置包含用于译码指示属于参考图像集的参考图像的信息的装置。在此实例中,所述参考图像集识别可潜在地用于对当前图像进行帧间预测且可潜在地用于对在解码次序上在所述当前图像之后的一个或一个以上图像进行帧间预测的所述参考图像。所述装置还包含:用于构造多个参考图像子集的装置,每一参考图像子集识别所述参考图像集的所述参考图像中的零者或多者;以及用于基于所述多个参考图像子集而译码所述当前图像的装置。In one example, the disclosure describes a device for coding video data. The device includes means for coding information indicating reference pictures belonging to a reference picture set. In this example, the reference picture set identifies the reference pictures that can potentially be used for inter-prediction of a current picture and can potentially be used for inter-prediction of one or more pictures that follow the current picture in decoding order. The device also includes means for constructing a plurality of reference picture subsets, each reference picture subset identifying zero or more of the reference pictures of the reference picture set; and means for coding the current picture based on the plurality of reference picture subsets.
在一个实例中,本发明描述一种用于译码视频数据的方法,所述方法包含译码指示属于参考图像集的参考图像的信息。在此实例中,所述参考图像集识别可潜在地用于对当前图像进行帧间预测且可潜在地用于对在解码次序上在所述当前图像之后的一个或一个以上图像进行帧间预测的所述参考图像。所述方法还包含:构造多个参考图像子集,每一参考图像子集识别所述参考图像集的所述参考图像中的零者或多者;只要参考图像列表条目的数目不大于可允许参考列表条目的最大数目,便将以下各参考图像添加到参考图像列表中:来自所述多个参考图像子集中的第一子集的参考图像、后接续有来自所述多个参考图像子集中的第二子集的参考图像,及后接续有来自所述多个参考图像子集中的第三子集的参考图像;以及基于所述参考图像列表而译码所述当前图像。In one example, the disclosure describes a method for decoding video data, the method comprising decoding information indicating reference pictures belonging to a reference picture set. In this example, the reference picture set identifies the reference pictures that can potentially be used for inter-prediction of a current picture and can potentially be used for inter-prediction of one or more pictures that follow the current picture in decoding order. The method further comprises: constructing a plurality of reference picture subsets, each reference picture subset identifying zero or more of the reference pictures of the reference picture set; adding a reference picture from a first subset of the plurality of reference picture subsets followed by a reference picture from a second subset of the plurality of reference picture subsets, and then followed by a reference picture from a third subset of the plurality of reference picture subsets, as long as the number of reference picture list entries is not greater than a maximum number of allowable reference picture list entries; and decoding the current picture based on the reference picture list.
在一个实例中,本发明描述一种用于译码视频数据的装置。所述装置包含视频译码器,所述视频译码器经配置以译码指示属于参考图像集的参考图像的信息。在此实例中,所述参考图像集识别可潜在地用于对当前图像进行帧间预测且可潜在地用于对在解码次序上在所述当前图像之后的一个或一个以上图像进行帧间预测的所述参考图像。所述视频译码器还经配置以:构造多个参考图像子集,每一参考图像子集识别所述参考图像集的所述参考图像中的零者或多者;只要参考图像列表条目的数目不大于可允许参考列表条目的最大数目,便将以下各参考图像添加到参考图像列表中:来自所述多个参考图像子集中的第一子集的参考图像、后接续有来自所述多个参考图像子集中的第二子集的参考图像,及后接续有来自所述多个参考图像子集中的第三子集的参考图像;以及基于所述参考图像列表而译码所述当前图像。In one example, the disclosure describes a device for decoding video data. The device includes a video decoder configured to decode information indicating reference pictures belonging to a reference picture set. In this example, the reference picture set identifies the reference pictures that can potentially be used for inter-prediction of a current picture and can potentially be used for inter-prediction of one or more pictures that follow the current picture in decoding order. The video decoder is further configured to: construct a plurality of reference picture subsets, each reference picture subset identifying zero or more of the reference pictures of the reference picture set; add the following reference pictures to a reference picture list: a reference picture from a first subset of the plurality of reference picture subsets followed by a reference picture from a second subset of the plurality of reference picture subsets, and then followed by a reference picture from a third subset of the plurality of reference picture subsets, as long as the number of reference picture list entries is not greater than a maximum number of allowable reference picture list entries; and decode the current picture based on the reference picture list.
在一个实例中,本发明描述一种具有存储在其上的指令的计算机可读存储媒体,所述指令在经执行时致使用于译码视频数据的装置的处理器译码指示属于参考图像集的参考图像的信息。在此实例中,所述参考图像集识别可潜在地用于对当前图像进行帧间预测且可潜在地用于对在解码次序上在所述当前图像之后的一个或一个以上图像进行帧间预测的所述参考图像。所述指令还致使所述处理器:构造多个参考图像子集,每一参考图像子集识别所述参考图像集的所述参考图像中的零者或多者;只要参考图像列表条目的数目不大于可允许参考列表条目的最大数目,便将以下各参考图像添加到参考图像列表中:来自所述多个参考图像子集中的第一子集的参考图像、后接续有来自所述多个参考图像子集中的第二子集的参考图像,及后接续有来自所述多个参考图像子集中的第三子集的参考图像;以及基于所述参考图像列表而译码所述当前图像。In one example, the present disclosure describes a computer-readable storage medium having instructions stored thereon that, when executed, cause a processor of a device for decoding video data to decode information indicating reference pictures belonging to a reference picture set. In this example, the reference picture set identifies the reference pictures that can potentially be used for inter-prediction of a current picture and can potentially be used for inter-prediction of one or more pictures that follow the current picture in decoding order. The instructions further cause the processor to: construct a plurality of reference picture subsets, each reference picture subset identifying zero or more of the reference pictures of the reference picture set; add each of the following reference pictures to a reference picture list: a reference picture from a first subset of the plurality of reference picture subsets followed by a reference picture from a second subset of the plurality of reference picture subsets, and then followed by a reference picture from a third subset of the plurality of reference picture subsets, as long as the number of reference picture list entries is not greater than a maximum number of allowable reference picture list entries; and decode the current picture based on the reference picture list.
在一个实例中,本发明描述一种用于译码视频数据的装置。所述装置包含用于译码指示属于参考图像集的参考图像的信息的装置。在此实例中,所述参考图像集识别可潜在地用于对当前图像进行帧间预测且可潜在地用于对在解码次序上在所述当前图像之后的一个或一个以上图像进行帧间预测的所述参考图像。所述装置还包含:用于构造多个参考图像子集的装置,每一参考图像子集识别所述参考图像集的所述参考图像中的零者或多者;用于只要参考图像列表条目的数目不大于可允许参考列表条目的最大数目,便将以下各参考图像添加到参考图像列表中的装置:来自所述多个参考图像子集中的第一子集的参考图像、后接续有来自所述多个参考图像子集中的第二子集的参考图像,及后接续有来自所述多个参考图像子集中的第三子集的参考图像;以及用于基于所述参考图像列表而译码所述当前图像的装置。In one example, the disclosure describes a device for decoding video data. The device includes means for decoding information indicating reference pictures belonging to a reference picture set. In this example, the reference picture set identifies the reference pictures that can potentially be used for inter-prediction of a current picture and can potentially be used for inter-prediction of one or more pictures that follow the current picture in decoding order. The device also includes: means for constructing a plurality of reference picture subsets, each reference picture subset identifying zero or more of the reference pictures of the reference picture set; means for adding to a reference picture list a reference picture from a first subset of the plurality of reference picture subsets followed by a reference picture from a second subset of the plurality of reference picture subsets, and followed by a reference picture from a third subset of the plurality of reference picture subsets, as long as the number of reference picture list entries is not greater than a maximum number of allowable reference picture list entries; and means for decoding the current picture based on the reference picture list.
在一个实例中,本发明描述一种用于译码视频数据的方法,所述方法包含译码指示属于参考图像集的参考图像的信息。在此实例中,所述参考图像集识别可潜在地用于对当前图像进行帧间预测且可潜在地用于对在解码次序上在所述当前图像之后的一个或一个以上图像进行帧间预测的所述参考图像。所述方法还包含:构造多个参考图像子集,每一参考图像子集识别所述参考图像集的所述参考图像中的零者或多者;将来自所述多个参考图像子集的参考图像添加到参考图像列表中的第一条目集合中;确定所述参考图像列表中的条目的数目是否等于所述参考图像列表中的可允许条目的最大数目;当所述参考图像列表中的条目的所述数目不等于所述参考图像列表中的可允许条目的所述最大数目时,重复地将来自所述参考图像子集中的至少一者的一个或一个以上参考图像重新添加到所述参考图像列表中在所述第一条目集合之后的条目中,直到所述参考图像列表中的条目的所述数目等于所述参考图像列表中的可允许条目的所述最大数目为止;以及基于所述参考图像列表而译码所述当前图像。In one example, this disclosure describes a method for coding video data that includes coding information indicating a reference picture that belongs to a reference picture set. In this example, the reference picture set identifies the reference pictures that can potentially be used for inter-prediction of a current picture and can potentially be used for inter-prediction of one or more pictures that follow the current picture in decoding order. The method also includes: constructing multiple reference image subsets, each reference image subset identifying zero or more of the reference images of the reference image set; adding reference images from the multiple reference image subsets to a first set of entries in a reference image list; determining whether the number of entries in the reference image list is equal to the maximum number of allowable entries in the reference image list; when the number of entries in the reference image list is not equal to the maximum number of allowable entries in the reference image list, repeatedly re-adding one or more reference images from at least one of the reference image subsets to the entries in the reference image list after the first set of entries until the number of entries in the reference image list is equal to the maximum number of allowable entries in the reference image list; and decoding the current image based on the reference image list.
在一个实例中,本发明描述一种用于译码视频数据的装置。所述装置包含视频译码器,所述视频译码器经配置以译码指示属于参考图像集的参考图像的信息。在此实例中,所述参考图像集识别可潜在地用于对当前图像进行帧间预测且可潜在地用于对在解码次序上在所述当前图像之后的一个或一个以上图像进行帧间预测的所述参考图像。所述视频译码器还经配置以:构造多个参考图像子集,每一参考图像子集识别所述参考图像集的所述参考图像中的零者或多者;将来自所述多个参考图像子集的参考图像添加到参考图像列表中的第一条目集合中;确定所述参考图像列表中的条目的数目是否等于所述参考图像列表中的可允许条目的最大数目;当所述参考图像列表中的条目的所述数目不等于所述参考图像列表中的可允许条目的所述最大数目时,重复地将来自所述参考图像子集中的至少一者的一个或一个以上参考图像重新添加到所述参考图像列表中在所述第一条目集合之后的条目中,直到所述参考图像列表中的条目的所述数目等于所述参考图像列表中的可允许条目的所述最大数目为止;以及基于所述参考图像列表而译码所述当前图像。In one example, the disclosure describes a device for coding video data. The device includes a video coder configured to decode information indicating reference pictures belonging to a reference picture set. In this example, the reference picture set identifies the reference pictures that can potentially be used for inter-prediction of a current picture and can potentially be used for inter-prediction of one or more pictures that follow the current picture in decoding order. The video decoder is also configured to: construct multiple reference image subsets, each reference image subset identifying zero or more of the reference images of the reference image set; add reference images from the multiple reference image subsets to a first set of entries in a reference image list; determine whether the number of entries in the reference image list is equal to the maximum number of allowable entries in the reference image list; when the number of entries in the reference image list is not equal to the maximum number of allowable entries in the reference image list, repeatedly re-add one or more reference images from at least one of the reference image subsets to the entries in the reference image list that follow the first set of entries until the number of entries in the reference image list is equal to the maximum number of allowable entries in the reference image list; and decode the current image based on the reference image list.
在一个实例中,本发明描述一种具有存储在其上的指令的计算机可读存储媒体,所述指令在经执行时致使用于译码视频数据的装置的处理器译码指示属于参考图像集的参考图像的信息。在此实例中,所述参考图像集识别可潜在地用于对当前图像进行帧间预测且可潜在地用于对在解码次序上在所述当前图像之后的一个或一个以上图像进行帧间预测的所述参考图像。所述指令还致使所述处理器:构造多个参考图像子集,每一参考图像子集识别所述参考图像集的所述参考图像中的零者或多者;将来自所述多个参考图像子集的参考图像添加到参考图像列表中的第一条目集合中;确定所述参考图像列表中的条目的数目是否等于所述参考图像列表中的可允许条目的最大数目;当所述参考图像列表中的条目的所述数目不等于所述参考图像列表中的可允许条目的所述最大数目时,重复地将来自所述参考图像子集中的至少一者的一个或一个以上参考图像重新添加到所述参考图像列表中在所述第一条目集合之后的条目中,直到所述参考图像列表中的条目的所述数目等于所述参考图像列表中的可允许条目的所述最大数目为止;以及基于所述参考图像列表而译码所述当前图像。In one example, this disclosure describes a computer-readable storage medium having stored thereon instructions that, when executed, cause a processor of a device for decoding video data to decode information indicating reference pictures belonging to a reference picture set. In this example, the reference picture set identifies the reference pictures that can potentially be used for inter-predicting a current picture and can potentially be used for inter-predicting one or more pictures that follow the current picture in decoding order. The instructions also cause the processor to: construct multiple reference image subsets, each reference image subset identifying zero or more of the reference images of the reference image set; add reference images from the multiple reference image subsets to a first set of entries in a reference image list; determine whether the number of entries in the reference image list is equal to the maximum number of allowable entries in the reference image list; when the number of entries in the reference image list is not equal to the maximum number of allowable entries in the reference image list, repeatedly re-add one or more reference images from at least one of the reference image subsets to the entries in the reference image list that follow the first set of entries until the number of entries in the reference image list is equal to the maximum number of allowable entries in the reference image list; and decode the current image based on the reference image list.
在一个实例中,本发明描述一种用于译码视频数据的装置。所述装置包含用于译码指示属于参考图像集的参考图像的信息的装置。在此实例中,所述参考图像集识别可潜在地用于对当前图像进行帧间预测且可潜在地用于对在解码次序上在所述当前图像之后的一个或一个以上图像进行帧间预测的所述参考图像。所述装置还包含:用于构造多个参考图像子集的装置,每一参考图像子集识别所述参考图像集的所述参考图像中的零者或多者;用于将来自所述多个参考图像子集的参考图像添加到参考图像列表中的第一条目集合中的装置;用于确定所述参考图像列表中的条目的数目是否等于所述参考图像列表中的可允许条目的最大数目的装置;当所述参考图像列表中的条目的所述数目不等于所述参考图像列表中的可允许条目的所述最大数目时,用于重复地将来自所述参考图像子集中的至少一者的一个或一个以上参考图像重新添加到所述参考图像列表中在所述第一条目集合之后的条目中,直到所述参考图像列表中的条目的所述数目等于所述参考图像列表中的可允许条目的所述最大数目为止的装置;以及用于基于所述参考图像列表而译码所述当前图像的装置。In one example, the disclosure describes a device for coding video data. The device includes means for coding information indicating reference pictures belonging to a reference picture set. In this example, the reference picture set identifies the reference pictures that can potentially be used for inter-predicting a current picture and can potentially be used for inter-predicting one or more pictures that follow the current picture in decoding order. The device also includes: a device for constructing multiple reference image subsets, each reference image subset identifying zero or more of the reference images of the reference image set; a device for adding reference images from the multiple reference image subsets to a first set of entries in a reference image list; a device for determining whether the number of entries in the reference image list is equal to the maximum number of allowable entries in the reference image list; when the number of entries in the reference image list is not equal to the maximum number of allowable entries in the reference image list, a device for repeatedly re-adding one or more reference images from at least one of the reference image subsets to the entries in the reference image list that follow the first set of entries until the number of entries in the reference image list is equal to the maximum number of allowable entries in the reference image list; and a device for decoding the current image based on the reference image list.
在一个实例中,本发明描述一种用于译码视频数据的方法,所述方法包含译码指示属于参考图像集的参考图像的信息。在此实例中,所述参考图像集识别可潜在地用于对当前图像进行帧间预测且可潜在地用于对在解码次序上在所述当前图像之后的一个或一个以上图像进行帧间预测的所述参考图像。所述方法还包含:构造多个参考图像子集,每一参考图像子集识别所述参考图像集的所述参考图像中的零者或多者;基于所述所构造的参考图像子集而构造初始参考图像列表;及在需要参考图像修改时,识别所述所构造的参考图像子集中的至少一者中的参考图像;以及在所述初始参考图像列表的当前条目中添加所述所识别的参考图像以构造修改的参考图像列表。所述方法进一步包含基于所述修改的参考图像列表而译码所述当前图像。In one example, the disclosure describes a method for decoding video data, the method comprising decoding information indicating reference pictures belonging to a reference picture set. In this example, the reference picture set identifies the reference pictures that can potentially be used for inter-prediction of a current picture and can potentially be used for inter-prediction of one or more pictures that follow the current picture in decoding order. The method further comprises: constructing a plurality of reference picture subsets, each reference picture subset identifying zero or more of the reference pictures of the reference picture set; constructing an initial reference picture list based on the constructed reference picture subsets; and when reference picture modification is required, identifying a reference picture in at least one of the constructed reference picture subsets; and adding the identified reference picture to a current entry in the initial reference picture list to construct a modified reference picture list. The method further comprises decoding the current picture based on the modified reference picture list.
在一个实例中,本发明描述一种用于译码视频数据的装置。所述装置包含视频译码器,所述视频译码器经配置以译码指示属于参考图像集的参考图像的信息。在此实例中,所述参考图像集识别可潜在地用于对当前图像进行帧间预测且可潜在地用于对在解码次序上在所述当前图像之后的一个或一个以上图像进行帧间预测的所述参考图像。所述视频译码器还经配置以:构造多个参考图像子集,每一参考图像子集识别所述参考图像集的所述参考图像中的零者或多者;基于所述所构造的参考图像子集而构造初始参考图像列表;及在需要参考图像修改时,识别所述所构造的参考图像子集中的至少一者中的参考图像;以及在所述初始参考图像列表的当前条目中添加所述所识别的参考图像以构造修改的参考图像列表。所述视频译码器还经配置以基于所述修改的参考图像列表而译码所述当前图像。In one example, the disclosure describes a device for decoding video data. The device includes a video decoder configured to decode information indicating reference images belonging to a reference picture set. In this example, the reference picture set identifies the reference images that can potentially be used for inter-frame prediction of a current picture and can potentially be used for inter-frame prediction of one or more pictures that follow the current picture in decoding order. The video decoder is further configured to: construct a plurality of reference picture subsets, each reference picture subset identifying zero or more of the reference pictures of the reference picture set; construct an initial reference picture list based on the constructed reference picture subsets; and when reference picture modification is required, identify a reference picture in at least one of the constructed reference picture subsets; and add the identified reference picture to a current entry in the initial reference picture list to construct a modified reference picture list. The video decoder is also configured to decode the current picture based on the modified reference picture list.
在一个实例中,本发明描述一种具有存储在其上的指令的计算机可读存储媒体,所述指令在经执行时致使用于译码视频数据的装置的处理器译码指示属于参考图像集的参考图像的信息。在此实例中,所述参考图像集识别可潜在地用于对当前图像进行帧间预测且可潜在地用于对在解码次序上在所述当前图像之后的一个或一个以上图像进行帧间预测的所述参考图像。所述指令还致使所述处理器:构造多个参考图像子集,每一参考图像子集识别所述参考图像集的所述参考图像中的零者或多者;基于所述所构造的参考图像子集而构造初始参考图像列表;及在需要参考图像修改时,识别所述所构造的参考图像子集中的至少一者中的参考图像;以及在所述初始参考图像列表的当前条目中添加所述所识别的参考图像以构造修改的参考图像列表。所述指令还致使所述处理器基于所述修改的参考图像列表而译码所述当前图像。In one example, the present disclosure describes a computer-readable storage medium having instructions stored thereon that, when executed, cause a processor of a device for decoding video data to decode information indicating reference images belonging to a reference picture set. In this example, the reference picture set identifies the reference images that can potentially be used for inter-frame prediction of a current picture and can potentially be used for inter-frame prediction of one or more pictures that follow the current picture in decoding order. The instructions further cause the processor to: construct a plurality of reference picture subsets, each reference picture subset identifying zero or more of the reference pictures of the reference picture set; construct an initial reference picture list based on the constructed reference picture subsets; and, when reference picture modification is required, identify a reference picture in at least one of the constructed reference picture subsets; and add the identified reference picture to a current entry in the initial reference picture list to construct a modified reference picture list. The instructions further cause the processor to decode the current picture based on the modified reference picture list.
在一个实例中,本发明描述一种用于译码视频数据的装置。所述装置包含用于译码指示属于参考图像集的参考图像的信息的装置。在此实例中,所述参考图像集识别可潜在地用于对当前图像进行帧间预测且可潜在地用于对在解码次序上在所述当前图像之后的一个或一个以上图像进行帧间预测的所述参考图像。所述装置还包含:用于构造多个参考图像子集的装置,每一参考图像子集识别所述参考图像集的所述参考图像中的零者或多者;用于基于所述所构造的参考图像子集而构造初始参考图像列表的装置;及在需要参考图像修改时,用于识别所述所构造的参考图像子集中的至少一者中的参考图像的装置;以及用于在所述初始参考图像列表的当前条目中添加所述所识别的参考图像以构造修改的参考图像列表的装置。所述装置还包含用于基于所述修改的参考图像列表而译码所述当前图像的装置。In one example, the disclosure describes a device for decoding video data. The device includes means for decoding information indicating reference images belonging to a reference image set. In this example, the reference image set identifies the reference images that can potentially be used for inter-frame prediction of a current image and can potentially be used for inter-frame prediction of one or more images that follow the current image in decoding order. The device also includes: means for constructing a plurality of reference image subsets, each reference image subset identifying zero or more of the reference images of the reference image set; means for constructing an initial reference image list based on the constructed reference image subsets; and means for identifying a reference image in at least one of the constructed reference image subsets when reference image modification is required; and means for adding the identified reference image to a current entry in the initial reference image list to construct a modified reference image list. The device also includes means for decoding the current image based on the modified reference image list.
在一个实例中,本发明描述一种用于译码视频数据的方法,所述方法包含译码指示属于参考图像集的参考图像的信息。在此实例中,所述参考图像集识别可潜在地用于对当前图像进行帧间预测且可潜在地用于对在解码次序上在所述当前图像之后的一个或一个以上图像进行帧间预测的所述参考图像。所述方法包含:基于所述经译码信息而导出所述参考图像集;确定存储在已解码图像缓冲器(DPB)中的已解码图像是否不需要输出及是否在所述参考图像集中未加以识别;当所述已解码图像不需要输出且在所述参考图像集中未加以识别时,将所述已解码图像从所述DPB中去除;以及在所述去除所述已解码图像之后,译码所述当前图像。In one example, the disclosure describes a method for coding video data, the method comprising coding information indicating reference pictures belonging to a reference picture set. In this example, the reference picture set identifies the reference pictures that can potentially be used for inter-prediction of a current picture and can potentially be used for inter-prediction of one or more pictures that follow the current picture in decoding order. The method comprises: deriving the reference picture set based on the coded information; determining whether a decoded picture stored in a decoded picture buffer (DPB) is not required for output and is not identified in the reference picture set; when the decoded picture is not required for output and is not identified in the reference picture set, removing the decoded picture from the DPB; and, after removing the decoded picture, decoding the current picture.
在一个实例中,本发明描述一种用于译码视频数据的装置。所述装置包含视频译码器,所述视频译码器经配置以译码指示属于参考图像集的参考图像的信息。在此实例中,所述参考图像集识别可潜在地用于对当前图像进行帧间预测且可潜在地用于对在解码次序上在所述当前图像之后的一个或一个以上图像进行帧间预测的所述参考图像。所述视频译码器还经配置以:基于所述经译码信息而导出所述参考图像集;确定存储在已解码图像缓冲器(DPB)中的已解码图像是否不需要输出及是否在所述参考图像集中未加以识别;当所述已解码图像不需要输出且在所述参考图像集中未加以识别时,将所述已解码图像从所述DPB中去除;以及在所述去除所述已解码图像之后,译码所述当前图像。In one example, the disclosure describes a device for decoding video data. The device includes a video decoder configured to decode information indicating reference images belonging to a reference picture set. In this example, the reference picture set identifies the reference images that can potentially be used for inter-frame prediction of a current picture and can potentially be used for inter-frame prediction of one or more pictures that follow the current picture in decoding order. The video decoder is further configured to: derive the reference picture set based on the decoded information; determine whether a decoded picture stored in a decoded picture buffer (DPB) is not required for output and is not identified in the reference picture set; when the decoded picture is not required for output and is not identified in the reference picture set, remove the decoded picture from the DPB; and, after removing the decoded picture, decode the current picture.
在一个实例中,本发明描述一种具有存储在其上的指令的计算机可读存储媒体,所述指令在经执行时致使用于译码视频数据的装置的处理器译码指示属于参考图像集的参考图像的信息。在此实例中,所述参考图像集识别可潜在地用于对当前图像进行帧间预测且可潜在地用于对在解码次序上在所述当前图像之后的一个或一个以上图像进行帧间预测的所述参考图像。所述指令还致使所述处理器:基于所述经译码信息而导出所述参考图像集;确定存储在已解码图像缓冲器(DPB)中的已解码图像是否不需要输出及是否在所述参考图像集中未加以识别;当所述已解码图像不需要输出且在所述参考图像集中未加以识别时,将所述已解码图像从所述DPB中去除;以及在所述去除所述已解码图像之后,译码所述当前图像。In one example, the present disclosure describes a computer-readable storage medium having instructions stored thereon that, when executed, cause a processor of a device for decoding video data to decode information indicating reference images belonging to a reference picture set. In this example, the reference picture set identifies reference images that can potentially be used for inter-frame prediction of a current picture and can potentially be used for inter-frame prediction of one or more pictures that follow the current picture in decoding order. The instructions further cause the processor to: derive the reference picture set based on the decoded information; determine whether a decoded picture stored in a decoded picture buffer (DPB) is not required for output and is not identified in the reference picture set; if the decoded picture is not required for output and is not identified in the reference picture set, remove the decoded picture from the DPB; and, after removing the decoded picture, decode the current picture.
在一个实例中,本发明描述一种用于译码视频数据的装置。所述装置包含用于译码指示属于参考图像集的参考图像的信息的装置。在此实例中,所述参考图像集识别可潜在地用于对当前图像进行帧间预测且可潜在地用于对在解码次序上在所述当前图像之后的一个或一个以上图像进行帧间预测的所述参考图像。所述装置还包含:用于基于所述经译码信息而导出所述参考图像集的装置;用于确定存储在已解码图像缓冲器(DPB)中的已解码图像是否不需要输出及是否在所述参考图像集中未加以识别的装置;当所述已解码图像不需要输出且在所述参考图像集中未加以识别时,用于将所述已解码图像从所述DPB中去除的装置;以及在所述去除所述已解码图像之后,用于译码所述当前图像的装置。In one example, the disclosure describes a device for decoding video data. The device includes means for decoding information indicating reference images belonging to a reference picture set. In this example, the reference picture set identifies the reference images that can potentially be used for inter-frame prediction of a current picture and can potentially be used for inter-frame prediction of one or more pictures that follow the current picture in decoding order. The device also includes: means for deriving the reference picture set based on the decoded information; means for determining whether a decoded picture stored in a decoded picture buffer (DPB) does not need to be output and is not identified in the reference picture set; means for removing the decoded picture from the DPB when the decoded picture does not need to be output and is not identified in the reference picture set; and means for decoding the current picture after removing the decoded picture.
在一个实例中,本发明描述一种译码视频数据的方法,所述方法包含译码指示在参数集中识别的候选长期参考图像的语法元素。在此实例中,所述候选长期参考图像中的一者或一者以上属于当前图像的参考图像集。而且,在此实例中,所述参考图像集识别可潜在地用于对所述当前图像进行帧间预测且可潜在地用于对在解码次序上在所述当前图像之后的一个或一个以上图像进行帧间预测的参考图像。所述方法还包含:译码指示在所述参数集中识别的哪些候选长期参考图像属于所述当前图像的所述参考图像集的语法元素;以及基于哪些候选长期参考图像属于所述当前图像的所述参考图像集的所述指示而构造多个参考图像子集中的至少一者。在此实例中,所述多个参考图像子集形成所述参考图像集。In one example, the disclosure describes a method of coding video data, the method comprising coding a syntax element indicating candidate long-term reference pictures identified in a parameter set. In this example, one or more of the candidate long-term reference pictures belong to a reference picture set for a current picture. Moreover, in this example, the reference picture set identifies reference pictures that can potentially be used for inter-prediction of the current picture and can potentially be used for inter-prediction of one or more pictures that follow the current picture in decoding order. The method further comprises: coding a syntax element indicating which candidate long-term reference pictures identified in the parameter set belong to the reference picture set for the current picture; and constructing at least one of a plurality of reference picture subsets based on the indication of which candidate long-term reference pictures belong to the reference picture set for the current picture. In this example, the plurality of reference picture subsets form the reference picture set.
在一个实例中,本发明描述一种用于译码视频数据的装置。所述装置包含视频译码器,所述视频译码器经配置以译码指示在参数集中识别的候选长期参考图像的语法元素。在此实例中,所述候选长期参考图像中的一者或一者以上属于当前图像的参考图像集。而且,在此实例中,所述参考图像集识别可潜在地用于对所述当前图像进行帧间预测且可潜在地用于对在解码次序上在所述当前图像之后的一个或一个以上图像进行帧间预测的参考图像。所述视频译码器还经配置以:译码指示在所述参数集中识别的哪些候选长期参考图像属于所述当前图像的所述参考图像集的语法元素;以及基于哪些候选长期参考图像属于所述当前图像的所述参考图像集的所述指示而构造多个参考图像子集中的至少一者。在此实例中,所述多个参考图像子集形成所述参考图像集。In one example, the disclosure describes a device for decoding video data. The device includes a video decoder configured to decode a syntax element indicating candidate long-term reference pictures identified in a parameter set. In this example, one or more of the candidate long-term reference pictures belong to a reference picture set of a current picture. Moreover, in this example, the reference picture set identifies reference pictures that can potentially be used for inter-frame prediction of the current picture and can potentially be used for inter-frame prediction of one or more pictures that follow the current picture in decoding order. The video decoder is further configured to: decode a syntax element indicating which candidate long-term reference pictures identified in the parameter set belong to the reference picture set of the current picture; and construct at least one of a plurality of reference picture subsets based on the indication of which candidate long-term reference pictures belong to the reference picture set of the current picture. In this example, the plurality of reference picture subsets form the reference picture set.
在一个实例中,本发明描述一种具有存储在其上的指令的计算机可读存储媒体,所述指令在经执行时致使用于译码视频数据的装置的处理器译码指示在参数集中识别的候选长期参考图像的语法元素。在此实例中,所述候选长期参考图像中的一者或一者以上属于当前图像的参考图像集。而且,在此实例中,所述参考图像集识别可潜在地用于对所述当前图像进行帧间预测且可潜在地用于对在解码次序上在所述当前图像之后的一个或一个以上图像进行帧间预测的参考图像。所述指令还致使所述处理器:译码指示在所述参数集中识别的哪些候选长期参考图像属于所述当前图像的所述参考图像集的语法元素;以及基于哪些候选长期参考图像属于所述当前图像的所述参考图像集的所述指示而构造多个参考图像子集中的至少一者。在此实例中,所述多个参考图像子集形成所述参考图像集。In one example, the disclosure describes a computer-readable storage medium having instructions stored thereon that, when executed, cause a processor of a device for decoding video data to decode a syntax element indicating candidate long-term reference pictures identified in a parameter set. In this example, one or more of the candidate long-term reference pictures belong to a reference picture set for a current picture. Furthermore, in this example, the reference picture set identifies reference pictures that can potentially be used for inter-prediction of the current picture and can potentially be used for inter-prediction of one or more pictures that follow the current picture in decoding order. The instructions further cause the processor to: decode a syntax element indicating which candidate long-term reference pictures identified in the parameter set belong to the reference picture set for the current picture; and construct at least one of a plurality of reference picture subsets based on the indication of which candidate long-term reference pictures belong to the reference picture set for the current picture. In this example, the plurality of reference picture subsets form the reference picture set.
在一个实例中,本发明描述一种用于译码视频数据的装置。所述装置包含用于译码指示在参数集中识别的候选长期参考图像的语法元素的装置。在此实例中,所述候选长期参考图像中的一者或一者以上属于当前图像的参考图像集。而且,在此实例中,所述参考图像集识别可潜在地用于对所述当前图像进行帧间预测且可潜在地用于对在解码次序上在所述当前图像之后的一个或一个以上图像进行帧间预测的参考图像。所述装置还包含:用于译码指示在所述参数集中识别的哪些候选长期参考图像属于所述当前图像的所述参考图像集的语法元素的装置;以及用于基于哪些候选长期参考图像属于所述当前图像的所述参考图像集的所述指示而构造多个参考图像子集中的至少一者的装置。在此实例中,所述多个参考图像子集形成所述参考图像集。In one example, the disclosure describes a device for decoding video data. The device includes means for decoding a syntax element indicating candidate long-term reference pictures identified in a parameter set. In this example, one or more of the candidate long-term reference pictures belong to a reference picture set of a current picture. Moreover, in this example, the reference picture set identifies reference pictures that can potentially be used for inter-frame prediction of the current picture and can potentially be used for inter-frame prediction of one or more pictures that follow the current picture in decoding order. The device also includes: means for decoding a syntax element indicating which candidate long-term reference pictures identified in the parameter set belong to the reference picture set of the current picture; and means for constructing at least one of a plurality of reference picture subsets based on the indication of which candidate long-term reference pictures belong to the reference picture set of the current picture. In this example, the plurality of reference picture subsets form the reference picture set.
一个或一个以上实例的细节阐述于随附图式及下文的描述中。其它特征、目标及优点将从所述描述和所述图式以及从权利要求书而显而易见。The details of one or more examples are set forth in the accompanying drawings and the description below. Other features, objects, and advantages will be apparent from the description and drawings, and from the claims.
附图说明BRIEF DESCRIPTION OF THE DRAWINGS
图1为说明可利用本发明中所描述的技术的实例视频编码及解码系统的框图。1 is a block diagram illustrating an example video encoding and decoding system that may utilize the techniques described in this disclosure.
图2为说明包含经编码及传输的多个图像的实例视频序列的概念图。2 is a conceptual diagram illustrating an example video sequence including multiple pictures that are encoded and transmitted.
图3为说明可实施本发明中所描述的技术的实例视频编码器的框图。3 is a block diagram illustrating an example video encoder that may implement the techniques described in this disclosure.
图4为说明可实施本发明中所描述的技术的实例视频解码器的框图。4 is a block diagram illustrating an example video decoder that may implement the techniques described in this disclosure.
图5为说明导出参考图像集的实例操作的流程图。5 is a flow diagram illustrating an example operation of deriving a reference image set.
图6为说明构造参考图像列表的实例操作的流程图。6 is a flow diagram illustrating an example operation of constructing a reference picture list.
图7为说明构造参考图像列表的另一实例操作的流程图。7 is a flow diagram illustrating another example operation of constructing a reference picture list.
图8为说明修改初始参考图像列表的实例操作的流程图。8 is a flow diagram illustrating an example operation of modifying an initial reference picture list.
图9为说明已解码图像去除的实例操作的流程图。9 is a flow diagram illustrating an example operation of decoded image removal.
图10为说明确定哪些长期参考图像属于当前图像的参考图像集的实例操作的流程图。10 is a flow diagram illustrating an example operation of determining which long-term reference pictures belong to a reference picture set for a current picture.
具体实施方式DETAILED DESCRIPTION
本发明的技术一般来说涉及用于进行帧间预测的参考图像的管理。举例来说,视频译码器(例如,视频编码器或视频解码器)包含已解码图像缓冲器(DPB)。所述DPB存储已解码图像,包含参考图像。参考图像为可潜在地用于对图像进行帧间预测的图像。换句话说,视频译码器可在译码(编码或解码)图像期间,基于存储在DPB中的一个或一个以上参考图像而预测所述图像。The techniques of this disclosure generally relate to the management of reference pictures used for inter-frame prediction. For example, a video coder (e.g., a video encoder or decoder) includes a decoded picture buffer (DPB). The DPB stores decoded pictures, including reference pictures. Reference pictures are pictures that can potentially be used for inter-frame prediction of a picture. In other words, during the decoding (encoding or decoding) of a picture, the video coder can predict the picture based on one or more reference pictures stored in the DPB.
为了有效率地利用DPB,可指定DPB管理过程,例如DPB中的已解码图像的存储过程、参考图像的标记过程、来自DPB的已解码图像的输出以及去除过程,等等。一般来说,在一些当前及开发中的视频译码标准中,DPB管理可包含以下方面中的一者或一者以上:图像识别及参考图像识别、参考图像列表构造、参考图像标记、来自DPB的图像输出、到DPB中的图像插入,以及来自DPB的图像去除。In order to efficiently utilize the DPB, a DPB management process may be specified, such as a process for storing decoded pictures in the DPB, a process for marking reference pictures, a process for outputting and removing decoded pictures from the DPB, etc. Generally speaking, in some current and developing video coding standards, DPB management may include one or more of the following aspects: picture identification and reference picture identification, reference picture list construction, reference picture marking, picture output from the DPB, picture insertion into the DPB, and picture removal from the DPB.
为了辅助理解,下文提供关于如何可根据一些视频译码标准发生参考图像标记及参考图像列表构造的简要描述。本发明中所描述的技术中的一些技术解决可能存在于参考图像标记、参考图像列表构造及DPB图像去除及输出中的问题,以便改善对DPB的利用效率。To aid understanding, a brief description of how reference picture marking and reference picture list construction may occur according to some video coding standards is provided below. Some of the techniques described in this disclosure address issues that may exist in reference picture marking, reference picture list construction, and DPB picture removal and output in order to improve the efficiency of utilizing the DPB.
对于参考图像标记,在有效序列参数集中指示用于进行帧间预测的参考图像的最大数目(被称作M(num_ref_frames))。当参考图像经解码时,将所述参考图像标记为“用于参考”。如果参考图像的解码造成将M个以上图像标记为“用于参考”,那么必须将至少一个图像标记为“不用于参考”。如果标记为“不用于参考”的图像还不需要输出,那么DPB去除过程将标记为“不用于参考”的图像从DPB中去除。For reference picture marking, the maximum number of reference pictures used for inter-frame prediction (called M (num_ref_frames)) is indicated in the active sequence parameter set. When a reference picture is decoded, it is marked as "used for reference". If the decoding of the reference picture results in more than M pictures being marked as "used for reference", then at least one picture must be marked as "not used for reference". If the pictures marked as "not used for reference" are not yet needed for output, the DPB removal process removes the pictures marked as "not used for reference" from the DPB.
当图像经解码时,所述图像可能为非参考图像或参考图像。参考图像可能为长期参考图像或短期参考图像,且当参考图像经标记为“不用于参考”时,所述参考图像可能变得不再需要供参考。在一些视频译码标准中,可能存在改变参考图像的状态的参考图像标记操作。When a picture is decoded, it may be a non-reference picture or a reference picture. A reference picture may be a long-term reference picture or a short-term reference picture, and when a reference picture is marked as "unused for reference", it may no longer be needed for reference. In some video coding standards, there may be a reference picture marking operation that changes the status of a reference picture.
可能存在用于参考图像标记的两种类型的操作:滑动窗和自适应存储器控制。用于参考图像标记的操作模式可基于图像而选择;而,滑动窗操作可通过固定数目个短期参考图像以先进先出队列的形式运作。换句话说,可以隐含式方式首先去除具有最早解码时间的短期参考图像(标记为不用于参考的图像)。Two types of operations are possible for reference picture marking: sliding window and adaptive memory control. The operating mode for reference picture marking can be selected on a picture-by-picture basis; however, the sliding window operation operates in a first-in, first-out queue with a fixed number of short-term reference pictures. In other words, the short-term reference picture with the oldest decoding time (the picture marked as unused for reference) can be implicitly removed first.
然而,自适应存储器控制显式地去除短期或长期图像。自适应存储器控制还使得能够切换短期和长期图像的状态等。举例来说,在自适应存储器控制中,视频编码器可用信号发出指定应将哪些图像标记为用于参考的语法元素。视频解码器可接收语法元素且如所指定标记图像。在滑动窗中,视频编码器可能不需要用信号发出应将哪些图像标记为用于参考。而是,视频解码器可基于哪些图像在滑动窗内而隐含式地(即,不接收语法元素)确定应将哪些图像标记为用于参考。However, adaptive memory control explicitly removes short-term or long-term pictures. Adaptive memory control also enables switching the status of short-term and long-term pictures, among other things. For example, in adaptive memory control, a video encoder may signal a syntax element that specifies which pictures should be marked for reference. A video decoder may receive the syntax element and mark the pictures as specified. In a sliding window, the video encoder may not need to signal which pictures should be marked for reference. Instead, the video decoder may implicitly (i.e., without receiving the syntax element) determine which pictures should be marked for reference based on which pictures are within the sliding window.
视频译码器还可将构造指示哪些参考图像可用于帧间预测目的的参考图像列表作为任务。这些参考图像列表中的两者分别被称作列表0和列表1。视频译码器首先使用默认构造技术来构造列表0和列表1(例如,用于构造列表0和列表1的预先配置的构造方案)。视情况,在构造初始列表0和列表1之后,视频解码器可解码语法元素,当存在语法元素时,语法元素可指导视频解码器修改初始列表0和列表1。The video coder may also be tasked with constructing reference picture lists that indicate which reference pictures may be used for inter-frame prediction purposes. Two of these reference picture lists are referred to as List 0 and List 1, respectively. The video coder first constructs List 0 and List 1 using a default construction technique (e.g., a pre-configured construction scheme for constructing List 0 and List 1). Optionally, after constructing the initial List 0 and List 1, the video decoder may decode syntax elements that, when present, may direct the video decoder to modify the initial List 0 and List 1.
视频编码器可用信号发出指示DPB中的参考图像的识别符的语法元素,且视频编码器还可在列表0、列表1或列表0与列表1两者内用信号发出包含索引的语法元素,所述索引指示哪一参考图像或哪些参考图像将用以解码当前图像的经译码块。反过来,视频解码器使用所接收识别符识别列表0、列表1或列表0与列表1两者中所列出的一个或一个以上参考图像的一个或一个以上索引值。根据所述一个或一个以上参考图像的(多个)索引值以及(多个)识别符,视频解码器从DPB中检索所述一个或一个以上参考图像或所述一个或一个以上参考图像的部分,且基于所述一个或一个以上所检索的参考图像和一个或一个以上运动向量而解码当前图像的经译码块,所述一个或一个以上运动向量识别所述一个或一个以上参考图像内用于解码经译码块的块。The video encoder may signal a syntax element indicating an identifier of a reference picture in the DPB. The video encoder may also signal a syntax element containing an index within List 0, List 1, or both List 0 and List 1, indicating which reference picture or pictures are to be used to decode a coded block of a current picture. In turn, the video decoder uses the received identifier to identify one or more index values of one or more reference pictures listed in List 0, List 1, or both List 0 and List 1. Based on the index value(s) and identifier(s) of the one or more reference pictures, the video decoder retrieves the one or more reference pictures, or portions of the one or more reference pictures, from the DPB and decodes a coded block of the current picture based on the one or more retrieved reference pictures and one or more motion vectors identifying blocks within the one or more reference pictures used to decode the coded block.
举例来说,用于经双向预测图像的第一参考图像列表或第二参考图像列表的参考图像列表构造包含两个步骤:参考图像列表初始化及参考图像列表修改(还被称作参考图像列表重新排序)。参考图像列表初始化可为隐含式机制,其基于图像序列号次序(PictureOrder Count,POC,与图像的显示次序对准)值将参考图像存储器(还被称为已解码图像缓冲器)中的参考图像置于列表中。参考图像列表重新排序机制可将在参考图像列表初始化期间置于列表中的图像的位置修改成任何新位置,或甚至在图像并不属于初始化的列表的情况下,将参考图像存储器中的任何参考图像置于任何位置中。在参考图像列表重新排序(修改)之后,一些图像可能置于列表中非常远的位置中。然而,如果图像的位置超过列表的有效参考图像的数目,那么所述图像将不被视为最终参考图像列表的条目。可在每一列表的切片标头中用信号发出列表的有效参考图像的数目。For example, reference picture list construction for the first or second reference picture lists of bidirectionally predicted pictures involves two steps: reference picture list initialization and reference picture list modification (also referred to as reference picture list reordering). Reference picture list initialization can be an implicit mechanism that places reference pictures in a reference picture memory (also referred to as a decoded picture buffer) into a list based on their Picture Order Count (POC) values (aligned with the display order of the pictures). The reference picture list reordering mechanism can modify the positions of pictures placed in the list during reference picture list initialization to any new position, or even place any reference picture in the reference picture memory at any position if the picture did not belong to the initialized list. After reference picture list reordering (modification), some pictures may be placed very far into the list. However, if a picture's position exceeds the number of valid reference pictures in the list, it will not be considered an entry in the final reference picture list. The number of valid reference pictures for a list can be signaled in the slice header of each list.
本发明中所描述的技术可适用于各种视频译码标准。视频译码标准的实例包含ITU-T H.261、ISO/IEC MPEG-1视频、ITU-T H.262或ISO/IEC MPEG-2视频、ITU-T H.263、ISO/IEC MPEG-4视频以及ITU-T H.264(还被称为ISO/IEC MPEG-4AVC),包含其可调式视频译码(SVC)和多视角视频译码(MVC)扩展。另外,存在新的视频译码标准,即,高效率视频译码(HEVC),其是由ITU-T视频译码专家组(VCEG)和ISO/IEC动画专家组(MPEG)的视频译码联合协作小组(JCT-VC)开发。The techniques described in this disclosure may be applicable to various video coding standards. Examples of video coding standards include ITU-T H.261, ISO/IEC MPEG-1 Video, ITU-T H.262 or ISO/IEC MPEG-2 Video, ITU-T H.263, ISO/IEC MPEG-4 Video, and ITU-T H.264 (also known as ISO/IEC MPEG-4 AVC), including its Scalable Video Coding (SVC) and Multi-view Video Coding (MVC) extensions. Additionally, there is a new video coding standard, High Efficiency Video Coding (HEVC), being developed by the Joint Collaboration Team on Video Coding (JCT-VC) of the ITU-T Video Coding Experts Group (VCEG) and the ISO/IEC Motion Picture Experts Group (MPEG).
仅为了说明的目的,在HEVC标准的上下文中描述技术。从2012年7月20日时起,可从http://phenix.int-evry.fr/jct/doc_end_user/documents/10_Stockholm/wg11/JCTVC-J1003-v8.zip得到HEVC的最新工作草案(WD)(且在下文中被称作HEVC WD8)。For illustrative purposes only, the techniques are described in the context of the HEVC standard. As of 20 July 2012, the latest working draft (WD) of HEVC is available from http://phenix.int-evry.fr/jct/doc_end_user/documents/10_Stockholm/wg11/JCTVC-J1003-v8.zip (and referred to hereinafter as HEVC WD8).
如上文所描述,本发明中所描述的技术可解决可能存在于用于已解码图像缓冲器(DPB)管理的现有解决方案中的问题。作为一个实例,在本发明中所描述的一些实例技术中,可能不需要作为“不用于参考”的参考图像的标记。举例来说,本发明中所描述的技术可解决以下各问题:与无法良好地适合时间可调性的DPB管理技术有关的问题、与长期参考图像的发信号耗用有关的问题、与参考图像列表初始化及修改的效率和复杂性有关的问题。本发明中所描述的技术还可解决以下各问题:与参考图像列表初始化期间的参考图像列表中的非完成条目的“无参考图像”的标记有关的问题;与已解码图像输出、到DPB中的插入及来自DPB的去除有关的问题;以及与图像序列号(POC)值的可能值有关的问题。As described above, the techniques described in this disclosure may address problems that may exist in existing solutions for decoded picture buffer (DPB) management. As an example, in some example techniques described in this disclosure, marking of reference pictures as "not used for reference" may not be required. For example, the techniques described in this disclosure may address the following issues: issues related to DPB management techniques that are not well suited for temporal scalability, issues related to signaling overhead for long-term reference pictures, and issues related to efficiency and complexity of reference picture list initialization and modification. The techniques described in this disclosure may also address the following issues: issues related to marking of "no reference picture" for non-completed entries in a reference picture list during reference picture list initialization; issues related to decoded picture output, insertion into the DPB, and removal from the DPB; and issues related to possible values for picture sequence number (POC) values.
根据本发明中所描述的技术,从参考图像集构造参考图像列表。参考图像集经定义为与图像相关联的参考图像集合,其由在解码次序上在相关联的图像之前的所有参考图像组成,其可用于对相关联的图像中的块或对在解码次序上在相关联的图像之后的任何图像进行帧间预测,例如,直到下一瞬时解码再新(instantaneous decoding refresh,IDR)图像或断链接入(broken link access,BLA)图像为止。换句话说,参考图像集中的参考图像可能需要以下特性:(1)其在解码次序上全部在当前图像之前,以及(2)其可用于对当前图像进行帧间预测及/或对在解码次序上在当前图像之后的任何图像进行帧间预测,且在一些实例中,直到下一IDR图像或BLA图像为止。可能存在关于参考图像集的其它替代定义,下文提供所述其它替代定义。According to the techniques described in this disclosure, a reference picture list is constructed from a reference picture set. A reference picture set is defined as a set of reference pictures associated with a picture, consisting of all reference pictures that precede the associated picture in decoding order, which can be used for inter-prediction of blocks in the associated picture or for any pictures that follow the associated picture in decoding order, e.g., until the next instantaneous decoding refresh (IDR) picture or broken link access (BLA) picture. In other words, the reference pictures in the reference picture set may require the following properties: (1) they all precede the current picture in decoding order, and (2) they can be used for inter-prediction of the current picture and/or for inter-prediction of any pictures that follow the current picture in decoding order, and in some examples, until the next IDR picture or BLA picture. Other alternative definitions of reference picture sets may exist, which are provided below.
在本发明中所描述的实例技术中,视频译码器可导出参考图像集,且在此导出之后,视频译码器可构造参考图像列表。举例来说,仅参考图像集中的参考图像可为用以构造参考图像列表的候选参考图像。In the example techniques described in this disclosure, a video coder may derive a reference picture set, and after such derivation, the video coder may construct a reference picture list. For example, only reference pictures in the reference picture set may be candidate reference pictures for constructing the reference picture list.
为了构造参考图像集,视频译码器可构造多个参考图像子集。参考图像子集的组合可一起形成参考图像集。举例来说,视频编码器可在经译码位流中显式地用信号发出允许视频解码器确定用于包含在参考图像集中的参考图像的识别符的值。举例来说,参考图像的识别符可为图像序列号。每一图像与一个图像序列号(被称作PicOrderCnt)相关联。PicOrderCnt指示相对于解码次序上的先前IDR图像的对应图像的输出次序或显示次序,且,在一些其它替代例中,指示相对于相同经译码视频序列中的其它图像的输出次序位置的相关联的图像的输出次序位置。To construct a reference picture set, a video coder may construct multiple reference picture subsets. A combination of reference picture subsets may together form a reference picture set. For example, a video encoder may explicitly signal in the coded bitstream a value for an identifier that allows a video decoder to determine the reference pictures included in the reference picture set. For example, the identifier of a reference picture may be a picture sequence number. Each picture is associated with a picture sequence number (referred to as PicOrderCnt). PicOrderCnt indicates the output order or display order of the corresponding picture relative to the previous IDR picture in decoding order, and, in some other alternatives, indicates the output order position of the associated picture relative to the output order position of other pictures in the same coded video sequence.
PicOrderCnt可被称作图像序列号(POC)值。POC值可指示图像的输出或显示次序,且可用以识别图像。举例来说,在经译码视频序列内,具有较小POC值的图像比具有较大POC值的图像早输出或显示。PicOrderCnt may be referred to as a picture order code (POC) value. The POC value may indicate the output or display order of pictures and may be used to identify pictures. For example, within a coded video sequence, pictures with smaller POC values are output or displayed earlier than pictures with larger POC values.
视频解码器可确定用于参考图像的识别符,且从这些识别符构造所述多个参考图像子集。根据这些参考图像子集,视频解码器可导出参考图像集,如下文更详细描述。在一些实例中,参考图像子集中的每一者包含不同参考图像,这是因为所述参考图像子集中的参考图像不存在重叠。以此方式,参考图像中的每一者可能仅在参考图像子集中的一者中,且不在任何其它参考图像子集中。然而,本发明的方面不应被视为受此限制。The video decoder may determine identifiers for the reference images and construct the plurality of reference image subsets from these identifiers. Based on these reference image subsets, the video decoder may derive reference image sets, as described in more detail below. In some examples, each of the reference image subsets includes a different reference image because the reference images in the reference image subsets do not overlap. In this manner, each of the reference images may be present in only one of the reference image subsets and not in any other reference image subsets. However, aspects of this disclosure should not be considered so limited.
在确定参考图像集或参考图像集的子集中的参考图像的识别符(例如,POC值)之后,视频解码器可构造参考图像子集。如下文更详细描述,视频解码器可构造六个参考图像子集,但视频解码器可能有可能构造更多或更少个参考图像子集。After determining identifiers (e.g., POC values) for reference pictures in a reference picture set or a subset of a reference picture set, the video decoder may construct reference picture subsets. As described in more detail below, the video decoder may construct six reference picture subsets, but the video decoder may be able to construct more or fewer reference picture subsets.
这些六个参考图像子集命名为:RefPicSetStCurr0、RefPicSetStCurr1、RefPicSetStFoll0、RefPicSetStFoll1、RefPicSetLtCurr,和RefPicSetLtFoll。RefPicSetStCurr0参考图像子集可被称作RefPicSetStCurrBefore参考图像子集,且RefPicSetStCurr1参考图像子集可被称作RefPicSetStCurrAfter参考图像子集。These six reference picture subsets are named: RefPicSetStCurr0, RefPicSetStCurr1, RefPicSetStFoll0, RefPicSetStFoll1, RefPicSetLtCurr, and RefPicSetLtFoll. The RefPicSetStCurr0 reference picture subset may be referred to as the RefPicSetStCurrBefore reference picture subset, and the RefPicSetStCurr1 reference picture subset may be referred to as the RefPicSetStCurrAfter reference picture subset.
RefPicSetStCurr0、RefPicSetStCurr1、RefPicSetStFoll0和RefPicSetStFoll1参考图像子集可识别短期参考图像。在一些实例中,这些参考图像子集可基于以下各者而识别短期参考图像:短期参考图像是在显示次序上比正被译码的当前图像早还是在显示次序上比正被译码的当前图像迟,以及短期参考图像是否可潜在地用于对当前图像及在解码次序上在当前图像之后的图像进行帧间预测,或是否可潜在地用于仅对在解码次序上在当前图像之后的图像进行帧间预测。The RefPicSetStCurr0, RefPicSetStCurr1, RefPicSetStFoll0, and RefPicSetStFoll1 reference picture subsets may identify short-term reference pictures. In some examples, these reference picture subsets may identify short-term reference pictures based on whether the short-term reference picture is earlier in display order than the current picture being coded or later in display order than the current picture being coded, and whether the short-term reference picture can potentially be used for inter-prediction of the current picture and pictures that follow the current picture in decoding order, or can potentially be used for inter-prediction of only pictures that follow the current picture in decoding order.
举例来说,RefPicSetStCurr0参考图像子集可包含(且可仅包含)满足以下情形的所有短期参考图像的识别信息(例如,POC值):具有比当前图像的输出或显示次序早的输出或显示次序,且可潜在地用于在当前图像的帧间预测中供参考,且可潜在地用于在解码次序上在当前图像之后的一个或一个以上图像的帧间预测中供参考。RefPicSetStCurr1参考图像子集可包含(且可仅包含)满足以下情形的所有短期参考图像的识别信息:具有比当前图像的输出或显示次序迟的输出或显示次序,且可潜在地用于在当前图像的帧间预测中供参考,且可潜在地用于在解码次序上在当前图像之后的一个或一个以上图像的帧间预测中供参考。For example, the RefPicSetStCurr0 reference picture subset may include (and may only include) identification information (e.g., POC values) of all short-term reference pictures that have an output or display order earlier than that of the current picture and that are potentially usable for reference in inter-frame prediction of the current picture and that are potentially usable for reference in inter-frame prediction of one or more pictures that follow the current picture in decoding order. The RefPicSetStCurr1 reference picture subset may include (and may only include) identification information of all short-term reference pictures that have an output or display order later than that of the current picture and that are potentially usable for reference in inter-frame prediction of the current picture and that are potentially usable for reference in inter-frame prediction of one or more pictures that follow the current picture in decoding order.
RefPicSetStFoll0参考图像子集可包含(且可仅包含)满足以下情形的所有短期参考图像的识别信息:具有比当前图像的输出或显示次序早的输出或显示次序,可潜在地用于在解码次序上在当前图像之后的一个或一个以上图像的帧间预测中供参考,且无法用于在当前图像的帧间预测中供参考。RefPicSetStFoll1参考图像子集可包含(且可仅包含)满足以下情形的所有短期参考图像的识别信息:具有比当前图像的输出或显示次序迟的输出或显示次序,可潜在地用于在解码次序上在当前图像之后的一个或一个以上图像的帧间预测中供参考,且无法用于在当前图像的帧间预测中供参考。The RefPicSetStFoll0 reference picture subset may include (and may only include) identification information of all short-term reference pictures that satisfy the following conditions: have an output or display order earlier than that of the current picture, may be potentially used for reference in inter-frame prediction of one or more pictures that follow the current picture in decoding order, and cannot be used for reference in inter-frame prediction of the current picture. The RefPicSetStFoll1 reference picture subset may include (and may only include) identification information of all short-term reference pictures that satisfy the following conditions: have an output or display order later than that of the current picture, may be potentially used for reference in inter-frame prediction of one or more pictures that follow the current picture in decoding order, and cannot be used for reference in inter-frame prediction of the current picture.
RefPicSetLtCurr和RefPicSetLtFoll参考图像子集可识别长期参考图像。在一些实例中,这些参考图像子集可基于长期参考图像是在显示次序上比正被译码的当前图像早还是在显示次序上比正被译码的当前图像迟,识别长期参考图像。The RefPicSetLtCurr and RefPicSetLtFoll reference picture subsets may identify long-term reference pictures. In some examples, these reference picture subsets may identify long-term reference pictures based on whether the long-term reference picture is earlier in display order than the current picture being coded or later in display order than the current picture being coded.
举例来说,RefPicSetLtCurr参考图像子集可包含(且可仅包含)满足以下情形的所有长期参考图像的识别信息:可潜在地用于在当前图像的帧间预测中供参考,且可潜在地用于在解码次序上在当前图像之后的一个或一个以上图像的帧间预测中供参考。RefPicSetLtFoll参考图像子集可包含(且可仅包含)满足以下情形的所有长期参考图像的识别信息:可潜在地用于在解码次序上在当前图像之后的一个或一个以上图像的帧间预测中供参考,且无法用于在当前图像的帧间预测中供参考。For example, the RefPicSetLtCurr reference picture subset may include (and may only include) identification information of all long-term reference pictures that can potentially be used for reference in inter-frame prediction of the current picture and can potentially be used for reference in inter-frame prediction of one or more pictures that follow the current picture in decoding order. The RefPicSetLtFoll reference picture subset may include (and may only include) identification information of all long-term reference pictures that can potentially be used for reference in inter-frame prediction of one or more pictures that follow the current picture in decoding order and cannot be used for reference in inter-frame prediction of the current picture.
在构造参考图像子集之后,视频解码器可将所述参考图像子集以不同次序排序以导出参考图像集。作为一个实例,参考图像集的次序可为RefPicSetStCurr0、RefPicSetSetCurr1、RefPicSetFoll0、RefPicSetFoll1、RefPicSetLtCurr,及RefPicSetLtFoll。然而,所述子集的其它排序可能有可能导出参考图像集。举例来说,作为另一实例,参考图像集的次序可为RefPicSetStCurr0参考图像子集、后接续有RefPicSetStCurr1参考图像子集、后接续有RefPicSetLtCurr参考图像子集、后接续有RefPicSetStFoll0参考图像子集、后接续有RefPicSetFoll1参考图像子集,且后接续有RefPicSetLtFoll参考图像子集。After constructing the reference picture subsets, a video decoder may order the reference picture subsets in different orders to derive a reference picture set. As an example, the order of the reference picture sets may be RefPicSetStCurr0, RefPicSetSetCurr1, RefPicSetFoll0, RefPicSetFoll1, RefPicSetLtCurr, and RefPicSetLtFoll. However, other orderings of the subsets may be possible to derive a reference picture set. For instance, as another example, the order of the reference picture sets may be RefPicSetStCurr0 reference picture subset, followed by RefPicSetStCurr1 reference picture subset, followed by RefPicSetLtCurr reference picture subset, followed by RefPicSetStFoll0 reference picture subset, followed by RefPicSetFoll1 reference picture subset, and followed by RefPicSetLtFoll reference picture subset.
根据本发明中所描述的技术,RefPicSetStCurr0、RefPicSetStCurr1和RefPicSetLtCurr子集包含可用于当前图像中的块的帧间预测中且可用于在解码次序上在当前图像之后的图像中的一者或一者以上的帧间预测中的所有参考图像。RefPicSetStFoll0、RefPicSetStFoll1和RefPicSetLtFoll子集包含不用于当前图像中的块的帧间预测中而可用于在解码次序上在当前图像之后的图像中的一者或一者以上的帧间预测中的所有参考图像。According to the techniques described in this disclosure, the RefPicSetStCurr0, RefPicSetStCurr1, and RefPicSetLtCurr subsets include all reference pictures that can be used in inter-prediction of blocks in the current picture and that can be used in inter-prediction of one or more of the pictures that follow the current picture in decoding order. The RefPicSetStFoll0, RefPicSetStFoll1, and RefPicSetLtFoll subsets include all reference pictures that are not used in inter-prediction of blocks in the current picture and that can be used in inter-prediction of one or more of the pictures that follow the current picture in decoding order.
应理解,仅用于说明目的而描述六个参考图像子集,且所述情形不应被视为限制性的。在替代实例中,可能存在更多或更少个参考图像子集。下文更详细描述在这些替代实例中的这些参考图像子集。It should be understood that six reference image subsets are described for illustrative purposes only and should not be considered limiting. In alternative examples, there may be more or fewer reference image subsets. These reference image subsets in these alternative examples are described in more detail below.
在这些揭示内容中所描述的一些技术中,视频解码器可能不需要将已解码图像标记为“用于参考”、“不用于参考”、“用于短期参考”或“用于长期参考”。而是,存储在DPB中的已解码图像是否需要进行帧间预测是通过其是否包含在当前图像的参考图像集中来指示。在替代实例中,视频解码器可能有可能将已解码图像标记为“用于参考”、“不用于参考”、“用于短期参考”或“用于长期参考”。在这些实例中,在视频解码器解码图像之后,所述已解码图像为参考图像且经标记为“用于参考”。然后,在调用用于参考图像集导出的过程之后,在来自DPB的已解码图像的可能的去除之前,将存储在DPB中但不包含在当前图像的参考图像集中的所有参考图像标记为“不用于参考”。因此,存储在DPB中的已解码图像是否需要进行帧间预测可通过其是否经标记为“用于参考”来指示。In some techniques described in these disclosures, a video decoder may not need to mark decoded pictures as "used for reference," "not used for reference," "used for short-term reference," or "used for long-term reference." Instead, whether a decoded picture stored in the DPB requires inter-frame prediction is indicated by whether it is included in the reference picture set of the current picture. In alternative examples, the video decoder may have the possibility to mark decoded pictures as "used for reference," "not used for reference," "used for short-term reference," or "used for long-term reference." In these examples, after the video decoder decodes a picture, the decoded picture is a reference picture and is marked as "used for reference." Then, after invoking the process for reference picture set derivation, and before possible removal of the decoded picture from the DPB, all reference pictures stored in the DPB but not included in the reference picture set of the current picture are marked as "not used for reference." Thus, whether a decoded picture stored in the DPB requires inter-frame prediction can be indicated by whether it is marked as "used for reference."
一旦视频解码器从所述多个参考图像子集导出参考图像集,视频解码器便可从参考图像集构造参考图像列表(例如,列表0和列表1)。举例来说,参考图像列表的构造可包含初始化步骤及可能的修改步骤。通过以上文所描述的方式导出参考图像集,视频解码器可能能够改善参考图像列表初始化及参考图像列表修改的效率且降低参考图像列表初始化及参考图像列表修改的复杂性。Once the video decoder derives a reference picture set from the plurality of reference picture subsets, the video decoder may construct reference picture lists (e.g., List 0 and List 1) from the reference picture set. For example, construction of the reference picture lists may include an initialization step and possibly a modification step. By deriving the reference picture set in the manner described above, the video decoder may be able to improve the efficiency and reduce the complexity of reference picture list initialization and reference picture list modification.
可能存在视频解码器可借以构造参考图像列表的各种方式。本发明中所描述的技术提供一种机制,视频解码器可通过所述机制构造参考图像列表,而不需要将待包含在(初始)参考图像列表中的参考图像重新排序。举例来说,视频解码器可经配置以实施默认参考列表构造技术,其中视频解码器利用参考图像子集构造初始参考图像列表。然后,如果不需要参考图像列表修改,那么最终参考图像列表可与初始参考图像列表相同,而不需要参考图像列表的任何额外重新排序。There are various ways in which a video decoder can construct a reference picture list. The techniques described in this disclosure provide a mechanism by which a video decoder can construct a reference picture list without reordering the reference pictures to be included in the (initial) reference picture list. For example, a video decoder can be configured to implement a default reference list construction technique, in which the video decoder constructs an initial reference picture list using a subset of reference pictures. Then, if no reference picture list modification is required, the final reference picture list can be identical to the initial reference picture list, without requiring any additional reordering of the reference picture list.
在一些实例中,本发明中所描述的技术可关于以不存在非完成条目的方式构造参考图像列表。举例来说,所述技术可重复地将来自参考图像子集中的一者或一者以上的参考图像添加到参考图像列表。举例来说,在视频解码器添加来自用于构造初始参考图像列表的参考图像子集中的一者或一者以上的参考图像之后,视频解码器可确定参考图像列表中的条目的数目是否小于条目的最大可允许数目。如果参考图像列表中的条目的数目小于条目的可允许数目的最大数目,那么视频解码器可在参考图像列表中重新添加来自用以构造参考图像列表的参考图像子集中的一者的参考图像中的至少一者。参考图像的此重新添加(还被称作重新列出)可发生于参考图像列表内不同于由视频解码器首先添加参考图像的位置的位置处。In some examples, the techniques described in this disclosure may relate to constructing a reference picture list in a manner that eliminates incomplete entries. For example, the techniques may repeatedly add one or more reference pictures from a reference picture subset to a reference picture list. For example, after a video decoder adds one or more reference pictures from a reference picture subset used to construct an initial reference picture list, the video decoder may determine whether the number of entries in the reference picture list is less than a maximum allowable number of entries. If the number of entries in the reference picture list is less than the maximum allowable number of entries, the video decoder may re-add at least one of the reference pictures from one of the reference picture subsets used to construct the reference picture list to the reference picture list. This re-addition of the reference picture (also referred to as re-listing) may occur at a different location within the reference picture list than the location where the video decoder first added the reference picture.
如本发明中所使用,重新列出或重新添加指在初始参考图像列表中再次添加(例如,再次识别)先前已添加(例如,已识别)的参考图像。然而,当重新添加参考图像时,参考图像可位于初始参考图像列表中的两个不同条目处。换句话说,当重新添加参考图像时,可能存在识别相同参考图像的到初始参考图像列表中的两个索引值。As used herein, "relisting" or "re-adding" refers to re-adding (e.g., re-identifying) a previously added (e.g., identified) reference image to the initial reference image list. However, when a reference image is re-added, the reference image may be located at two different entries in the initial reference image list. In other words, when a reference image is re-added, there may be two index values in the initial reference image list that identify the same reference image.
在一些实例中,本发明中所描述的技术可关于修改初始参考图像列表。举例来说,视频解码器可构造初始参考图像列表。视频解码器可基于由视频编码器在经译码位流中用信号发出的语法元素而确定需要参考图像列表修改。当需要参考图像列表修改时,视频解码器可识别所构造的参考图像子集中的至少一者中的参考图像。视频解码器可在初始参考图像列表的当前条目中列出(例如,添加)所识别的参考图像以构造修改的参考图像列表。视频解码器可然后基于修改的参考图像列表而解码当前图像。In some examples, the techniques described in this disclosure may relate to modifying an initial reference picture list. For example, a video decoder may construct an initial reference picture list. The video decoder may determine that a reference picture list modification is required based on syntax elements signaled by the video encoder in the coded bitstream. When a reference picture list modification is required, the video decoder may identify a reference picture in at least one of the constructed reference picture subsets. The video decoder may list (e.g., add) the identified reference picture in a current entry of the initial reference picture list to construct a modified reference picture list. The video decoder may then decode a current picture based on the modified reference picture list.
在一些实例中,本发明中所描述的技术可关于从已解码图像缓冲器(DPB)输出及去除已解码图像。所述实例技术可在译码当前图像之前将已解码图像从DPB中去除。举例来说,如果所述已解码图像在当前图像的参考图像集中未加以识别且如果所述已解码图像不需要输出(即,已解码图像不希望输出或已解码图像希望输出但已经输出),那么实例技术可去除所述已解码图像。In some examples, the techniques described in this disclosure may relate to outputting and removing decoded pictures from a decoded picture buffer (DPB). The example techniques may remove a decoded picture from the DPB before coding a current picture. For example, if the decoded picture is not identified in the reference picture set of the current picture and if the decoded picture does not need to be output (i.e., the decoded picture is not intended to be output or the decoded picture is intended to be output but has already been output), the example techniques may remove the decoded picture.
图1为说明可利用本发明中所描述的技术的实例视频编码及解码系统10的框图。一般来说,参考图像集经定义为与图像相关联的参考图像集合,其由在解码次序上在相关联的图像之前的所有参考图像组成,其可用于对相关联的图像或对在解码次序上在相关联的图像之后的任何图像进行帧间预测。在一些实例中,在相关联的图像之前的参考图像可为直到下一瞬时解码再新(IDR)图像或断链接入(BLA)图像为止的参考图像。换句话说,参考图像集中的参考图像可能在解码次序上全部在当前图像之前。而且,参考图像集中的参考图像可用于对当前图像进行帧间预测及/或对在解码次序上在当前图像之后的任何图像进行帧间预测,直到下一IDR图像或BLA图像为止。FIG1 is a block diagram illustrating an example video encoding and decoding system 10 that may utilize the techniques described in this disclosure. Generally speaking, a reference picture set is defined as a set of reference pictures associated with a picture that consists of all reference pictures that precede the associated picture in decoding order and that may be used for inter-prediction of the associated picture or any pictures that follow the associated picture in decoding order. In some examples, the reference pictures that precede the associated picture may be reference pictures up to the next instantaneous decoded refresh (IDR) picture or broken link attached (BLA) picture. In other words, the reference pictures in the reference picture set may all precede the current picture in decoding order. Furthermore, the reference pictures in the reference picture set may be used for inter-prediction of the current picture and/or for inter-prediction of any pictures that follow the current picture in decoding order, up to the next IDR or BLA picture.
可能存在参考图像集的其它替代定义。举例来说,参考图像集可为与图像相关联的参考图像集合,其由满足以下情形的所有参考图像(排除相关联的图像自身)组成:可用于对相关联的图像或对在解码次序上在相关联的图像之后的任何图像进行帧间预测,且具有小于或等于相关联的图像的temporal_id的temporal_id。temporal_id可为时间识别值。时间识别值可为指示哪些图像可用于译码当前图像的阶层值。一般来说,具有特定temporal_id值的图像可能有可能为用于具有相等或较大temporal_id值的图像的参考图像,但反过来不成立。举例来说,具有temporal_id值1的图像可能有可能为用于具有temporal_id值1、2、3,……的图像的参考图像,但不可能为用于具有temporal_id值0的图像的参考图像。Other alternative definitions of a reference picture set are possible. For example, a reference picture set may be a set of reference pictures associated with a picture, consisting of all reference pictures (excluding the associated picture itself) that can be used for inter-frame prediction of the associated picture or any picture following the associated picture in decoding order, and that have a temporal_id that is less than or equal to the temporal_id of the associated picture. The temporal_id may be a temporal identification value. The temporal identification value may be a hierarchical value that indicates which pictures can be used to code the current picture. In general, a picture with a particular temporal_id value may potentially be a reference picture for a picture with an equal or greater temporal_id value, but the reverse is not true. For example, a picture with a temporal_id value of 1 may potentially be a reference picture for pictures with temporal_id values of 1, 2, 3, ..., but not for a picture with a temporal_id value of 0.
最低temporal_id值还可指示最低显示率。举例来说,如果视频解码器仅解码具有temporal_id值0的图像,那么显示率可为7.5个图像/秒。如果视频解码器仅解码具有temporal_id值0和1的图像,那么显示率可为15个图像/秒,等等。The lowest temporal_id value may also indicate the lowest display rate. For example, if the video decoder only decodes pictures with a temporal_id value of 0, the display rate may be 7.5 pictures/second. If the video decoder only decodes pictures with temporal_id values 0 and 1, the display rate may be 15 pictures/second, and so on.
作为另一实例,参考图像集可为与图像相关联的参考图像集合,其由满足以下情形的所有参考图像(排除相关联的图像自身)组成:可用于对相关联的图像或对在解码次序上在相关联的图像之后的任何图像进行帧间预测。作为又一实例,参考图像集可经定义为与图像相关联的参考图像集合,其由满足以下情形的所有参考图像(有可能包含相关联的图像自身)组成:可用于对相关联的图像或对在解码次序上在相关联的图像之后的任何图像进行帧间预测。作为另一实例,参考图像集可经定义为与图像相关联的参考图像集合,其由满足以下情形的所有参考图像(有可能包含相关联的图像自身)组成:可用于对相关联的图像或对在解码次序上在相关联的图像之后的任何图像进行帧间预测,且具有小于或等于相关联的图像的temporal_id的temporal_id。As another example, a reference picture set may be a reference picture set associated with a picture, consisting of all reference pictures (excluding the associated picture itself) that can be used for inter-prediction of the associated picture or any picture that follows the associated picture in decoding order. As yet another example, a reference picture set may be defined as a reference picture set associated with a picture, consisting of all reference pictures (possibly including the associated picture itself) that can be used for inter-prediction of the associated picture or any picture that follows the associated picture in decoding order. As another example, a reference picture set may be defined as a reference picture set associated with a picture, consisting of all reference pictures (possibly including the associated picture itself) that can be used for inter-prediction of the associated picture or any picture that follows the associated picture in decoding order, and having a temporal_id that is less than or equal to the temporal_id of the associated picture.
作为又一实例,在参考图像集的上述定义中,用“用于进行帧间预测”替换短语“可用于进行帧间预测”。尽管可能存在参考图像集的替代定义,但在本发明中,描述具有参考图像集的以下定义的实例:参考图像集为与图像相关联的参考图像集合,其由在解码次序上在相关联的图像之前的所有参考图像组成,其可用于对相关联的图像或对在解码次序上在相关联的图像之后的任何图像进行帧间预测。As yet another example, in the above definition of a reference picture set, the phrase “usable for inter prediction” is replaced with “used for inter prediction.” Although alternative definitions of a reference picture set are possible, in this disclosure, an example is described with the following definition of a reference picture set: a reference picture set is a set of reference pictures associated with a picture, consisting of all reference pictures that precede the associated picture in decoding order, and that can be used for inter prediction of the associated picture or any picture that follows the associated picture in decoding order.
举例来说,参考图像集中的参考图像中的一些参考图像为可潜在地用以对当前图像的块进行帧间预测且无法对在解码次序上在当前图像之后的图像进行帧间预测的参考图像。参考图像集中的参考图像中的一些参考图像为可潜在地用以对当前图像的块及对在解码次序上在当前图像之后的一个或一个以上图像中的块进行帧间预测的参考图像。参考图像集中的参考图像中的一些参考图像为可潜在地用以对在解码次序上在当前图像之后的一个或一个以上图像中的块进行帧间预测且无法用以对当前图像中的块进行帧间预测的参考图像。For example, some of the reference images in the reference image set are reference images that can potentially be used to inter-predict blocks of the current image and cannot be used to inter-predict images that follow the current image in decoding order. Some of the reference images in the reference image set are reference images that can potentially be used to inter-predict blocks of the current image and blocks in one or more images that follow the current image in decoding order. Some of the reference images in the reference image set are reference images that can potentially be used to inter-predict blocks in one or more images that follow the current image in decoding order and cannot be used to inter-predict blocks in the current image.
如本发明中所使用,可潜在地用于进行帧间预测的参考图像是指可用于进行帧间预测的参考图像,但未必必须用于进行帧间预测。举例来说,参考图像集可识别可潜在地用于进行帧间预测的参考图像。然而,此情形并不意味着所有所识别的参考图像必须用于进行帧间预测。而是,这些所识别的参考图像中的一者或一者以上可用于进行帧间预测,但全部未必必须用于进行帧间预测。As used in this disclosure, a reference picture potentially usable for inter-frame prediction refers to a reference picture that can be used for inter-frame prediction, but is not necessarily required for inter-frame prediction. For example, a reference picture set may identify reference pictures potentially usable for inter-frame prediction. However, this does not mean that all identified reference pictures are necessarily required for inter-frame prediction. Rather, one or more of these identified reference pictures may be usable for inter-frame prediction, but not all of them are necessarily required for inter-frame prediction.
如图1中所展示,系统10包含源装置12,其产生经编码视频以用于由目的地装置14解码。源装置12和目的地装置14可各自为视频译码装置的实例。源装置12可经由通信信道16将经编码视频传输到目的地装置14或可将经编码视频存储在存储媒体17或文件服务器19上,以使得经编码视频可由目的地装置14视需要存取。1 , system 10 includes a source device 12 that generates encoded video for decoding by a destination device 14. Source device 12 and destination device 14 may each be an example of a video coding device. Source device 12 may transmit the encoded video to destination device 14 via a communication channel 16 or may store the encoded video on a storage medium 17 or a file server 19 so that the encoded video can be accessed by destination device 14 as needed.
源装置12和目的地装置14可包括广泛范围的装置中的任一者,包含例如所谓的“智能型”手机、所谓的“智能型”垫等无线手机,或经装备以用于无线通信的其它此类无线装置。源装置12和目的地装置14的额外实例包含(但不限于)数字电视、数字直播系统中的装置、无线广播系统中的装置、个人数字助理(PDA)、膝上型计算机、桌上型计算机、平板计算机、电子书阅读器、数字摄像机、数字记录装置、数字媒体播放器、视频游戏装置、视频游戏控制台、蜂窝式无线电电话、卫星无线电电话、视频电信会议装置,及视频流装置、无线通信装置,或其类似者。Source device 12 and destination device 14 may comprise any of a wide range of devices, including wireless phones such as so-called "smart" phones, so-called "smart" pads, or other such wireless devices equipped for wireless communication. Additional examples of source device 12 and destination device 14 include, but are not limited to, digital televisions, devices in digital live broadcast systems, devices in wireless broadcast systems, personal digital assistants (PDAs), laptop computers, desktop computers, tablet computers, e-book readers, digital cameras, digital recording devices, digital media players, video game devices, video game consoles, cellular radiotelephones, satellite radiotelephones, video teleconferencing devices, and video streaming devices, wireless communication devices, or the like.
如上文所指示,在许多情况下,源装置12和/或目的地装置14可经装备以用于无线通信。因此,通信信道16可包括无线信道、有线信道或适合于传输经编码视频数据的无线和有线信道的组合。类似地,文件服务器19可由目的地装置14通过任何标准数据连接(包含互联网连接)存取。此数据连接可包含适合于存取存储在文件服务器上的经编码视频数据的无线信道(例如,Wi-Fi连接)、有线连接(例如,DSL、电缆调制解调器,等等),或无线信道与有线连接两者的组合。As indicated above, in many cases, source device 12 and/or destination device 14 may be equipped for wireless communication. Thus, communication channel 16 may comprise a wireless channel, a wired channel, or a combination of wireless and wired channels suitable for transmitting encoded video data. Similarly, file server 19 may be accessed by destination device 14 through any standard data connection, including an Internet connection. This data connection may include a wireless channel (e.g., a Wi-Fi connection), a wired connection (e.g., DSL, cable modem, etc.) suitable for accessing encoded video data stored on the file server, or a combination of both wireless and wired channels.
然而,本发明的技术可适用于支持多种多媒体应用中的任一者的视频译码,多种多媒体应用例如空中电视广播、有线电视传输、卫星电视传输、流式视频传输(例如,经由互联网)、编码数字视频以用于存储在数据存储媒体上、解码存储在数据存储媒体上的数字视频,或其它应用。在一些实例中,系统10可经配置以支持单向或双向视频传输以支持例如视频流传输、视频播放、视频广播和/或视频电话等应用。However, the techniques of this disclosure may be applicable to video coding to support any of a variety of multimedia applications, such as over-the-air television broadcasting, cable television transmission, satellite television transmission, streaming video transmission (e.g., via the Internet), encoding digital video for storage on a data storage medium, decoding digital video stored on a data storage medium, or other applications. In some examples, system 10 may be configured to support one-way or two-way video transmission to support applications such as video streaming, video playback, video broadcasting, and/or video telephony.
在图1的实例中,源装置12包含视频源18、视频编码器20、调制器/解调器(调制解调器)22和输出接口24。在源装置12中,视频源18可包含例如以下各者等源:视频俘获装置(例如,视频摄像机)、含有先前所俘获的视频的视频存档、接收来自视频内容提供者的视频的视频馈入接口,和/或用于产生计算机图形数据作为源视频的计算机图形系统,或此类源的组合。作为一个实例,如果视频源18为视频摄像机,那么源装置12与目的地装置14可形成所谓的摄像机电话或视频电话。然而,一般来说,本发明中所描述的技术可适用于视频译码,且可应用于无线和/或有线应用。1 , source device 12 includes a video source 18, a video encoder 20, a modulator/demodulator (modem) 22, and an output interface 24. In source device 12, video source 18 may include a source such as a video capture device (e.g., a video camera), a video archive containing previously captured video, a video feed interface that receives video from a video content provider, and/or a computer graphics system for generating computer graphics data as source video, or a combination of such sources. As one example, if video source 18 is a video camera, source device 12 and destination device 14 may form so-called camera phones or video phones. However, the techniques described in this disclosure may be applicable to video coding in general and may be applied to wireless and/or wired applications.
可由视频编码器20来编码所俘获的、预先俘获的或计算机产生的视频。可由调制解调器22根据通信标准(例如,无线通信协议)来调制经编码视频信息,且经由输出接口24将经编码视频信息传输到目的地装置14。调制解调器22可包含各种混频器、滤波器、放大器或经设计以用于信号调制的其它组件。输出接口24可包含经设计以用于传输数据的电路,包含放大器、滤波器,和一个或一个以上天线。The captured, pre-captured, or computer-generated video may be encoded by video encoder 20. The encoded video information may be modulated by modem 22 according to a communication standard (e.g., a wireless communication protocol) and transmitted to destination device 14 via output interface 24. Modem 22 may include various mixers, filters, amplifiers, or other components designed for signal modulation. Output interface 24 may include circuits designed for transmitting data, including amplifiers, filters, and one or more antennas.
由视频编码器20编码的所俘获的、预先俘获的或计算机产生的视频还可存储到存储媒体17或文件服务器19上以供稍后消耗。存储媒体17可包含蓝光(Blu-ray)光盘、DVD、CD-ROM、快闪存储器或用于存储经编码视频的任何其它合适的数字存储媒体。存储在存储媒体17上的经编码视频可然后由目的地装置14存取以用于解码及播放。The captured, pre-captured, or computer-generated video encoded by video encoder 20 may also be stored on storage medium 17 or file server 19 for later consumption. Storage medium 17 may include a Blu-ray disc, a DVD, a CD-ROM, flash memory, or any other suitable digital storage medium for storing encoded video. The encoded video stored on storage medium 17 may then be accessed by destination device 14 for decoding and playback.
文件服务器19可为能够存储经编码视频且将所述经编码视频传输到目的地装置14的任何类型的服务器。实例文件服务器包含网络服务器(例如,用于网站)、FTP服务器、网络附接存储器(NAS)装置、本地磁盘驱动器,或能够存储经编码视频数据且将经编码视频数据传输到目的地装置的任何其它类型的装置。来自文件服务器19的经编码视频数据的传输可为流式传输、下载传输或流式传输与下载传输两者的组合。文件服务器19可由目的地装置14通过任何标准数据连接(包含互联网连接)存取。此标准数据连接可包含适合于存取存储在文件服务器上的经编码视频数据的无线信道(例如,Wi-Fi连接)、有线连接(例如,DSL、电缆调制解调器、以太网、USB等),或无线信道与有线连接的组合。File server 19 may be any type of server capable of storing encoded video and transmitting the encoded video to destination device 14. Example file servers include a network server (e.g., for a website), an FTP server, a network attached storage (NAS) device, a local disk drive, or any other type of device capable of storing and transmitting encoded video data to a destination device. The transmission of the encoded video data from file server 19 may be streaming, downloading, or a combination of both. File server 19 may be accessed by destination device 14 through any standard data connection, including an Internet connection. This standard data connection may include a wireless channel (e.g., a Wi-Fi connection), a wired connection (e.g., DSL, cable modem, Ethernet, USB, etc.) suitable for accessing the encoded video data stored on the file server, or a combination of wireless and wired channels.
在图1的实例中,目的地装置14包含输入接口26、调制解调器28、视频解码器30,和显示装置32。目的地装置14的输入接口26经由信道16接收信息(作为一个实例),或从存储媒体17或文件服务器19接收信息(作为替代实例),且调制解调器28解调所述信息以产生用于视频解码器30的经解调的位流。经解调的位流可包含由视频编码器20产生以供视频解码器30在解码视频数据中使用的多种语法信息。此语法还可包含在存储在存储媒体17或文件服务器19上的经编码视频数据内。作为一个实例,语法可嵌入于经编码视频数据内,但本发明的方面不应被视为限于此要求。由视频编码器20定义且还供视频解码器30使用的语法信息可包含描述视频块的特性和/或处理的语法元素,视频块例如译码树单元(CTU)、译码树块(CTB)、预测单元(PU)、译码单元(CU),或经译码视频的其它单元,例如,视频切片、视频图像和视频序列或图像组(GOP)。视频编码器20和视频解码器30中的每一者可形成能够编码或解码视频数据的相应编码器-解码器(CODEC)的部分。1 , destination device 14 includes an input interface 26, a modem 28, a video decoder 30, and a display device 32. Input interface 26 of destination device 14 receives information via channel 16 (as one example), or from storage medium 17 or file server 19 (as alternative examples), and modem 28 demodulates the information to produce a demodulated bitstream for video decoder 30. The demodulated bitstream may include a variety of syntax information generated by video encoder 20 for use by video decoder 30 in decoding the video data. This syntax may also be included within the encoded video data stored on storage medium 17 or file server 19. As an example, the syntax may be embedded within the encoded video data, but aspects of this disclosure should not be considered limited to this requirement. Syntax information defined by video encoder 20 and also used by video decoder 30 may include syntax elements that describe characteristics and/or processing of video blocks, such as coding tree units (CTUs), coding tree blocks (CTBs), prediction units (PUs), coding units (CUs), or other units of coded video, such as video slices, video pictures, and video sequences or groups of pictures (GOPs). Each of video encoder 20 and video decoder 30 may form part of a respective encoder-decoder (CODEC) capable of encoding or decoding video data.
显示装置32可与目的地装置14集成或在目的地装置14外部。在一些实例中,目的地装置14可包含集成显示装置,且还经配置以与外部显示装置介接。在其它实例中,目的地装置14可为显示装置。一般来说,显示装置32向用户显示已解码视频数据,且可包括多种显示装置中的任一者,例如,液晶显示器(LCD)、等离子显示器、有机发光二极管(OLED)显示器或另一类型的显示装置。Display device 32 may be integrated with destination device 14 or external to destination device 14. In some examples, destination device 14 may include an integrated display device and also be configured to interface with an external display device. In other examples, destination device 14 may be a display device. In general, display device 32 displays decoded video data to a user and may comprise any of a variety of display devices, such as a liquid crystal display (LCD), a plasma display, an organic light emitting diode (OLED) display, or another type of display device.
在图1的实例中,通信信道16可包括任何无线或有线通信媒体,例如,射频(RF)频谱或一个或一个以上物理传输线,或无线和有线媒体的任何组合。通信信道16可形成基于包的网络(例如,局域网、广域网,或例如互联网等全球网络)的部分。通信信道16一般表示用于将视频数据从源装置12传输到目的地装置14的任何合适的通信媒体或不同通信媒体的集合,包含有线或无线媒体的任何合适组合。通信信道16可包含路由器、交换器、基站,或可用于促进从源装置12到目的地装置14的通信的任何其它装备。1 , communication channel 16 may comprise any wireless or wired communication medium, such as a radio frequency (RF) spectrum or one or more physical transmission lines, or any combination of wireless and wired media. Communication channel 16 may form part of a packet-based network, such as a local area network, a wide area network, or a global network such as the Internet. Communication channel 16 generally represents any suitable communication medium, or collection of different communication media, for transmitting video data from source device 12 to destination device 14, including any suitable combination of wired or wireless media. Communication channel 16 may include routers, switches, base stations, or any other equipment that can be used to facilitate communication from source device 12 to destination device 14.
视频编码器20和视频解码器30可根据视频压缩标准操作,视频压缩标准例如包含ITU-T H.261、ISO/IEC MPEG-1视频、ITU-T H.262或ISO/IEC MPEG-2视频、ITU-T H.263、ISO/IEC MPEG-4视频和ITU-T H.264(还被称为ISO/IEC MPEG-4AVC),包含其可调式视频译码(SVC)和多视角视频译码(MVC)扩展。另外,存在新的视频译码标准,即,高效率视频译码(HEVC)标准,其目前正由ITU-T视频译码专家组(VCEG)和ISO/IEC动画专家组(MPEG)的视频译码联合协作小组(JCT-VC)开发。从2012年7月20日时起,可从http://phenix.int-evry.fr/jct/doc_end_user/documents/10_Stockholm/wg11/JCTVC-J1003-v8.zip得到HEVC的最新工作草案(WD)(且在下文中被称作HEVC WD8)。Video encoder 20 and video decoder 30 may operate according to video compression standards, such as ITU-T H.261, ISO/IEC MPEG-1 Video, ITU-T H.262 or ISO/IEC MPEG-2 Video, ITU-T H.263, ISO/IEC MPEG-4 Video, and ITU-T H.264 (also known as ISO/IEC MPEG-4 AVC), including its Scalable Video Coding (SVC) and Multi-view Video Coding (MVC) extensions. Additionally, a new video coding standard, the High Efficiency Video Coding (HEVC) standard, is currently being developed by the Joint Collaboration Team on Video Coding (JCT-VC) of the ITU-T Video Coding Experts Group (VCEG) and the ISO/IEC Moving Picture Experts Group (MPEG). As of 20 July 2012, the latest Working Draft (WD) of HEVC is available from http://phenix.int-evry.fr/jct/doc_end_user/documents/10_Stockholm/wg11/JCTVC-J1003-v8.zip (and referred to as HEVC WD8 hereinafter).
然而,本发明的技术不限于任何特定译码标准。仅为了说明的目的,根据HEVC标准描述技术。However, the techniques of this disclosure are not limited to any particular coding standard. For illustrative purposes only, the techniques are described according to the HEVC standard.
虽然图1中未展示,但在一些方面中,视频编码器20和视频解码器30可各自与一音频编码器和解码器集成,且可包含适当MUX-DEMUX单元或其它硬件和软件,以处置共同数据流或单独数据流中的音频与视频两者的编码。如果可适用,那么MUX-DEMUX单元可遵守ITUH.223多路复用器协议,或例如用户数据报协议(UDP)等其它协议。Although not shown in FIG1 , in some aspects, video encoder 20 and video decoder 30 may each be integrated with an audio encoder and decoder and may include appropriate MUX-DEMUX units or other hardware and software to handle the encoding of both audio and video in a common data stream or in separate data streams. If applicable, the MUX-DEMUX units may conform to the ITU H.223 multiplexer protocol, or other protocols such as the User Datagram Protocol (UDP).
视频编码器20和视频解码器30各自可实施为多种合适编码器电路中的任一者,合适编码器电路例如一个或一个以上处理器(包含微处理器)、数字信号处理器(DSP)、专用集成电路(ASIC)、现场可编程门阵列(FPGA)、离散逻辑、软件、硬件、固件或其任何组合。当所述技术部分地在软件中实施时,装置可将用于软件的指令存储在合适的非暂时性计算机可读媒体中,且在硬件中使用一个或一个以上处理器来执行所述指令以执行本发明的技术。Video encoder 20 and video decoder 30 may each be implemented as any of a variety of suitable encoder circuits, such as one or more processors (including microprocessors), digital signal processors (DSPs), application specific integrated circuits (ASICs), field programmable gate arrays (FPGAs), discrete logic, software, hardware, firmware, or any combination thereof. When the techniques are implemented partially in software, a device may store instructions for the software in a suitable, non-transitory computer-readable medium and execute the instructions in hardware using one or more processors to perform the techniques of this disclosure.
视频编码器20和视频解码器30中的每一者可包含在一个或一个以上编码器或解码器中,视频编码器20和视频解码器30中的任一者可集成为相应装置中的组合式编码器/解码器(CODEC)的部分。在一些实例中,视频编码器20和视频解码器30可共同地被称作译码信息(例如,图像和语法元素)的视频译码器。当视频译码器对应于视频编码器20时,信息的译码可指编码。当视频译码器对应于视频解码器30时,信息的译码可指解码。Each of video encoder 20 and video decoder 30 may be included in one or more encoders or decoders, and either of video encoder 20 and video decoder 30 may be integrated as part of a combined encoder/decoder (CODEC) in a respective device. In some examples, video encoder 20 and video decoder 30 may be collectively referred to as video coders that code information (e.g., pictures and syntax elements). When the video coder corresponds to video encoder 20, coding of information may refer to encoding. When the video coder corresponds to video decoder 30, coding of information may refer to decoding.
此外,本发明中所描述的技术可指视频编码器20用信号发出信息。当视频编码器20用信号发出信息时,本发明的技术一般指视频编码器20借以提供信息的任何方式。举例来说,当视频编码器20将语法元素用信号发出到视频解码器30时,可能意味着:视频编码器20经由输出接口24和通信信道16将语法元素传输到视频解码器30,或视频编码器20经由输出接口24将语法元素存储在存储媒体17和/或文件服务器19上以供视频解码器30最终接收。以此方式,从视频编码器20到视频解码器30的发信号不应被解释为需要来自视频编码器20的立即由视频解码器30接收的传输,但此情形可能为有可能的。而是,从视频编码器20到视频解码器30的发信号应被解释为视频编码器20借以提供用于供视频解码器30直接地或经由中间存储器(例如,在存储媒体17和/或文件服务器19中)最终接收的信息的任何技术。Furthermore, the techniques described in this disclosure may refer to video encoder 20 signaling information. When video encoder 20 signals information, the techniques of this disclosure generally refer to any means by which video encoder 20 provides the information. For example, when video encoder 20 signals syntax elements to video decoder 30, this may mean that video encoder 20 transmits the syntax elements to video decoder 30 via output interface 24 and communication channel 16, or that video encoder 20 stores the syntax elements on storage medium 17 and/or file server 19 via output interface 24 for eventual reception by video decoder 30. In this manner, signaling from video encoder 20 to video decoder 30 should not be interpreted as requiring transmission from video encoder 20 for immediate reception by video decoder 30, although such a scenario may be possible. Rather, signaling from video encoder 20 to video decoder 30 should be interpreted as any technique by which video encoder 20 provides information for eventual reception by video decoder 30, either directly or via intermediate storage (e.g., in storage medium 17 and/or file server 19).
视频编码器20和视频解码器30可经配置以实施本发明中所描述的用于导出参考图像集的实例技术。举例来说,视频解码器30可每一图像调用一次用以导出参考图像集的过程。视频解码器30可在解码切片标头之后但在解码任何译码单元之前且在用于切片的参考图像列表构造的解码过程之前,调用用以导出参考图像集的过程。Video encoder 20 and video decoder 30 may be configured to implement the example techniques described in this disclosure for deriving reference picture sets. For example, video decoder 30 may invoke the process for deriving a reference picture set once per picture. Video decoder 30 may invoke the process for deriving a reference picture set after decoding a slice header but before decoding any coding units and before the decoding process for reference picture list construction for the slice.
如上文所描述,参考图像集为关于参考图像的绝对描述,所述参考图像用于当前图像及解码次序上的未来经译码图像的解码过程中,直到下一瞬时解码再新(IDR)图像或断链接入(BLA)图像为止。在本发明中所描述的实例中,视频编码器20可显式地用信号发出值,视频解码器30可从所述值确定用于属于参考图像集的参考图像的识别符。在包含在参考图像集中的所有参考图像是显式地列出(除了特定图像,例如,IDR图像)的意义上,参考图像集发信号为显式的,无参考图像集语法元素包含在切片标头中且参考图像集经导出为空。As described above, a reference picture set is an absolute description of reference pictures that are used in the decoding process of the current picture and future coded pictures in decoding order until the next instantaneous decoded refresh (IDR) picture or broken link access (BLA) picture. In the examples described in this disclosure, video encoder 20 may explicitly signal a value from which video decoder 30 may determine identifiers for reference pictures belonging to the reference picture set. Reference picture set signaling is explicit in the sense that all reference pictures included in the reference picture set are explicitly listed (except for specific pictures, such as IDR pictures), no reference picture set syntax elements are included in the slice header, and the reference picture set is derived to be empty.
可能存在视频编码器20可借以在经译码位流中用信号发出语法元素的各种方式,视频解码器30可利用所述语法元素导出参考图像集。举例来说,视频编码器20可在图像参数集(PPS)、序列参数集(SPS)、图像标头(如果存在的话)、切片标头或其任何组合中用信号发出语法元素。仅为了说明的目的,视频编码器20可使用SPS、PPS和切片标头用信号发出语法元素,如更详细描述。There may be various ways by which video encoder 20 may signal syntax elements in the coded bitstream that video decoder 30 may utilize to derive a reference picture set. For example, video encoder 20 may signal the syntax elements in a picture parameter set (PPS), a sequence parameter set (SPS), a picture header (if present), a slice header, or any combination thereof. For purposes of illustration only, video encoder 20 may signal the syntax elements using an SPS, a PPS, and a slice header, as described in greater detail.
为了导出参考图像集,视频解码器30可实施解码过程以确定用于属于参考图像集的图像的识别符。视频解码器30可然后构造多个参考图像子集,其中所述子集中的每一者识别属于参考图像集的参考图像中的零者或多者。视频解码器30可从所构造的参考图像子集导出参考图像集。举例来说,视频解码器30可以特定次序列出所述多个参考图像子集以导出参考图像集。To derive a reference picture set, video decoder 30 may perform a decoding process to determine identifiers for pictures belonging to the reference picture set. Video decoder 30 may then construct multiple reference picture subsets, each of which identifies zero or more of the reference pictures belonging to the reference picture set. Video decoder 30 may derive the reference picture set from the constructed reference picture subsets. For example, video decoder 30 may list the multiple reference picture subsets in a particular order to derive the reference picture set.
可能存在视频解码器30可借以确定用于属于参考图像集的图像的识别符的各种方式。一般来说,视频编码器20可用信号发出值,视频解码器30可从所述值确定用于图像(包含属于参考图像集的图像)的识别符。图像的识别符可为PicOrderCnt(即,图像序列号(POC)值)。如上文所描述,POC值可指示图像的显示或输出次序,其中具有较小POC值的图像比具有较大POC值的图像早显示。给定图像的POC值可相对于先前瞬时解码再新(IDR)图像来说。举例来说,IDR图像的PicOrderCnt(即,POC值)可为0,在显示或输出次序上在IDR图像之后的POC值可为1,在显示或输出次序上在具有POC值1的图像之后的图像的POC值可为2,等等。There may be various ways by which video decoder 30 can determine identifiers for pictures belonging to a reference picture set. Generally speaking, video encoder 20 may signal a value from which video decoder 30 can determine identifiers for pictures, including pictures belonging to a reference picture set. The identifier for a picture may be a PicOrderCnt (i.e., a picture order number (POC) value). As described above, a POC value may indicate the display or output order of a picture, with pictures with smaller POC values being displayed earlier than pictures with larger POC values. The POC value of a given picture may be relative to a previous instantaneous decode refresh (IDR) picture. For example, the PicOrderCnt (i.e., POC value) of an IDR picture may be 0, a POC value of 1 may be subsequent to the IDR picture in display or output order, a POC value of 2 may be subsequent to the picture with a POC value of 1 in display or output order, and so on.
根据本发明中所描述的技术,在当前图像并不是IDR图像时,下文可适用于导出当前图像的POC值。下文意在辅助理解,且不应被视为限制性的。According to the techniques described in this disclosure, when the current picture is not an IDR picture, the following may be applied to derive the POC value of the current picture. The following is intended to aid understanding and should not be considered limiting.
举例来说,考虑列表变量listD,列表变量listD包含与包含所有以下各者的图像列表相关联的PicOrderCnt值(POC值)作为元素:(1)列表中的第一图像为解码次序上的先前IDR图像,以及(2)所有其它图像在解码次序上在列表中的第一图像之后且在解码次序上先于当前图像或者为当前图像。在此实例中,在调用用于参考图像集的导出过程之前,当前图像包含在listD中。而且,考虑列表变量listO,列表变量listO包含以POC值的递升次序排序的listD的元素。在此实例中,listO可能不含有具有等于另一图像的POC值的值的POC值。For example, consider a list variable listD that contains as elements PicOrderCnt values (POC values) associated with a list of pictures that contains all of the following: (1) the first picture in the list is the previous IDR picture in decoding order, and (2) all other pictures that follow the first picture in the list in decoding order and precede the current picture in decoding order or are the current picture. In this example, the current picture is included in listD before the derivation process for the reference picture set is called. Furthermore, consider a list variable listO that contains the elements of listD sorted in ascending order of POC values. In this example, listO may not contain a POC value that is equal to the POC value of another picture.
在一些实例中,POC值可限于-2pocLen-1到2pocLen-1-1(包含-2pocLen-1和2pocLen-1-1)的范围。在此实例中,pocLen可等于long_term_ref_pic_id_len_delta+long_term_ref_pic_id_delta_len_minus4+4。long_term_ref_pic_id_len_delta和long_term_ref_pic_id_delta_len_minus4可为视频解码器30在经译码位流中接收的作为图像参数集语法的部分的语法元素,如下文更详细描述。作为另一实例,POC值可限于-231到231-1(包含-231和231-1)的范围。In some examples, POC values may be limited to a range of -2 pocLen-1 to 2 pocLen - 1 -1, inclusive. In this example, pocLen may be equal to long_term_ref_pic_id_len_delta+long_term_ref_pic_id_delta_len_minus4+4. long_term_ref_pic_id_len_delta and long_term_ref_pic_id_delta_len_minus4 may be syntax elements received by video decoder 30 in the coded bitstream as part of picture parameter set syntax, as described in more detail below. As another example, POC values may be limited to a range of -2 31 to 2 31 -1 , inclusive.
作为一个实例,视频解码器30可在经译码位流(即,由视频编码器20用信号发出的位流)中接收pic_order_cnt_lsb语法元素。pic_order_cnt_lsb语法元素可指定经译码图像的图像序列号模数MaxPicOrderCntLsb。pic_order_cnt_lsb语法元素的长度可为log2_max_pic_order_cnt_lsb_minus4+4位。pic_order_cnt_lsb的值可在0到MaxPicOrderCntLsb-1(包含0和MaxPicOrderCntLsb-1)的范围内。视频解码器30可在待解码的当前图像的切片标头语法中接收pic_order_cnt_lsb语法元素。As one example, video decoder 30 may receive a pic_order_cnt_lsb syntax element in a coded bitstream (i.e., a bitstream signaled by video encoder 20). The pic_order_cnt_lsb syntax element may specify the picture sequence number modulo MaxPicOrderCntLsb of the coded picture. The length of the pic_order_cnt_lsb syntax element may be log2_max_pic_order_cnt_lsb_minus4+4 bits. The value of pic_order_cnt_lsb may be in the range of 0 to MaxPicOrderCntLsb-1, inclusive. Video decoder 30 may receive the pic_order_cnt_lsb syntax element in the slice header syntax of the current picture to be decoded.
视频解码器30还可在由视频编码器20用信号发出的经译码位流中接收log2_max_pic_order_cnt_lsb_minus4语法元素。视频解码器30可在序列参数集中接收log2_max_pic_order_cnt_lsb_minus4语法元素。log2_max_pic_order_cnt_lsb_minu4的值可在0到12(包含0和12)的范围内。log2_max_pic_order_cnt_lsb_minus4语法元素可指定变量MaxPicOrderCntLsb的值,视频解码器30在用于确定POC值的解码过程中使用变量MaxPicOrderCntLsb的值。举例来说:Video decoder 30 may also receive a log2_max_pic_order_cnt_lsb_minus4 syntax element in the coded bitstream signaled by video encoder 20. Video decoder 30 may receive the log2_max_pic_order_cnt_lsb_minus4 syntax element in a sequence parameter set. The value of log2_max_pic_order_cnt_lsb_minus4 may be in the range of 0 to 12, inclusive. The log2_max_pic_order_cnt_lsb_minus4 syntax element may specify the value of the variable MaxPicOrderCntLsb, which video decoder 30 uses in the decoding process for determining the POC value. For example:
MaxPicOrderCntLsb=2(log2_max_pic_order_cnt_lsb_minus4+4)。MaxPicOrderCntLsb=2 (log2_max_pic_order_cnt_lsb_minus4+4) .
根据这些所接收语法元素,视频解码器30可确定当前图像的POC值如下。举例来说,视频解码器30可确定用于当前图像的PicOrderCntMsb。用于当前图像的POC值可为用于当前图像的所确定的PicOrderCntMsb加上用于当前图像的所接收的pic_order_cnt_lsb。Based on these received syntax elements, video decoder 30 may determine a POC value for the current picture as follows. For example, video decoder 30 may determine PicOrderCntMsb for the current picture. The POC value for the current picture may be the determined PicOrderCntMsb for the current picture plus the received pic_order_cnt_lsb for the current picture.
在下文中,函数PicOrderCnt(picX)等于用于图像X的POC值。函数DiffPicOrderCnt(picA,picB)等于PicOrderCnt(picA)减去PicOrderCnt(picB)。在一些实例中,经译码位流可能不包含产生用于解码过程中的DiffPicOrderCnt(picA,picB)的超过-215到215-1(包含-215和215-1)的范围的值的数据。此外,假设:X为当前图像且Y和Z为相同序列中的两个其它图像,其中当DiffPicOrderCnt(X,Y)与DiffPicOrderCnt(X,Z)两者为正或DiffPicOrderCnt(X,Y)与DiffPicOrderCnt(X,Z)两者为负时,Y和Z被视为从X起的相同输出次序方向。而且,在一些实例中,视频编码器20可指配与相对于先前IDR图像的取样时间的对应图像的取样时间成比例的PicOrderCnt。In the following, the function PicOrderCnt(picX) is equal to the POC value for picture X. The function DiffPicOrderCnt(picA, picB) is equal to PicOrderCnt(picA) minus PicOrderCnt(picB). In some examples, the coded bitstream may not include data that generates values for DiffPicOrderCnt(picA, picB) that exceed the range of -2 15 to 2 15 -1 (inclusive) for use in the decoding process. Furthermore, assume that X is the current picture and Y and Z are two other pictures in the same sequence, where when DiffPicOrderCnt(X, Y) and DiffPicOrderCnt(X, Z) are both positive or DiffPicOrderCnt(X, Y) and DiffPicOrderCnt(X, Z) are both negative, Y and Z are considered to be in the same output order direction from X. Also, in some examples, video encoder 20 may assign a PicOrderCnt that is proportional to the sampling time of the corresponding picture relative to the sampling time of the previous IDR picture.
作为确定用于当前图像的POC值的过程的部分,视频解码器30可确定变量prevPicOrderCntMsb和prevPicOrderCntLsb。举例来说,如果当前图像为IDR图像,那么视频解码器30可将prevPicOrderCntMsb设置为等于0,且将prevPicOrderCntLsb设置为等于0。否则(即,在当前图像并不是IDR图像的情况下),视频解码器30可将prevPicOrderCntMsb设置为等于具有小于或等于当前图像的temporal_id的temporal_id的解码次序上的先前参考图像的PicOrderCntMsb,且将prevPicOrderCntLsb设置为等于具有小于或等于当前图像的temporal_id的temporal_id的解码次序上的先前参考图像的pic_order_cnt_lsb的值。As part of the process of determining the POC value for the current picture, video decoder 30 may determine the variables prevPicOrderCntMsb and prevPicOrderCntLsb. For example, if the current picture is an IDR picture, video decoder 30 may set prevPicOrderCntMsb to 0 and prevPicOrderCntLsb to 0. Otherwise (i.e., if the current picture is not an IDR picture), video decoder 30 may set prevPicOrderCntMsb to be equal to the PicOrderCntMsb of the previous reference picture in decoding order that has a temporal_id less than or equal to the temporal_id of the current picture, and set prevPicOrderCntLsb to be equal to the value of the PicOrderCntLsb of the previous reference picture in decoding order that has a temporal_id less than or equal to the temporal_id of the current picture.
通过这些变量值和语法元素的值(例如,prevPicOrderCntMsb、prevPicOrderCntLsb、pic_order_cnt_lsb和MaxPicOrderCntLsb的值),视频解码器30可基于以下伪码中所阐述的步骤确定PicOrderCntMsb的值。应理解,视频解码器30可实施以下伪码中所阐述的步骤,以确定用以导出当前图像的POC值的用于每一当前图像的PicOrderCntMsb。With these variable values and the values of syntax elements (e.g., the values of prevPicOrderCntMsb, prevPicOrderCntLsb, pic_order_cnt_lsb, and MaxPicOrderCntLsb), video decoder 30 may determine the value of PicOrderCntMsb based on the steps set forth in the following pseudo-code. It should be understood that video decoder 30 may implement the steps set forth in the following pseudo-code to determine the PicOrderCntMsb for each current picture used to derive the POC value of the current picture.
if((pic_order_cnt_lsb<prevPicOrderCntLsb)&&((prevPicOrderCntLsb-pic_order_cnt_lsb)>=(MaxPicOrderCntLsb/2)))if((pic_order_cnt_lsb<prevPicOrderCntLsb)&&((prevPicOrderCntLsb-pic_order_cnt_lsb)>=(MaxPicOrderCntLsb/2)))
PicOrderCntMsb=prevPicOrderCntMsb+MaxPicOrderCntLsbPicOrderCntMsb=prevPicOrderCntMsb+MaxPicOrderCntLsb
else if((pic_order_cnt_lsb>prevPicOrderCntLsb)&&((pic_order_cnt_lsb-prevPicOrderCntLsb)>(MaxPicOrderCntLsb/2)))else if((pic_order_cnt_lsb>prevPicOrderCntLsb)&&((pic_order_cnt_lsb-prevPicOrderCntLsb)>(MaxPicOrderCntLsb/2)))
PicOrderCntMsb=prevPicOrderCntMsb-MaxPicOrderCntLsbPicOrderCntMsb=prevPicOrderCntMsb-MaxPicOrderCntLsb
elseelse
PicOrderCntMsb=prevPicOrderCntMsbPicOrderCntMsb=prevPicOrderCntMsb
在确定用于当前图像的PicOrderCntMsb之后,视频解码器30可基于用于当前图像的PicOrderCntMsb和用于当前图像的pic_order_cnt_lsb而确定用于当前图像的POC值。视频解码器30可确定用于当前图像的POC值如下:After determining PicOrderCntMsb for the current picture, video decoder 30 may determine a POC value for the current picture based on PicOrderCntMsb for the current picture and pic_order_cnt_lsb for the current picture. Video decoder 30 may determine the POC value for the current picture as follows:
PicOrderCnt=PicOrderCntMsb+pic_order_cnt_lsb。PicOrderCnt=PicOrderCntMsb+pic_order_cnt_lsb.
在解码图像之后,视频解码器30可将用于所述图像(包含属于参考图像集的参考图像中的每一者)的PicOrderCntMsb值、pic_order_cnt_lsb值和POC值存储在视频解码器30的已解码图像缓冲器(DPB)中。以此方式,DPB中的每一图像与一POC值、一PicOrderCntMsb值和一pic_order_cnt_lsb值相关联。After decoding a picture, video decoder 30 may store the PicOrderCntMsb value, pic_order_cnt_lsb value, and POC value for the picture (including each of the reference pictures belonging to a reference picture set) in a decoded picture buffer (DPB) of video decoder 30. In this manner, each picture in the DPB is associated with a POC value, a PicOrderCntMsb value, and a pic_order_cnt_lsb value.
下文更详细描述用于确定包含在当前图像的参考图像集中的参考图像的POC值的方法。根据所确定的POC值,视频解码器30可实施用于参考图像集的导出过程。然而,在描述视频解码器30借以实施用于参考图像集的导出过程的方式之前,下文提供视频解码器30可在由视频编码器20用信号发出的经译码位流中接收的语法元素的表格。举例来说,视频编码器20可在视频解码器30接收的经译码位流中用信号发出以下表格中的语法元素。上文已描述了这些语法元素中的一些语法元素。根据所述语法元素,视频解码器30可确定包含在参考图像集中的参考图像的POC值且进一步导出参考图像集。A method for determining POC values for reference pictures included in the reference picture set of the current picture is described in more detail below. Based on the determined POC values, video decoder 30 can implement a derivation process for the reference picture set. However, before describing the manner in which video decoder 30 implements the derivation process for the reference picture set, a table of syntax elements that video decoder 30 can receive in a coded bitstream signaled by video encoder 20 is provided below. For example, video encoder 20 can signal the syntax elements in the following table in the coded bitstream received by video decoder 30. Some of these syntax elements have been described above. Based on these syntax elements, video decoder 30 can determine POC values for reference pictures included in the reference picture set and further derive the reference picture set.
举例来说,在本发明中所描述的技术中,相对于先前视频译码标准修改以下语法结构:序列参数集(SPS)原始字节序列有效载荷(RBSP)语法seq_paramater_set_rbsq()、图像参数集(PPS)RBSP语法pic_parameter_set_rbsp()、切片标头语法slice_header(),和参考图像列表修改语法ref_pic_list_modification()。在导出参考图像集及初始化一个或一个以上参考图像列表的描述之后,更详细地描述参考图像列表修改。For example, in the techniques described in this disclosure, the following syntax structures are modified relative to previous video coding standards: sequence parameter set (SPS) raw byte sequence payload (RBSP) syntax seq_paramater_set_rbsq(), picture parameter set (PPS) RBSP syntax pic_parameter_set_rbsp(), slice header syntax slice_header(), and reference picture list modification syntax ref_pic_list_modification(). Reference picture list modification is described in more detail following the description of deriving reference picture sets and initializing one or more reference picture lists.
而且,根据本发明中所描述的技术,将以下语法结构添加到经译码位流:短期参考图像集语法short_term_ref_pic_set(),和长期参考图像集语法long_term_ref_pic_set()。视频解码器30可利用短期参考图像集语法和长期参考图像集语法,以用于构造参考图像子集的目的,视频解码器30从所述参考图像子集导出参考图像集。Furthermore, in accordance with the techniques described in this disclosure, the following syntax structures are added to the coded bitstream: a short-term reference picture set syntax, short_term_ref_pic_set(), and a long-term reference picture set syntax, long_term_ref_pic_set(). Video decoder 30 may utilize the short-term reference picture set syntax and the long-term reference picture set syntax for the purpose of constructing reference picture subsets from which it derives a reference picture set.
举例来说,为了供视频解码器30确定用于属于参考图像集的参考图像的POC值,视频编码器20可在图像参数集中用信号发出视频解码器30用以确定POC值的参考图像识别信息,且可在切片标头中参考到列表的索引。然而,此方式为视频编码器20可借以用信号发出此参考图像识别信息的一种实例方式。For example, in order for video decoder 30 to determine a POC value for a reference picture belonging to a reference picture set, video encoder 20 may signal, in a picture parameter set, reference picture identification information that video decoder 30 uses to determine the POC value, and may reference an index to the list in a slice header. However, this is only one example of how video encoder 20 may signal such reference picture identification information.
在一个替代实例中,视频编码器20可在序列参数集中用信号发出参考图像信息且可在切片标头中参考到列表的索引,此情形可减少发信号耗用。在另一替代实例中,视频译码器可在新类型的参数集(例如,参考图像集参数集(RPSPS))中用信号发出参考图像信息,且可在切片标头中参考RPSPS id以及到参考图像识别信息列表的索引两者。此情形可减少发信号耗用以及不增加对图像参数集或序列参数集的数目的需要。在其它实例中,视频编码器20可利用这些实例技术的任何组合来用信号发出参考图像识别信息。In one alternative example, video encoder 20 may signal reference picture information in a sequence parameter set and may reference an index to a list in a slice header, which may reduce signaling overhead. In another alternative example, the video coder may signal reference picture information in a new type of parameter set, such as a reference picture set parameter set (RPSPS), and may reference both the RPSPS ID and an index to a list of reference picture identification information in a slice header. This may reduce signaling overhead and not increase the number of picture parameter sets or sequence parameter sets. In other examples, video encoder 20 may utilize any combination of these example techniques to signal reference picture identification information.
表1.序列参数集RBSP语法Table 1. Sequence parameter set RBSP syntax
pic_width_in_luma_samples可指定明度样本中的每一已解码图像的宽度。pic_width_in_luma_samples的值可在0到216-1(包含0和216-1)的范围内。pic_width_in_luma_samples may specify the width of each decoded picture in luma samples. The value of pic_width_in_luma_samples may be in the range of 0 to 2 16 −1, inclusive.
pic_height_in_luma_samples可指定明度样本中的每一已解码图像的高度。pic_height_in_luma_samples的值可在0到216-1(包含0和216-1)的范围内。pic_height_in_luma_samples may specify the height of each decoded picture in luma samples. The value of pic_height_in_luma_samples may be in the range of 0 to 2 16 −1, inclusive.
如表1中所指示,视频解码器30可在序列参数集(SPS)中接收log2_max_pic_order_cnt_lsb_minus4语法元素。如上文所描述,log2_max_pic_order_cnt_lsb_minu4的值可指定视频解码器30在用于确定POC值的解码过程中使用的变量MaxPicOrderCntLsb的值,其中MaxPicOrderCntLsb=2(log2_max_pic_order_cnt_lsb_minus4+4)。As indicated in Table 1, video decoder 30 may receive the log2_max_pic_order_cnt_lsb_minus4 syntax element in a sequence parameter set (SPS). As described above, the value of log2_max_pic_order_cnt_lsb_minus4 may specify the value of the variable MaxPicOrderCntLsb that video decoder 30 uses in the decoding process for determining the POC value, where MaxPicOrderCntLsb=2 (log2_max_pic_order_cnt_lsb_minus4+4) .
表2.图像参数集RBSP语法Table 2. Picture parameter set RBSP syntax
num_short_term_ref_pic_sets_pps指定包含在图像参数集中的short_term_ref_pic_set()语法结构的数目。num_short_term_ref_pic_sets_pps的值应在0到32(包含0和32)的范围内。num_short_term_ref_pic_sets_pps specifies the number of short_term_ref_pic_set() syntax structures contained in the picture parameter set. The value of num_short_term_ref_pic_sets_pps shall be in the range of 0 to 32, inclusive.
等于0的long_term_ref_pics_present_flag指定:无长期参考图像用于参考图像参数集对任何经译码图像进行帧间预测,且不存在语法元素long_term_ref_pic_id_delta_len_minus4、long_term_ref_pic_id_len_delta和num_long_term_ref_pics_pps。等于1的long_term_ref_pics_present_flag指定:长期参考图像可用于参考图像参数集对一个或一个以上经译码图像进行帧间预测,且存在语法元素long_term_ref_pic_id_delta_len_minus4、long_term_ref_pic_id_len_delta和num_long_term_ref_pics_pps。long_term_ref_pics_present_flag equal to 0 specifies that no long-term reference picture is used for inter prediction of any coded picture with reference to the picture parameter set, and the syntax elements long_term_ref_pic_id_delta_len_minus4, long_term_ref_pic_id_len_delta, and num_long_term_ref_pics_pps are not present. long_term_ref_pics_present_flag equal to 1 specifies that a long-term reference picture may be used for inter prediction of one or more coded pictures with reference to the picture parameter set, and the syntax elements long_term_ref_pic_id_delta_len_minus4, long_term_ref_pic_id_len_delta, and num_long_term_ref_pics_pps are present.
long_term_ref_pic_id_delta_len_minus4+4指定long_term_ref_pic_id_delta_add_foll[i]语法元素的位长度。long_term_ref_pic_id_delta_len_minus4的值应在0到12(包含0和12)的范围内。long_term_ref_pic_id_delta_len_minus4+4 specifies the length in bits of the long_term_ref_pic_id_delta_add_foll[i] syntax element. The value of long_term_ref_pic_id_delta_len_minus4 shall be in the range of 0 to 12, inclusive.
long_term_ref_pic_id_len_delta+long_term_ref_pic_id_delta_len_minus4+4指定long_term_ref_pic_id_pps[i]语法元素的位长度。long_term_ref_pic_id_len_delta的值可在0到28-long_term_ref_pic_id_delta_len_minus4(包含0和28-long_term_ref_pic_id_delta_len_minus4)的范围内。参考一个特定序列参数集的所有图像参数集中的long_term_ref_pic_id_len_delta+long_term_ref_pic_id_delta_len_minus4+4的值可相同。long_term_ref_pic_id_len_delta + long_term_ref_pic_id_delta_len_minus4+4 specifies the length in bits of the long_term_ref_pic_id_pps[i] syntax element. The value of long_term_ref_pic_id_len_delta can be in the range of 0 to 28 - long_term_ref_pic_id_delta_len_minus4, inclusive. The value of long_term_ref_pic_id_len_delta + long_term_ref_pic_id_delta_len_minus4+4 can be the same in all picture parameter sets that reference a particular sequence parameter set.
num_long_term_ref_pics_pps指定包含在图像参数集中的长期参考图像的识别的数目。num_long_term_ref_pics_pps的值可在0到32(包含0和32)的范围内。num_long_term_ref_pics_pps specifies the number of identified long-term reference pictures included in the picture parameter set. The value of num_long_term_ref_pics_pps may be in the range of 0 to 32, inclusive.
long_term_ref_pic_id_pps[i]指定包含在图像参数集中的第i长期参考图像识别信息。用以表示long_term_ref_pic_id_pps[i]的位的数目可等于long_term_ref_pic_id_len_delta+long_term_pic_id_len_minus4+4。long_term_ref_pic_id_pps[i] specifies the i-th long-term reference picture identification information included in the picture parameter set. The number of bits used to represent long_term_ref_pic_id_pps[i] may be equal to long_term_ref_pic_id_len_delta+long_term_pic_id_len_minus4+4.
表3.短期参考图像集语法Table 3. Short-term reference picture set syntax
短期参考图像集语法可用于短期图像。短期图像可经定义为满足以下情形的参考图像:识别信息包含在用于经译码图像的short_term_ref_pic_set()语法结构中,short_term_ref_pic_set()语法结构包含在(多个)切片标头中或包含在所参考图像参数集中且通过(多个)切片标头中的short_term_ref_pic_set_idx语法元素来参考。在下文表4中提供切片标头语法元素。Short-term reference picture set syntax may be used for short-term pictures. A short-term picture may be defined as a reference picture whose identification information is included in the short_term_ref_pic_set() syntax structure for the coded picture, which is included in the slice header(s) or in the referenced picture parameter set and referenced by the short_term_ref_pic_set_idx syntax element in the slice header(s). The slice header syntax elements are provided in Table 4 below.
当short_term_ref_pic_set()语法结构用于导出经译码图像的参考图像集时,num_short_term_curr0指定RefPicSetStCurr0中的短期参考图像的数目,如下文所描述。num_short_term_curr0的值可在0到max_num_ref_frames(包含0和max_num_ref_frames)的范围内。When the short_term_ref_pic_set() syntax structure is used to derive a reference picture set for a coded picture, num_short_term_curr0 specifies the number of short-term reference pictures in RefPicSetStCurr0, as described below. The value of num_short_term_curr0 may be in the range of 0 to max_num_ref_frames, inclusive.
当short_term_ref_pic_set()语法结构用于导出经译码图像的参考图像集时,num_short_term_curr1指定RefPicSetStCurr1中的短期参考图像的数目,如下文所描述。num_short_term_curr1的值可在0到max_num_ref_frames-num_short_term_curr0(包含0和max_num_ref_frames-num_short_term_curr0)的范围内。When the short_term_ref_pic_set() syntax structure is used to derive a reference picture set for a coded picture, num_short_term_curr1 specifies the number of short-term reference pictures in RefPicSetStCurr1, as described below. The value of num_short_term_curr1 may be in the range of 0 to max_num_ref_frames-num_short_term_curr0, inclusive.
当short_term_ref_pic_set()语法结构用于导出经译码图像的参考图像集时,num_short_term_foll0指定RefPicSetStFoll0中的短期参考图像的数目,如下文所描述。num_short_term_foll0的值可在0到max_num_ref_frames-num_short_term_curr0-num_short_term_curr1(包含0和max_num_ref_frames-num_short_term_curr0-num_short_term_curr1)的范围内。When the short_term_ref_pic_set() syntax structure is used to derive a reference picture set for a coded picture, num_short_term_foll0 specifies the number of short-term reference pictures in RefPicSetStFoll0, as described below. The value of num_short_term_foll0 may be in the range of 0 to max_num_ref_frames-num_short_term_curr0-num_short_term_curr1, inclusive.
当short_term_ref_pic_set()语法结构用于导出经译码图像的参考图像集时,num_short_term_foll1指定RefPicSetStFoll1中的短期参考图像的数目,如下文所描述。num_short_term_foll1的值应在0到max_num_ref_frames-num_short_term_curr0-num_short_term_curr1-num_short_term_foll0(包含0和max_num_ref_frames-num_short_term_curr0-num_short_term_curr1-num_short_term_foll0)的范围内。When the short_term_ref_pic_set() syntax structure is used to derive a reference picture set for a coded picture, num_short_term_foll1 specifies the number of short-term reference pictures in RefPicSetStFoll1, as described below. The value of num_short_term_foll1 shall be in the range of 0 to max_num_ref_frames - num_short_term_curr0 - num_short_term_curr1 - num_short_term_foll0, inclusive.
short_term_ref_pic_id_delta_minus1[i]指定包含在short_term_ref_pic_set()语法结构中的第i短期参考图像的识别信息。short_term_ref_pic_id_delta_minus1[i] specifies the identification information of the i-th short-term reference picture contained in the short_term_ref_pic_set() syntax structure.
表4.切片标头语法Table 4. Slice header syntax
no_output_of_prior_pics_flag指定在解码IDR图像之后如何处理已解码图像缓冲器中的先前已解码图像。当IDR图像为位流中的第一IDR图像时,no_output_of_prior_pics_flag的值可能对解码过程无影响。当IDR图像并不是位流中的第一IDR图像且从有效序列参数集导出的pic_width_in_luma_samples或pic_height_in_luma_samples或max_dec_frame_buffering的值可能不同于从用于前一图像的有效序列参数集导出的pic_width_in_luma_samples或pic_height_in_luma_samples或max_dec_frame_buffering的值时,等于1的no_output_of_prior_pics_flag可(但未必)由解码器来推断,而不管no_output_of_prior_pics_flag的实际值。The no_output_of_prior_pics_flag specifies how previously decoded pictures in the decoded picture buffer are handled after an IDR picture is decoded. When the IDR picture is the first IDR picture in the bitstream, the value of no_output_of_prior_pics_flag may have no effect on the decoding process. When the IDR picture is not the first IDR picture in the bitstream and the values of pic_width_in_luma_samples or pic_height_in_luma_samples or max_dec_frame_buffering derived from the valid sequence parameter set may be different from the values of pic_width_in_luma_samples or pic_height_in_luma_samples or max_dec_frame_buffering derived from the valid sequence parameter set for the previous picture, a no_output_of_prior_pics_flag equal to 1 may (but is not necessarily) be inferred by the decoder, regardless of the actual value of no_output_of_prior_pics_flag.
等于1的short_term_ref_pic_set_pps_flag指定:包含在用于当前图像的参考图像集中的短期参考图像集合的识别信息存在于所参考的图像参数集中。等于0的short_term_ref_pic_set_pps_flag指定:包含在用于当前图像的参考图像集中的短期参考图像集合的识别信息不存在于所参考的图像参数集中。short_term_ref_pic_set_pps_flag equal to 1 specifies that identification information of the short-term reference picture set contained in the reference picture set for the current picture is present in the referenced picture parameter set. short_term_ref_pic_set_pps_flag equal to 0 specifies that identification information of the short-term reference picture set contained in the reference picture set for the current picture is not present in the referenced picture parameter set.
short_term_ref_pic_set_idx指定包含在所参考的图像参数集中的short_term_ref_pic_set()语法结构的索引,其包含用于当前图像的参考图像集中的短期参考图像集合的识别信息。short_term_ref_pic_set_idx specifies the index of the short_term_ref_pic_set() syntax structure contained in the referenced picture parameter set, which contains identification information of the short-term reference picture set in the reference picture set for the current picture.
将变量NumShortTermCurr0和NumShortTermCurr1指定为:Specify the variables NumShortTermCurr0 and NumShortTermCurr1 as:
NumShortTermCurr0=num_short_term_curr0NumShortTermCurr0=num_short_term_curr0
NumShortTermCurr1=num_short_term_curr1NumShortTermCurr1=num_short_term_curr1
在num_short_term_curr0和num_short_term_curr0分别为short_term_ref_pic_set()语法结构中的相同名称的语法元素的情况下,存在于所参考的图像参数集中且通过short_term_ref_pic_set_idx来参考,或者直接存在于切片标头中。In the case where num_short_term_curr0 and num_short_term_curr1 are respectively syntax elements of the same name in the short_term_ref_pic_set() syntax structure, they exist in the referenced picture parameter set and are referenced by short_term_ref_pic_set_idx, or they exist directly in the slice header.
num_ref_idx_l0_active_minus1指定用于将用以解码切片的参考图像列表0的最大参考索引。num_ref_idx_l0_active_minus1 specifies the maximum reference index for reference picture list 0 to be used to decode the slice.
在当前切片为P或B切片且num_ref_idx_l0_active_minus1不存在时,可推断num_ref_idx_l0_active_minus1等于num_ref_idx_l0_default_active_minus1。When the current slice is a P or B slice and num_ref_idx_l0_active_minus1 does not exist, num_ref_idx_l0_active_minus1 may be inferred to be equal to num_ref_idx_l0_default_active_minus1.
num_ref_idx_l0_active_minus1的值可在0到15(包含0和15)的范围内。The value of num_ref_idx_l0_active_minus1 may be in the range of 0 to 15, inclusive.
num_ref_idx_l1_active_minus1指定用于将用以解码切片的参考图像列表1的最大参考索引。num_ref_idx_l1_active_minus1 specifies the maximum reference index for reference picture list 1 to be used to decode the slice.
在当前切片为P或B切片且num_ref_idx_l0_active_minus1不存在时,可推断num_ref_idx_l1_active_minus1等于num_ref_idx_l1_default_active_minus1。When the current slice is a P or B slice and num_ref_idx_l0_active_minus1 does not exist, num_ref_idx_l1_active_minus1 may be inferred to be equal to num_ref_idx_l1_default_active_minus1.
num_ref_idx_l1_active_minus1的值可在0到15(包含0和15)的范围内。The value of num_ref_idx_l1_active_minus1 may be in the range of 0 to 15, inclusive.
表5.长期参考图像集语法Table 5. Long-term reference picture set syntax
长期参考图像集语法可用于长期图像。长期图像可经定义为识别信息包含在用于经译码图像的long_term_ref_pic_set()语法结构中的参考图像。Long-term reference picture set syntax may be used for long-term pictures. A long-term picture may be defined as a reference picture whose identification information is contained in the long_term_ref_pic_set() syntax structure for the coded picture.
num_long_term_pps_curr指定识别信息包含在所参考的图像参数集中且可用于对当前图像进行帧间预测的所有长期参考图像的数目。如果num_long_term_pps_curr不存在,那么可导出值为等于0。num_long_term_pps_curr的值可在0到max_num_ref_frames(包含0和max_num_ref_frames)的范围内。num_long_term_pps_curr specifies the number of all long-term reference pictures whose identification information is contained in the referenced picture parameter set and which can be used for inter prediction of the current picture. If num_long_term_pps_curr is not present, then the value may be derived to be equal to 0. The value of num_long_term_pps_curr may be in the range of 0 to max_num_ref_frames (inclusive).
num_long_term_add_curr指定识别信息未包含在所参考的图像参数集中且可用于对当前图像进行帧间预测的所有长期参考图像的数目。如果num_long_term_add_curr不存在,那么可导出值为等于0。num_long_term_add_curr的值可在0到max_num_ref_frames-num_long_term_pps_curr(包含0和max_num_ref_frames-num_long_term_pps_curr)的范围内。num_long_term_add_curr specifies the number of all long-term reference pictures whose identification information is not included in the referenced picture parameter set and that can be used for inter prediction of the current picture. If num_long_term_add_curr is not present, then the value may be derived to be equal to 0. The value of num_long_term_add_curr may be in the range of 0 to max_num_ref_frames - num_long_term_pps_curr (inclusive).
将变量NumLongTermCurr指定为:Assign the variable NumLongTermCurr as:
NumLongTermCurr=num_long_term_pps_curr+num_long_term_add_currNumLongTermCurr=num_long_term_pps_curr+num_long_term_add_curr
num_long_term_pps_foll指定满足以下情形的所有长期参考图像的数目:识别信息包含在所参考的图像参数集中,不用于对当前图像进行帧间预测,且可用于对在解码次序上在当前图像之后的图像中的任一者进行帧间预测。如果num_long_term_pps_foll不存在,那么可导出值为等于0。num_long_term_pps_foll的值可在0到max_num_ref_frames(包含0和max_num_ref_frames)的范围内。num_long_term_pps_foll specifies the number of all long-term reference pictures whose identification information is contained in the referenced picture parameter set, which are not used for inter prediction of the current picture, and which can be used for inter prediction of any picture following the current picture in decoding order. If num_long_term_pps_foll is not present, then the value may be derived to be equal to 0. The value of num_long_term_pps_foll may be in the range of 0 to max_num_ref_frames (inclusive).
num_long_term_add_foll指定满足以下情形的所有长期参考图像的数目:识别信息未包含在所参考的图像参数集中,不用于对当前图像进行帧间预测,且可用于对解码次序上的随后图像中的任一者进行帧间预测。如果num_long_term_add_foll不存在,那么可导出值为等于0。num_long_term_add_foll的值可在0到max_num_ref_frames-num_long_term_pps_foll(包含0和max_num_ref_frames-num_long_term_pps_foll)的范围内。num_long_term_add_foll specifies the number of all long-term reference pictures whose identification information is not included in the referenced picture parameter set, which are not used for inter prediction of the current picture, and which can be used for inter prediction of any subsequent pictures in decoding order. If num_long_term_add_foll is not present, the value may be derived to be equal to 0. The value of num_long_term_add_foll may be in the range of 0 to max_num_ref_frames - num_long_term_pps_foll (inclusive).
long_term_ref_pic_set_idx_pps[i]指定从所参考的图像参数集到当前图像的参考图像集而继承的第i长期参考图像的到包含在所参考的图像参数集中的长期参考图像识别信息的列表的索引。long_term_ref_pic_set_idx_pps[i]的值可在0到31(包含0和31)的范围内。long_term_ref_pic_set_idx_pps[i] specifies the index of the list of long-term reference picture identification information contained in the referenced picture parameter set for the i-th long-term reference picture inherited from the referenced picture parameter set to the reference picture set of the current picture. The value of long_term_ref_pic_set_idx_pps[i] can be in the range of 0 to 31 (inclusive).
long_term_ref_pic_id_delta_add[i]指定并不是从所参考的图像参数集而继承但包含在当前图像的参考图像集中的第i长期参考图像的长期参考图像识别信息。用以表示long_term_ref_pic_id_add_curr[i]的位的数目可等于long_term_pic_id_len_minus4+4。long_term_ref_pic_id_delta_add[i] specifies the long-term reference picture identification information of the i-th long-term reference picture that is not inherited from the referenced picture parameter set but is included in the reference picture set of the current picture. The number of bits used to represent long_term_ref_pic_id_add_curr[i] may be equal to long_term_pic_id_len_minus4+4.
通过上述用信号发出的或导出的值(即,表1到5中的值),视频解码器30可导出参考图像集。如上文所描述,所导出的参考图像集可识别可潜在地用以译码/预测当前图像(即,当前正被解码的图像)及在解码次序上在当前图像之后的图像的参考图像。根据本发明中所描述的技术,所导出的参考图像集中的所有参考图像的解码次序比当前图像的解码次序早。Using the values signaled or derived above (i.e., the values in Tables 1-5), video decoder 30 may derive a reference picture set. As described above, the derived reference picture set may identify reference pictures that can potentially be used to code/predict the current picture (i.e., the picture currently being decoded) and pictures that follow the current picture in decoding order. According to the techniques described in this disclosure, all reference pictures in the derived reference picture set have a decoding order that is earlier than the decoding order of the current picture.
导出过程可包含从多个参考图像子集构造参考图像集。可在解码切片标头之后但在解码任何译码单元之前且在用于切片的参考图像列表构造的解码过程之前,每一图像调用一次此过程。举例来说,根据所导出的值和用信号发出的语法元素,视频解码器30可确定用于属于参考图像集的参考图像的POC值。根据所确定的POC值,视频解码器30可构造一起形成参考图像集的参考图像子集。以此方式,通过构造参考图像子集,视频解码器30可构造参考图像集。举例来说,视频解码器30可以特定方式将所述参考图像子集排序以导出参考图像集。排序可指视频解码器30借以列出参考图像子集以导出参考图像集的方式。The derivation process may include constructing a reference picture set from multiple reference picture subsets. This process may be invoked once per picture after decoding the slice header but before decoding any coding units and before the decoding process for constructing the reference picture list for the slice. For example, based on the derived values and signaled syntax elements, video decoder 30 may determine POC values for reference pictures belonging to the reference picture set. Based on the determined POC values, video decoder 30 may construct a subset of reference pictures that together form a reference picture set. In this manner, by constructing the reference picture subsets, video decoder 30 may construct a reference picture set. For example, video decoder 30 may order the reference picture subsets in a particular manner to derive the reference picture set. Ordering may refer to the manner in which video decoder 30 lists the reference picture subsets to derive the reference picture set.
如上文所描述,为了导出参考图像集,视频解码器30可构造多个参考图像子集。在一些实例中,视频解码器30可构造六个参考图像子集。所述六个参考图像子集可命名为:RefPicSetStCurr0、RefPicSetStCurr1、RefPicSetStFoll0、RefPicSetStFoll1、RefPicSetLtCurr,和RefPicSetLtFoll。RefPicSetStCurr0可被称作RefPicSetStCurrBefore,且RefPicSetStCurr1可被称作RefPicSetStCurrAfter。As described above, to derive a reference picture set, video decoder 30 may construct multiple reference picture subsets. In some examples, video decoder 30 may construct six reference picture subsets. The six reference picture subsets may be named: RefPicSetStCurr0, RefPicSetStCurr1, RefPicSetStFoll0, RefPicSetStFoll1, RefPicSetLtCurr, and RefPicSetLtFoll. RefPicSetStCurr0 may be referred to as RefPicSetStCurrBefore, and RefPicSetStCurr1 may be referred to as RefPicSetStCurrAfter.
应理解,用于说明的目的而描述六个参考图像子集,且所述情形不应被解释为限制性的。作为一个实例,视频解码器30可(例如)通过组合所述子集中的一些子集而构造比六个参考图像子集少的参考图像子集。下文描述视频解码器30构造少于六个的参考图像子集的这些实例中的一些实例。然而,为了说明的目的,通过视频解码器30构造六个参考图像子集的实例描述所述技术。It should be understood that six reference picture subsets are described for illustrative purposes and should not be construed as limiting. As an example, video decoder 30 may construct fewer than six reference picture subsets, for example, by combining some of the subsets. Some of these examples in which video decoder 30 constructs fewer than six reference picture subsets are described below. However, for illustrative purposes, the techniques are described using an example in which video decoder 30 constructs six reference picture subsets.
RefPicSetStCurr0、RefPicSetStCurr1、RefPicSetStFoll0和RefPicSetStFoll1参考图像子集可识别短期参考图像。在一些实例中,这些参考图像子集可基于以下各者而识别短期参考图像:短期参考图像是在显示次序上比正被译码的当前图像早还是在显示次序上比正被译码的当前图像迟,以及短期参考图像是否可潜在地用于对当前图像及在解码次序上在当前图像之后的图像进行帧间预测,或是否可潜在地用于仅对在解码次序上在当前图像之后的图像进行帧间预测。The RefPicSetStCurr0, RefPicSetStCurr1, RefPicSetStFoll0, and RefPicSetStFoll1 reference picture subsets may identify short-term reference pictures. In some examples, these reference picture subsets may identify short-term reference pictures based on whether the short-term reference picture is earlier in display order than the current picture being coded or later in display order than the current picture being coded, and whether the short-term reference picture can potentially be used for inter-prediction of the current picture and pictures that follow the current picture in decoding order, or can potentially be used for inter-prediction of only pictures that follow the current picture in decoding order.
举例来说,RefPicSetStCurr0参考图像子集可包含(且可仅包含)满足以下情形的所有短期参考图像的识别信息(例如,POC值):具有比当前图像的输出或显示次序早的输出或显示次序,且可潜在地用于在当前图像的帧间预测中供参考,且可潜在地用于在解码次序上在当前图像之后的一个或一个以上图像的帧间预测中供参考。RefPicSetStCurr1参考图像子集可包含(且可仅包含)满足以下情形的所有短期参考图像的识别信息:具有比当前图像的输出或显示次序迟的输出或显示次序,且可潜在地用于在当前图像的帧间预测中供参考,且可潜在地用于在解码次序上在当前图像之后的一个或一个以上图像的帧间预测中供参考。For example, the RefPicSetStCurr0 reference picture subset may include (and may only include) identification information (e.g., POC values) of all short-term reference pictures that have an output or display order earlier than that of the current picture and that are potentially usable for reference in inter-frame prediction of the current picture and that are potentially usable for reference in inter-frame prediction of one or more pictures that follow the current picture in decoding order. The RefPicSetStCurr1 reference picture subset may include (and may only include) identification information of all short-term reference pictures that have an output or display order later than that of the current picture and that are potentially usable for reference in inter-frame prediction of the current picture and that are potentially usable for reference in inter-frame prediction of one or more pictures that follow the current picture in decoding order.
RefPicSetStFoll0参考图像子集可包含(且可仅包含)满足以下情形的所有短期参考图像的识别信息:具有比当前图像的输出或显示次序早的输出或显示次序,可潜在地用于在解码次序上在当前图像之后的一个或一个以上图像的帧间预测中供参考,且无法用于在当前图像的帧间预测中供参考。RefPicSetStFoll1参考图像子集可包含(且可仅包含)满足以下情形的所有短期参考图像的识别信息:具有比当前图像的输出或显示次序迟的输出或显示次序,可潜在地用于在解码次序上在当前图像之后的一个或一个以上图像的帧间预测中供参考,且无法用于在当前图像的帧间预测中供参考。The RefPicSetStFoll0 reference picture subset may include (and may only include) identification information of all short-term reference pictures that satisfy the following conditions: have an output or display order earlier than that of the current picture, may be potentially used for reference in inter-frame prediction of one or more pictures that follow the current picture in decoding order, and cannot be used for reference in inter-frame prediction of the current picture. The RefPicSetStFoll1 reference picture subset may include (and may only include) identification information of all short-term reference pictures that satisfy the following conditions: have an output or display order later than that of the current picture, may be potentially used for reference in inter-frame prediction of one or more pictures that follow the current picture in decoding order, and cannot be used for reference in inter-frame prediction of the current picture.
RefPicSetLtCurr和RefPicSetLtFoll参考图像子集可识别长期参考图像。在一些实例中,这些参考图像子集可基于长期参考图像是在显示次序上比正被译码的当前图像早还是在显示次序上比正被译码的当前图像迟,识别长期参考图像。The RefPicSetLtCurr and RefPicSetLtFoll reference picture subsets may identify long-term reference pictures. In some examples, these reference picture subsets may identify long-term reference pictures based on whether the long-term reference picture is earlier in display order than the current picture being coded or later in display order than the current picture being coded.
举例来说,RefPicSetLtCurr参考图像子集可包含(且可仅包含)满足以下情形的所有长期参考图像的识别信息:可潜在地用于在当前图像的帧间预测中供参考,且可潜在地用于在解码次序上在当前图像之后的一个或一个以上图像的帧间预测中供参考。RefPicSetLtFoll参考图像子集可包含(且可仅包含)满足以下情形的所有长期参考图像的识别信息:可潜在地用于在解码次序上在当前图像之后的一个或一个以上图像的帧间预测中供参考,且无法用于在当前图像的帧间预测中供参考。For example, the RefPicSetLtCurr reference picture subset may include (and may only include) identification information of all long-term reference pictures that can potentially be used for reference in inter-frame prediction of the current picture and can potentially be used for reference in inter-frame prediction of one or more pictures that follow the current picture in decoding order. The RefPicSetLtFoll reference picture subset may include (and may only include) identification information of all long-term reference pictures that can potentially be used for reference in inter-frame prediction of one or more pictures that follow the current picture in decoding order and cannot be used for reference in inter-frame prediction of the current picture.
如果待解码的当前图像为IDR图像,那么视频解码器30可将RefPicSetStCurr0、RefPicSetStCurr1、RefPicSetStFoll0、RefPicSetStFoll1、RefPicSetLtCurr和RefPicSetLtFoll参考图像子集设置为空。此情形可能因为:IDR图像无法进行帧间预测且在解码次序上在IDR图像之后的图像均无法在解码中使用在IDR图像之前的任何图像供参考。否则(例如,在当前图像为非IDR图像时),视频解码器30可通过实施以下伪码而构造短期参考图像子集和长期参考图像子集。If the current picture to be decoded is an IDR picture, video decoder 30 may set the RefPicSetStCurr0, RefPicSetStCurr1, RefPicSetStFoll0, RefPicSetStFoll1, RefPicSetLtCurr, and RefPicSetLtFoll reference picture subsets to empty. This may be because IDR pictures cannot be inter-predicted and pictures following the IDR picture in decoding order cannot use any pictures preceding the IDR picture for reference during decoding. Otherwise (e.g., when the current picture is a non-IDR picture), video decoder 30 may construct the short-term reference picture subset and the long-term reference picture subset by implementing the following pseudo code.
举例来说,当视频解码器30解码在切片标头中或者参考所参考的图像参数集的short_term_ref_pic_set()语法结构的实例时,视频解码器30可实施以下伪码以构造RefPicSetStCurr0、RefPicSetStCurr1、RefPicSetStFoll0和RefPicSetStFoll1参考图像子集。For example, when video decoder 30 decodes an instance of the short_term_ref_pic_set() syntax structure in a slice header or referenced picture parameter set, video decoder 30 may implement the following pseudocode to construct the RefPicSetStCurr0, RefPicSetStCurr1, RefPicSetStFoll0, and RefPicSetStFoll1 reference picture subsets.
cIdx=0cIdx=0
for(i=0,pocPred=PicOrderCnt(CurrPic);i<num_short_term_curr0;pocPred=RefPicSetStCurr0[i],i++,cIdx++)for(i=0,pocPred=PicOrderCnt(CurrPic); i<num_short_term_curr0; pocPred=RefPicSetStCurr0[i],i++,cIdx++)
RefPicSetStCurr0[i]=pocPred-short_term_ref_pic_id_delta_minus1[cIdx]-1RefPicSetStCurr0[i]=pocPred-short_term_ref_pic_id_delta_minus1[cIdx]-1
for(i=0,pocPred=PicOrderCnt(CurrPic);i<num_short_term_curr1;pocPred=RefPicSetStCurr1[i],i++,cIdx++)for(i=0,pocPred=PicOrderCnt(CurrPic); i<num_short_term_curr1; pocPred=RefPicSetStCurr1[i],i++,cIdx++)
RefPicSetStCurr1[i]=short_term_ref_pic_id_delta_minus1[cIdx]+1-pocPredRefPicSetStCurr1[i]=short_term_ref_pic_id_delta_minus1[cIdx]+1-pocPred
for(i=0,pocPred=PicOrderCnt(CurrPic);i<num_short_term_foll0;pocPred=RefPicSetStFoll[i],i++,cIdx++)for(i=0,pocPred=PicOrderCnt(CurrPic); i<num_short_term_foll0; pocPred=RefPicSetStFoll[i],i++,cIdx++)
RefPicSetStFoll0[i]=pocPred-short_term_ref_pic_id_delta_minus1[cIdx]-1RefPicSetStFoll0[i]=pocPred-short_term_ref_pic_id_delta_minus1[cIdx]-1
for(i=0,pocPred=PicOrderCnt(CurrPic);i<num_short_term_foll1;pocPred=RefPicSetStFoll[i],i++,cIdx++)for(i=0,pocPred=PicOrderCnt(CurrPic); i<num_short_term_foll1; pocPred=RefPicSetStFoll[i],i++,cIdx++)
RefPicSetStFoll1[i]=short_term_ref_pic_id_delta_minus1[cIdx]+1-pocPredRefPicSetStFoll1[i]=short_term_ref_pic_id_delta_minus1[cIdx]+1-pocPred
如果视频解码器30确定long_term_ref_pics_present_flag等于0,那么视频解码器30可将RefPicSetLtCurr和RefPicSetLtFoll设置为空,这是因为对于此情况不存在长期参考图像。否则,如果视频解码器30解码切片标头中的long_term_ref_pic_set()语法结构的实例,那么视频解码器30可实施以下伪码以构造RefPicSetLtCurr和RefPicSetLtFoll参考图像子集。If video decoder 30 determines that long_term_ref_pics_present_flag is equal to 0, then video decoder 30 may set RefPicSetLtCurr and RefPicSetLtFoll to null because no long-term reference pictures exist for this case. Otherwise, if video decoder 30 decodes an instance of the long_term_ref_pic_set() syntax structure in a slice header, then video decoder 30 may implement the following pseudo-code to construct the RefPicSetLtCurr and RefPicSetLtFoll reference picture subsets.
根据本发明中所描述的技术,如果具有PicOrderCnt的特定值(POC值)的参考图像包含在经译码图像的参考图像集的六个子集中的任一者中,那么所述参考图像可被称作包含在所述经译码图像的参考图像集中。如果PicOrderCnt的特定值(POC值)等于包含在参考图像集的特定子集中的PicOrderCnt值中的一者,那么具有PicOrderCnt的特定值的参考图像被称作包含在所述子集中。According to the techniques described in this disclosure, a reference picture with a particular value of PicOrderCnt (POC value) is said to be included in a reference picture set for a coded picture if the reference picture is included in any of the six subsets of the reference picture set for the coded picture. A reference picture with a particular value of PicOrderCnt is said to be included in a particular subset of the reference picture set if the particular value of PicOrderCnt (POC value) is equal to one of the PicOrderCnt values included in the subset.
在构造参考图像子集之后,视频解码器30可导出参考图像集。举例来说,视频解码器30可将所述参考图像子集排序以导出参考图像集。作为一个实例,视频解码器30可列出RefPicSetStCurr0参考图像子集、后接续有RefPicSetStCurr1参考图像子集、后接续有RefPicSetStFoll0参考图像子集、后接续有RefPicSetStFoll1参考图像子集、后接续有RefPicSetLtCurr参考图像子集,及然后的RefPicSetLtFoll参考图像子集。作为另一实例,视频解码器30可列出RefPicSetStCurr0参考图像子集、后接续有RefPicSetStCurr1参考图像子集、后接续有RefPicSetLtCurr参考图像子集、后接续有RefPicSetStFoll0参考图像子集、后接续有RefPicSetStFoll1,及然后的RefPicSetLtFoll参考图像子集。After constructing the reference picture subsets, video decoder 30 may derive the reference picture sets. For example, video decoder 30 may order the reference picture subsets to derive the reference picture sets. As an example, video decoder 30 may list the RefPicSetStCurr0 reference picture subset, followed by the RefPicSetStCurr1 reference picture subset, followed by the RefPicSetStFoll0 reference picture subset, followed by the RefPicSetStFoll1 reference picture subset, followed by the RefPicSetLtCurr reference picture subset, and then the RefPicSetLtFoll reference picture subset. As another example, video decoder 30 may list the RefPicSetStCurr0 reference picture subset, followed by the RefPicSetStCurr1 reference picture subset, followed by the RefPicSetLtCurr reference picture subset, followed by the RefPicSetStFoll0 reference picture subset, followed by RefPicSetStFoll1, and then the RefPicSetLtFoll reference picture subset.
视频解码器30借以将参考图像子集排序的方式的其它排列可能有可能用于导出参考图像集。在一些实例中,可将参考图像子集的构造与参考图像集的导出组合在一起。举例来说,参考图像子集的构造可自动地导致视频解码器30导出参考图像集。换句话说,视频解码器30可能不需要执行不同步骤以用于构造参考图像子集及导出参考图像集,但视频解码器30可能有可能首先构造参考图像子集且然后导出参考图像集。Other permutations of the manner in which video decoder 30 orders the reference picture subsets may be possible for deriving the reference picture set. In some examples, the construction of the reference picture subsets may be combined with the derivation of the reference picture set. For example, the construction of the reference picture subsets may automatically cause video decoder 30 to derive the reference picture set. In other words, video decoder 30 may not need to perform different steps for constructing the reference picture subsets and deriving the reference picture set, but it may be possible for video decoder 30 to first construct the reference picture subsets and then derive the reference picture set.
而且,根据本发明中所描述的技术,以上文所描述的方式构造参考图像集可导致视频解码器30满足以下限制。举例来说,具有PicOrderCnt的特定值的特定参考图像可能不包含在当前图像的参考图像集的参考图像子集中的一者以上中。换句话说,在参考图像子集中的一者中识别的参考图像可能在其它参考图像子集中的任一者中未加以识别。作为另一实例,在所导出的参考图像集中,可能不存在具有大于包含在形成参考图像集的参考图像子集中的任一者中的当前图像的temporal_id的temporal_id的参考图像。Furthermore, constructing the reference picture set in the manner described above, according to the techniques described in this disclosure, may result in video decoder 30 satisfying the following constraints. For example, a particular reference picture having a particular value of PicOrderCnt may not be included in more than one of the reference picture subsets in the reference picture set of the current picture. In other words, a reference picture identified in one of the reference picture subsets may not be identified in any of the other reference picture subsets. As another example, in the derived reference picture set, there may not be a reference picture having a temporal_id greater than the temporal_id of the current picture included in any of the reference picture subsets forming the reference picture set.
如上文所描述,时间识别值(temporal_id)可为指示哪些图像可用于译码/预测当前图像的阶层值。一般来说,具有特定temporal_id值的图像可能有可能为用于具有相等或较大temporal_id值的图像的参考图像,但反过来不成立。举例来说,具有temporal_id值1的图像可能有可能为用于具有temporal_id值1、2、3,……的图像的参考图像,但不可能为用于具有temporal_ID值0的图像的参考图像。As described above, a temporal identification value (temporal_id) may be a hierarchical value that indicates which pictures can be used for coding/predicting the current picture. Generally speaking, a picture with a particular temporal_id value may be a reference picture for pictures with equal or greater temporal_id values, but the reverse is not true. For example, a picture with a temporal_id value of 1 may be a reference picture for pictures with temporal_id values of 1, 2, 3, ..., but not for a picture with a temporal_id value of 0.
最低temporal_id值还可指示最低显示率。举例来说,如果视频解码器30仅解码具有temporal_id值0的图像,那么显示率可为7.5个图像/秒。如果视频解码器30仅解码具有temporal_id值0和1的图像,那么显示率可为15个图像/秒,等等。The lowest temporal_id value may also indicate the lowest display rate. For example, if video decoder 30 only decodes pictures with a temporal_id value of 0, the display rate may be 7.5 pictures/second. If video decoder 30 only decodes pictures with temporal_id values 0 and 1, the display rate may be 15 pictures/second, and so on.
在一些实例中,仅具有小于或等于当前图像的temporal_id的temporal_id值的图像可包含在当前图像的参考图像集中。如上文所描述,仅具有小于或等于当前图像的temporal_id的temporal_id值的图像可用作参考图像。因此,具有较低或相等temporal_id值的所有参考图像可供当前图像使用以用于进行帧间预测且可包含在参考图像集中。而且,将满足以下情形的一些参考图像从参考图像集中排除:具有大于当前图像的temporal_id值的temporal_id值,及将供在解码次序上在当前图像之后的图像使用且具有大于当前图像的temporal_id值的temporal_id值。In some examples, only pictures with temporal_id values less than or equal to the temporal_id of the current picture can be included in the reference picture set for the current picture. As described above, only pictures with temporal_id values less than or equal to the temporal_id of the current picture can be used as reference pictures. Therefore, all reference pictures with lower or equal temporal_id values can be used by the current picture for inter-frame prediction and can be included in the reference picture set. Furthermore, some reference pictures are excluded from the reference picture set if they have temporal_id values greater than the temporal_id value of the current picture, or if they are to be used by pictures that follow the current picture in decoding order and have temporal_id values greater than the temporal_id value of the current picture.
通过这些技术,不需要temporal_id的发信号以及用于导出参考图像集的图像识别;因此,参考图像集发信号变得更有效率。举例来说,视频编码器20可能不用信号发出属于参考图像集的参考图像的temporal_id值,且视频解码器30可能不需要接收属于参考图像集的参考图像的temporal_id值以用于导出参考图像集的目的。Through these techniques, signaling of temporal_id and picture identification for deriving a reference picture set is not required; therefore, reference picture set signaling becomes more efficient. For example, video encoder 20 may not signal temporal_id values for reference pictures belonging to a reference picture set, and video decoder 30 may not need to receive temporal_id values for reference pictures belonging to a reference picture set for the purpose of deriving a reference picture set.
此外,以此方式,所构造的参考图像子集可能不识别具有大于当前图像的temporal_id值的temporal_id值的参考图像。举例来说,视频解码器30可能能够构造参考图像子集,且确保在参考图像子集中的任一者中识别的参考图像均不具有大于当前图像的temporal_id值的temporal_id值,这是因为位流一致性可能需要temporal_id值不包含在由视频编码器20用信号发出且由视频解码器30接收的位流中。以此方式,视频解码器30可在不接收用于属于参考图像集的参考图像的时间识别值的情况下导出参考图像集。Furthermore, in this manner, the constructed reference picture subsets may not identify reference pictures having temporal_id values greater than the temporal_id value of the current picture. For example, video decoder 30 may be able to construct the reference picture subsets and ensure that no reference picture identified in any of the reference picture subsets has a temporal_id value greater than the temporal_id value of the current picture, because bitstream consistency may require that the temporal_id value not be included in the bitstream signaled by video encoder 20 and received by video decoder 30. In this manner, video decoder 30 may derive a reference picture set without receiving temporal identification values for reference pictures belonging to the reference picture set.
在上述实例中,视频解码器30可构造六个参考图像子集,其中四个参考图像子集用于短期参考图像(即,RefPicSetStCurr0、RefPicSetStCurr1、RefPicSetStFoll0和RefPicSetStFoll1),且两个参考图像子集用于长期参考图像(即,RefPicSetLtCurr和RefPicSetLtFoll)。然而,本发明的方面不应受此限制。在其它实例中,可将这些参考图像子集中的两者或两者以上组合成一个参考图像子集,从而导致视频解码器30构造较少参考图像子集。下文描述视频解码器30可构造较少参考图像子集的一些非限制性实例。可能存在视频解码器30可借以构造较少参考图像子集的其它方式。In the above example, video decoder 30 may construct six reference picture subsets, four of which are for short-term reference pictures (i.e., RefPicSetStCurr0, RefPicSetStCurr1, RefPicSetStFoll0, and RefPicSetStFoll1) and two of which are for long-term reference pictures (i.e., RefPicSetLtCurr and RefPicSetLtFoll). However, aspects of this disclosure should not be so limited. In other examples, two or more of these reference picture subsets may be combined into one reference picture subset, resulting in video decoder 30 constructing fewer reference picture subsets. Some non-limiting examples of how video decoder 30 may construct fewer reference picture subsets are described below. There may be other ways in which video decoder 30 may construct fewer reference picture subsets.
举例来说,在一些实例中,可能不存在用于当前图像的子集与用于解码次序上的随后图像的子集的分离。因此,可能存在用于短期参考图像的两个子集(被称作RefPicSetSt0和RefPicSetSt1),且可能仅存在用于长期参考图像的一个子集(被称作RefPicSetLt)。在此实例中,RefPicSetSt0参考图像子集可为RefPicSetStCurr0与RefPicSetStFoll0的并置,其中RefPicSetStCurr0在并置结果的开始处。在此实例中,RefPicSetSt1参考图像子集可为RefPicSetStCurr1与RefPicSetStFoll1的并置,其中RefPicSetStCurr1在并置结果的开始处。RefPicSetLt参考图像子集可为RefPicSetLtCurr与RefPicSetLtFoll的并置,其中RefPicSetLtCurr在并置结果的开始处。For example, in some instances, there may not be a separation between the subset for the current picture and the subset for subsequent pictures in decoding order. Thus, there may be two subsets for short-term reference pictures (referred to as RefPicSetSt0 and RefPicSetSt1), and only one subset for long-term reference pictures (referred to as RefPicSetLt). In this example, the RefPicSetSt0 reference picture subset may be the concatenation of RefPicSetStCurr0 and RefPicSetStFoll0, with RefPicSetStCurr0 at the beginning of the concatenation. In this example, the RefPicSetSt1 reference picture subset may be the concatenation of RefPicSetStCurr1 and RefPicSetStFoll1, with RefPicSetStCurr1 at the beginning of the concatenation. The RefPicSetLt reference picture subset may be the concatenation of RefPicSetLtCurr and RefPicSetLtFoll, with RefPicSetLtCurr at the beginning of the concatenation.
作为另一实例,可能不存在具有比当前图像早或迟的输出次序的子集的分离。此情形可仅适用于短期参考图像。因此,可能存在用于短期参考图像的两个子集,其被称作RefPicSetStCurr和RefPicSetStFoll。RefPicSetStCurr参考图像子集可为RefPicSetStCurr0与RefPicSetStCurr1的并置,其中RefPicSetStCurr0在并置结果的开始处。RefPicSetStFoll参考图像子集可为RefPicSetStFoll0与RefPicSetStFoll1的并置,其中RefPicSetStFoll0在并置结果的开始处。As another example, there may not be a separation of subsets having an output order earlier or later than the current picture. This scenario may only apply to short-term reference pictures. Thus, there may be two subsets for short-term reference pictures, referred to as RefPicSetStCurr and RefPicSetStFoll. The RefPicSetStCurr reference picture subset may be the concatenation of RefPicSetStCurr0 and RefPicSetStCurr1, with RefPicSetStCurr0 at the beginning of the concatenation. The RefPicSetStFoll reference picture subset may be the concatenation of RefPicSetStFoll0 and RefPicSetStFoll1, with RefPicSetStFoll0 at the beginning of the concatenation.
作为另一实例,可能不应用上文所叙述的两种类型的分离。因此,可能仅存在用于短期参考图像的一个子集(被称作RefPicSetSt),且仅存在用于长期参考图像的一个子集(被称作RefPicSetLt)。RefPicSetSt参考图像子集可为呈所列次序(或任何其它次序)的RefPicSetStCurr0、RefPicSetStCurr1、RefPicSetStFoll0和RefPicSetStFoll1的并置,且RefPicSetLt可与上述情形相同。As another example, the two types of separation described above may not apply. Thus, there may be only one subset for short-term reference pictures (called RefPicSetSt) and only one subset for long-term reference pictures (called RefPicSetLt). The RefPicSetSt reference picture subset may be the concatenation of RefPicSetStCurr0, RefPicSetStCurr1, RefPicSetStFoll0, and RefPicSetStFoll1 in the order listed (or any other order), and RefPicSetLt may be the same as above.
上述技术描述视频解码器30可借以导出参考图像集的实例方式。在编码过程期间,视频编码器20还可能需要解码经编码图像以用于编码后续图像的目的,此过程被称作重构造过程。因此,在一些实例中,视频编码器20还可经配置以导出参考图像集。在一些实例中,视频编码器20可实施与视频解码器30实施的用以导出参考图像集的技术相同的技术。然而,可能不需要在每个实例中由视频编码器20导出参考图像集,且视频解码器30可能为导出参考图像集的仅有的译码器。The above techniques describe example ways in which video decoder 30 may derive a reference picture set. During the encoding process, video encoder 20 may also need to decode encoded pictures for the purpose of encoding subsequent pictures, a process known as a reconstruction process. Therefore, in some examples, video encoder 20 may also be configured to derive a reference picture set. In some examples, video encoder 20 may implement the same techniques as video decoder 30 to derive a reference picture set. However, it may not be necessary for video encoder 20 to derive a reference picture set in every example, and video decoder 30 may be the only coder deriving a reference picture set.
因此,在一些实例中,视频译码器(例如,视频编码器20或视频解码器30)可译码(例如,分别为编码或解码)指示属于参考图像集的参考图像的信息。举例来说,视频编码器20可用信号发出经编码位流,所述经编码位流包含用以确定哪些参考图像属于参考图像集的值。类似地,视频解码器30可解码位流以确定哪些参考图像属于参考图像集。Thus, in some examples, a video coder (e.g., video encoder 20 or video decoder 30) may code (e.g., encode or decode, respectively) information indicating reference images that belong to a reference image set. For example, video encoder 20 may signal an encoded bitstream that includes values used to determine which reference images belong to the reference image set. Similarly, video decoder 30 may decode the bitstream to determine which reference images belong to the reference image set.
视频译码器可构造多个参考图像子集,每一参考图像子集识别所述参考图像中的零者或多者。举例来说,视频译码器可构造六个参考图像子集(即,RefPicSetStCurr0、RefPicSetStCurr1、RefPicSetStFoll0、RefPicSetStFoll1、RefPicSetLtCurr和RefPicSetLtFoll参考图像子集),其中所述子集中的每一者识别零或多个参考图像。在一些实例中,视频译码器可基于所述多个参考图像子集而译码当前图像。The video coder may construct multiple reference picture subsets, each reference picture subset identifying zero or more of the reference pictures. For example, the video coder may construct six reference picture subsets (i.e., RefPicSetStCurr0, RefPicSetStCurr1, RefPicSetStFoll0, RefPicSetStFoll1, RefPicSetLtCurr, and RefPicSetLtFoll reference picture subsets), each of which identifies zero or more reference pictures. In some examples, the video coder may code a current picture based on the multiple reference picture subsets.
举例来说,视频译码器可从所述所构造的多个参考图像子集导出参考图像集。举例来说,视频译码器可以任何次序将所述参考图像子集排序以导出参考图像集,或可作为构造参考图像子集的部分导出参考图像集。在一些实例中,根据所导出的参考图像集,视频译码器可译码当前图像。因为参考图像集是从所述多个参考图像子集导出,所以视频译码器可被视为基于所述多个参考图像子集而译码当前图像。For example, the video coder may derive a reference picture set from the constructed multiple reference picture subsets. For example, the video coder may sort the reference picture subsets in any order to derive the reference picture set, or may derive the reference picture set as part of constructing the reference picture subsets. In some examples, the video coder may code the current picture based on the derived reference picture set. Because the reference picture set is derived from the multiple reference picture subsets, the video coder may be considered to be coding the current picture based on the multiple reference picture subsets.
在一些实例中,为了将参考图像子集排序,视频译码器可以参考图像子集待列于参考图像集中的次序构造参考图像子集。举例来说,视频译码器可首先构造RefPicSetLtCurr参考图像子集,然后构造RefPicSetLtFoll参考图像子集,然后构造RefPicSetStCurr0参考图像子集,然后构造RefPicSetStCurr1参考图像子集,然后构造RefPicSetStFoll0参考图像子集,且然后构造RefPicSetStFoll1参考图像子集。在此说明性实例中,参考图像集中的参考图像子集的次序可为RefPicSetLtCurr、RefPicSetLtFoll、RefPicSetStCurr0、RefPicSetStCurr1、RefPicSetStFoll0和RefPicSetStFoll1(呈所述次序),但其它次序是有可能的。In some examples, to order the reference picture subsets, the video coder may construct the reference picture subsets in the order in which they are to be listed in the reference picture set. For example, the video coder may first construct the RefPicSetLtCurr reference picture subset, then construct the RefPicSetLtFoll reference picture subset, then construct the RefPicSetStCurr0 reference picture subset, then construct the RefPicSetStCurr1 reference picture subset, then construct the RefPicSetStFoll0 reference picture subset, and then construct the RefPicSetStFoll1 reference picture subset. In this illustrative example, the order of the reference picture subsets in the reference picture set may be RefPicSetLtCurr, RefPicSetLtFoll, RefPicSetStCurr0, RefPicSetStCurr1, RefPicSetStFoll0, and RefPicSetStFoll1 (in that order), although other orders are possible.
根据本发明中所描述的实例技术,在导出参考图像集之后,视频解码器30可解码当前图像内的切片。解码过程的部分涉及构造一个或两个参考图像列表。参考图像列表为用于P或B切片的预测的参考图像的列表。对于P切片的解码过程,存在一个参考图像列表(列表0)。对于B切片的解码过程,存在两个参考图像列表(列表0和列表1)。列表0(有时被称作参考图像列表0或RefPicList0)为用于对P或B切片进行帧间预测的参考图像列表。用于P切片的所有帧间预测使用列表0。参考图像列表0为用于B切片的双向预测的两个参考图像列表中的一者,其中另一参考图像列表为参考图像列表1。列表1(有时被称作参考图像列表1或RefPicList1)为用于B切片的预测的参考图像列表。参考图像列表1为用于B切片的预测的两个参考图像列表中的一者,其中另一参考图像列表为参考图像列表0。可使用列表0与列表1两者对B切片中的一些块进行双向预测,且可使用列表0或列表1对B切片中的一些块进行单向预测。According to the example techniques described in this disclosure, after deriving a reference picture set, video decoder 30 can decode a slice within the current picture. Part of the decoding process involves constructing one or two reference picture lists. A reference picture list is a list of reference pictures used for prediction of a P or B slice. For the decoding process of a P slice, there is one reference picture list (List 0). For the decoding process of a B slice, there are two reference picture lists (List 0 and List 1). List 0 (sometimes referred to as Reference Picture List 0 or RefPicList0) is the reference picture list used for inter-frame prediction of a P or B slice. All inter-frame predictions for P slices use List 0. Reference Picture List 0 is one of two reference picture lists used for bidirectional prediction of B slices, with the other reference picture list being Reference Picture List 1. List 1 (sometimes referred to as Reference Picture List 1 or RefPicList1) is the reference picture list used for prediction of a B slice. Reference Picture List 1 is one of two reference picture lists used for prediction of a B slice, with the other reference picture list being Reference Picture List 0. Some blocks in a B slice may be bi-directionally predicted using both list 0 and list 1, and some blocks in a B slice may be uni-directionally predicted using either list 0 or list 1.
为了构造参考图像列表,视频解码器30可实施默认构造技术以构造初始列表0和(对于B切片)初始列表1。初始列表0和初始列表1的构造可被称作初始化过程。在一些实例中,经译码位流可指示:视频解码器30应修改初始列表0和/或初始列表1以产生最终列表0和最终列表1。初始列表0和/或初始列表1的修改可被称作修改过程。可能不需要在每个实例中进行修改过程,且下文更详细描述视频解码器30可借以实施修改过程的方式。根据本发明中所描述的技术,当不需要初始列表0或初始列表1的修改时,最终列表0或最终列表1(即,用以解码当前图像的切片的参考图像列表0或1)可等于初始列表0或初始列表1。以此方式,可能不需要参考图像列表重新排序。To construct the reference picture lists, video decoder 30 may implement a default construction technique to construct Initial List 0 and (for B slices) Initial List 1. The construction of Initial List 0 and Initial List 1 may be referred to as an initialization process. In some examples, the coded bitstream may indicate that video decoder 30 should modify Initial List 0 and/or Initial List 1 to produce Final List 0 and Final List 1. The modification of Initial List 0 and/or Initial List 1 may be referred to as a modification process. The modification process may not be required in every example, and the manner in which video decoder 30 may implement the modification process is described in more detail below. According to the techniques described in this disclosure, when modification of Initial List 0 or Initial List 1 is not required, Final List 0 or Final List 1 (i.e., the reference picture list 0 or 1 used to decode the slice of the current picture) may be equal to Initial List 0 or Initial List 1. In this way, reference picture list reordering may not be required.
在本发明中所描述的技术中,视频解码器30可以视频解码器30可能不需要执行待包含在初始列表0或初始列表1中的参考图像的重新排序的方式构造初始列表0或初始列表1,而不管是否需要修改过程,这是因为参考图像子集中的每一者中的参考图像已经呈适当次序。举例来说,在一些其它技术中,不管是否需要修改过程,在将参考图像添加或列入到初始列表0或初始列表1中时,需要根据参考图像的POC值将待包含在初始列表0或初始列表1中的参考图像重新排序。In the techniques described in this disclosure, video decoder 30 may construct initial List 0 or initial List 1 in a manner that, regardless of whether a modification process is required, video decoder 30 may not need to perform reordering of reference pictures to be included in initial List 0 or initial List 1 because the reference pictures in each of the reference picture subsets are already in the proper order. For example, in some other techniques, regardless of whether a modification process is required, when adding or listing a reference picture to initial List 0 or initial List 1, the reference pictures to be included in initial List 0 or initial List 1 need to be reordered according to their POC values.
在初始化过程中,视频解码器30可实施默认构造技术以构造初始列表0和初始列表1。默认构造技术可意味着:在不从视频编码器20接收关于视频解码器30应借以构造初始参考图像列表的方式或应在初始参考图像列表中识别哪些参考图像的语法元素的情况下,视频解码器30构造初始参考图像列表。During initialization, video decoder 30 may implement a default construction technique to construct initial list 0 and initial list 1. The default construction technique may mean that video decoder 30 constructs the initial reference picture lists without receiving syntax elements from video encoder 20 regarding the manner in which video decoder 30 should construct the initial reference picture lists or which reference pictures should be identified in the initial reference picture lists.
当解码P或B切片标头时,视频解码器30可调用参考图像列表构造过程。举例来说,当解码P切片时,视频解码器30可调用用于构造初始列表0的过程,而可能不调用用于构造初始列表1的过程,这是因为P切片中的块仅涉及在列表0中识别的参考图像进行单向预测。当解码B切片时,视频解码器30可调用用于构造初始列表0及构造初始列表1的过程,这是因为B切片中的块可关于在列表0和列表1中的每一者中识别的参考图像进行双向预测。When decoding a P or B slice header, video decoder 30 may invoke a reference picture list construction process. For example, when decoding a P slice, video decoder 30 may invoke a process for constructing Initial List 0, but may not invoke a process for constructing Initial List 1, because blocks in a P slice are only unidirectionally predicted with respect to the reference pictures identified in List 0. When decoding a B slice, video decoder 30 may invoke a process for constructing Initial List 0 and a process for constructing Initial List 1, because blocks in a B slice may be bidirectionally predicted with respect to the reference pictures identified in each of List 0 and List 1.
根据本发明中所描述的实例技术,视频解码器30可利用参考图像子集构造初始列表0和初始列表1。举例来说,初始列表0和初始列表1可列出在RefPicSetStCurr0、RefPicSetStCurr1或RefPicSetLtCurr中识别的零或多个参考图像。在此实例中,当调用参考图像列表构造过程时,RefPicSetStCurr0、RefPicSetStCurr1和RefPicSetLtCurr中可能存在至少一个参考图像。尽管初始列表0和初始列表1可识别来自相同参考图像子集的一个或一个以上参考图像,但视频解码器30在初始列表0中添加参考图像的次序可能不同于视频解码器30在初始列表1中添加参考图像的次序。According to example techniques described in this disclosure, video decoder 30 may construct Initial List 0 and Initial List 1 using subsets of reference pictures. For example, Initial List 0 and Initial List 1 may list zero or more reference pictures identified in RefPicSetStCurr0, RefPicSetStCurr1, or RefPicSetLtCurr. In this example, at least one reference picture may be present in RefPicSetStCurr0, RefPicSetStCurr1, and RefPicSetLtCurr when the reference picture list construction process is called. Although Initial List 0 and Initial List 1 may identify one or more reference pictures from the same subset of reference pictures, the order in which video decoder 30 adds the reference pictures in Initial List 0 may be different from the order in which video decoder 30 adds the reference pictures in Initial List 1.
在本发明中,当视频解码器30在初始列表0或初始列表1中添加(例如,列出)来自参考图像子集中的一者或一者以上的参考图像时,本发明提及视频解码器30识别初始列表0或初始列表1中的参考图像。举例来说,所述多个参考图像子集可各自识别零或多个参考图像。为了构造初始列表0和初始列表1,视频解码器30可识别在参考图像子集中识别的到初始列表0或初始列表1中的参考图像中的一者或一者以上。In this disclosure, when video decoder 30 adds (e.g., lists) one or more reference pictures from a reference picture subset in initial List 0 or initial List 1, this disclosure refers to video decoder 30 identifying the reference pictures in initial List 0 or initial List 1. For example, the multiple reference picture subsets may each identify zero or more reference pictures. To construct initial List 0 and initial List 1, video decoder 30 may identify one or more of the reference pictures identified in the reference picture subset to be included in initial List 0 or initial List 1.
为了避免混淆且为了辅助清晰性,本发明可提及视频解码器30将在参考图像子集中识别的参考图像中的零者或多者列入或添加到初始列表0和初始列表1中,以构造初始列表0和初始列表1。以此方式,视频解码器30添加或列出参考图像意味着:视频解码器30添加或列出在参考图像子集中识别的参考图像的识别符。因此,所得初始列表0和初始列表1包含用于可潜在地用于译码当前图像的块或切片的参考图像的多个识别符。这些参考图像存储在视频解码器30和视频编码器20的相应已解码图像缓冲器中。To avoid confusion and to aid clarity, this disclosure may refer to video decoder 30 listing or adding zero or more of the reference pictures identified in the reference picture subset to Initial List 0 and Initial List 1 to construct Initial List 0 and Initial List 1. In this manner, when video decoder 30 adds or lists reference pictures, it means that video decoder 30 adds or lists the identifiers of the reference pictures identified in the reference picture subset. Thus, the resulting Initial List 0 and Initial List 1 contain multiple identifiers for reference pictures that can potentially be used to decode a block or slice of the current picture. These reference pictures are stored in the respective decoded picture buffers of video decoder 30 and video encoder 20.
举例来说,为了构造初始列表0,视频解码器30可首先在初始列表0中列出(例如,添加)在RefPicSetStCurr0中识别的参考图像,后接续在初始列表0中列出(例如,添加)在RefPicSetStCurr1中识别的参考图像,且然后在初始列表0中列出(例如,添加)在RefPicSetLtCurr中识别的参考图像。为了构造初始列表1,视频解码器30可首先在初始列表1中列出(例如,添加)在RefPicSetStCurr1中识别的参考图像,后接续在初始列表1中列出(例如,添加)在RefPicSetStCurr0中识别的参考图像,且然后在初始列表1中列出(例如,添加)在RefPicSetLtCurr中识别的参考图像。For example, to construct initial list 0, video decoder 30 may first list (e.g., add) the reference pictures identified in RefPicSetStCurr0 in initial list 0, followed by listing (e.g., adding) the reference pictures identified in RefPicSetStCurr1 in initial list 0, and then list (e.g., add) the reference pictures identified in RefPicSetLtCurr in initial list 0. To construct initial list 1, video decoder 30 may first list (e.g., add) the reference pictures identified in RefPicSetStCurr1 in initial list 1, followed by listing (e.g., adding) the reference pictures identified in RefPicSetStCurr0 in initial list 1, and then list (e.g., add) the reference pictures identified in RefPicSetLtCurr in initial list 1.
此外,除以不同次序添加参考图像子集中的参考图像之外,在构造列表0和列表1时,视频解码器30还可利用来自参考图像子集中的每一者的不同数目个参考图像。举例来说,列表0和列表1不需要包含来自RefPicSetStCurr0、RefPicSetStCurr1和RefPicSetLtCurr的所有参考图像。而是,从这些实例参考图像子集列出以构造初始列表0和初始列表1的参考图像的数目可基于指示初始列表0和初始列表1中的每一者内的参考图像的最大数目的语法元素。Furthermore, in addition to adding the reference pictures in the reference picture subsets in a different order, video decoder 30 may also utilize a different number of reference pictures from each of the reference picture subsets when constructing List 0 and List 1. For example, List 0 and List 1 need not include all reference pictures from RefPicSetStCurr0, RefPicSetStCurr1, and RefPicSetLtCurr. Instead, the number of reference pictures listed from these example reference picture subsets to construct Initial List 0 and Initial List 1 may be based on a syntax element indicating the maximum number of reference pictures within each of Initial List 0 and Initial List 1.
举例来说,对于初始列表0,视频编码器20可在切片标头中用信号发出用于P和B切片的num_ref_idx_l0_active_minus1语法元素,及用于经双向预测的B切片的num_ref_idx_l1_active_minus1语法元素。如上文所描述,num_ref_idx_l0_active_minus1可定义可处于初始列表0中的参考图像的最大数目,且num_ref_idx_l1_active_minus1可定义可处于初始列表1中的参考图像的最大数目。在一些实例中,以下情形可能为有可能的:num_ref_idx_l0_active_minus1的值不同于num_ref_idx_l1_active_minus1的值,但此情形可能并不是每个实例中所必要的。在一些实例中,num_ref_idx_l0_active_minus1的值可与num_ref_idx_l1_active_minus1的值相同。For example, for initial list 0, video encoder 20 may signal in the slice header a num_ref_idx_l0_active_minus1 syntax element for P and B slices, and a num_ref_idx_l1_active_minus1 syntax element for bi-predicted B slices. As described above, num_ref_idx_l0_active_minus1 may define the maximum number of reference pictures that may be in initial list 0, and num_ref_idx_l1_active_minus1 may define the maximum number of reference pictures that may be in initial list 1. In some examples, it may be possible that the value of num_ref_idx_l0_active_minus1 is different from the value of num_ref_idx_l1_active_minus1, but this may not be necessary in every example. In some examples, the value of num_ref_idx_l0_active_minus1 may be the same as the value of num_ref_idx_l1_active_minus1.
如上文所描述,视频解码器30可在经译码位流中接收用于num_short_term_curr0和num_short_term_curr1的值。视频解码器30可将变量NumShortTermCurr0定义为等于num_short_term_curr0,且将变量NumShortTermCurr1定义为等于num_short_term_curr1。NumShortTermCurr0可指示RefPicSetStCurr0参考图像子集中的参考图像的数目,且NumShortTermCurr1可指示RefPicSetStCurr1参考图像子集中的参考图像的数目。As described above, video decoder 30 may receive values for num_short_term_curr0 and num_short_term_curr1 in the coded bitstream. Video decoder 30 may define the variable NumShortTermCurr0 equal to num_short_term_curr0 and the variable NumShortTermCurr1 equal to num_short_term_curr1. NumShortTermCurr0 may indicate the number of reference pictures in the RefPicSetStCurr0 reference picture subset, and NumShortTermCurr1 may indicate the number of reference pictures in the RefPicSetStCurr1 reference picture subset.
视频解码器30还可在经译码位流中接收用于num_long_term_pps_curr和num_long_term_add_curr的值。视频解码器30可将变量NumLongTermCurr定义为等于num_long_term_pps_curr加上num_long_term_add_curr。NumLongTermCurr可指示RefPicSetLtCurr中的参考图像的数目。Video decoder 30 may also receive values for num_long_term_pps_curr and num_long_term_add_curr in the coded bitstream. Video decoder 30 may define the variable NumLongTermCurr equal to num_long_term_pps_curr plus num_long_term_add_curr. NumLongTermCurr may indicate the number of reference pictures in RefPicSetLtCurr.
为了构造初始列表0,视频解码器30可首先将RefPicSetStCurr0中的参考图像添加到初始列表0中,直到视频解码器30将RefPicSetStCurr0中的所有参考图像添加到初始列表0中为止,且只要初始列表0中的条目的数目(例如,在列表0中识别的参考图像的数目)小于或等于num_ref_idx_l0_active_minus1即可。举例来说,NumShortTermCurr0可指示RefPicSetStCurr0参考图像子集中的参考图像的数目。在此实例中,视频解码器30可列出(例如,添加)来自RefPicSetStCurr0参考图像子集的参考图像,直到从RefPicSetStCurr0列出的参考图像的数目等于NumShortTermCurr0为止。然而,在将RefPicSetStCurr0的参考图像列入到初始列表0中时,如果初始列表0中的条目的总数目等于num_ref_idx_l0_active_minus1,那么视频解码器30可停止添加RefPicSetStCurr0参考图像子集中的参考图像,即使RefPicSetStCurr0中存在未列于初始列表0中的额外图像也如此。在此情况下,视频解码器30可能已完成初始列表0的构造。To construct initial List 0, video decoder 30 may first add reference pictures in RefPicSetStCurr0 to initial List 0, until video decoder 30 has added all reference pictures in RefPicSetStCurr0 to initial List 0, and as long as the number of entries in initial List 0 (e.g., the number of reference pictures identified in List 0) is less than or equal to num_ref_idx_10_active_minus1. For example, NumShortTermCurr0 may indicate the number of reference pictures in the reference picture subset of RefPicSetStCurr0. In this example, video decoder 30 may list (e.g., add) reference pictures from the reference picture subset of RefPicSetStCurr0 until the number of reference pictures listed from RefPicSetStCurr0 is equal to NumShortTermCurr0. However, when listing the reference pictures of RefPicSetStCurr0 into initial List 0, if the total number of entries in initial List 0 is equal to num_ref_idx_10_active_minus1, video decoder 30 may stop adding reference pictures in the RefPicSetStCurr0 reference picture subset, even if there are additional pictures in RefPicSetStCurr0 that are not listed in initial List 0. In this case, video decoder 30 may have completed construction of initial List 0.
在视频解码器30列出RefPicSetStCurr0参考图像子集中的所有参考图像且初始列表0中的条目的总数目小于num_ref_idx_l0_active_minus1之后,视频解码器30可然后添加RefPicSetStCurr1中的参考图像,直到视频解码器30识别RefPicSetStCurr1中的所有参考图像为止,且只要初始列表0中的条目的数目(例如,在列表0中识别的参考图像的数目)小于或等于num_ref_idx_l0_active_minus1即可。举例来说,类似于上述情形,NumShortTermCurr1可指示RefPicSetStCurr1参考图像子集中的参考图像的数目。在此实例中,视频解码器30可列出来自RefPicSetStCurr1参考图像子集的参考图像,直到从RefPicSetStCurr1列出的参考图像的数目等于NumShortTermCurr1为止。然而,在列出来自RefPicSetStCurr1的参考图像时,如果初始列表0中的条目的总数目等于num_ref_idx_l0_active_minus1,那么视频解码器30可停止添加来自RefPicSetStCurr1参考图像子集的参考图像,即使RefPicSetStCurr1中存在未列于初始列表0中的额外图像也如此。在此情况下,视频解码器30可能已完成初始列表0的构造。After video decoder 30 lists all reference pictures in the RefPicSetStCurr0 reference picture subset and the total number of entries in initial List 0 is less than num_ref_idx_l0_active_minus1, video decoder 30 may then add reference pictures in RefPicSetStCurr1 until video decoder 30 identifies all reference pictures in RefPicSetStCurr1, as long as the number of entries in initial List 0 (e.g., the number of reference pictures identified in List 0) is less than or equal to num_ref_idx_l0_active_minus1. For example, similar to the above scenario, NumShortTermCurr1 may indicate the number of reference pictures in the RefPicSetStCurr1 reference picture subset. In this example, video decoder 30 may list reference pictures from the RefPicSetStCurr1 reference picture subset until the number of reference pictures listed from RefPicSetStCurr1 is equal to NumShortTermCurr1. However, when listing reference pictures from RefPicSetStCurr1, if the total number of entries in initial list 0 is equal to num_ref_idx_10_active_minus1, video decoder 30 may stop adding reference pictures from the RefPicSetStCurr1 reference picture subset, even if there are additional pictures in RefPicSetStCurr1 that are not listed in initial list 0. In this case, video decoder 30 may have completed construction of initial list 0.
在视频解码器30列出RefPicSetStCurr1参考图像子集中的所有参考图像且初始列表0中的条目的总数目小于num_ref_idx_l0_active_minus1之后,视频解码器30可然后列出RefPicSetLtCurr中的参考图像,直到视频解码器30列出RefPicSetLtCurr中的所有参考图像为止,且只要初始列表0中的条目的数目(例如,在列表0中识别的参考图像的数目)小于或等于num_ref_idx_l0_active_minus1即可。举例来说,类似于上述情形,NumLongTermCurr可指示RefPicSetLtCurr参考图像子集中的参考图像的数目。在此实例中,视频解码器30可列出来自RefPicSetLtCurr参考图像子集的参考图像,直到从RefPicSetLtCurr列出的参考图像的数目等于NumLongTermCurr为止。然而,在将来自RefPicSetLtCurr的参考图像列入到初始列表0中时,如果初始列表0中的条目的总数目等于num_ref_idx_l0_active_minus1,那么视频解码器30可停止添加RefPicSetLtCurr参考图像子集中的参考图像,即使RefPicSetLtCurr中存在未列于初始列表0中的额外图像也如此。在此情况下,视频解码器30可能已完成初始列表0的构造。After video decoder 30 lists all reference pictures in the RefPicSetStCurr1 reference picture subset and the total number of entries in initial list 0 is less than num_ref_idx_l0_active_minus1, video decoder 30 may then list reference pictures in RefPicSetLtCurr until video decoder 30 lists all reference pictures in RefPicSetLtCurr, as long as the number of entries in initial list 0 (e.g., the number of reference pictures identified in list 0) is less than or equal to num_ref_idx_l0_active_minus1. For example, similar to the above scenario, NumLongTermCurr may indicate the number of reference pictures in the RefPicSetLtCurr reference picture subset. In this example, video decoder 30 may list reference pictures from the RefPicSetLtCurr reference picture subset until the number of reference pictures listed from RefPicSetLtCurr is equal to NumLongTermCurr. However, when listing reference pictures from RefPicSetLtCurr into initial List 0, if the total number of entries in initial List 0 is equal to num_ref_idx_10_active_minus1, video decoder 30 may stop adding reference pictures in the reference picture subset of RefPicSetLtCurr, even if there are additional pictures in RefPicSetLtCurr that are not listed in initial List 0. In this case, video decoder 30 may have completed construction of initial List 0.
以下伪码说明视频解码器30可借以构造初始列表0的方式。The following pseudo-code illustrates how video decoder 30 may construct initial list 0.
在上述伪码中,RefPicList0可为初始列表0。在不需要列表0的修改的实例中,最终列表0可等于初始列表0。因此,在不需要列表0的修改的实例中,在上述伪码中,RefPicList0可为最终列表0。In the above pseudo-code, RefPicList0 may be the initial list 0. In instances where modification of list 0 is not required, the final list 0 may be equal to the initial list 0. Therefore, in instances where modification of list 0 is not required, in the above pseudo-code, RefPicList0 may be the final list 0.
视频解码器30可类似地构造初始列表1。然而,为了构造初始列表1,视频解码器30可首先将来自RefPicSetStCurr1参考图像子集的参考图像添加到初始列表1中,后接续将来自RefPicSetStCurr0参考图像子集的参考图像添加到初始列表1中,且后接续将来自RefPicSetLtCurr参考图像子集的参考图像添加到初始列表1中。而且,类似于上述情形,在列出来自RefPicSetStCurr1、RefPicSetStCurr0和RefPicSetLtCurr参考图像子集中的任一者的参考图像时,如果初始列表1中的条目的总数目等于num_ref_idx_l1_active_minus1,那么视频解码器30可停止添加参考图像,即使这些参考图像子集中存在额外参考图像也如此。Video decoder 30 may similarly construct initial list 1. However, to construct initial list 1, video decoder 30 may first add reference pictures from the RefPicSetStCurr1 reference picture subset to initial list 1, followed by adding reference pictures from the RefPicSetStCurr0 reference picture subset to initial list 1, and then followed by adding reference pictures from the RefPicSetLtCurr reference picture subset to initial list 1. Also, similar to the above scenario, when listing reference pictures from any of the RefPicSetStCurr1, RefPicSetStCurr0, and RefPicSetLtCurr reference picture subsets, if the total number of entries in initial list 1 is equal to num_ref_idx_l1_active_minus1, video decoder 30 may stop adding reference pictures, even if additional reference pictures exist in these reference picture subsets.
举例来说,为了构造初始列表1,视频解码器30可首先列出来自RefPicSetStCurr1的参考图像,直到视频解码器30识别RefPicSetStCurr1中的所有参考图像为止,且只要初始列表1中的条目的数目(例如,在列表1中识别的参考图像的数目)小于或等于num_ref_idx_l1_active_minus1即可。举例来说,NumShortTermCurr1的值可指示视频解码器30何时完成列出RefPicSetStCurr1参考图像子集中的所有参考图像。然而,在列出来自RefPicSetStCurr1的参考图像时,如果初始列表1中的条目的总数目等于num_ref_idx_l1_active_minus1,那么视频解码器30可停止添加RefPicSetStCurr1参考图像子集中的参考图像,即使RefPicSetStCurr1中存在未列于初始列表1中的额外图像也如此。在此情况下,视频解码器30可能已完成初始列表1的构造。For example, to construct Initial List 1, video decoder 30 may first list reference pictures from RefPicSetStCurr1 until video decoder 30 identifies all reference pictures in RefPicSetStCurr1, and as long as the number of entries in Initial List 1 (e.g., the number of reference pictures identified in List 1) is less than or equal to num_ref_idx_l1_active_minus1. For example, the value of NumShortTermCurr1 may indicate when video decoder 30 has completed listing all reference pictures in the reference picture subset of RefPicSetStCurr1. However, while listing reference pictures from RefPicSetStCurr1, if the total number of entries in Initial List 1 is equal to num_ref_idx_l1_active_minus1, video decoder 30 may stop adding reference pictures in the reference picture subset of RefPicSetStCurr1, even if there are additional pictures in RefPicSetStCurr1 that are not listed in Initial List 1. In this case, video decoder 30 may have completed construction of Initial List 1.
在视频解码器30列出RefPicSetStCurr1参考图像子集中的所有参考图像且初始列表1中的条目的总数目小于num_ref_idx_l1_active_minus1之后,视频解码器30可然后列出来自RefPicSetStCurr0的参考图像,直到视频解码器30列出RefPicSetStCurr0中的所有参考图像为止,且只要初始列表1中的条目的数目(例如,在列表1中识别的参考图像的数目)小于或等于num_ref_idx_l1_active_minus1即可。举例来说,类似于上述情形,NumShortTermCurr0的值可指示视频解码器30何时完成列出RefPicSetStCurr0参考图像子集中的所有参考图像。然而,在将来自RefPicSetStCurr0的参考图像列入到初始列表1中时,如果初始列表1中的条目的总数目等于num_ref_idx_l1_active_minus1,那么视频解码器30可停止添加RefPicSetStCurr0参考图像子集中的参考图像,即使RefPicSetStCurr0中存在未列于初始列表1中的额外图像也如此。在此情况下,视频解码器30可能已完成初始列表1的构造。After video decoder 30 lists all reference pictures in the RefPicSetStCurr1 reference picture subset and the total number of entries in initial list 1 is less than num_ref_idx_l1_active_minus1, video decoder 30 may then list reference pictures from RefPicSetStCurr0 until video decoder 30 lists all reference pictures in RefPicSetStCurr0, and as long as the number of entries in initial list 1 (e.g., the number of reference pictures identified in list 1) is less than or equal to num_ref_idx_l1_active_minus1. For example, similar to the scenario described above, the value of NumShortTermCurr0 may indicate when video decoder 30 has finished listing all reference pictures in the RefPicSetStCurr0 reference picture subset. However, when listing reference pictures from RefPicSetStCurr0 into initial List 1, if the total number of entries in initial List 1 is equal to num_ref_idx_l1_active_minus1, video decoder 30 may stop adding reference pictures in the RefPicSetStCurr0 reference picture subset, even if there are additional pictures in RefPicSetStCurr0 that are not listed in initial List 1. In this case, video decoder 30 may have completed construction of initial List 1.
在视频解码器30列出RefPicSetStCurr0参考图像子集中的所有参考图像且初始列表1中的条目的总数目小于num_ref_idx_l1_active_minus1之后,视频解码器30可然后列出RefPicSetLtCurr中的参考图像,直到视频解码器30列出RefPicSetLtCurr中的所有参考图像为止,且只要初始列表1中的条目的数目(例如,在列表1中识别的参考图像的数目)小于或等于num_ref_idx_l1_active_minus1即可。举例来说,类似于上述情形,NumLongTermCurr的值可指示视频解码器30何时完成列出RefPicSetLtCurr参考图像子集中的所有参考图像。然而,在列出来自RefPicSetLtCurr的参考图像时,如果初始列表1中的条目的总数目等于num_ref_idx_l1_active_minus1,那么视频解码器30可停止添加RefPicSetLtCurr参考图像子集中的参考图像,即使RefPicSetLtCurr中存在未列于初始列表1中的额外图像也如此。在此情况下,视频解码器30可能已完成初始列表1的构造。After video decoder 30 lists all reference pictures in the RefPicSetStCurr0 reference picture subset and the total number of entries in initial list 1 is less than num_ref_idx_l1_active_minus1, video decoder 30 may then list reference pictures in RefPicSetLtCurr until video decoder 30 lists all reference pictures in RefPicSetLtCurr, and as long as the number of entries in initial list 1 (e.g., the number of reference pictures identified in list 1) is less than or equal to num_ref_idx_l1_active_minus1. For example, similar to the scenario described above, the value of NumLongTermCurr may indicate when video decoder 30 has finished listing all reference pictures in the RefPicSetLtCurr reference picture subset. However, when listing reference pictures from RefPicSetLtCurr, if the total number of entries in initial List 1 is equal to num_ref_idx_l1_active_minus1, video decoder 30 may stop adding reference pictures in the RefPicSetLtCurr reference picture subset, even if there are additional pictures in RefPicSetLtCurr that are not listed in initial List 1. In this case, video decoder 30 may have completed construction of initial List 1.
以下伪码说明视频解码器30可借以构造初始列表1的方式。The following pseudo-code illustrates how video decoder 30 may construct initial list 1.
在上述伪码中,RefPicList1可为初始列表1。在不需要列表1的修改的实例中,最终列表1可等于初始列表1。因此,在不需要列表1的修改的实例中,在上述伪码中,RefPicList1可为最终列表1。In the above pseudo-code, RefPicList1 may be the initial list 1. In instances where modification of list 1 is not required, final list 1 may be equal to initial list 1. Therefore, in instances where modification of list 1 is not required, in the above pseudo-code, RefPicList1 may be the final list 1.
前述实例方式为视频解码器30在不需要参考图像列表修改时可借以构造最终列表0和最终列表1的一种实例方式。在其它实例中,视频解码器30可以不同于上文所描述的次序的次序添加参考图像子集。在又一些其它实例中,视频解码器30可添加不同于上文所描述的参考图像子集的参考图像子集。The foregoing example approach is one example approach by which video decoder 30 may construct Final List 0 and Final List 1 when reference picture list modification is not required. In other examples, video decoder 30 may add reference picture subsets in an order different from the order described above. In still other examples, video decoder 30 may add reference picture subsets different from the reference picture subsets described above.
尽管前述实例描述用于由视频解码器30执行的参考图像列表构造的技术,但本发明的方面不受此限制,且视频编码器20可实施类似技术以用于构造参考图像列表。然而,视频编码器20可能不必要以与视频解码器30借以构造参考图像列表的方式相同的方式构造参考图像列表。Although the foregoing examples describe techniques for reference picture list construction performed by video decoder 30, aspects of this disclosure are not so limited, and video encoder 20 may implement similar techniques for constructing reference picture lists. However, video encoder 20 may not necessarily construct the reference picture lists in the same manner as video decoder 30 does.
因此,视频译码器(例如,视频编码器20或视频解码器30)可经配置以译码(例如,编码或解码)指示属于参考图像集的参考图像的信息。如上文所描述,参考图像集识别可潜在地用于对当前图像进行帧间预测且可潜在地用于对在解码次序上在当前图像之后的一个或一个以上图像进行帧间预测的参考图像。Thus, a video coder (e.g., video encoder 20 or video decoder 30) may be configured to code (e.g., encode or decode) information indicating reference pictures that belong to a reference picture set. As described above, a reference picture set identifies reference pictures that may potentially be used for inter-predicting a current picture and that may potentially be used for inter-predicting one or more pictures that follow the current picture in decoding order.
视频译码器还可经配置以构造多个参考图像子集,每一参考图像子集识别零或多个参考图像。举例来说,视频译码器可至少构造RefPicSetStCurr0、RefPicSetStCurr1和RefPicSetLtCurr参考图像子集。视频译码器可构造额外参考图像子集,例如上文所描述的参考图像子集。The video coder may also be configured to construct multiple reference picture subsets, each reference picture subset identifying zero or more reference pictures. For example, the video coder may construct at least the RefPicSetStCurr0, RefPicSetStCurr1, and RefPicSetLtCurr reference picture subsets. The video coder may construct additional reference picture subsets, such as the reference picture subsets described above.
只要初始参考图像列表条目的数目不大于可允许参考图像列表条目的最大数目,视频译码器便可然后将以下各参考图像添加到初始参考图像列表中:来自第一参考图像子集的参考图像、后接续有来自第二参考图像子集的参考图像,及后接续有来自第三参考图像子集的参考图像。举例来说,只要初始列表0中的条目的数目不大于num_ref_idx_l0_active_minus1,视频译码器便可将以下各参考图像列入到初始列表0中:来自RefPicSetStCurr0参考图像子集的参考图像、后接续有来自RefPicSetStCurr1参考图像子集的参考图像,及后接续有来自RefPicSetLtCurr子集的参考图像。此外,num_ref_idx_l0_active_minus1的值可指示列表0的可允许参考图像列表条目的最大数目。As long as the number of initial reference picture list entries is not greater than the maximum number of allowable reference picture list entries, the video coder may then add the following reference pictures to the initial reference picture list: a reference picture from the first reference picture subset, followed by a reference picture from the second reference picture subset, followed by a reference picture from the third reference picture subset. For example, as long as the number of entries in initial List 0 is not greater than num_ref_idx_l0_active_minus1, the video coder may include the following reference pictures in initial List 0: a reference picture from the RefPicSetStCurr0 reference picture subset, followed by a reference picture from the RefPicSetStCurr1 reference picture subset, followed by a reference picture from the RefPicSetLtCurr subset. Furthermore, the value of num_ref_idx_l0_active_minus1 may indicate the maximum number of allowable reference picture list entries for List 0.
在一些实例中,视频译码器可在初始参考图像列表中添加来自第一参考图像子集的参考图像,直到在初始参考图像列表中列出第一参考图像子集中的所有参考图像或初始参考图像列表条目的数目等于可允许参考图像列表条目的最大数目为止。当初始参考图像列表条目的数目小于可允许参考图像列表条目的最大数目时,且在添加来自第一参考图像子集的参考图像之后,视频译码器可在初始参考图像列表中添加来自第二参考图像子集的参考图像,直到在初始参考图像列表中列出第二参考图像子集中的所有参考图像或初始参考图像列表条目的数目等于可允许参考图像列表条目的最大数目为止。当初始参考图像列表条目的数目小于可允许参考图像列表条目的最大数目时,且在添加来自第二参考图像子集的参考图像之后,视频译码器可在初始参考图像列表中添加来自第三参考图像子集的参考图像,直到在初始参考图像列表中列出第三参考图像子集中的所有参考图像或初始参考图像列表条目的数目等于可允许参考图像列表条目的最大数目为止。In some examples, the video coder may add reference pictures from the first reference picture subset to the initial reference picture list until all reference pictures from the first reference picture subset are listed in the initial reference picture list or the number of initial reference picture list entries equals the maximum number of allowable reference picture list entries. When the number of initial reference picture list entries is less than the maximum number of allowable reference picture list entries, and after adding the reference pictures from the first reference picture subset, the video coder may add reference pictures from the second reference picture subset to the initial reference picture list until all reference pictures from the second reference picture subset are listed in the initial reference picture list or the number of initial reference picture list entries equals the maximum number of allowable reference picture list entries. When the number of initial reference picture list entries is less than the maximum number of allowable reference picture list entries, and after adding the reference pictures from the second reference picture subset, the video coder may add reference pictures from the third reference picture subset to the initial reference picture list until all reference pictures from the third reference picture subset are listed in the initial reference picture list or the number of initial reference picture list entries equals the maximum number of allowable reference picture list entries.
视频译码器可类似地构造初始列表1。举例来说,只要初始列表1中的初始参考图像列表条目的数目不大于num_ref_idx_l1_active_minus1,视频译码器便可将以下各参考图像添加到初始列表1中:来自第二参考图像子集的参考图像、后接续有来自第一参考图像子集的参考图像,及后接续有来自第三参考图像子集的参考图像。num_ref_idx_l1_active_minus1语法元素可定义列表1中可允许条目的最大数目。The video coder may similarly construct Initial List 1. For example, as long as the number of initial reference picture list entries in Initial List 1 is not greater than num_ref_idx_l1_active_minus1, the video coder may add the following reference pictures to Initial List 1: a reference picture from the second reference picture subset, followed by a reference picture from the first reference picture subset, and followed by a reference picture from the third reference picture subset. The num_ref_idx_l1_active_minus1 syntax element may define the maximum number of entries allowed in List 1.
在一些实例中,例如,当不需要修改时,初始列表0和初始列表1可等于最终列表0和最终列表1。换句话说,在不需要修改时,视频译码器可构造最终列表0和最终列表1,而不修改初始列表0和初始列表1。在这些情况下,在构造初始列表0和初始列表1之后,视频译码器可能不需要执行额外步骤以构造最终列表0和最终列表1(即,视频译码器用以译码当前图像的块的参考图像列表)。In some examples, e.g., when no modification is required, Initial List 0 and Initial List 1 may be equal to Final List 0 and Final List 1. In other words, when no modification is required, the video coder may construct Final List 0 and Final List 1 without modifying Initial List 0 and Initial List 1. In these cases, after constructing Initial List 0 and Initial List 1, the video coder may not need to perform additional steps to construct Final List 0 and Final List 1 (i.e., reference picture lists used by the video coder to code blocks of the current picture).
如上述伪码中所指示,当cIdx小于或等于num_ref_idx_l0_active_minus1时,视频解码器30可构造初始列表0,且当cIdx小于或等于num_ref_idx_l1_active_minus1时,视频解码器30可构造初始列表1。此情形可导致视频解码器30构造初始列表0和初始列表1,在参考图像列表中无任何非完成条目。举例来说,在一些其它视频译码技术中,用于这些其它视频技术的视频解码器将利用不同于本发明中所描述的技术的技术构造初始列表0和列表1。对于这些其它视频译码技术,如果初始列表0和初始列表1中的条目的数目小于条目的最大可允许数目,那么用于这些其它视频译码技术的视频解码器将用非完成条目的“无参考图像”填充列表0和列表1中的剩余条目。非完成条目指列表0和列表1中在识别参考图像的最后条目之后的且直到最后可能的条目的条目。As indicated in the pseudocode above, video decoder 30 may construct Initial List 0 when cIdx is less than or equal to num_ref_idx_l0_active_minus1, and may construct Initial List 1 when cIdx is less than or equal to num_ref_idx_l1_active_minus1. This may result in video decoder 30 constructing Initial List 0 and Initial List 1 without any incomplete entries in the reference picture lists. For example, in some other video coding technologies, the video decoder for these other video technologies will construct Initial List 0 and List 1 using techniques different from those described in this disclosure. For these other video coding technologies, if the number of entries in Initial List 0 and Initial List 1 is less than the maximum allowable number of entries, the video decoder for these other video coding technologies will fill the remaining entries in List 0 and List 1 with "no reference picture" entries that are incomplete. Incomplete entries refer to entries in List 0 and List 1 after the last entry that identifies a reference picture and up to the last possible entry.
作为辅助理解的说明性实例,用于这些其它视频译码技术的视频解码器可构造具有五个条目的列表0,其中可允许条目的最大数目为十个条目。在此实例中,用于这些其它视频译码技术的视频解码器将第六条目到第十条目填充为“无参考图像”。在此实例中,非完成条目将为第六条目(例如,在识别参考图像的最后条目之后的条目)直到第十条目(例如,如通过可允许条目的最大数目定义的最后可能的条目)。As an illustrative example to aid understanding, a video decoder for these other video coding techniques may construct List 0 with five entries, where the maximum number of allowable entries is ten. In this example, the video decoder for these other video coding techniques fills the sixth through tenth entries with "no reference picture." In this example, the incomplete entries would be the sixth entry (e.g., the entry after the last entry identifying a reference picture) through the tenth entry (e.g., the last possible entry as defined by the maximum number of allowable entries).
根据本发明的技术,视频解码器30可构造初始列表0和初始列表1,以使得不存在非完成条目。而且,在不需要参考图像列表修改的实例中,最终列表0和最终列表1可等于初始列表0和初始列表1。因此,在不需要参考图像列表修改的实例中,视频解码器30可构造最终列表0和最终列表1,以使得不存在非完成条目。甚至在需要参考图像列表修改的情况下,修改还可能不会导致任何非完成条目。因此,甚至在需要参考图像列表修改的实例中,视频解码器30也可构造最终列表0和最终列表1,以使得不存在非完成条目。According to the techniques of this disclosure, video decoder 30 may construct Initial List 0 and Initial List 1 so that there are no incomplete entries. Furthermore, in instances where reference picture list modification is not required, Final List 0 and Final List 1 may be equal to Initial List 0 and Initial List 1. Thus, in instances where reference picture list modification is not required, video decoder 30 may construct Final List 0 and Final List 1 so that there are no incomplete entries. Even in instances where reference picture list modification is required, the modification may not result in any incomplete entries. Thus, even in instances where reference picture list modification is required, video decoder 30 may construct Final List 0 and Final List 1 so that there are no incomplete entries.
举例来说,可将列表0和列表1视为具有条目的列表,且每一条目可识别一参考图像(例如,通过参考图像的POC值)。换句话说,视频解码器30可通过列表0和列表1的每一条目中的参考图像的POC值识别参考图像。列表0和列表1中的条目的数目可分别通过num_ref_idx_l0_active_minus1和num_ref_idx_l1_active_minus1语法元素来定义。For example, List 0 and List 1 may be considered as lists with entries, and each entry may identify a reference picture (e.g., by the POC value of the reference picture). In other words, video decoder 30 may identify the reference picture by the POC value of the reference picture in each entry of List 0 and List 1. The number of entries in List 0 and List 1 may be defined by the num_ref_idx_l0_active_minus1 and num_ref_idx_l1_active_minus1 syntax elements, respectively.
为了确保不存在非完成条目,视频解码器30可重复地在初始列表0和初始列表1中列出(例如,添加或识别)来自参考图像子集的参考图像,直到视频解码器30确定应在初始列表0和初始列表1的每一可能的条目中识别哪一参考图像为止。举例来说,如上文所描述,对于构造初始列表0,在于初始列表0中添加来自RefPicSetStCurr0和RefPicSetStCurr1参考图像子集的参考图像之后,视频解码器30可在初始列表0中添加来自RefPicSetLtCurr参考图像子集的参考图像。To ensure that there are no incomplete entries, video decoder 30 may repeatedly list (e.g., add or identify) reference pictures from the reference picture subset in initial List 0 and initial List 1 until video decoder 30 determines which reference picture should be identified in each possible entry of initial List 0 and initial List 1. For example, as described above, for constructing initial List 0, after adding reference pictures from the RefPicSetStCurr0 and RefPicSetStCurr1 reference picture subsets in initial List 0, video decoder 30 may add reference pictures from the RefPicSetLtCurr reference picture subset in initial List 0.
在一些实例中,以下情形可能为有可能的:在视频解码器30于初始列表0中添加来自RefPicSetLtCurr参考图像子集的参考图像之后,初始列表0中的条目的总数目小于列表0中的可允许条目的最大数目。举例来说,在用于构造初始列表0的伪码中,cIdx可指示列表0中的条目的数目。在一些实例中,在视频解码器30在初始列表0中识别RefPicSetLtCurr中的参考图像之后,cIdx的值可小于num_ref_idx_l0_active_minus1,其中num_ref_idx_l0_active_minus1指定列表0中的可允许条目的最大数目。In some examples, the following scenario may be possible: after video decoder 30 adds reference pictures from the RefPicSetLtCurr reference picture subset in initial List 0, the total number of entries in initial List 0 is less than the maximum number of allowable entries in List 0. For example, in the pseudo code for constructing initial List 0, cIdx may indicate the number of entries in List 0. In some examples, after video decoder 30 identifies reference pictures in RefPicSetLtCurr in initial List 0, the value of cIdx may be less than num_ref_idx_l0_active_minus1, where num_ref_idx_l0_active_minus1 specifies the maximum number of allowable entries in List 0.
根据本发明中所描述的技术,在列出来自所述多个参考图像子集中的三者的参考图像之后,如果初始列表0中的条目的数目小于可允许条目的最大数目,那么视频解码器30可重复地添加来自所述三个参考图像子集的参考图像,直到列表0中的所有条目已满为止。举例来说,在视频解码器30添加来自RefPicSetLtCurr参考图像子集的参考图像且初始列表0中的条目的数目小于可允许条目的最大数目之后,视频解码器30可然后重新列出(例如,重新添加或重新识别)来自RefPicSetStCurr0参考图像子集的参考图像。According to the techniques described in this disclosure, after listing reference pictures from three of the multiple reference picture subsets, if the number of entries in initial List 0 is less than the maximum number of allowable entries, video decoder 30 may repeatedly add reference pictures from the three reference picture subsets until all entries in List 0 are full. For example, after video decoder 30 adds reference pictures from the RefPicSetLtCurr reference picture subset and the number of entries in initial List 0 is less than the maximum number of allowable entries, video decoder 30 may then re-list (e.g., re-add or re-identify) reference pictures from the RefPicSetStCurr0 reference picture subset.
在本发明中所描述的方面中,当视频解码器30列出来自RefPicSetStCurr0、RefPicSetStCurr1和RefPicSetLtCurr参考图像子集的参考图像时,可将视频解码器30视为将来自这些多个参考图像子集的参考图像添加到参考图像列表(例如,列表0)中的第一条目集合中。举例来说,第一条目集合可为视频解码器30识别来自RefPicSetStCurr0、RefPicSetStCurr1和RefPicSetLtCurr参考图像子集的参考图像所在的参考图像列表中的条目。然后,如果参考图像列表中的条目的数目小于条目的最大可允许数目,那么视频解码器30可将来自RefPicSetStCurr0、RefPicSetStCurr1和RefPicSetLtCurr参考图像子集中的至少一者的一个或一个以上参考图像重新列入(例如,重新添加或重新识别)到参考图像列表中在第一条目集合之后的条目中。在第一条目集合之后(subsequent to)的条目可为在第一条目集合之后(following)的条目,在所述条目中,视频解码器30添加来自RefPicSetStCurr0、RefPicSetStCurr1和RefPicSetLtCurr参考图像子集中的一者或一者以上的已经列出的参考图像,如下文所描述。In aspects described in this disclosure, when video decoder 30 lists reference pictures from RefPicSetStCurr0, RefPicSetStCurr1, and RefPicSetLtCurr reference picture subsets, video decoder 30 may be considered to be adding the reference pictures from these multiple reference picture subsets to a first set of entries in a reference picture list (e.g., List 0). For example, the first set of entries may be entries in the reference picture list in which video decoder 30 identifies reference pictures from the RefPicSetStCurr0, RefPicSetStCurr1, and RefPicSetLtCurr reference picture subsets. Then, if the number of entries in the reference picture list is less than the maximum allowable number of entries, video decoder 30 may re-list (e.g., re-add or re-identify) one or more reference pictures from at least one of the RefPicSetStCurr0, RefPicSetStCurr1, and RefPicSetLtCurr reference picture subsets to entries in the reference picture list that follow the first set of entries. Entries subsequent to the first set of entries may be entries following the first set of entries in which video decoder 30 adds already listed reference pictures from one or more of the RefPicSetStCurr0, RefPicSetStCurr1, and RefPicSetLtCurr reference picture subsets, as described below.
在重新添加来自RefPicSetStCurr0参考图像子集的参考图像时,如果初始列表0中的条目的总数目等于num_ref_idx_l0_active_minus1,那么视频解码器30可停止在初始列表0中重新添加参考图像。在此情况下,视频解码器30可能已完成初始列表0的构造,且可能不存在非完成条目。否则,视频解码器30可重新添加来自RefPicSetStCurr0参考图像子集的参考图像,直到重新列出来自RefPicSetStCurr0参考图像子集的所有参考图像为止。When re-adding reference pictures from the RefPicSetStCurr0 reference picture subset, if the total number of entries in initial list 0 is equal to num_ref_idx_l0_active_minus1, video decoder 30 may stop re-adding reference pictures in initial list 0. In this case, video decoder 30 may have completed construction of initial list 0 and there may be no incomplete entries. Otherwise, video decoder 30 may re-add reference pictures from the RefPicSetStCurr0 reference picture subset until all reference pictures from the RefPicSetStCurr0 reference picture subset are re-listed.
如果在重新添加RefPicSetStCurr0参考图像子集中的所有参考图像之后,初始列表0中的条目的数目小于num_ref_idx_l0_active_minus1,那么视频解码器30可然后以类似于视频解码器30借以重新列出来自RefPicSetStCurr0参考图像子集的参考图像的方式的方式,重新添加来自RefPicSetStCurr1参考图像子集的参考图像。如果在重新添加RefPicSetStCurr1参考图像子集中的所有参考图像之后,初始列表0中的条目的数目小于num_ref_idx_l0_active_minus1,那么视频解码器30可然后以类似于视频解码器30借以重新列出来自RefPicSetStCurr0和RefPicSetStCurr1参考图像子集的参考图像的方式的方式,重新添加来自RefPicSetLtCurr参考图像子集的参考图像。视频解码器30重复地添加来自参考图像子集的参考图像,直到初始列表0中的条目的数目等于列表0的可允许条目的最大数目(即,等于num_ref_idx_l0_active_minus1)为止。If, after re-adding all reference pictures in the RefPicSetStCurr0 reference picture subset, the number of entries in initial List0 is less than num_ref_idx_l0_active_minus1, video decoder 30 may then re-add reference pictures from the RefPicSetStCurr1 reference picture subset in a manner similar to the manner by which video decoder 30 re-lists reference pictures from the RefPicSetStCurr0 reference picture subset. If, after re-adding all reference pictures in the RefPicSetStCurr1 reference picture subset, the number of entries in initial List0 is less than num_ref_idx_l0_active_minus1, video decoder 30 may then re-add reference pictures from the RefPicSetLtCurr reference picture subset in a manner similar to the manner by which video decoder 30 re-lists reference pictures from the RefPicSetStCurr0 and RefPicSetStCurr1 reference picture subsets. Video decoder 30 repeatedly adds reference pictures from the reference picture subset until the number of entries in initial List 0 is equal to the maximum number of allowable entries for List 0 (ie, equal to num_ref_idx_l0_active_minus1).
举例来说,假设存在RefPicSetStCurr0中的一个参考图像、RefPicSetCurr1中的一个参考图像和RefPicSetLtCurr中的一个参考图像。而且,假设num_ref_idx_l0_active_minus1等于五。在此实例中,视频解码器30可在初始列表0中的两个条目中识别RefPicSetStCurr0中的参考图像。举例来说,视频解码器30可在初始列表0的第一条目中识别RefPicSetStCurr0中的参考图像,且在初始列表0的第四条目中重新识别RefPicSetStCurr0中的参考图像。在此实例中,用于RefPicSetStCurr0中的参考图像的索引值可为用于初始列表0中的第一条目的index[0],和用于初始列表0中的第四条目的index[3]。因此,在一些实例中,可在初始参考图像列表中将来自参考图像子集中的一者的一个参考图像列出(例如,识别)一次以上。[0066] For example, assume there is one reference picture in RefPicSetStCurr0, one reference picture in RefPicSetCurr1, and one reference picture in RefPicSetLtCurr. Also, assume num_ref_idx_l0_active_minus1 is equal to five. In this example, video decoder 30 may identify a reference picture in RefPicSetStCurr0 in two entries in initial list 0. For example, video decoder 30 may identify a reference picture in RefPicSetStCurr0 in the first entry of initial list 0 and re-identify the reference picture in RefPicSetStCurr0 in the fourth entry of initial list 0. In this example, the index values for the reference picture in RefPicSetStCurr0 may be index[0] for the first entry in initial list 0 and index[3] for the fourth entry in initial list 0. Thus, in some examples, one reference picture from one of the reference picture subsets may be listed (e.g., identified) more than once in the initial reference picture list.
视频解码器30可类似地构造初始列表1,以使得在初始列表1中不存在非完成条目。举例来说,视频解码器30可重复地添加来自RefPicSetStCurr1、RefPicSetStCurr0和RefPicSetLtCurr参考图像子集(以所述次序)的参考图像,直到初始列表1中的条目的数目等于列表1中的可允许条目的最大数目(即,等于num_ref_idx_l1_active_minus1)为止。Video decoder 30 may similarly construct initial list 1 such that there are no non-complete entries in initial list 1. For example, video decoder 30 may repeatedly add reference pictures from RefPicSetStCurr1, RefPicSetStCurr0, and RefPicSetLtCurr reference picture subsets (in that order) until the number of entries in initial list 1 equals the maximum number of allowable entries in list 1 (i.e., equal to num_ref_idx_l1_active_minus1).
以此方式,因为“for”循环嵌套于“while”循环中,所以在用于构造初始列表0和初始列表1的上述伪码中,视频解码器30可构造初始列表0和初始列表1,以使得初始列表0和初始列表1中不存在非完成条目(即,在初始化过程之后无非完成条目)。在一些实例中,初始列表0和初始列表1中的条目中的每一者可识别来自参考图像子集中的一者的一参考图像。在一些实例中,以下情形可能为有可能的:在最终参考图像列表中识别来自参考图像子集中的一者的一个或一个以上参考图像一次以上,但在具有不同索引值的不同条目处加以识别。In this manner, because the "for" loop is nested within the "while" loop, in the above pseudocode for constructing Initial List 0 and Initial List 1, video decoder 30 may construct Initial List 0 and Initial List 1 such that there are no non-complete entries in Initial List 0 and Initial List 1 (i.e., there are no non-complete entries after the initialization process). In some examples, each of the entries in Initial List 0 and Initial List 1 may identify a reference picture from one of the reference picture subsets. In some examples, it may be possible that one or more reference pictures from one of the reference picture subsets are identified more than once in the final reference picture list, but at different entries with different index values.
尽管前述实例描述用于如由视频解码器30执行的无非完成条目的参考图像列表构造的技术,但本发明的方面不受此限制,且视频编码器20可实施类似技术以用于构造无非完成条目的参考图像列表。然而,视频编码器20可能不必要以与视频解码器30借以构造参考图像列表的方式相同的方式构造参考图像列表。Although the foregoing examples describe techniques for reference picture list construction without non-completion entries as performed by video decoder 30, aspects of this disclosure are not so limited, and video encoder 20 may implement similar techniques for constructing a reference picture list without non-completion entries. However, video encoder 20 may not necessarily construct the reference picture list in the same manner as video decoder 30 constructs the reference picture list.
因此,视频译码器(例如,视频编码器20或视频解码器30)可经配置以译码(例如,编码或解码)指示属于参考图像集的参考图像的信息。如上文所描述,参考图像集识别可潜在地用于对当前图像进行帧间预测且可潜在地用于对在解码次序上在当前图像之后的一个或一个以上图像进行帧间预测的参考图像。Thus, a video coder (e.g., video encoder 20 or video decoder 30) may be configured to code (e.g., encode or decode) information indicating reference pictures that belong to a reference picture set. As described above, a reference picture set identifies reference pictures that may potentially be used for inter-predicting a current picture and that may potentially be used for inter-predicting one or more pictures that follow the current picture in decoding order.
视频译码器可构造多个参考图像子集,每一参考图像子集识别参考图像(例如,RefPicSetStCurr0、RefPicSetStCurr1和RefPicSetLtCurr参考图像子集)中的零者或多者。视频译码器可将来自所述多个参考图像子集的参考图像列入(例如,识别或添加)到参考图像列表中的第一条目集合中。视频译码器可确定参考图像列表中的条目的数目是否等于参考图像列表中的可允许条目的最大数目。A video coder may construct multiple reference picture subsets, each of which identifies zero or more of the reference pictures (e.g., RefPicSetStCurr0, RefPicSetStCurr1, and RefPicSetLtCurr reference picture subsets). The video coder may list (e.g., identify or add) the reference pictures from the multiple reference picture subsets in a first set of entries in a reference picture list. The video coder may determine whether the number of entries in the reference picture list is equal to a maximum number of allowable entries in the reference picture list.
当参考图像列表中的条目的数目不等于参考图像列表中的可允许条目的最大数目时,视频译码器可重复地将来自参考图像子集中的至少一者的一个或一个以上参考图像重新添加到(例如,重新识别)参考图像列表中在第一条目集合之后的条目中,直到参考图像列表中的条目的数目等于参考图像列表中的可允许条目的最大数目为止。视频译码器可然后基于所构造的参考图像列表而译码当前图像。When the number of entries in the reference picture list is not equal to the maximum number of allowable entries in the reference picture list, the video coder may repeatedly re-add (e.g., re-identify) one or more reference pictures from at least one of the reference picture subsets to entries following the first set of entries in the reference picture list until the number of entries in the reference picture list is equal to the maximum number of allowable entries in the reference picture list. The video coder may then decode the current picture based on the constructed reference picture list.
如上文所描述,在一些实例中,视频编码器20可用信号发出指导视频解码器30修改一个或一个以上初始参考图像列表的语法元素。举例来说,视频解码器30可以上文所描述的方式构造一个或一个以上初始参考图像列表。然后,在一些实例中,视频解码器30可解码来自经译码位流的指导视频解码器30修改一个或一个以上初始参考图像列表的语法元素,以构造一个或一个以上最终参考图像列表。一般来说,在修改中,在初始化参考图像列表之后,视频解码器30可将在所述多个参考图像子集中的一者或一者以上中识别的所述图像中的一者或一者以上映射于参考图像列表中的一者的一条目中。As described above, in some examples, video encoder 20 may signal syntax elements that direct video decoder 30 to modify one or more initial reference picture lists. For example, video decoder 30 may construct one or more initial reference picture lists in the manner described above. Then, in some examples, video decoder 30 may decode syntax elements from the coded bitstream that direct video decoder 30 to modify the one or more initial reference picture lists to construct one or more final reference picture lists. Generally speaking, in modifying, after initializing the reference picture lists, video decoder 30 may map one or more of the pictures identified in one or more of the plurality of reference picture subsets to an entry in one of the reference picture lists.
举例来说,在视频解码器30以上文所描述的方式构造一个或一个以上初始参考图像列表之后,视频解码器30可以通过经译码位流指导的方式修改初始参考图像列表中的一者中的条目中的至少一者。举例来说,视频编码器20可指示应在参考图像列表的一条目中识别来自所述多个参考图像子集中的一者的哪一图像(作为修改语法元素的部分),即使参考图像列表的所述条目可能已经识别一参考图像(作为初始化过程的部分)也如此。在一些实例中,本发明中所描述的参考图像列表修改技术可允许以灵活方式进行修改。举例来说,视频解码器30可能有可能在参考图像列表中的一者或两者中识别不在初始参考图像列表中的参考图像。For example, after video decoder 30 constructs one or more initial reference picture lists in the manner described above, video decoder 30 may modify at least one of the entries in one of the initial reference picture lists, as directed by the coded bitstream. For example, video encoder 20 may indicate which picture from one of the plurality of reference picture subsets should be identified in an entry of a reference picture list (as part of a modification syntax element), even though the entry of the reference picture list may already have identified a reference picture (as part of an initialization process). In some examples, the reference picture list modification techniques described in this disclosure may allow for modifications to be made in a flexible manner. For example, video decoder 30 may be able to identify a reference picture in one or both of the reference picture lists that is not in the initial reference picture list.
如本发明中所使用,短语“已修改参考图像列表”指在修改初始参考图像列表之后的参考图像列表。已修改参考图像列表可为最终参考图像列表。对于列表0,已修改参考图像列表中的条目的数目为num_ref_idx_l0_active_minus1+1,且对于列表1,已修改参考图像列表中的条目的数目为num_ref_idx_l1_active_minus1+1。一参考图像可在用于列表0和列表1的已修改参考列表中呈现于一个以上索引(例如,条目)处。As used in this disclosure, the phrase "modified reference picture list" refers to a reference picture list after the initial reference picture list has been modified. The modified reference picture list may be the final reference picture list. For List 0, the number of entries in the modified reference picture list is num_ref_idx_l0_active_minus1+1, and for List 1, the number of entries in the modified reference picture list is num_ref_idx_l1_active_minus1+1. A reference picture may be present at more than one index (e.g., entry) in the modified reference lists for both List 0 and List 1.
对于参考图像列表修改,视频编码器20可用信号发出表6的语法元素。For reference picture list modification, video encoder 20 may signal the syntax elements of Table 6.
表6.参考图像列表修改语法Table 6. Reference picture list modification syntax
modification_of_ref_pic_idc、short_term_ref_pic_set_idx和long_term_ref_pic_set_idx的语法元素可指定从初始参考图像列表到待用于解码切片的参考图像列表的改变。The syntax elements of modification_of_ref_pic_idc, short_term_ref_pic_set_idx, and long_term_ref_pic_set_idx may specify the change from an initial reference picture list to a reference picture list to be used for decoding a slice.
等于1的ref_pic_list_modification_flag_l0可指定:存在用于指定参考图像列表0的语法元素modification_of_ref_pic_idc。等于0的ref_pic_list_modification_flag_l0指定此语法元素不存在。ref_pic_list_modification_flag_10 equal to 1 may specify that the syntax element modification_of_ref_pic_idc is present to specify reference picture list 0. ref_pic_list_modification_flag_10 equal to 0 specifies that this syntax element is not present.
当ref_pic_list_modification_flag_l0等于1时,在ref_pic_list_modification_flag_l0之后的modification_of_ref_pic_idc不等于3的次数可能不超过num_ref_idx_l0_active_minus1+1。When ref_pic_list_modification_flag_10 is equal to 1, the number of times modification_of_ref_pic_idc is not equal to 3 following ref_pic_list_modification_flag_10 may not exceed num_ref_idx_10_active_minus1+1.
等于1的ref_pic_list_modification_flag_l1可指定:存在用于指定参考图像列表1的语法modification_of_ref_pic_idc。等于0的ref_pic_list_modification_flag_l1可指定此语法元素不存在。ref_pic_list_modification_flag_l1 equal to 1 may specify that the syntax modification_of_ref_pic_idc is present for specifying reference picture list 1. ref_pic_list_modification_flag_l1 equal to 0 may specify that this syntax element is not present.
当ref_pic_list_modification_flag_l1等于1时,在ref_pic_list_modification_flag_l1之后的modification_of_ref_pic_idc不等于3的次数可能不超过num_ref_idx_l1_active_minus1+1。When ref_pic_list_modification_flag_l1 is equal to 1, the number of times modification_of_ref_pic_idc is not equal to 3 following ref_pic_list_modification_flag_l1 may not exceed num_ref_idx_l1_active_minus1+1.
modification_of_ref_pic_idc与short_term_ref_pic_set_idx或long_term_ref_pic_set_idx一起可指定重新映射参考图像中的哪些者。在表7中指定modification_of_ref_pic_idc的值。紧接在ref_pic_list_modification_flag_l0或ref_pic_list_modification_flag_l1之后的第一modification_of_ref_pic_idc的值可能不等于3。modification_of_ref_pic_idc together with short_term_ref_pic_set_idx or long_term_ref_pic_set_idx may specify which of the reference pictures are remapped. The values of modification_of_ref_pic_idc are specified in Table 7. The value of the first modification_of_ref_pic_idc immediately following ref_pic_list_modification_flag_l0 or ref_pic_list_modification_flag_l1 may not be equal to 3.
ref_pic_set_idx指定移动到参考图像列表中的当前索引的参考图像的到RefPicSetStCurr0、RefPicSetStCurr1或RefPicSetLtCurr的索引。ref_pic_set_idx的值可在0到max_num_ref_frames(包含0和max_num_ref_frames)的范围内。ref_pic_set_idx specifies the index into RefPicSetStCurr0, RefPicSetStCurr1, or RefPicSetLtCurr of the reference picture to be moved to the current index in the reference picture list. The value of ref_pic_set_idx may be in the range of 0 to max_num_ref_frames (inclusive).
表7.用于参考图像列表的修改的modification_of_ref_pic_idc操作Table 7. modification_of_ref_pic_idc operation for modification of reference picture list
对于参考图像列表修改,当ref_pic_list_modification_flag_l0等于1时,视频解码器30可修改初始参考图像列表0(即,初始列表0),且当ref_pic_list_modification_flag_l1等于1时,视频解码器30可修改初始参考图像列表1(即,初始列表1)。为了辅助理解参考图像列表修改,假设:变量refIdxL0为到初始列表0中的索引,且变量refIdxL1为到初始列表1中的索引。换句话说,refIdxL0可识别初始列表0的条目(即,到初始列表0中的索引识别初始列表0的条目),且refIdxL1可识别初始列表1的条目。最初可将变量refIdxL0和refIdxL1设置为等于0。For reference picture list modification, when ref_pic_list_modification_flag_l0 is equal to 1, video decoder 30 may modify the initial reference picture list 0 (i.e., initial list 0), and when ref_pic_list_modification_flag_l1 is equal to 1, video decoder 30 may modify the initial reference picture list 1 (i.e., initial list 1). To aid in understanding reference picture list modification, assume that the variable refIdxL0 is an index into initial list 0, and the variable refIdxL1 is an index into initial list 1. In other words, refIdxL0 may identify an entry of initial list 0 (i.e., an index into initial list 0 identifies an entry of initial list 0), and refIdxL1 may identify an entry of initial list 1. Initially, the variables refIdxL0 and refIdxL1 may be set equal to 0.
视频解码器30可以语法元素出现在位流中的次序来处理modification_of_ref_pic_idc的语法元素。举例来说,如果视频编码器20用信号发出初始列表0需要参考图像列表修改,那么视频解码器30可处理视频编码器20借以用信号发出modification_of_ref_pic_idc语法元素以用于修改初始列表0的次序。类似地,如果视频编码器20用信号发出初始列表1需要参考图像列表修改,那么视频解码器30可处理视频编码器20借以用信号发出modification_of_ref_pic_idc语法元素以用于修改初始列表1的次序。Video decoder 30 may process the syntax elements of modification_of_ref_pic_idc in the order in which they appear in the bitstream. For example, if video encoder 20 signals that initial list 0 requires reference picture list modification, video decoder 30 may process the modification_of_ref_pic_idc syntax element signaled by video encoder 20 for modifying the order of initial list 0. Similarly, if video encoder 20 signals that initial list 1 requires reference picture list modification, video decoder 30 may process the modification_of_ref_pic_idc syntax element signaled by video encoder 20 for modifying the order of initial list 1.
modification_of_ref_pic_idc语法元素的值可为0、1、2或3,如表7中所指示。如果modification_of_ref_pic_idc语法元素的值为3,那么视频解码器30可停止初始参考图像列表的修改。否则,视频解码器30可保持修改初始参考图像列表,直到modification_of_ref_pic_idc语法元素的值为3为止。举例来说,视频编码器20可用信号发出用于modification_of_ref_pic_idc语法元素的多个值,且视频解码器30可以所述值存在于经译码位流中的次序处理所述值中的每一者。当视频解码器30处理为3的modification_of_ref_pic_idc语法元素的值时,视频解码器30可确定不需要进一步修改。The value of the modification_of_ref_pic_idc syntax element may be 0, 1, 2, or 3, as indicated in Table 7. If the value of the modification_of_ref_pic_idc syntax element is 3, video decoder 30 may stop modification of the initial reference picture list. Otherwise, video decoder 30 may keep modifying the initial reference picture list until the value of the modification_of_ref_pic_idc syntax element is 3. For example, video encoder 20 may signal multiple values for the modification_of_ref_pic_idc syntax element, and video decoder 30 may process each of the values in the order in which they appear in the coded bitstream. When video decoder 30 processes a value of the modification_of_ref_pic_idc syntax element of 3, video decoder 30 may determine that no further modification is required.
稍微不同于3的modification_of_ref_pic_idc语法元素的值(即,0、1或2)可指示视频解码器30将从哪一参考图像子集中识别待列入于(例如,添加到)参考图像列表的当前条目中的一参考图像。如上文所描述,参考图像列表的当前条目可通过refIdxLX的值来识别,其中LX为列表0或列表1。举例来说,如果视频解码器30正修改初始列表0,且modification_of_ref_pic_idc为0,那么根据表7,视频解码器30可基于ref_pic_set_idx的值而确定将在参考图像列表的当前条目中识别来自RefPicSetStCurr0的哪一参考图像。如果视频解码器30正修改初始列表1,且modification_of_ref_pic_idc为0,那么根据表7,视频解码器30可基于ref_pic_set_idx的值而确定将在参考图像列表的当前条目中识别来自RefPicSetStCurr1的哪一参考图像。举例来说,变量curRefPicSet可定义视频解码器30应使用哪一参考图像子集来修改初始列表0或初始列表1。A value of the modification_of_ref_pic_idc syntax element slightly different from 3 (i.e., 0, 1, or 2) may indicate from which subset of reference pictures video decoder 30 is to identify a reference picture to be included in (e.g., added to) the current entry of the reference picture list. As described above, the current entry of the reference picture list can be identified by the value of refIdxLX, where LX is List 0 or List 1. For example, if video decoder 30 is modifying initial List 0 and modification_of_ref_pic_idc is 0, then according to Table 7, video decoder 30 may determine which reference picture from RefPicSetStCurr0 is to be identified in the current entry of the reference picture list based on the value of ref_pic_set_idx. If video decoder 30 is modifying initial List 1 and modification_of_ref_pic_idc is 0, then according to Table 7, video decoder 30 may determine which reference picture from RefPicSetStCurr1 is to be identified in the current entry of the reference picture list based on the value of ref_pic_set_idx. For example, the variable curRefPicSet may define which subset of reference pictures video decoder 30 should use to modify initial list 0 or initial list 1.
举例来说,如果modification_of_ref_pic_idc等于0,且视频解码器30正修改初始列表0,那么curRefPicSet等于RefPicSetStCurr0参考图像子集。如果modification_of_ref_pic_idx等于0,且视频解码器30正修改初始列表1,那么curRefPicSet等于RefPicSetStCurr1参考图像子集。For example, if modification_of_ref_pic_idc is equal to 0, and video decoder 30 is modifying initial List 0, then curRefPicSet is equal to RefPicSetStCurr0 reference picture subset. If modification_of_ref_pic_idx is equal to 0, and video decoder 30 is modifying initial List 1, then curRefPicSet is equal to RefPicSetStCurr1 reference picture subset.
如果视频解码器30正修改初始列表0,且modification_of_ref_pic_idc为1,那么根据表7,视频解码器30可基于ref_pic_set_idx的值而确定将在参考图像列表的当前条目中识别来自RefPicSetStCurr1的哪一参考图像。如果视频解码器30正修改初始列表1,且modification_of_ref_pic_idc为1,那么根据表7,视频解码器30可基于ref_pic_set_idx的值而确定将在参考图像列表的当前条目中识别来自RefPicSetStCurr0的哪一参考图像。If video decoder 30 is modifying initial list 0, and modification_of_ref_pic_idc is 1, then according to Table 7, video decoder 30 may determine which reference picture from RefPicSetStCurr1 to identify in the current entry of the reference picture list based on the value of ref_pic_set_idx. If video decoder 30 is modifying initial list 1, and modification_of_ref_pic_idc is 1, then according to Table 7, video decoder 30 may determine which reference picture from RefPicSetStCurr0 to identify in the current entry of the reference picture list based on the value of ref_pic_set_idx.
在此情况下,如果modification_of_ref_pic_idc等于1,且视频解码器30正修改初始列表0,那么curRefPicSet等于RefPicSetStCurr1参考图像子集。如果modification_of_ref_pic_idx等于1,且视频解码器30正修改初始列表1,那么curRefPicSet等于RefPicSetStCurr0参考图像子集。In this case, if modification_of_ref_pic_idc is equal to 1, and video decoder 30 is modifying Initial List 0, then curRefPicSet is equal to the RefPicSetStCurr1 reference picture subset. If modification_of_ref_pic_idx is equal to 1, and video decoder 30 is modifying Initial List 1, then curRefPicSet is equal to the RefPicSetStCurr0 reference picture subset.
如果视频解码器30正修改初始列表0或初始列表1,且modification_of_ref_pic_idc为2,那么根据表7,视频解码器30可基于ref_pic_set_idx的值而确定将在参考图像列表的当前条目中识别来自RefPicSetLtCurr的哪一参考图像。在此实例中,如果modification_of_ref_pic_idc等于2,且视频解码器30正修改初始列表0或初始列表1,那么curRefPicSet等于RefPicSetLtCurr参考图像子集。If video decoder 30 is modifying Initial List 0 or Initial List 1, and modification_of_ref_pic_idc is 2, then according to Table 7, video decoder 30 may determine which reference picture from RefPicSetLtCurr to identify in the current entry of the reference picture list based on the value of ref_pic_set_idx. In this example, if modification_of_ref_pic_idc is equal to 2, and video decoder 30 is modifying Initial List 0 or Initial List 1, then curRefPicSet is equal to the RefPicSetLtCurr reference picture subset.
如上文所描述,ref_pic_set_idx语法元素可指示到所述多个参考图像子集中的一者中的索引。换句话说,ref_pic_set_idx语法元素可向视频解码器30指示来自所述多个参考图像子集中的一者的条目。视频解码器30可确定:在所述多个参考图像子集中的一者的条目中识别的参考图像为待于初始列表0或初始列表1的当前索引中识别的参考图像。As described above, the ref_pic_set_idx syntax element may indicate an index into one of the multiple reference picture subsets. In other words, the ref_pic_set_idx syntax element may indicate an entry from one of the multiple reference picture subsets to video decoder 30. Video decoder 30 may determine that the reference picture identified in the entry in one of the multiple reference picture subsets is the reference picture to be identified in the current index of initial list 0 or initial list 1.
变量curRefPicPoc可等于PicOrderCnt(curRefPicSet[ref_pic_set_idx])。以此方式,curRefPicPoc的值可为在curRefPicSet的ref_pic_set_idx条目中识别的参考图像的POC值。如上文所描述,基于modification_of_ref_pic_idc语法元素的值及基于视频解码器30是正修改初始列表0还是正修改初始列表1,curRefPicSet可等于RefPicSetStCurr0、RefPicSetStCurr1或RefPicSetLtCurr。The variable curRefPicPoc may be equal to PicOrderCnt(curRefPicSet[ref_pic_set_idx]). In this manner, the value of curRefPicPoc may be the POC value of the reference picture identified in the ref_pic_set_idx entry of curRefPicSet. As described above, curRefPicSet may be equal to RefPicSetStCurr0, RefPicSetStCurr1, or RefPicSetLtCurr based on the value of the modification_of_ref_pic_idc syntax element and based on whether video decoder 30 is modifying Initial List 0 or Initial List 1.
视频解码器30可实施以下伪码以用于参考图像列表修改。举例来说,在以下伪码中,视频解码器30可在初始参考图像列表的条目中识别具有等于curRefPicPoc的POC值的图像。变量refIdxLX指示用于初始参考图像列表中的条目的索引位置。举例来说,当视频解码器30正修改初始列表0时,refIdxLX可为refIdxL0,且当视频解码器30正修改初始列表1时,refIdxLX可为refIdxL1。Video decoder 30 may implement the following pseudocode for reference picture list modification. For example, in the following pseudocode, video decoder 30 may identify a picture in an entry of an initial reference picture list that has a POC value equal to curRefPicPoc. The variable refIdxLX indicates the index position for the entry in the initial reference picture list. For example, when video decoder 30 is modifying initial list 0, refIdxLX may be refIdxL0, and when video decoder 30 is modifying initial list 1, refIdxLX may be refIdxL1.
在视频解码器30在初始参考图像列表(即,初始列表0或初始列表1)中识别具有等于curRefPicPOC的POC值的参考图像之后,视频解码器30可将其它剩余图像的位置移位到列表中的稍后位置。举例来说,视频解码器30可将在初始参考图像列表中在当前条目之后的条目中识别的参考图像移动到下一条目,以构造修改的参考图像列表。作为说明性实例,假设:初始参考图像列表中的当前条目为具有index[2]的第三条目。视频解码器30可将当前在具有index[2]的第三条目中识别的参考图像移动到下一条目(例如,具有index[3]的第四条目)中。视频解码器30可将当前在具有index[3]的第四条目中识别的参考图像移动到具有index[4]的第五条目。在一些实例中,视频解码器30可从初始参考图像列表中的最后条目开始,且将在所述条目中识别的参考图像移动到临时的新条目。然后将在倒数第二条目中识别的参考图像移动到最后条目,等等,直到视频解码器30到达当前条目为止。After the video decoder 30 identifies a reference picture having a POC value equal to curRefPicPOC in the initial reference picture list (i.e., initial list 0 or initial list 1), the video decoder 30 may shift the positions of the other remaining pictures to later positions in the list. For example, the video decoder 30 may move the reference picture identified in the entry following the current entry in the initial reference picture list to the next entry to construct a modified reference picture list. As an illustrative example, assume that the current entry in the initial reference picture list is the third entry with index [2]. The video decoder 30 may move the reference picture currently identified in the third entry with index [2] to the next entry (e.g., the fourth entry with index [3]). The video decoder 30 may move the reference picture currently identified in the fourth entry with index [3] to the fifth entry with index [4]. In some instances, the video decoder 30 may start with the last entry in the initial reference picture list and move the reference pictures identified in that entry to a temporary new entry. The reference picture identified in the second to last entry is then moved to the last entry, and so on, until video decoder 30 reaches the current entry.
视频解码器30可然后递增变量refIdxLX的值。在此伪码中,使RefPicListX(即,RefPicList0或RefPicList1)的长度在时间上比最终参考图像列表所需的长度长一个元素。举例来说,如上文所描述,视频解码器30可从初始参考图像列表中的最后条目开始,将所述最后条目移动到临时条目,将导数第二条目移动到最后条目,等等,以修改初始参考图像列表。在执行伪码之后,视频解码器30可仅保留索引0到num_ref_idx_lX_active_minus1中的条目,其中对于列表0,num_ref_idx_lX_active_minus1为num_ref_idx_l0_active_minus1,且对于列表1,num_ref_idx_lX_active_minus1为num_ref_idx_l1_active_minus1。Video decoder 30 may then increment the value of variable refIdxLX. In this pseudo-code, the length of RefPicListX (i.e., RefPicList0 or RefPicList1) is made one element longer in time than the required length of the final reference picture list. For example, as described above, video decoder 30 may start with the last entry in the initial reference picture list, move the last entry to the temporary entry, move the derivative second entry to the last entry, and so on, to modify the initial reference picture list. After executing the pseudo-code, video decoder 30 may retain only the entries in index 0 to num_ref_idx_lX_active_minus1, where for list 0, num_ref_idx_lX_active_minus1 is num_ref_idx_l0_active_minus1, and for list 1, num_ref_idx_lX_active_minus1 is num_ref_idx_l1_active_minus1.
在上述伪码中,基于视频解码器30是正修改初始列表0还是正修改初始列表1,RefPicListX指RefPicList0(即,最终列表0)或RefPicList1(即,最终列表1)。基于视频解码器30是正修改初始列表0还是正修改初始列表1,num_ref_idx_lX_active_minus1指num_ref_idx_l0_active_minus1或ref_idx_l1_active_minus1。In the above pseudocode, RefPicListX refers to either RefPicList0 (i.e., final List 0) or RefPicList1 (i.e., final List 1) based on whether video decoder 30 is modifying initial List 0 or initial List 1. num_ref_idx_lX_active_minus1 refers to either num_ref_idx_l0_active_minus1 or ref_idx_l1_active_minus1 based on whether video decoder 30 is modifying initial List 0 or initial List 1.
上述技术描述视频解码器30可借以修改初始参考图像列表的实例方式。在编码过程期间,视频编码器20还可能需要解码经编码图像以用于编码后续图像的目的。因此,在一些实例中,视频编码器20还可经配置以构造初始参考图像列表,且以上文所描述的方式修改初始参考图像列表。然而,视频编码器20可能不需要在每个实例中修改一个或一个以上初始参考图像列表。在一些实例中,视频解码器30可为利用上文所描述的技术修改初始参考图像列表的仅有的译码器。The above techniques describe example ways in which video decoder 30 may modify initial reference picture lists. During the encoding process, video encoder 20 may also need to decode encoded pictures for the purpose of encoding subsequent pictures. Therefore, in some examples, video encoder 20 may also be configured to construct initial reference picture lists and modify the initial reference picture lists in the manner described above. However, video encoder 20 may not need to modify one or more initial reference picture lists in every example. In some examples, video decoder 30 may be the only coder that modifies initial reference picture lists using the techniques described above.
因此,在一些实例中,视频译码器(例如,视频编码器20或视频解码器30)可利用上文所描述的技术构造初始参考图像列表(例如,初始列表0或初始列表1)。视频译码器可基于经译码位流中的经译码语法元素而确定是否需要参考图像列表修改。当需要参考图像列表修改时,视频译码器可修改初始参考图像列表。Thus, in some examples, a video coder (e.g., video encoder 20 or video decoder 30) may construct an initial reference picture list (e.g., initial list 0 or initial list 1) utilizing the techniques described above. The video coder may determine whether reference picture list modification is needed based on coded syntax elements in the coded bitstream. When reference picture list modification is needed, the video coder may modify the initial reference picture list.
举例来说,当需要参考图像列表修改时,视频译码器可识别所构造的参考图像子集中的至少一者中的参考图像。视频译码器可在初始参考图像列表的当前条目中列出(例如,添加)所识别的参考图像子集以构造修改的参考图像列表。视频译码器可然后基于所修改的参考图像列表而译码(例如,编码或解码)当前图像。For example, when reference picture list modification is required, the video coder may identify a reference picture in at least one of the constructed reference picture subsets. The video coder may list (e.g., add) the identified reference picture subset in the current entry of the initial reference picture list to construct a modified reference picture list. The video coder may then code (e.g., encode or decode) the current picture based on the modified reference picture list.
作为一个实例,视频译码器可构造RefPicSetStCurr0、RefPicSetStCurr1和RefPicSetLtCurr参考图像子集。为了识别这些参考图像子集中的至少一者中的参考图像,视频译码器可确定到这些参考图像子集中的至少一者中的索引。视频译码器可然后基于所确定的索引而确定在这些参考图像子集中的至少一者的条目处识别的参考图像。As an example, a video coder may construct RefPicSetStCurr0, RefPicSetStCurr1, and RefPicSetLtCurr reference picture subsets. To identify a reference picture in at least one of these reference picture subsets, the video coder may determine an index into at least one of these reference picture subsets. The video coder may then determine the reference picture identified at an entry in at least one of these reference picture subsets based on the determined index.
举例来说,视频译码器可译码(例如,编码或解码)第一语法元素(例如,modification_of_ref_pic_idc语法元素),视频译码器可通过所述第一语法元素识别参考图像子集中的一者(例如,RefPicSetStCurr0、RefPicSetStCurr1和RefPicSetLtCurr参考图像子集中的一者)。视频译码器可译码第二语法元素(例如,ref_pic_set_idx语法元素),所述第二语法元素指示到所识别的参考图像子集(例如,RefPicSetStCurr0、RefPicSetStCurr1和RefPicSetLtCurr参考图像子集中的一者)中的索引。For example, a video coder may code (e.g., encode or decode) a first syntax element (e.g., a modification_of_ref_pic_idc syntax element) by which the video coder may identify one of the reference picture subsets (e.g., one of the RefPicSetStCurr0, RefPicSetStCurr1, and RefPicSetLtCurr reference picture subsets). The video coder may code a second syntax element (e.g., a ref_pic_set_idx syntax element) that indicates an index into the identified reference picture subset (e.g., one of the RefPicSetStCurr0, RefPicSetStCurr1, and RefPicSetLtCurr reference picture subsets).
在一些实例中,视频译码器可经进一步配置以移动初始参考图像列表中的参考图像。举例来说,视频译码器可在修改的参考图像列表中将在初始参考图像列表中在当前条目之后的条目中识别的参考图像移动到下一条目。In some examples, the video coder may be further configured to move a reference picture in the initial reference picture list. For example, the video coder may move a reference picture identified in an entry following the current entry in the initial reference picture list to the next entry in the modified reference picture list.
先前实例描述视频编码器20和视频解码器30可借以导出参考图像集的方式,以及在不需要修改时及在需要修改时用于构造参考图像列表的实例技术。然而,本发明中所描述的技术不应受此限制。在一些实例中,本发明中所描述的技术可针对已解码图像缓冲器(DPB)管理。DPB可为存储已解码图像的缓冲器。The previous examples describe how video encoder 20 and video decoder 30 can derive reference picture sets, as well as example techniques for constructing reference picture lists when modification is not required and when modification is required. However, the techniques described in this disclosure should not be limited thereto. In some examples, the techniques described in this disclosure may be directed to decoded picture buffer (DPB) management. A DPB may be a buffer that stores decoded pictures.
视频编码器20和视频解码器30中的每一者可包含相应DPB。举例来说,作为编码过程的部分,视频编码器20可解码当前图像,将已解码图像存储在视频编码器20的DPB中,且利用存储在DPB中的已解码图像对后续图像进行帧间预测。类似地,作为解码过程的部分,视频解码器30可解码当前图像且将已解码图像存储在视频解码器30的DPB中。视频解码器30可然后利用已解码图像对后续图像进行帧间预测。Each of the video encoder 20 and the video decoder 30 may include a respective DPB. For example, as part of the encoding process, the video encoder 20 may decode a current picture, store the decoded picture in the DPB of the video encoder 20, and use the decoded picture stored in the DPB to inter-predict subsequent pictures. Similarly, as part of the decoding process, the video decoder 30 may decode a current picture and store the decoded picture in the DPB of the video decoder 30. The video decoder 30 may then use the decoded picture to inter-predict subsequent pictures.
在一些实例中,用于视频编码器20或视频解码器30的DPB可存储已解码图像以用于输出重新排序或输出延迟。举例来说,视频解码器30可确定:应将已解码图像重新排序以用于输出,或应使已解码图像的输出延迟。在这些实例中,视频解码器30的DPB可存储已解码图像以用于输出重新排序或输出延迟。In some examples, the DPB for video encoder 20 or video decoder 30 may store decoded pictures for output reordering or output delay. For example, video decoder 30 may determine that decoded pictures should be reordered for output or that output of decoded pictures should be delayed. In these examples, the DPB of video decoder 30 may store decoded pictures for output reordering or output delay.
本发明中所描述的DPB管理技术可关于DPB借以输出及去除已解码图像的方式。output_flag语法元素可影响已解码图像输出及去除过程,且可经定义为网络抽象层(NAL)单元语义的部分。NAL单元可经定义为一种语法结构,其包含关于待遵循的数据类型的指示及字节,所述字节包含呈必要时穿插有防止竞争字节的原始字节序列有效载荷(RBSP)形式的所述数据。RBSP可为一种语法结构,其包含包封于一NAL单元中的整数数目个字节。RBSP可为空或具有数据位串的形式,所述数据位包含后接续有RBSP停止位且后接续有等于零的零或多个后续位的语法元素。表8定义NAL单元语法。The DPB management techniques described in this disclosure may relate to how the DPB outputs and removes decoded pictures. The output_flag syntax element may affect the decoded picture output and removal process and may be defined as part of the Network Abstraction Layer (NAL) unit semantics. A NAL unit may be defined as a syntax structure that includes an indication of the type of data to follow and bytes containing the data in the form of a Raw Byte Sequence Payload (RBSP), interspersed with contention prevention bytes as necessary. An RBSP may be a syntax structure that includes an integer number of bytes encapsulated in a NAL unit. An RBSP may be empty or in the form of a data bit string consisting of a syntax element followed by an RBSP stop bit and followed by zero or more subsequent bits equal to zero. Table 8 defines the NAL unit syntax.
表8.NAL单元语法Table 8. NAL unit syntax
在表8中,output_flag可影响已解码图像输出及去除过程,如下文更详细描述。对于任何图像,如果output_flag等于1,那么图像希望用于输出。否则,决不输出图像。在本发明中所描述的技术中,变量OutputFlag等于output_flag语法元素。In Table 8, output_flag can affect the decoded picture output and removal process, as described in more detail below. For any picture, if output_flag is equal to 1, then the picture is intended for output. Otherwise, the picture is never output. In the techniques described in this disclosure, the variable OutputFlag is equal to the output_flag syntax element.
在一些实例中,当前存取单元的经译码图像的任何经译码切片NAL单元可能按以下方式中的一者或一者以上不同于先前存取单元的经译码图像的任何经译码切片NAL单元。举例来说,pic_parameter_set_id值可能不同,nal_ref_idc值可能不同,其中nal_ref_idc值中的一者等于0。pic_order_cnt_lsb值可能不同。IdrPicFlag值可能不同。IdrPicFlag可等于1(对于两种情形),且idr_pic_id值可能不同。In some examples, any coded slice NAL unit of a coded picture of the current access unit may differ from any coded slice NAL unit of a coded picture of the previous access unit in one or more of the following ways. For example, the pic_parameter_set_id value may be different, the nal_ref_idc value may be different, where one of the nal_ref_idc values is equal to 0. The pic_order_cnt_lsb value may be different. The idrPicFlag value may be different. The idrPicFlag may be equal to 1 (for both cases), and the idr_pic_id value may be different.
在本发明中所描述的技术中,存取单元可经定义为在解码次序上连续且含有一个经译码图像的NAL单元的集合。除经译码图像之外,一个辅助经译码图像或其它NAL单元还可能不含有经译码图像的切片。在一些实例中,存取单元的解码可产生已解码图像。经译码图像可为待供解码过程使用的图像的经译码表示。In the techniques described in this disclosure, an access unit may be defined as a set of NAL units that are consecutive in decoding order and contain one coded picture. An auxiliary coded picture or other NAL unit may not contain slices of a coded picture in addition to the coded picture. In some examples, decoding of an access unit may produce a decoded picture. A coded picture may be a coded representation of a picture to be used by the decoding process.
如表4中所指示,切片标头语法可包含pic_parameter_set_id语法元素、pic_order_cnt_lsb语法元素、IdrPicFlag语法元素,和idr_pic_id语法元素。如表8中所指示,NAL单元语法可包含nal_ref_idc语法元素。As indicated in Table 4, the slice header syntax may include a pic_parameter_set_id syntax element, a pic_order_cnt_lsb syntax element, an IdrPicFlag syntax element, and an idr_pic_id syntax element. As indicated in Table 8, the NAL unit syntax may include a nal_ref_idc syntax element.
为了说明的目的,从假想参考解码器(HRD)的观点描述DPB管理技术。HRD可经定义为一种假想解码器模型,其指定对符合NAL单元流或符合编码过程可产生的字节流的可变性的约束。然而,根据本发明中所描述的技术,视频解码器30可实施DPB管理技术,且在一些实例中,视频编码器20可能有可能还实施DPB管理技术。For purposes of illustration, DPB management techniques are described from the perspective of a hypothetical reference decoder (HRD). An HRD may be defined as a hypothetical decoder model that specifies constraints on the variability of a conforming NAL unit stream or a conforming byte stream that an encoding process may produce. However, according to the techniques described in this disclosure, video decoder 30 may implement DPB management techniques, and in some examples, video encoder 20 may also implement DPB management techniques.
HDR模型可定义经译码图像缓冲器(CPB)、瞬时解码过程,和已解码图像缓冲器(DPB)。CPB可类似于在其它先前标准中定义的HDR模型的CPB(即,CPB可存储经译码图像)。本发明中所描述的技术涉及不同于其它标准中的操作的DPB操作。此外,应理解,视频解码器30及可能的视频编码器20可实施DPB操作,如下文所描述。The HDR model may define a coded picture buffer (CPB), a transient decoding process, and a decoded picture buffer (DPB). The CPB may be similar to the CPB of the HDR model defined in other previous standards (i.e., the CPB may store coded pictures). The techniques described in this disclosure relate to DPB operations that differ from those in other standards. Furthermore, it should be understood that video decoder 30, and possibly video encoder 20, may implement DPB operations, as described below.
一般来说,本发明中所描述的技术涉及DPB中的已解码图像的输出及去除。在此上下文中,已解码图像的输出意味着输出解码图像以用于显示、存储或其它目的。然而,未必需要将输出的已解码图像从DPB中去除。举例来说,视频解码器30可能不将输出的已解码图像从DPB中去除,这是因为视频解码器30可能需要利用所述已解码图像作为用于对后续图像进行帧间预测的参考图像。在此上下文中,已解码图像的去除意味着将已解码图像从DPB中去除。In general, the techniques described in this disclosure relate to the output and removal of decoded images from the DPB. In this context, output of a decoded image means outputting the decoded image for display, storage, or other purposes. However, the output decoded image need not necessarily be removed from the DPB. For example, the video decoder 30 may not remove the output decoded image from the DPB because the video decoder 30 may need to use the decoded image as a reference image for inter-frame prediction of subsequent images. In this context, removal of a decoded image means removing the decoded image from the DPB.
举例来说,视频解码器30可以图像经解码的次序将已解码图像存储在视频解码器30的DPB中。然而,图像的解码次序可能与图像的输出次序不相同。举例来说,可能存在在解码次序上在当前图像之后的将比当前图像早输出的图像。因此,在一些实例中,视频解码器30可执行重新排序,视频解码器30通过重新排序将DPB中的在解码次序上排序的图像重新排序成输出次序。视频解码器30可然后以已解码图像的输出次序输出已解码图像。如果图像不需要输出(即,图像已输出或图像并不希望用于输出)且不需要进行帧间预测(即,不需要用作用于进行帧间预测的参考图像),那么视频解码器30还可将图像从已解码图像中去除。For example, video decoder 30 may store decoded pictures in the DPB of video decoder 30 in the order in which they were decoded. However, the decoding order of pictures may not be the same as the output order of pictures. For example, there may be pictures that follow the current picture in decoding order and will be output before the current picture. Therefore, in some examples, video decoder 30 may perform reordering, whereby video decoder 30 reorders the pictures in the DPB that were sorted in decoding order into output order. Video decoder 30 may then output the decoded pictures in the output order of the decoded pictures. Video decoder 30 may also remove pictures from the decoded pictures if they do not need to be output (i.e., the pictures have already been output or the pictures are not intended for output) and do not need to be inter-predicted (i.e., do not need to be used as reference pictures for inter-prediction).
在本发明中所描述的技术中,如果已解码图像已输出或已解码图像并不希望用于输出,且如果已解码图像在所导出的参考图像集中未加以识别(所述情形等效于不再需要用于帧间预测参考(即,已解码图像不再需要用作用于进行帧间预测的参考图像)),那么视频解码器30可将已解码图像从DPB中去除。此外,如上文所描述,参考图像集可识别可潜在地用于对当前图像进行帧间预测且可潜在地用于对在解码次序上在当前图像之后的一个或一个以上图像进行帧间预测的参考图像。根据本发明中所描述的技术,如果已解码图像在所导出的参考图像集中未加以识别,那么所述已解码图像可能不需要作为用于对当前图像及在解码次序上在当前图像之后的一个或一个以上图像进行帧间预测(例如,解码)的参考图像。因此,如果已解码图像不需要输出,那么可将此已解码图像从DPB中去除,这是因为在给定已解码图像将不用于进行帧间预测的情况下可能不需要将此已解码图像保持在DPB中。In the techniques described in this disclosure, if a decoded picture has already been output or is not intended for output, and if the decoded picture is not identified in the derived reference picture set (which is equivalent to no longer being needed for inter-prediction reference (i.e., the decoded picture no longer needs to be used as a reference picture for inter-prediction)), then video decoder 30 may remove the decoded picture from the DPB. Furthermore, as described above, the reference picture set may identify reference pictures that can potentially be used for inter-prediction of the current picture and for inter-prediction of one or more pictures that follow the current picture in decoding order. According to the techniques described in this disclosure, if a decoded picture is not identified in the derived reference picture set, then the decoded picture may not be needed as a reference picture for inter-prediction (e.g., decoding) of the current picture and one or more pictures that follow the current picture in decoding order. Therefore, if a decoded picture is not intended for output, it may be removed from the DPB because it may not be necessary to retain the decoded picture in the DPB given that the decoded picture will not be used for inter-prediction.
此外,在本发明中所描述的技术中,视频解码器30可在解码当前图像之前去除已解码图像。举例来说,如上文所描述,在解码当前图像之前,视频解码器30可导出参考图像集,且构造(多个)参考图像列表。因为视频解码器30可在解码当前图像之前导出参考图像集,所以视频解码器30可经配置以确定是否应在解码当前图像之前去除不需要输出的已解码图像。举例来说,在导出参考图像集之后且在解码当前图像之前,视频解码器30可确定输出的已解码图像或并不希望用于输出的已解码图像是否在参考图像集中未加以识别。然后,如果已解码图像在参考图像集中未加以识别,那么在解码当前图像之前,视频解码器30可去除不需要输出(即,已经输出或并不希望用于输出)的已解码图像。Furthermore, in the techniques described in this disclosure, video decoder 30 may remove decoded images before decoding a current image. For example, as described above, before decoding a current image, video decoder 30 may derive a reference image set and construct reference image list(s). Because video decoder 30 may derive a reference image set before decoding a current image, video decoder 30 may be configured to determine whether decoded images that are not required for output should be removed before decoding the current image. For example, after deriving the reference image set and before decoding the current image, video decoder 30 may determine whether decoded images to be output or decoded images that are not desired for output are not identified in the reference image set. Then, if the decoded images are not identified in the reference image set, video decoder 30 may remove decoded images that are not required for output (i.e., already output or not desired for output) before decoding the current image.
在一些实例中,视频解码器30可在解码当前图像之前去除已解码图像。然而,视频解码器30可在构造(多个)参考图像列表之后去除已解码图像。举例来说,视频解码器30可导出参考图像集,且可基于参考图像集而构造参考图像列表。然后,在解码当前图像之前,视频解码器30可去除已解码图像。在一些实例中,视频解码器30还可在构造(多个)参考图像列表之后输出已解码图像。In some examples, video decoder 30 may remove the decoded picture before decoding the current picture. However, video decoder 30 may remove the decoded picture after constructing the reference picture list(s). For example, video decoder 30 may derive a reference picture set and may construct the reference picture list based on the reference picture set. Then, before decoding the current picture, video decoder 30 may remove the decoded picture. In some examples, video decoder 30 may also output the decoded picture after constructing the reference picture list(s).
本发明从至少两种观点描述DPB中的已解码图像的去除技术。在第一种观点中,如果图像希望用于输出,那么视频解码器30可基于输出时间而去除已解码图像。在第二种观点中,如果图像希望用于输出,那么视频解码器30可基于POC值而去除已解码图像。在任一种观点中,当已解码图像不在参考图像集中时,且在解码当前图像之前,视频解码器30可去除不需要输出(即,已经输出或并不希望用于输出)的已解码图像。This disclosure describes techniques for removing decoded pictures from the DPB from at least two perspectives. In the first perspective, if the picture is intended for output, the video decoder 30 can remove the decoded picture based on the output time. In the second perspective, if the picture is intended for output, the video decoder 30 can remove the decoded picture based on the POC value. In either perspective, when the decoded picture is not in the reference picture set and before decoding the current picture, the video decoder 30 can remove the decoded picture that is not required for output (i.e., has already been output or is not intended for output).
DPB可包含多个缓冲器,且每一缓冲器可存储待用作参考图像或经保持以用于未来输出的一已解码图像。最初,DPB为空的(即,将DPB充满度设置为零)。在所描述的实例技术中,将已解码图像从DPB中去除可发生在解码当前图像之前,但在视频解码器30分析当前图像的第一切片的切片标头之后。The DPB may include multiple buffers, and each buffer may store a decoded picture to be used as a reference picture or maintained for future output. Initially, the DPB is empty (i.e., the DPB fullness is set to zero). In the described example techniques, removing the decoded picture from the DPB may occur before decoding the current picture, but after video decoder 30 analyzes the slice header of the first slice of the current picture.
在第一种观点中,以下技术可按以下序列瞬时在时间tr(n)发生。在此实例中,tr(n)为含有当前图像的存取单元n的CPB去除时间(即,解码时间)。如本发明中所描述,所述技术瞬时发生可意味着:在HDR模型中,假设:图像的解码为瞬时的(即,无限快速),具有等于零的用于解码图像的时间周期。In a first view, the following techniques may occur instantaneously at time tr (n) in the following sequence. In this example, tr (n) is the CPB removal time (i.e., decoding time) of access unit n containing the current picture. As described in this disclosure, the techniques occurring instantaneously may mean that, in the HDR model, it is assumed that decoding of pictures is instantaneous (i.e., infinitely fast), with a time period for decoding a picture equal to zero.
如果当前图像为IDR图像,且当IDR图像并不是第一IDR图像且从有效序列参数集导出的pic_width_in_luma_samples或pic_height_in_luma_samples或max_dec_frame_buffering的值分别不同于从前一图像的有效序列参数集导出的pic_width_in_luma_samples或pic_height_in_luma_samples或max_dec_frame_buffering的值时,视频解码器30可推断:no_output_of_prior_pics_flag语法元素等于1,而不管no_output_of_prior_pics_flag的实际值。如果当前图像为IDR图像,且当no_output_of_prior_pics_flag等于1或经推断为等于1时,视频解码器30可将DPB的所有缓冲器清空而不输出DPB中的图像,且可将DPB充满度设置为0。If the current picture is an IDR picture, and when the IDR picture is not the first IDR picture and the values of pic_width_in_luma_samples or pic_height_in_luma_samples, or max_dec_frame_buffering derived from the valid sequence parameter set are different from the values of pic_width_in_luma_samples or pic_height_in_luma_samples, or max_dec_frame_buffering, respectively, derived from the valid sequence parameter set for the previous picture, video decoder 30 may infer that the no_output_of_prior_pics_flag syntax element is equal to 1, regardless of the actual value of no_output_of_prior_pics_flag. If the current picture is an IDR picture, and when no_output_of_prior_pics_flag is equal to 1 or is inferred to be equal to 1, video decoder 30 may flush all buffers of the DPB without outputting pictures in the DPB, and may set the DPB fullness to 0.
如上文表1中所指示,序列参数集可包含pic_width_in_luma_samples和pic_height_in_luma_samples语法元素。序列参数集还可包含max_dec_frame_buffering语法元素。如上文表4中所指示,切片标头语法可包含no_output_of_prior_pics_flag语法元素。As indicated above in Table 1, the sequence parameter set may include the pic_width_in_luma_samples and pic_height_in_luma_samples syntax elements. The sequence parameter set may also include the max_dec_frame_buffering syntax element. As indicated above in Table 4, the slice header syntax may include the no_output_of_prior_pics_flag syntax element.
在当前图像并不是IDR图像时,视频解码器30可去除DPB中对于以下条件成立的所有图像(m)。第一条件可为:图像不包含在当前图像的参考图像集中。第二条件可为:图像具有等于0的OutputFlag或图像的DPB输出时间小于或等于当前图像的CPB去除时间。在此实例中,CPB去除时间为tr(n),其为去除过程发生时的实例(例如,在解码当前图像之前的时间)。已解码图像m的DPB输出时间可通过变量to,dpb(m)来定义。因此,可将小于或等于CPB去除时间的DPB输出时间表示为to,dpb(m)<tr(n)。下文更详细定义DPB输出时间(to,dpb)的导出。When the current picture is not an IDR picture, video decoder 30 may remove all pictures (m) in the DPB for which the following conditions hold. The first condition may be that the picture is not included in the reference picture set of the current picture. The second condition may be that the picture has an OutputFlag equal to 0 or the DPB output time of the picture is less than or equal to the CPB removal time of the current picture. In this example, the CPB removal time is t r (n), which is the instance when the removal process occurs (e.g., the time before the current picture is decoded). The DPB output time of decoded picture m may be defined by the variable t o,dpb (m). Thus, a DPB output time that is less than or equal to the CPB removal time may be expressed as t o,dpb (m) < t r (n). The derivation of the DPB output time (t o,dpb ) is defined in more detail below.
以此方式,基于已解码图像的输出时间且在已解码图像在参考图像集中未加以识别时,视频解码器30可在解码图像之前将已解码图像从DPB中去除。当视频解码器30将已解码图像从DPB中去除时,视频解码器30可将DPB充满度递减一。In this manner, based on the output time of a decoded picture and when the decoded picture is not identified in the reference picture set, video decoder 30 may remove a decoded picture from the DPB before decoding the picture. When video decoder 30 removes a decoded picture from the DPB, video decoder 30 may decrement the DPB fullness by one.
下文描述视频解码器30可借以确定输出已解码图像的时间(例如,已解码图像的DPB输出时间)的方式,且还描述视频解码器30何时可将已解码图像存储在DPB中。如上文所描述,图像的DPB输出时间可为确定是否将所述图像从DPB中去除的因数。The following describes how video decoder 30 may determine when to output a decoded picture (e.g., the DPB output time of the decoded picture), and also describes when video decoder 30 may store a decoded picture in the DPB. As described above, the DPB output time of a picture may be a factor in determining whether to remove the picture from the DPB.
当视频解码器30解码图像时,视频解码器30将图像存储在DPB中,且将DPB充满度递增一。当图像具有等于1的OutputFlag时,视频解码器30可基于以下等式而导出用于图像的DPB输出时间。When video decoder 30 decodes a picture, video decoder 30 stores the picture in the DPB and increments the DPB fullness by 1. When a picture has OutputFlag equal to 1, video decoder 30 may derive the DPB output time for the picture based on the following equation.
to,dpb(n)=tr(n)+tc*dpb_output_delay(n)t o,dpb (n)=t r (n)+t c *dpb_output_delay(n)
在等式中,dpb_output_delay(n)可指定于与包含图像的存取单元相关联的图像时序SEI消息中。SEI消息可定义于例如H.264/AVC标准等一些标准中。In the equation, dpb_output_delay(n) may be specified in a picture timing SEI message associated with an access unit including a picture. SEI messages may be defined in some standards, such as the H.264/AVC standard.
to,dpb(n)值可定义何时输出图像。举例来说,如果OutputFlag等于1且to,dpb(n)等于tr(n),那么视频解码器30可输出图像。否则,如果OutputFlag等于0,那么视频解码器30可能不输出图像。在OutputFlag等于1且to,dpb(n)大于tr(n)的实例中,视频解码器30可在稍后时间(例如,在时间to,dpb(n))输出图像。The t o,dpb (n) value may define when to output a picture. For example, if OutputFlag is equal to 1 and t o,dpb (n) is equal to t r (n), video decoder 30 may output the picture. Otherwise, if OutputFlag is equal to 0, video decoder 30 may not output the picture. In instances where OutputFlag is equal to 1 and t o,dpb (n) is greater than t r (n), video decoder 30 may output the picture at a later time, e.g., at time t o,dpb (n).
在一些实例中,当视频解码器30输出图像时,视频解码器30可剪辑图像。举例来说,视频解码器30可利用用于图像的有效序列参数集中指定的剪辑矩形。用于剪辑图像的技术一般地良好地建立及描述于例如H.264/AVC标准等标准中。In some examples, when video decoder 30 outputs a picture, video decoder 30 may clip the picture. For example, video decoder 30 may utilize a clipping rectangle specified in a valid sequence parameter set for the picture. Techniques for clipping pictures are generally well established and described in standards such as the H.264/AVC standard.
在一些实例中,视频解码器30可确定图像的DPB输出时间与在输出次序上在所述图像之后的图像的DPB输出时间之间的差值。举例来说,当图像(n)为视频解码器30输出的图像且并不是输出的位流的最后图像时,视频解码器30可确定将Δto,dpb(n)的值定义为:In some examples, video decoder 30 may determine the difference between the DPB output time of a picture and the DPB output time of pictures that follow the picture in output order. For example, when picture (n) is a picture output by video decoder 30 and is not the last picture in the output bitstream, video decoder 30 may determine the value of Δt o,dpb (n) to be defined as:
Δto,dpb(n)=to,dpb(nn)-to,dpb(n)Δt o,dpb (n)=t o,dpb (n n )-t o,dpb (n)
在上述等式中,nn指示在输出次序上在图像(n)之后且具有等于1的OutputFlag的图像。而且,在上述等式中,Δto,dpb(n)表示图像与输出次序上的随后图像之间的DPB输出时间差。In the above equation, n n indicates a picture that follows picture (n) in output order and has OutputFlag equal to 1. Also, in the above equation, Δt o,dpb (n) represents the DPB output time difference between a picture and the subsequent picture in output order.
在用于去除已解码图像的第二种观点中,HDR可在将存取单元从CPB中去除时瞬时地实施所述技术。此外,视频解码器30可实施将已解码图像从DPB中去除,且视频解码器30可能未必包含CPB。一般来说,在本发明中,已解码图像的去除是由视频解码器30来执行,且还可由视频编码器20来执行。在这些实例中,视频解码器30和视频编码器20可能不需要CPB。而是,仅用于说明的目的作为HDR模型的部分来描述CPB。In the second approach to removing decoded pictures, HDR can implement the techniques instantaneously when removing an access unit from the CPB. Furthermore, video decoder 30 can implement the removal of decoded pictures from the DPB, and video decoder 30 may not necessarily include a CPB. Generally speaking, in this disclosure, the removal of decoded pictures is performed by video decoder 30 and may also be performed by video encoder 20. In these examples, video decoder 30 and video encoder 20 may not require a CPB. Instead, the CPB is described as part of the HDR model for illustrative purposes only.
如上文,在用于去除已解码图像的第二种观点中,视频解码器30可在解码当前图像之前但在分析当前图像的第一切片的切片标头之后,将图像从DPB中去除。而且,类似于用于去除已解码图像的第一种观点,在第二种观点中,视频解码器30可执行类似于上文在当前图像为IDR图像时关于第一种观点所描述的功能的功能。As described above, in the second aspect for removing decoded pictures, video decoder 30 may remove the picture from the DPB before decoding the current picture but after analyzing the slice header of the first slice of the current picture. Furthermore, similar to the first aspect for removing decoded pictures, in the second aspect, video decoder 30 may perform functions similar to those described above with respect to the first aspect when the current picture is an IDR picture.
否则,如果当前图像并不是IDR图像,那么视频解码器30可将DPB的缓冲器清空而不输出,所述缓冲器存储标记为“不需要输出”的图像且存储不包含在当前图像的参考图像集中的图像。视频解码器30还可将DPB充满度递减视频解码器30清空的缓冲器的数目。当不存在空缓冲器时(即,DPB充满度等于DPB大小),视频解码器30可实施下文所描述的“冲撞”过程。在一些实例中,当不存在空缓冲器时,视频解码器30可重复地实施冲撞过程,直到存在视频解码器30可存储当前已解码图像的空缓冲器为止。Otherwise, if the current picture is not an IDR picture, the video decoder 30 may flush the buffer of the DPB without outputting it, the buffer storing pictures marked as "not required for output" and storing pictures not included in the reference picture set of the current picture. The video decoder 30 may also decrement the DPB fullness by the number of buffers flushed by the video decoder 30. When there are no empty buffers (i.e., the DPB fullness is equal to the DPB size), the video decoder 30 may implement the "bumping" process described below. In some examples, when there are no empty buffers, the video decoder 30 may repeatedly implement the bumping process until there is an empty buffer in which the video decoder 30 can store the current decoded picture.
在当前图像为no_output_of_prior_pics_flag不等于1且未经推断为等于1的IDR图像时,视频解码器30可执行以下操作。视频解码器30可将DPB的缓冲器清空而不输出,所述缓冲器存储标记为“不需要输出”且不包含在当前图像的参考图像集中的图像。视频解码器30可通过重复地调用“冲撞”过程而将DPB中的所有非空缓冲器清空,且可将DPB充满度设置为0。When the current picture is an IDR picture with no_output_of_prior_pics_flag not equal to 1 and not inferred to be equal to 1, video decoder 30 may perform the following operations. Video decoder 30 may flush the buffers of the DPB without outputting the pictures that are marked as "not required for output" and are not included in the reference picture set of the current picture. Video decoder 30 may flush all non-empty buffers in the DPB by repeatedly calling the "bump" process and may set the DPB fullness to 0.
换句话说,在当前图像为IDR图像时,视频解码器30可实施技术以将DPB中的所有缓冲器清空。在当前图像并不是IDR图像时,视频解码器30可实施技术以将已解码图像去除到自由缓冲器以用于存储当前已解码图像。In other words, when the current picture is an IDR picture, video decoder 30 may implement techniques to flush all buffers in the DPB. When the current picture is not an IDR picture, video decoder 30 may implement techniques to remove decoded pictures to free buffers for storing the current decoded picture.
举例来说,在视频解码器30解码当前图像之后,视频解码器30可将当前图像存储在DPB中,且将DPB充满度递增一。在一些实例中,如果当前图像的OutputFlag等于1,那么视频解码器30可将当前图像标记为“需要输出”。否则,如果当前图像的OutputFlag等于0,那么视频解码器30可将当前图像标记为“不需要输出”。For example, after video decoder 30 decodes the current picture, video decoder 30 may store the current picture in the DPB and increment the DPB fullness by one. In some examples, if the OutputFlag of the current picture is equal to 1, video decoder 30 may mark the current picture as "needed to be output." Otherwise, if the OutputFlag of the current picture is equal to 0, video decoder 30 may mark the current picture as "not needed to be output."
如上文所描述,在一些实例中,视频解码器30可实施冲撞过程。一般来说,冲撞过程涉及输出已解码图像。举例来说,在当前图像为IDR图像且no_output_of_prior_pics_flag不等于1且未经推断为等于1时,视频解码器30可实施冲撞过程。如果DPB中不存在空缓冲器(即,DPB充满度等于DPB的大小),且需要空缓冲器以用于存储已解码(非IDR)图像,那么视频解码器30也可实施冲撞过程。As described above, in some examples, video decoder 30 may implement a bump process. Generally, the bump process involves outputting decoded pictures. For example, when the current picture is an IDR picture and no_output_of_prior_pics_flag is not equal to 1 and has not been inferred to be equal to 1, video decoder 30 may implement a bump process. Video decoder 30 may also implement a bump process if there is no empty buffer in the DPB (i.e., the DPB fullness is equal to the size of the DPB) and an empty buffer is needed for storing decoded (non-IDR) pictures.
一般来说,视频解码器30可实施以下步骤以实施冲撞过程。视频解码器30可首先确定待输出的图像。举例来说,视频解码器30可选择DPB中标记为“需要输出”的所有图像中具有较小PicOrderCnt(POC)值的图像。视频解码器30可使用用于图像的有效序列参数集中指定的剪辑矩形剪辑所选定图像。视频解码器30可输出经剪辑的图像,且可将图像标记为“不需要输出”。视频解码器30可检查存储经剪辑及输出的图像的DPB的缓冲器。如果图像不包含在参考图像集中,那么视频解码器30可将所述缓冲器清空且可将DPB充满度递减一。In general, the video decoder 30 may implement the following steps to implement the collision process. The video decoder 30 may first determine the picture to be output. For example, the video decoder 30 may select the picture with the smaller PicOrderCnt (POC) value among all the pictures marked as "need to be output" in the DPB. The video decoder 30 may clip the selected picture using the clipping rectangle specified in the valid sequence parameter set for the picture. The video decoder 30 may output the clipped picture and may mark the picture as "not needed to be output". The video decoder 30 may check the buffer of the DPB that stores the clipped and output pictures. If the picture is not included in the reference picture set, the video decoder 30 may clear the buffer and may decrement the DPB fullness by one.
尽管根据视频解码器30的上下文描述用于DPB管理的上述技术,但在一些实例中,视频编码器20可实施类似技术。然而,不需要在每个实例中视频编码器20实施类似技术。在一些实例中,视频解码器30可实施这些技术,且视频编码器20可能不实施这些技术。Although the above techniques for DPB management are described in the context of video decoder 30, in some examples, video encoder 20 may implement similar techniques. However, video encoder 20 need not implement similar techniques in every example. In some examples, video decoder 30 may implement these techniques, and video encoder 20 may not implement these techniques.
以此方式,视频译码器(例如,视频编码器20或视频解码器30)可译码指示属于参考图像集的参考图像的信息。此外,参考图像集可识别可潜在地用于对当前图像进行帧间预测且可潜在地用于对在解码次序上在当前图像之后的一个或一个以上图像进行帧间预测的参考图像。In this manner, a video coder (e.g., video encoder 20 or video decoder 30) may decode information indicating reference pictures that belong to a reference picture set. Furthermore, a reference picture set may identify reference pictures that may potentially be used for inter-prediction of a current picture and that may potentially be used for inter-prediction of one or more pictures that follow the current picture in decoding order.
视频译码器可以任何方式导出参考图像集,包含上文所描述的实例技术。视频译码器可确定存储在已解码图像缓冲器中的已解码图像是否不需要输出及是否在参考图像集中未加以识别。当已解码图像已经输出且在参考图像集中未加以识别时,视频译码器可将已解码图像从已解码图像缓冲器中去除。在去除已解码图像之后,视频译码器可译码当前图像。举例来说,视频译码器可如上文所描述构造(多个)参考图像列表,且基于(多个)参考图像列表而译码当前图像。The video coder may derive the reference picture set in any manner, including the example techniques described above. The video coder may determine whether a decoded picture stored in a decoded picture buffer does not need to be output and is not identified in the reference picture set. When a decoded picture has been output and is not identified in the reference picture set, the video coder may remove the decoded picture from the decoded picture buffer. After removing the decoded picture, the video coder may decode the current picture. For example, the video coder may construct reference picture list(s) as described above and decode the current picture based on the reference picture list(s).
先前实例描述视频编码器20和视频解码器30可用于进行以下操作的技术:导出参考图像集,在不需要修改时及在需要修改时,从参考图像集构造参考图像列表,以及用于已解码图像缓冲器(DPB)管理的技术。然而,本发明的方面不应受此限制。在一些实例中,本发明中所描述的技术可涉及视频编码器20借以用信号发出哪些图像属于参考图像集且为长期参考图像(或换句话说,哪些图像属于长期参考图像集)的方式,及视频解码器30借以确定哪些图像属于长期参考图像集的方式。The previous examples describe techniques that video encoder 20 and video decoder 30 may use to derive reference picture sets, construct reference picture lists from reference picture sets when modification is not required and when modification is required, and techniques for decoded picture buffer (DPB) management. However, aspects of this disclosure should not be so limited. In some examples, the techniques described in this disclosure may relate to how video encoder 20 signals which pictures belong to a reference picture set and are long-term reference pictures (or, in other words, which pictures belong to a long-term reference picture set), and how video decoder 30 determines which pictures belong to a long-term reference picture set.
举例来说,表2包含num_long_term_ref_pics_pps和long_term_ref_pic_id_pps[i]语法元素,作为图像参数集的部分。然而,本发明的方面不应受此限制。在一些其它实例中,序列参数集(例如,表1)可包含num_long_term_ref_pics_pps和long_term_ref_pic_id_pps[i]语法元素。在序列参数集包含这些语法元素的实例中,本发明可提及如num_long_term_ref_pics_sps和long_term_ref_pic_id_sps[i]的语法元素以避免混淆。为了说明的目的,通过序列参数集包含这些语法元素的实例描述所述技术。[00105] For example, Table 2 includes the num_long_term_ref_pics_pps and long_term_ref_pic_id_pps[i] syntax elements as part of a picture parameter set. However, aspects of this disclosure should not be so limited. In some other examples, a sequence parameter set (e.g., Table 1) may include the num_long_term_ref_pics_pps and long_term_ref_pic_id_pps[i] syntax elements. In examples where a sequence parameter set includes these syntax elements, this disclosure may refer to syntax elements such as num_long_term_ref_pics_sps and long_term_ref_pic_id_sps[i] to avoid confusion. For illustrative purposes, the techniques are described using an example where a sequence parameter set includes these syntax elements.
类似于num_long_term_ref_pics_pps的定义,num_long_term_ref_pics_sps语法元素可指定包含在序列参数集中的候选长期参考图像的数目。num_long_term_ref_pics_sps的值可在0到32(包含0和32)的范围内。类似于long_term_ref_pic_id_pps[i]语法元素的定义,long_term_ref_pic_id_sps[i]语法元素可指定包含在序列参数集中的第i长期参考图像识别信息。Similar to the definition of num_long_term_ref_pics_pps, the num_long_term_ref_pics_sps syntax element may specify the number of candidate long-term reference pictures included in the sequence parameter set. The value of num_long_term_ref_pics_sps may be in the range of 0 to 32 (inclusive). Similar to the definition of the long_term_ref_pic_id_pps[i] syntax element, the long_term_ref_pic_id_sps[i] syntax element may specify the identification information of the i-th long-term reference picture included in the sequence parameter set.
在一些实例中,long_term_ref_pic_id_sps[i]语法元素可指示属于当前图像的参考图像集的候选长期参考图像。候选长期参考图像为可能为视频解码器30可用以对当前图像或在解码次序上在当前图像之后的一个或一个以上图像进行帧间预测的长期参考图像的候选长期参考图像中的一者或一者以上。换句话说,候选长期参考图像可指示满足以下情形的图像:为长期参考图像,且可能有可能用以对当前图像进行帧间预测且用以对在解码次序上在当前图像之后的一个或一个以上图像进行帧间预测。在一些实例中,long_term_ref_pic_id_sps[i]语法元素可包含用于候选长期参考图像的POC值。In some examples, the long_term_ref_pic_id_sps[i] syntax element may indicate a candidate long-term reference picture that belongs to the reference picture set of the current picture. A candidate long-term reference picture is one or more of candidate long-term reference pictures that may be long-term reference pictures that video decoder 30 may use for inter-prediction of the current picture or one or more pictures that follow the current picture in decoding order. In other words, a candidate long-term reference picture may indicate a picture that is a long-term reference picture and may be used for inter-prediction of the current picture and one or more pictures that follow the current picture in decoding order. In some examples, the long_term_ref_pic_id_sps[i] syntax element may include a POC value for the candidate long-term reference picture.
然而,未必所有候选长期参考图像用于进行帧间预测。举例来说,并不是所有候选长期参考图像属于当前图像的参考图像集。而是,所述候选长期参考图像中的零者或多者属于参考图像集。However, not all candidate long-term reference pictures are used for inter-frame prediction. For example, not all candidate long-term reference pictures belong to the reference picture set of the current picture. Instead, zero or more of the candidate long-term reference pictures belong to the reference picture set.
在本发明中所描述的技术中,视频编码器20可用信号发出参数集中的long_term_ref_pic_id语法元素(例如,序列参数集中的long_term_ref_pic_id_sps语法元素,或图像参数集中的long_term_ref_pic_id_pps语法元素)。视频解码器30可接收long_term_ref_pic_id语法元素且识别候选长期参考图像。根据本发明中所描述的技术,视频解码器30可进一步确定候选长期参考图像中的哪些者属于参考图像集。举例来说,视频解码器30可经配置以基于由视频编码器20在经译码位流中用信号发出的额外语法元素而执行此确定。In the techniques described in this disclosure, video encoder 20 may signal a long_term_ref_pic_id syntax element in a parameter set (e.g., a long_term_ref_pic_id_sps syntax element in a sequence parameter set, or a long_term_ref_pic_id_pps syntax element in a picture parameter set). Video decoder 30 may receive the long_term_ref_pic_id syntax element and identify candidate long-term reference pictures. According to the techniques described in this disclosure, video decoder 30 may further determine which of the candidate long-term reference pictures belong to a reference picture set. For example, video decoder 30 may be configured to perform this determination based on additional syntax elements signaled by video encoder 20 in the coded bitstream.
如表4中所指示,视频编码器20可在当前图像的切片标头中用信号发出long_term_ref_pic_set()语法结构。表5描述long_term_ref_pic_set()语法结构。举例来说,long_term_ref_pic_set()语法结构可包含num_long_term_pps_curr和num_long_term_pps_foll语法元素。此外,应注意,尽管num_long_term_pps_curr和num_long_term_pps_foll语法元素经定义为包含在图像参数集中的长期参考图像的数目,但在候选长期参考图像包含在序列参数集中的实例中,这些语法元素可定义包含在序列参数集中的候选长期参考图像的数目。举例来说,为了避免混淆,num_long_term_pps_curr语法元素可被称作num_long_term_sps_curr语法元素,且num_long_term_pps_foll语法元素可被称作num_long_term_sps_curr语法元素。As indicated in Table 4, video encoder 20 may signal a long_term_ref_pic_set() syntax structure in the slice header of the current picture. Table 5 describes the long_term_ref_pic_set() syntax structure. For example, the long_term_ref_pic_set() syntax structure may include the num_long_term_pps_curr and num_long_term_pps_foll syntax elements. Furthermore, it should be noted that although the num_long_term_pps_curr and num_long_term_pps_foll syntax elements are defined as the number of long-term reference pictures included in the picture parameter set, in instances where the candidate long-term reference pictures are included in the sequence parameter set, these syntax elements may define the number of candidate long-term reference pictures included in the sequence parameter set. For example, to avoid confusion, the num_long_term_pps_curr syntax element may be referred to as the num_long_term_sps_curr syntax element, and the num_long_term_pps_foll syntax element may be referred to as the num_long_term_sps_curr syntax element.
类似于num_long_term_pps_curr语法元素,num_long_term_sps_curr语法元素可定义满足以下情形的所有长期参考图像的数目:识别信息包含在所参考的序列参数集中,作为候选长期参考图像,且可用于对当前图像及在解码次序上在当前图像之后的一个或一个以上图像进行帧间预测。类似于num_long_term_pps_foll语法元素,num_long_term_sps_foll语法元素可定义满足以下情形的所有长期参考图像的数目:识别信息包含在序列参数集中,作为候选长期参考图像,且不用于对当前图像进行帧间预测,且可用于对在解码次序上在当前图像之后的一个或一个以上图像进行帧间预测。Similar to the num_long_term_pps_curr syntax element, the num_long_term_sps_curr syntax element may define the number of all long-term reference pictures that meet the following conditions: identification information is included in the referenced sequence parameter set as candidate long-term reference pictures that can be used for inter prediction of the current picture and one or more pictures that follow the current picture in decoding order. Similar to the num_long_term_pps_foll syntax element, the num_long_term_sps_foll syntax element may define the number of all long-term reference pictures that meet the following conditions: identification information is included in the sequence parameter set as candidate long-term reference pictures that are not used for inter prediction of the current picture and can be used for inter prediction of one or more pictures that follow the current picture in decoding order.
而且,在切片标头中用信号发出的long_term_ref_pic_set()语法结构可包含long_term_ref_pic_set_idx_pps[i]语法元素。此外,在于序列参数集中用信号发出候选长期参考图像的实例中,long_term_ref_pic_set_idx_pps[i]语法元素可被视为long_term_ref_pic_set_idx_sps[i]语法元素。类似于long_term_ref_pic_set_idx_pps[i]语法元素,long_term_ref_pic_set_idx_sps[i]语法元素可定义从参考图像参数集到当前图像的参考图像集而继承的第i长期参考图像的到包含在所参考的序列参数集中的候选长期参考图像识别信息的列表的索引。换句话说,long_term_ref_pic_set_idx_sps[i]语法元素可识别到序列参数集中的候选长期参考图像的列表中的索引。根据索引,视频解码器30可识别候选长期参考图像中的长期参考图像,且可确定所识别的长期参考图像属于当前图像的参考图像集。Furthermore, the long_term_ref_pic_set() syntax structure signaled in the slice header may include the long_term_ref_pic_set_idx_pps[i] syntax element. Furthermore, in instances where candidate long-term reference pictures are signaled in a sequence parameter set, the long_term_ref_pic_set_idx_pps[i] syntax element may be considered a long_term_ref_pic_set_idx_sps[i] syntax element. Similar to the long_term_ref_pic_set_idx_pps[i] syntax element, the long_term_ref_pic_set_idx_sps[i] syntax element may define the index into the list of candidate long-term reference picture identification information contained in the referenced sequence parameter set for the i-th long-term reference picture inherited from the reference picture parameter set to the reference picture set of the current picture. In other words, the long_term_ref_pic_set_idx_sps[i] syntax element may identify the index into the list of candidate long-term reference pictures in the sequence parameter set. Based on the index, video decoder 30 may identify a long-term reference picture among the candidate long-term reference pictures, and may determine that the identified long-term reference picture belongs to a reference picture set of the current picture.
举例来说,视频解码器30可实施类似于表5中的伪码的以下伪码,以确定候选长期参考图像中的哪些者属于当前图像的参考图像集。For example, video decoder 30 may implement the following pseudo-code, similar to the pseudo-code in Table 5, to determine which of the candidate long-term reference pictures belong to the reference picture set for the current picture.
for(i=0;i<num_long_term_sps_curr+num_long_term_sps_foll;i++)for(i=0;i<num_long_term_sps_curr+num_long_term_sps_foll;i++)
long_term_ref_pic_set_idx_sps[i]long_term_ref_pic_set_idx_sps[i]
以此方式,视频解码器30可解码指示在参数集中识别的候选长期参考图像的语法元素。举例来说,如果参数集为序列参数集,那么视频解码器30可解码指示在序列参数集中识别的候选长期参考图像的long_term_ref_pic_id_sps[i]语法元素。如果参数集为图像参数集,那么视频解码器30可解码指示在图像参数集中识别的候选长期参考图像的long_term_ref_pic_id_pps[i]语法元素。In this manner, video decoder 30 may decode syntax elements indicating candidate long-term reference pictures identified in the parameter set. For example, if the parameter set is a sequence parameter set, video decoder 30 may decode the long_term_ref_pic_id_sps[i] syntax element indicating candidate long-term reference pictures identified in the sequence parameter set. If the parameter set is a picture parameter set, video decoder 30 may decode the long_term_ref_pic_id_pps[i] syntax element indicating candidate long-term reference pictures identified in the picture parameter set.
视频解码器30还可解码指示在参数集中识别的哪些候选长期参考图像属于当前图像的参考图像集的语法元素。举例来说,如果参数集为序列参数集,那么视频解码器30可解码num_long_term_sps_curr、num_long_term_sps_foll和long_term_ref_pic_set_idx_sps[i]语法元素,且如果参数集为图像参数集,那么视频解码器30可解码num_long_term_pps_curr、num_long_term_pps_foll和long_term_ref_pic_set_idx_pps[i]语法元素。在任一实例中,视频解码器30可解码来自当前图像的切片标头的这些语法元素。Video decoder 30 may also decode syntax elements that indicate which candidate long-term reference pictures identified in the parameter set belong to the reference picture set of the current picture. For example, if the parameter set is a sequence parameter set, video decoder 30 may decode the num_long_term_sps_curr, num_long_term_sps_foll, and long_term_ref_pic_set_idx_sps[i] syntax elements, and if the parameter set is a picture parameter set, video decoder 30 may decode the num_long_term_pps_curr, num_long_term_pps_foll, and long_term_ref_pic_set_idx_pps[i] syntax elements. In either example, video decoder 30 may decode these syntax elements from the slice header of the current picture.
根据本发明中所描述的技术,long_term_ref_pic_id_sps[i]和long_term_ref_pic_id_pps[i]语法元素可被视为属于参考图像集的候选长期参考图像的图像序列号(POC)值列表,且可作为参数集(例如,图像参数集和序列参数集)的部分而加以译码(即,编码或解码)。long_term_ref_pic_set_idx_sps[i]或long_term_ref_pic_set_idx_pps[i]语法元素可被视为提供到候选长期参考图像的POC值列表中的索引值(例如,到long_term_ref_pic_id_sps[i]或long_term_ref_pic_id_pps[i]中的索引)。在一些实例中,可作为当前图像的切片标头的部分译码long_term_ref_pic_set_idx_sps[i]或long_term_ref_pic_set_idx_pps[i]语法元素。According to the techniques described in this disclosure, the long_term_ref_pic_id_sps[i] and long_term_ref_pic_id_pps[i] syntax elements may be considered as lists of picture sequence number (POC) values for candidate long-term reference pictures belonging to a reference picture set and may be coded (i.e., encoded or decoded) as part of a parameter set (e.g., a picture parameter set and a sequence parameter set). The long_term_ref_pic_set_idx_sps[i] or long_term_ref_pic_set_idx_pps[i] syntax elements may be considered as providing an index value into a list of POC values for candidate long-term reference pictures (e.g., an index into long_term_ref_pic_id_sps[i] or long_term_ref_pic_id_pps[i]). In some examples, the long_term_ref_pic_set_idx_sps[i] or long_term_ref_pic_set_idx_pps[i] syntax elements may be coded as part of a slice header for the current picture.
上文描述视频编码器20和视频解码器30可分别借以编码或解码用于指示哪些图像属于当前图像的长期参考图像集的语法元素的一种方式。根据语法元素,视频解码器30和视频编码器20可确定哪些图像属于当前图像的长期参考图像集。在视频解码器30和视频编码器20确定哪些图像属于长期参考图像集之后,视频编码器20和视频解码器30可构造多个参考图像子集中的至少一个参考图像子集,且以上文所描述的方式导出参考图像集。举例来说,基于关于哪些图像属于长期参考图像集的确定,视频编码器20和视频解码器30可构造视频编码器20和视频解码器30用以导出参考图像集的RefPicSetLtCurr参考图像子集。The foregoing describes one manner in which video encoder 20 and video decoder 30, respectively, may encode or decode syntax elements for indicating which pictures belong to the long-term reference picture set for a current picture. Based on the syntax elements, video decoder 30 and video encoder 20 may determine which pictures belong to the long-term reference picture set for the current picture. After video decoder 30 and video encoder 20 determine which pictures belong to the long-term reference picture set, video encoder 20 and video decoder 30 may construct at least one reference picture subset from a plurality of reference picture subsets and derive the reference picture set in the manner described above. For example, based on the determination of which pictures belong to the long-term reference picture set, video encoder 20 and video decoder 30 may construct a RefPicSetLtCurr reference picture subset that video encoder 20 and video decoder 30 use to derive the reference picture set.
在一些实例中,可能存在不包含在候选长期参考图像中的属于长期参考图像集的图像。因此,可能存在视频编码器20和视频解码器30可借以确定哪些图像属于当前图像的长期参考图像集的额外方式。In some examples, there may be pictures that belong to the long-term reference picture set that are not included in the candidate long-term reference pictures. Therefore, there may be additional ways by which video encoder 20 and video decoder 30 can determine which pictures belong to the long-term reference picture set for the current picture.
举例来说,如表5中所指示,切片标头的long_term_ref_pic_set()语法结构包含long_term_ref_pic_id_delta_add[i]语法元素。此语法元素可指定并不是从参考图像参数集而继承但包含在当前图像的参考图像集中的第i长期参考图像的长期参考图像识别(例如,POC值)。此外,在于序列参数集中识别候选长期参考图像的实例中,long_term_ref_pic_id_delta_add[i]语法元素可指定并不是从序列参数集而继承但包含在当前图像的参考图像集中的第i长期参考图像的长期参考图像识别。For example, as indicated in Table 5, the long_term_ref_pic_set() syntax structure of the slice header includes a long_term_ref_pic_id_delta_add[i] syntax element. This syntax element may specify the long-term reference picture identification (e.g., POC value) of the i-th long-term reference picture that is not inherited from the reference picture parameter set but is included in the reference picture set of the current picture. Furthermore, in the example of identifying a candidate long-term reference picture in a sequence parameter set, the long_term_ref_pic_id_delta_add[i] syntax element may specify the long-term reference picture identification of the i-th long-term reference picture that is not inherited from the sequence parameter set but is included in the reference picture set of the current picture.
换句话说,long_term_ref_pic_id_pps[i]或long_term_ref_pic_id_sps[i]语法元素可识别候选长期参考图像,但可能未必识别当前图像的参考图像集中的所有长期参考图像。举例来说,可能存在满足以下情形的长期参考图像:待用于对当前图像及在解码次序上在当前图像之后的一个或一个以上图像进行帧间预测,不包含在候选长期参考图像的列表中。对于这些长期参考图像,视频编码器20和视频解码器30可分别编码或解码识别属于当前图像的参考图像集的长期参考图像的识别信息。In other words, the long_term_ref_pic_id_pps[i] or long_term_ref_pic_id_sps[i] syntax element may identify candidate long-term reference pictures, but may not necessarily identify all long-term reference pictures in the reference picture set of the current picture. For example, there may be long-term reference pictures that are not included in the list of candidate long-term reference pictures to be used for inter-frame prediction of the current picture and one or more pictures that follow the current picture in decoding order. For these long-term reference pictures, video encoder 20 and video decoder 30 may encode or decode, respectively, identification information that identifies the long-term reference pictures that belong to the reference picture set of the current picture.
举例来说,如表5中所指示,视频编码器20和视频解码器30可分别编码或解码num_long_term_add_curr和num_long_term_add_foll语法元素。num_long_term_add_curr语法元素可定义满足以下情形的所有长期参考图像的数目:识别信息不包含在所参考的图像参数集或序列参数集(在可适用时)中,且可用于对当前图像及在解码次序上在当前图像之后的一个或一个以上图像进行帧间预测。num_long_term_add_foll语法元素可定义满足以下情形的所有长期参考图像的数目:识别信息不包含在所参考的图像参数集或序列参数集(在可适用时)中,无法用于对当前图像进行帧间预测,且可用于对在解码次序上在当前图像之后的一个或一个以上图像进行帧间预测。[0066] For example, as indicated in Table 5, video encoder 20 and video decoder 30 may encode or decode the num_long_term_add_curr and num_long_term_add_foll syntax elements, respectively. The num_long_term_add_curr syntax element may define the number of all long-term reference pictures for which identifying information is not included in the referenced picture parameter set or sequence parameter set (as applicable), and which may be used for inter prediction of the current picture and one or more pictures that follow the current picture in decoding order. The num_long_term_add_foll syntax element may define the number of all long-term reference pictures for which identifying information is not included in the referenced picture parameter set or sequence parameter set (as applicable), and which may be used for inter prediction of the current picture and one or more pictures that follow the current picture in decoding order.
视频解码器30可实施以下伪码以确定哪些长期参考图像属于参考图像集。在此实例中,长期参考图像可能不包含在候选长期参考图像中。Video decoder 30 may implement the following pseudo-code to determine which long-term reference pictures belong to a reference picture set.In this example, the long-term reference picture may not be included in the candidate long-term reference pictures.
for(i=0;i<num_long_term_add_curr+num_long_term_add_foll;i++)for(i=0;i<num_long_term_add_curr+num_long_term_add_foll;i++)
long_term_ref_pic_id_delta_add[i]long_term_ref_pic_id_delta_add[i]
如上文所描述,本发明中所描述的技术可根据HEVC标准来执行。下文为辅助理解的关于HEVC标准的简要描述。此外,尽管在HEVC标准的上下文中描述技术,但所述技术可扩展到其它标准(包含专有标准)。As described above, the techniques described in this disclosure may be performed according to the HEVC standard. Below is a brief description of the HEVC standard to aid understanding. Furthermore, although the techniques are described in the context of the HEVC standard, the techniques may be extended to other standards (including proprietary standards).
JCT-VC致力于HEVC标准的开发。HEVC标准化努力是基于视频译码装置的演进模型,其被称作HEVC测试模型(HM)。HM假设视频译码装置相对于根据(例如)ITU-T H.264/AVC的现有装置的若干额外能力。举例来说,H.264提供九个帧内预测编码模式,而HM可提供多达三十三个帧内预测编码模式。The JCT-VC is working on the development of the HEVC standard. The HEVC standardization effort is based on an evolving model of a video coding device, known as the HEVC Test Model (HM). The HM assumes several additional capabilities of video coding devices relative to existing devices based on, for example, ITU-T H.264/AVC. For example, while H.264 provides nine intra-frame prediction coding modes, the HM can provide up to 33 intra-frame prediction coding modes.
一般来说,HM的工作模型描述视频帧或图像可划分成包含明度样本与色度样本两者的树块或最大译码单元(LCU)序列。树块具有与H.264标准的宏块的目的类似的目的。切片包含解码次序上连续的若干树块。可将视频帧或图像分割成一个或一个以上切片。每一树块可根据四叉树而分裂成多个译码单元(CU)。举例来说,树块(作为四叉树的根节点)可分裂成四个子节点,且每一子节点又可为一父节点且分裂成另外四个子节点。最终的未分裂的子节点(作为四叉树的叶节点)包括一译码节点(即,经译码视频块)。与经译码位流相关联的语法数据可定义树块可分裂的最大次数,且还可定义译码节点的最小大小。在一些实例中,树块可被称作LCU。In general, the HM's working model describes that a video frame or image can be divided into a sequence of treeblocks or largest coding units (LCUs) that include both luma and chroma samples. A treeblock has a purpose similar to that of a macroblock in the H.264 standard. A slice includes a number of treeblocks that are consecutive in decoding order. A video frame or image can be partitioned into one or more slices. Each treeblock can be split into multiple coding units (CUs) according to a quadtree. For example, a treeblock (as the root node of the quadtree) can be split into four child nodes, and each child node can be a parent node and split into another four child nodes. The final unsplit child node (as a leaf node of the quadtree) includes a decoding node (i.e., a decoded video block). Syntax data associated with the decoded bitstream can define the maximum number of times a treeblock can be split, and can also define the minimum size of a decoding node. In some examples, a treeblock can be referred to as an LCU.
CU包含一译码节点及与所述译码节点相关联的多个预测单元(PU)和变换单元(TU)。CU的大小对应于译码节点的大小,且形状必须为正方形。CU的大小的范围可从8×8像素直到具有最大64×64像素或大于64×64像素的树块的大小。每一CU可含有一个或一个以上PU和一个或一个以上TU。与CU相关联的语法数据可描述(例如)CU到一个或一个以上PU的分割。分割模式可取决于是跳过CU还是直接模式编码、帧内预测模式编码还是帧间预测模式编码CU而不同。PU的形状可分割成非正方形。与CU相关联的语法数据还可描述(例如)CU根据四叉树到一个或一个以上TU的分割。TU的形状可为正方形或非正方形。A CU includes a coding node and multiple prediction units (PUs) and transform units (TUs) associated with the coding node. The size of the CU corresponds to the size of the coding node and must be square in shape. The size of a CU can range from 8×8 pixels to the size of a treeblock with a maximum of 64×64 pixels or larger. Each CU may contain one or more PUs and one or more TUs. The syntax data associated with a CU may describe, for example, the partitioning of the CU into one or more PUs. The partitioning mode may differ depending on whether the CU is skipped or directly coded, intra-prediction mode coded, or inter-prediction mode coded. The shape of a PU may be partitioned into non-square shapes. The syntax data associated with a CU may also describe, for example, the partitioning of the CU into one or more TUs according to a quadtree. The shape of a TU may be square or non-square.
HEVC标准允许根据TU进行的变换,所述变换对于不同CU可不同。通常基于针对经分割LCU所定义的给定CU内的PU的大小而设置TU大小,但可能并不是始终如此情况。TU通常具有与PU相同的大小,或小于PU。在一些实例中,可使用被称为“残余四叉树”(RQT)的四叉树结构将对应于CU的残余样本再分为更小单元。RQT的叶节点可被称作变换单元(TU)。可变换与TU相关联的像素差值以产生可经量化的变换系数。The HEVC standard allows for transforms based on TUs, which can be different for different CUs. The TU size is typically set based on the size of the PUs within a given CU defined for a partitioned LCU, but this may not always be the case. A TU is typically the same size as a PU, or smaller than a PU. In some examples, a quadtree structure called a "residual quadtree" (RQT) may be used to subdivide the residual samples corresponding to a CU into smaller units. The leaf nodes of the RQT may be referred to as transform units (TUs). Pixel difference values associated with a TU may be transformed to produce transform coefficients that may be quantized.
一般来说,PU包含与预测过程有关的数据。举例来说,当以帧内模式编码PU时,所述PU可包含描述所述PU的帧内预测模式的数据。作为另一实例,当以帧间模式编码PU时,所述PU可包含定义所述PU的运动向量的数据。定义PU的运动向量的数据可描述(例如)运动向量的水平分量、运动向量的垂直分量、运动向量的分辨率(例如,四分之一像素精度或八分之一像素精度)、运动向量所指向的参考图像,和/或用于运动向量的参考图像列表(例如,列表0、列表1或列表C)。In general, a PU includes data related to the prediction process. For example, when the PU is encoded in intra mode, the PU may include data describing the intra prediction mode of the PU. As another example, when the PU is encoded in inter mode, the PU may include data defining a motion vector for the PU. The data defining the motion vector of the PU may describe, for example, the horizontal component of the motion vector, the vertical component of the motion vector, the resolution of the motion vector (e.g., quarter-pixel precision or eighth-pixel precision), the reference picture to which the motion vector points, and/or the reference picture list used for the motion vector (e.g., List 0, List 1, or List C).
一般来说,TU是用于变换过程和量化过程。具有一个或一个以上PU的给定CU还可包含一个或一个以上变换单元(TU)。在预测之后,视频编码器20可计算对应于PU的残余值。残余值包括可变换成使用TU而量化及扫描以产生串行化变换系数以用于熵译码的变换系数的像素差值。本发明通常使用术语“视频块”来指CU的译码节点。在一些特定情况下,本发明还可使用术语“视频块”来指包含一译码节点及多个PU和TU的树块(即,LCU或CU)。In general, TUs are used for the transform and quantization processes. A given CU having one or more PUs may also include one or more transform units (TUs). After prediction, video encoder 20 may calculate residual values corresponding to the PUs. The residual values include pixel difference values that can be transformed into transform coefficients that are quantized and scanned using the TUs to produce serialized transform coefficients for entropy coding. This disclosure generally uses the term "video block" to refer to a coding node of a CU. In some specific cases, this disclosure may also use the term "video block" to refer to a treeblock (i.e., LCU or CU) that includes a coding node and multiple PUs and TUs.
视频序列通常包含一系列视频帧或图像。图像组(GOP)通常包括一系列视频图像中的一者或一者以上。GOP可在GOP的标头、图像中的一者或一者以上的标头中或在别处包含描述包含在GOP中的图像的数目的语法数据。图像的每一切片可包含描述所述相应切片的编码模式的切片语法数据。视频编码器20通常对个别视频切片内的视频块进行操作,以便编码视频数据。视频块可对应于CU内的译码节点。视频块可具有固定或变化的大小,且可根据指定译码标准而在大小方面不同。A video sequence typically includes a series of video frames or pictures. A group of pictures (GOP) typically includes one or more of a series of video pictures. A GOP may include syntax data describing the number of pictures included in the GOP in a header of the GOP, a header of one or more of the pictures, or elsewhere. Each slice of a picture may include slice syntax data describing the encoding mode of the respective slice. Video encoder 20 typically operates on video blocks within individual video slices to encode the video data. A video block may correspond to a coding node within a CU. A video block may have a fixed or varying size and may differ in size according to a specified coding standard.
作为实例,HM支持以各种PU大小进行预测。假设特定CU的大小为2N×2N,那么HM支持以2N×2N或N×N的PU大小进行帧内预测,和以2N×2N、2N×N、N×2N或N×N的对称PU大小进行帧间预测。HM还支持以2N×nU、2N×nD、nL×2N和nR×2N的PU大小进行帧间预测的不对称分割。在不对称分割中,CU的一个方向未经分割,而另一方向经分割成25%和75%。CU的对应于25%分割的部分通过“n”后接续有“上”、“下”、“左”或“右”的指示来指示。因此,例如,“2N×nU”指在水平方向上以顶部2N×0.5N PU和底部2N×1.5N PU分割的2N×2N CU。As an example, the HM supports prediction with various PU sizes. Assuming a particular CU is 2N×2N in size, the HM supports intra prediction with PU sizes of 2N×2N or N×N, and inter prediction with symmetric PU sizes of 2N×2N, 2N×N, N×2N, or N×N. The HM also supports asymmetric partitioning for inter prediction with PU sizes of 2N×nU, 2N×nD, nL×2N, and nR×2N. In an asymmetric partitioning, one direction of the CU is unpartitioned, while the other direction is partitioned into 25% and 75%. The portion of the CU corresponding to the 25% partition is indicated by an "n" followed by an indication of "up," "down," "left," or "right." Thus, for example, "2N×nU" refers to a 2N×2N CU partitioned horizontally with a 2N×0.5N PU at the top and a 2N×1.5N PU at the bottom.
在本发明中,“N×N”与“N乘N”可互换地使用以指视频块在垂直尺寸与水平尺寸方面的像素尺寸,例如,16×16像素或16乘16像素。一般来说,16×16块在垂直方向上将具有16个像素(y=16)且在水平方向上将具有16个像素(x=16)。同样地,N×N块一般地在垂直方向上具有N个像素,且在水平方向上具有N个像素,其中N表示非负整数值。可按列和行来布置块中的像素。此外,块未必需要在水平方向上具有与在垂直方向上的像素数目相同的数目个像素。举例来说,块可包括N×M个像素,其中M未必等于N。In this disclosure, "NxN" and "N by N" may be used interchangeably to refer to the pixel dimensions of a video block in terms of vertical and horizontal dimensions, e.g., 16x16 pixels or 16 by 16 pixels. Generally, a 16x16 block will have 16 pixels in the vertical direction (y=16) and 16 pixels in the horizontal direction (x=16). Similarly, an NxN block generally has N pixels in the vertical direction and N pixels in the horizontal direction, where N represents a non-negative integer value. The pixels in a block may be arranged in columns and rows. Furthermore, a block need not necessarily have the same number of pixels in the horizontal direction as in the vertical direction. For example, a block may include NxM pixels, where M is not necessarily equal to N.
在使用CU的PU进行帧内预测性或帧间预测性译码之后,视频编码器20可计算CU的TU的残余数据。PU可包括空间域(还被称作像素域)中的像素数据,且TU可包括在将例如离散余弦变换(DCT)、整数变换、小波变换或概念上类似的变换的变换应用于残余视频数据之后的变换域中的系数。残余数据可对应于未经编码图像的像素与对应于PU的预测值之间的像素差。视频编码器20可形成包含CU的残余数据的TU,且然后变换所述TU以产生CU的变换系数。After performing intra-predictive or inter-predictive coding using the PUs of a CU, video encoder 20 may calculate residual data for the TUs of the CU. A PU may include pixel data in the spatial domain (also referred to as the pixel domain), and a TU may include coefficients in the transform domain after applying a transform, such as a discrete cosine transform (DCT), an integer transform, a wavelet transform, or a conceptually similar transform, to the residual video data. The residual data may correspond to pixel differences between pixels of an unencoded image and prediction values corresponding to the PU. Video encoder 20 may form TUs including the residual data for the CU, and then transform the TUs to produce transform coefficients for the CU.
在应用任何变换以产生变换系数之后,视频编码器20可执行变换系数的量化。量化一般指如下过程:将变换系数量化以可能地减少用以表示所述系数的数据的量,从而提供进一步压缩。所述量化过程可减少与所述系数中的一些系数或所有系数相关联的位深度。举例来说,可在量化期间将n位值降值舍位到m位值,其中n大于m。After applying any transforms to generate transform coefficients, video encoder 20 may perform quantization of the transform coefficients. Quantization generally refers to the process of quantizing transform coefficients to potentially reduce the amount of data used to represent the coefficients, thereby providing further compression. The quantization process may reduce the bit depth associated with some or all of the coefficients. For example, an n-bit value may be truncated to an m-bit value during quantization, where n is greater than m.
在一些实例中,视频编码器20可利用预定义扫描次序来扫描经量化的变换系数,以产生可经熵编码的串行化向量。在其它实例中,视频编码器20可执行自适应扫描。在扫描所述经量化的变换系数以形成一维向量之后,视频编码器20可熵编码所述一维向量,例如,根据上下文自适应可变长度译码(CAVLC)、上下文自适应二进制算术译码(CABAC)、基于语法的上下文自适应二进制算术译码(SBAC)、概率区间分割熵(PIPE)译码或另一熵编码方法。视频编码器20还可熵编码与经编码视频数据相关联的语法元素以供视频解码器30用于解码视频数据。In some examples, video encoder 20 may utilize a predefined scan order to scan the quantized transform coefficients to produce a serialized vector that can be entropy encoded. In other examples, video encoder 20 may perform adaptive scanning. After scanning the quantized transform coefficients to form a one-dimensional vector, video encoder 20 may entropy encode the one-dimensional vector, for example, according to context-adaptive variable length coding (CAVLC), context-adaptive binary arithmetic coding (CABAC), syntax-based context-adaptive binary arithmetic coding (SBAC), probability interval partitioning entropy (PIPE) coding, or another entropy encoding method. Video encoder 20 may also entropy encode syntax elements associated with the encoded video data for use by video decoder 30 in decoding the video data.
为了执行CABAC,视频编码器20可将上下文模型内的上下文指配给待传输的符号。所述上下文可能关于(例如)符号的相邻值是否为非零。为了执行CAVLC,视频编码器20可针对待传输的符号选择可变长度码。可以使得相对较短码对应于更有可能的符号而较长码对应于较不可能的符号的方式来构造VLC中的码字。以此方式,使用VLC可实现位节省(与(例如)针对待传输的每一符号使用等长度码字相比较)。概率确定可基于指配给符号的上下文而进行。To perform CABAC, video encoder 20 may assign context within a context model to a symbol to be transmitted. The context may relate to, for example, whether neighboring values of the symbol are non-zero. To perform CAVLC, video encoder 20 may select a variable length code for the symbol to be transmitted. Codewords in VLC may be constructed in such a way that relatively shorter codes correspond to more likely symbols and longer codes correspond to less likely symbols. In this way, using VLC may achieve bit savings (compared to, for example, using equal-length codewords for each symbol to be transmitted). Probability determinations may be made based on the context assigned to the symbol.
图2为说明包含经编码及传输的多个图像的实例视频序列33的概念图。在一些情况下,视频序列33可被称作图像组(GOP)。如所说明,视频序列33包含图像35A、36A、38A、35B、36B、38B和35C,及显示次序上的最终图像39。图像34为发生在序列33之前的序列的显示次序上的最终图像。图2一般表示用于视频序列的示范性预测结构,且仅希望说明用于预测不同切片或图像类型的视频块(例如,P图像或切片,或B图像或切片)的图像参考。实际视频序列可含有不同图像类型及呈不同显示次序的更多或更少个视频图像。视频序列33可包含数目比图2中所说明的图像数目多或少的图像,且仅为了理解及作为实例的目的而说明视频序列33中所说明的图像。FIG2 is a conceptual diagram illustrating an example video sequence 33 comprising a plurality of pictures that are encoded and transmitted. In some cases, video sequence 33 may be referred to as a group of pictures (GOP). As illustrated, video sequence 33 includes pictures 35A, 36A, 38A, 35B, 36B, 38B, and 35C, and a final picture 39 in display order. Picture 34 is the final picture in display order of a sequence that occurs before sequence 33. FIG2 generally represents an exemplary prediction structure for a video sequence and is intended only to illustrate picture references used to predict video blocks of different slice or picture types (e.g., P pictures or slices, or B pictures or slices). Actual video sequences may contain more or fewer video pictures of different picture types and in different display orders. Video sequence 33 may include a greater or lesser number of pictures than illustrated in FIG2 , and the pictures illustrated in video sequence 33 are illustrated for purposes of understanding and example only.
对于基于块的视频译码,可将包含在序列33中的视频图像中的每一者分割成视频块,例如译码单元(CU)或预测单元(PU)。举例来说,视频图像的每一CU可包含一个或一个以上PU。经帧内译码(I)图像中的视频块是使用关于相同图像中的相邻块的空间预测来预测。经帧间译码(P或B)图像中的视频块可使用关于相同图像中的相邻块的空间预测或关于其它参考图像的时间预测。For block-based video coding, each of the video pictures included in sequence 33 may be partitioned into video blocks, such as coding units (CUs) or prediction units (PUs). For example, each CU of a video picture may include one or more PUs. Video blocks in intra-coded (I) pictures are predicted using spatial prediction with respect to neighboring blocks in the same picture. Video blocks in inter-coded (P or B) pictures may use spatial prediction with respect to neighboring blocks in the same picture or temporal prediction with respect to other reference pictures.
B图像中的视频块可使用双向预测来预测以根据两个不同参考图像列表(例如,参考图像列表0和1,其被称作列表0和列表1)计算两个运动向量。在一些情况下,B图像中的视频块可使用单向预测根据两个不同参考图像列表中的一者来预测(例如,经单向B译码)。P图像中的视频块可使用单向预测来预测以根据单个参考图像列表计算单个运动向量。根据新兴HEVC标准,可使用单向预测来编码视频块以根据两个参考图像列表中的一者计算单个运动向量,或使用双向预测来编码视频块以根据两个参考图像列表计算两个运动向量。举例来说,两个参考图像列表可含有显示或输出次序上的过去参考图像或未来参考图像或过去参考图像与未来参考图像两者,及解码次序上的始终过去参考图像。Video blocks in a B-picture may be predicted using bidirectional prediction to calculate two motion vectors from two different reference picture lists (e.g., reference picture lists 0 and 1, referred to as List 0 and List 1). In some cases, video blocks in a B-picture may be predicted using unidirectional prediction from one of the two different reference picture lists (e.g., unidirectional B-coded). Video blocks in a P-picture may be predicted using unidirectional prediction to calculate a single motion vector from a single reference picture list. According to the emerging HEVC standard, video blocks may be encoded using unidirectional prediction to calculate a single motion vector from one of the two reference picture lists, or using bidirectional prediction to calculate two motion vectors from both reference picture lists. For example, the two reference picture lists may contain past reference pictures, future reference pictures, or both past and future reference pictures in display or output order, and always past reference pictures in decoding order.
在图2的实例中,最终图像39经指明用于作为I图像进行帧内模式译码。在其它实例中,可参考前一序列的最终图像34(其可为I图像)以帧间模式译码(例如,作为P图像)译码最终图像39。视频图像35A到35C(共同地为“视频图像35”)经指明用于作为B图像使用双向预测参考过去图像和未来图像进行译码。在所说明实例中,作为B图像参考最终图像34和图像36A编码图像35A,如通过从图像34和36A到视频图像35A的箭头指示。类似地编码图像35B和35C。In the example of FIG2 , final image 39 is designated for intra-mode coding as an I picture. In other examples, final image 39 may be coded in inter-mode coding (e.g., as a P picture) with reference to final image 34 of the previous sequence (which may be an I picture). Video pictures 35A-35C (collectively, "video pictures 35") are designated for coding as B pictures using bidirectional prediction with reference to past and future pictures. In the illustrated example, picture 35A is encoded as a B picture with reference to final picture 34 and picture 36A, as indicated by the arrows from pictures 34 and 36A to video picture 35A. Pictures 35B and 35C are similarly encoded.
视频图像36A到36B(共同地为“视频图像36”)可经指明用于作为图像使用单向预测参考过去图像进行译码。在所说明实例中,作为B图像参考最终图像34编码图像36A,如通过从图像34到视频图像36A的箭头指示。类似地编码图像36B。Video pictures 36A-36B (collectively, "video pictures 36") may be designated for coding as pictures using unidirectional prediction with reference to past pictures. In the illustrated example, picture 36A is encoded as a B picture with reference to final picture 34, as indicated by the arrow from picture 34 to video picture 36A. Picture 36B is similarly encoded.
视频图像38A到38B(共同地为“视频图像38”)可经指明用于使用双向预测参考相同的过去图像进行译码。在其它实例中,可使用双向预测参考包含在参考图像列表中的实质上类似的过去图像编码视频图像38。在所说明实例中,通过对图像36A的两个参考编码图像38A,如通过从图像36A到视频图像38A的两个箭头指示。类似地编码图像38B。Video pictures 38A-38B (collectively, "video pictures 38") may be designated for coding using bidirectional prediction with reference to the same past picture. In other examples, video pictures 38 may be encoded using bidirectional prediction with reference to substantially similar past pictures included in a reference picture list. In the illustrated example, picture 38A is encoded with two references to picture 36A, as indicated by the two arrows from picture 36A to video picture 38A. Picture 38B is similarly encoded.
根据本发明中所描述的技术,视频编码器20可用信号发出用于序列33中的图像中的每一者的参考图像集。举例来说,对于图像35A,此参考图像集可识别可用以对图像35A进行帧间预测的所有参考图像,以及可潜在地用于对在解码次序上在图像35A之后的图像进行帧间预测的所有参考图像。举例来说,图像35A的参考图像集可包含用于图像34和图像36A的POC值,以及用于额外参考图像(例如,可潜在地用于对在解码次序上在图像35A之后的图像进行帧间预测的参考图像)的POC值。在此实例中,在图像35A之后的图像可为在解码次序上在图像35A之后且在视频序列33内的所述图像。According to the techniques described in this disclosure, video encoder 20 may signal a reference picture set for each of the pictures in sequence 33. For example, for picture 35A, this reference picture set may identify all reference pictures that can be used to inter-predict picture 35A, as well as all reference pictures that may potentially be used to inter-predict pictures that follow picture 35A in decoding order. For example, the reference picture set for picture 35A may include POC values for pictures 34 and 36A, as well as POC values for additional reference pictures (e.g., reference pictures that may potentially be used to inter-predict pictures that follow picture 35A in decoding order). In this example, the pictures that follow picture 35A may be those pictures that follow picture 35A in decoding order and that are within video sequence 33.
视频解码器30可然后以上文所描述的方式导出图像35A的参考图像集。举例来说,视频解码器30可确定用于属于参考图像集的参考图像的POC值,如上文所描述。视频解码器30可进一步构造至少四个或至少五个参考图像子集,且在一些实例中,直到上文所描述的六个参考图像子集。视频解码器30可以特定次序布置所述六个参考图像子集以导出图像35A的参考图像集。Video decoder 30 may then derive a reference picture set for image 35A in the manner described above. For example, video decoder 30 may determine POC values for reference pictures belonging to the reference picture set, as described above. Video decoder 30 may further construct at least four or at least five reference picture subsets, and in some examples, up to the six reference picture subsets described above. Video decoder 30 may arrange the six reference picture subsets in a particular order to derive the reference picture set for image 35A.
视频解码器30可以上文所描述的方式进一步构造初始参考图像列表,其中不需要将待包含在初始参考图像列表中的图像重新排序。当禁用参考图像列表修改时,视频解码器30可将最终参考图像列表设置为等于初始参考图像列表。而且,视频解码器30可以参考图像列表中不存在非完成条目的方式构造参考图像列表。举例来说,视频解码器30可重复地列出来自参考图像子集的参考图像,直到参考图像列表中的条目的数目等于参考图像列表的可允许条目的最大数目为止。在一些实例中,视频解码器30可以上文所描述的方式修改初始参考图像列表(例如,基于所构造的参考图像子集中的至少一者中的参考图像)。此外,在一些实例中,视频解码器30可利用本发明中所描述的实例技术将已解码图像从视频解码器30的DPB中去除,例如,去除在待解码的当前图像的参考图像集中未加以识别且不需要输出的已解码图像。而且,在一些实例中,视频解码器30可以上文所描述的方式确定哪些长期参考图像属于参考图像集,其中候选长期参考图像列表的识别信息可包含在参数集中。The video decoder 30 may further construct the initial reference picture list in the manner described above, without reordering the pictures to be included in the initial reference picture list. When reference picture list modification is disabled, the video decoder 30 may set the final reference picture list equal to the initial reference picture list. Furthermore, the video decoder 30 may construct the reference picture list in such a way that no incomplete entries exist in the reference picture list. For example, the video decoder 30 may repeatedly list reference pictures from the reference picture subset until the number of entries in the reference picture list equals the maximum number of allowable entries in the reference picture list. In some examples, the video decoder 30 may modify the initial reference picture list in the manner described above (e.g., based on reference pictures in at least one of the constructed reference picture subsets). Furthermore, in some examples, the video decoder 30 may utilize example techniques described in this disclosure to remove decoded pictures from the DPB of the video decoder 30, for example, to remove decoded pictures that were not identified in the reference picture set of the current picture to be decoded and that do not need to be output. Moreover, in some examples, video decoder 30 may determine which long-term reference pictures belong to a reference picture set in the manner described above, where identification information of a candidate long-term reference picture list may be included in a parameter set.
图3为说明可实施本发明中所描述的技术的实例视频编码器20的框图。视频编码器20可执行视频切片内的视频块的帧内译码及帧间译码。帧内译码依赖于空间预测以减少或去除给定视频帧或图像内的视频的空间冗余。帧间译码依赖于时间预测以减少或去除视频序列的邻近帧或图像内的视频的时间冗余。帧内模式(I模式)可指若干基于空间的压缩模式中的任一者。例如单向预测(P模式)或双向预测(B模式)等帧间模式可指若干基于时间的压缩模式中的任一者。FIG3 is a block diagram illustrating an example video encoder 20 that may implement the techniques described in this disclosure. Video encoder 20 may perform intra- and inter-coding of video blocks within a video slice. Intra-coding relies on spatial prediction to reduce or remove spatial redundancy in video within a given video frame or picture. Inter-coding relies on temporal prediction to reduce or remove temporal redundancy in video within adjacent frames or pictures of a video sequence. Intra-mode (I-mode) may refer to any of several spatially-based compression modes. Inter-modes, such as uni-directional prediction (P-mode) or bi-directional prediction (B-mode), may refer to any of several temporally-based compression modes.
在图3的实例中,视频编码器20包含分割单元35、预测模块41、已解码图像缓冲器(DPB)64、求和器50、变换模块52、量化单元54,和熵编码单元56。预测模块41包含运动估计单元42、运动补偿单元44,和帧内预测模块46。对于视频块重构造,视频编码器20还包含反量化单元58、反变换模块60,和求和器62。还可包含解块滤波器(图3中未展示)以对块边界滤波以将方块效应伪影从经重构造的视频中去除。在需要时,解块滤波器通常对求和器62的输出滤波。除解块滤波器之外,还可使用额外的环路滤波器(环路内或环路后)。In the example of FIG3 , video encoder 20 includes a partitioning unit 35, a prediction module 41, a decoded picture buffer (DPB) 64, a summer 50, a transform module 52, a quantization unit 54, and an entropy encoding unit 56. Prediction module 41 includes a motion estimation unit 42, a motion compensation unit 44, and an intra-prediction module 46. For video block reconstruction, video encoder 20 also includes an inverse quantization unit 58, an inverse transform module 60, and a summer 62. A deblocking filter (not shown in FIG3 ) may also be included to filter block boundaries to remove blocking artifacts from the reconstructed video. If necessary, the deblocking filter typically filters the output of summer 62. In addition to the deblocking filter, additional loop filters (in-loop or post-loop) may also be used.
如图3中所展示,视频编码器20接收视频数据,且分割单元35将数据分割成视频块。此分割还可包含分割成切片、图块或其它较大单元,以及(例如)根据LCU和CU的四叉树结构的视频块分割。视频编码器20一般说明编码待编码的视频切片内的视频块的组件。切片可划分成多个视频块(且有可能划分成被称作图块的视频块的集合)。预测模块41可基于误差结果(例如,译码速率和失真电平)而选择用于当前视频块的多个可能译码模式中的一者,例如,多个帧内译码模式中的一者或多个帧间译码模式中的一者。预测模块41可将所得的经帧内译码或经帧间译码块提供到求和器50以产生残余块数据,且将所得的经帧内译码或经帧间译码块提供到求和器62以重构造经编码块以用作参考图像。As shown in FIG3 , video encoder 20 receives video data, and partitioning unit 35 partitions the data into video blocks. This partitioning may also include partitioning into slices, tiles, or other larger units, as well as video block partitioning according to a quadtree structure of LCUs and CUs, for example. Video encoder 20 generally illustrates components that encode video blocks within a video slice to be encoded. A slice may be divided into multiple video blocks (and potentially into sets of video blocks referred to as tiles). Prediction module 41 may select one of multiple possible coding modes for the current video block, such as one of multiple intra-coding modes or one of multiple inter-coding modes, based on error results (e.g., coding rate and distortion level). Prediction module 41 may provide the resulting intra-coded or inter-coded block to summer 50 to generate residual block data, and provide the resulting intra-coded or inter-coded block to summer 62 to reconstruct the encoded block for use as a reference picture.
预测模块41内的帧内预测模块46可执行相对于与待译码的当前块相同的图像或切片中的一个或一个以上相邻块的当前视频块的帧内预测性译码以提供空间压缩。预测模块41内的运动估计单元42和运动补偿单元44执行相对于一个或一个以上参考图像中的一个或一个以上预测性块的当前视频块的帧间预测性译码以提供时间压缩。Intra-prediction module 46 within prediction module 41 may perform intra-predictive coding of the current video block relative to one or more neighboring blocks in the same picture or slice as the current block to be coded to provide spatial compression. Motion estimation unit 42 and motion compensation unit 44 within prediction module 41 may perform inter-predictive coding of the current video block relative to one or more predictive blocks in one or more reference pictures to provide temporal compression.
运动估计单元42可经配置以根据视频序列的预定模式确定视频切片的帧间预测模式。预定模式可指明序列中的视频切片为P切片或B切片。运动估计单元42和运动补偿单元44可高度集成,但为了概念目的而分别加以说明。由运动估计单元42执行的运动估计为产生运动向量的过程,运动向量估计视频块的运动。运动向量(例如)可指示当前视频图像内的视频块的PU相对于参考图像内的预测性块的位移。Motion estimation unit 42 may be configured to determine an inter-prediction mode for a video slice according to a predetermined pattern for a video sequence. The predetermined pattern may specify whether a video slice in the sequence is a P slice or a B slice. Motion estimation unit 42 and motion compensation unit 44 may be highly integrated but are illustrated separately for conceptual purposes. Motion estimation, performed by motion estimation unit 42, is the process of generating motion vectors, which estimate motion for video blocks. A motion vector may, for example, indicate the displacement of a PU of a video block within a current video picture relative to a predictive block within a reference picture.
预测性块为被发现与待译码的视频块的PU在像素差方面紧密匹配的块,可通过绝对差总和(SAD)、平方差总和(SSD)或其它不同度量来确定像素差。在一些实例中,视频编码器20可计算存储在已解码图像缓冲器64中的参考图像的子整数像素位置的值。举例来说,视频编码器20可内插参考图像的四分之一像素位置、八分之一像素位置或其它分数像素位置的值。因此,运动估计单元42可执行相对于全像素位置和分数像素位置的运动搜索,且以分数像素精度输出运动向量。A predictive block is a block that is found to closely match a PU of the video block to be coded in terms of pixel difference, which may be determined by sum of absolute difference (SAD), sum of squared difference (SSD), or other different metrics. In some examples, video encoder 20 may calculate values for sub-integer pixel positions of a reference picture stored in decoded picture buffer 64. For example, video encoder 20 may interpolate values for quarter-pixel positions, eighth-pixel positions, or other fractional pixel positions of the reference picture. Thus, motion estimation unit 42 may perform motion searches relative to full-pixel positions and fractional pixel positions and output motion vectors with fractional pixel precision.
运动估计单元42通过比较经帧间译码切片中的视频块的PU的位置与参考图像的预测性块的位置而计算所述PU的运动向量。参考图像可选自第一参考图像列表(列表0)或第二参考图像列表(列表1),第一参考图像列表(列表0)或第二参考图像列表(列表1)中的每一者识别存储在已解码图像缓冲器64中的一个或一个以上参考图像。运动估计单元42将所计算的运动向量发送到熵编码单元56和运动补偿单元44。Motion estimation unit 42 calculates a motion vector for a PU of a video block in an inter-coded slice by comparing the position of the PU to the position of a predictive block of a reference picture. The reference picture may be selected from a first reference picture list (List 0) or a second reference picture list (List 1), each of which identifies one or more reference pictures stored in decoded picture buffer 64. Motion estimation unit 42 sends the calculated motion vector to entropy encoding unit 56 and motion compensation unit 44.
由运动补偿单元44执行的运动补偿可涉及基于通过运动估计确定的运动向量而获取或产生预测性块,有可能执行子像素精度的内插。在接收到当前视频块的PU的运动向量后,运动补偿单元44便可将运动向量所指向的预测性块定位于参考图像列表中的一者中。视频编码器20通过从正被译码的当前视频块的像素值减去预测性块的像素值来形成残余视频块,从而形成像素差值。像素差值形成块的残余数据,且可包含明度差分量与色度差分量两者。求和器50表示执行此减法运算的一个或一个以上组件。运动补偿单元44还可产生与视频块和视频切片相关联的语法元素以供视频解码器30用于解码视频切片的视频块。Motion compensation performed by motion compensation unit 44 may involve retrieving or generating a predictive block based on the motion vector determined by motion estimation, possibly performing interpolation with sub-pixel precision. Upon receiving the motion vector for the PU of the current video block, motion compensation unit 44 may locate the predictive block pointed to by the motion vector in one of the reference picture lists. Video encoder 20 forms a residual video block by subtracting the pixel values of the predictive block from the pixel values of the current video block being coded, forming pixel difference values. The pixel difference values form residual data for the block and may include both luma and chroma difference components. Summer 50 represents one or more components that perform this subtraction operation. Motion compensation unit 44 may also generate syntax elements associated with the video block and video slice for use by video decoder 30 in decoding the video block of the video slice.
帧内预测模块46可帧内预测当前块,而作为由运动估计单元42和运动补偿单元44执行的帧间预测(如上文所描述)的替代。明确地说,帧内预测模块46可确定使用帧内预测模式以编码当前块。在一些实例中,帧内预测模块46可使用各种帧内预测模式(例如)在单独编码遍次期间编码当前块,且帧内预测模块46(或,在一些实例中,模式选择单元40)可从所测试模式中选择适当帧内预测模式来使用。举例来说,帧内预测模块46可使用对各种所测试帧内预测模式的速率-失真分析而计算速率-失真值,且在所测试模式当中选择具有最好速率-失真特性的帧内预测模式。速率-失真分析一般确定经编码块与经编码以产生经编码块的原始的未经编码块之间的失真(或误差)的量,以及用以产生经编码块的位速率(即,位数目)。帧内预测模块46可根据各种经编码块的失真和速率计算比率以确定哪一帧内预测模式展现块的最好速率-失真值。Intra-prediction module 46 may intra-predict the current block, as an alternative to the inter-prediction performed by motion estimation unit 42 and motion compensation unit 44 (as described above). In particular, intra-prediction module 46 may determine an intra-prediction mode to use to encode the current block. In some examples, intra-prediction module 46 may encode the current block using various intra-prediction modes (e.g., during separate encoding passes), and intra-prediction module 46 (or, in some examples, mode selection unit 40) may select an appropriate intra-prediction mode to use from the tested modes. For example, intra-prediction module 46 may calculate rate-distortion values using a rate-distortion analysis of the various tested intra-prediction modes and select the intra-prediction mode with the best rate-distortion characteristics among the tested modes. The rate-distortion analysis generally determines the amount of distortion (or error) between the encoded block and the original, unencoded block that was encoded to produce the encoded block, as well as the bit rate (i.e., the number of bits) used to produce the encoded block. Intra-prediction module 46 may calculate ratios from the distortions and rates for the various encoded blocks to determine which intra-prediction mode exhibits the best rate-distortion value for the block.
在选择用于块的帧内预测模式之后,帧内预测模块46可将指示用于块的选定帧内预测模式的信息提供到熵编码单元56。熵编码单元56可根据本发明的技术编码指示选定帧内预测模式的信息。视频编码器20可在经传输的位流配置数据中包含各种块的编码上下文的定义及将用于所述上下文中的每一者的最可能的帧内预测模式、帧内预测模式索引表和修改的帧内预测模式索引表的指示,所述经传输的位流配置数据可包含多个帧内预测模式索引表和多个修改的帧内预测模式索引表(也被称作码字映射表)。After selecting an intra-prediction mode for a block, intra-prediction module 46 may provide information indicating the selected intra-prediction mode for the block to entropy encoding unit 56. Entropy encoding unit 56 may encode the information indicating the selected intra-prediction mode according to the techniques of this disclosure. Video encoder 20 may include definitions of coding contexts for the various blocks and indications of the most probable intra-prediction mode to be used for each of the contexts, an intra-prediction mode index table, and a modified intra-prediction mode index table in the transmitted bitstream configuration data, which may include multiple intra-prediction mode index tables and multiple modified intra-prediction mode index tables (also referred to as codeword mapping tables).
在预测模块41经由帧间预测或帧内预测产生用于当前视频块的预测性块之后,视频编码器20通过从当前视频块中减去预测性块而形成残余视频块。残余块中的残余视频数据可包含在一个或一个以上TU中且应用于变换模块52。变换模块52使用例如离散余弦变换(DCT)或概念上类似的变换等变换将残余视频数据变换成残余变换系数。变换模块52可将残余视频数据从像素域转换到变换域,例如频域。After prediction module 41 generates a predictive block for the current video block via inter-prediction or intra-prediction, video encoder 20 forms a residual video block by subtracting the predictive block from the current video block. The residual video data in the residual block may be included in one or more TUs and applied to transform module 52. Transform module 52 transforms the residual video data into residual transform coefficients using a transform, such as a discrete cosine transform (DCT) or a conceptually similar transform. Transform module 52 may convert the residual video data from the pixel domain to a transform domain, such as the frequency domain.
变换模块52可将所得变换系数发送到量化单元54。量化单元54将变换系数量化以进一步减小位速率。量化过程可减少与所述系数中的一些系数或所有系数相关联的位深度。可通过调整量化参数而修改量化程度。在一些实例中,量化单元54可然后执行包含经量化的变换系数的矩阵的扫描。或者,熵编码单元56可执行所述扫描。Transform module 52 may send the resulting transform coefficients to quantization unit 54. Quantization unit 54 quantizes the transform coefficients to further reduce the bit rate. The quantization process may reduce the bit depth associated with some or all of the coefficients. The degree of quantization may be modified by adjusting a quantization parameter. In some examples, quantization unit 54 may then perform a scan of the matrix containing the quantized transform coefficients. Alternatively, entropy encoding unit 56 may perform the scan.
在量化之后,熵编码单元56熵编码经量化的变换系数。举例来说,熵编码单元56可执行上下文自适应可变长度译码(CAVLC)、上下文自适应二进制算术译码(CABAC)、基于语法的上下文自适应二进制算术译码(SBAC)、概率区间分割熵(PIPE)译码或另一熵编码方法或技术。在由熵编码单元56进行的熵编码之后,可将经编码位流传输到视频解码器30或加以存档以供视频解码器30稍后传输或检索。熵编码单元56还可熵编码正被译码的当前视频切片的运动向量及其它语法元素。After quantization, entropy encoding unit 56 entropy encodes the quantized transform coefficients. For example, entropy encoding unit 56 may perform context adaptive variable length coding (CAVLC), context adaptive binary arithmetic coding (CABAC), syntax-based context adaptive binary arithmetic coding (SBAC), probability interval partitioning entropy (PIPE) coding, or another entropy encoding method or technique. Following entropy encoding by entropy encoding unit 56, the encoded bitstream may be transmitted to video decoder 30 or archived for later transmission or retrieval by video decoder 30. Entropy encoding unit 56 may also entropy encode the motion vectors and other syntax elements for the current video slice being coded.
反量化单元58和反变换模块60分别应用反量化和反变换,以在像素域中重构造残余块以供稍后用作参考图像的参考块。运动补偿单元44可通过将残余块与参考图像列表中的一者内的参考图像中的一者的预测性块相加来计算参考块。运动补偿单元44还可将一个或一个以上内插滤波器应用于经重构造的残余块以计算子整数像素值以供用于运动估计中。求和器62将经重构造的残余块与由运动补偿单元44产生的经运动补偿的预测块相加以产生用于存储在已解码图像缓冲器64中的参考块。参考块可由运动估计单元42和运动补偿单元44作为用于对后续视频帧或图像中的块进行帧间预测的参考块使用。Inverse quantization unit 58 and inverse transform module 60 apply inverse quantization and inverse transform, respectively, to reconstruct the residual block in the pixel domain for later use as a reference block for a reference picture. Motion compensation unit 44 may calculate a reference block by adding the residual block to a predictive block of one of the reference pictures in one of the reference picture lists. Motion compensation unit 44 may also apply one or more interpolation filters to the reconstructed residual block to calculate sub-integer pixel values for use in motion estimation. Summer 62 adds the reconstructed residual block to the motion compensated prediction block produced by motion compensation unit 44 to produce a reference block for storage in decoded picture buffer 64. The reference block may be used by motion estimation unit 42 and motion compensation unit 44 as a reference block for inter-frame prediction of blocks in subsequent video frames or pictures.
根据本发明,预测模块41表示用于执行上文所描述的实例功能的一个实例单元。举例来说,预测模块41可确定哪些参考图像属于参考图像集,且致使视频编码器20译码指示属于参考图像集的参考图像的信息。而且,在重构造过程(例如,用以重构造用于用作参考图像且存储在已解码图像缓冲器64中的图像的过程)期间,预测模块41可构造多个参考图像子集,每一参考图像子集识别参考图像中的一者或一者以上。预测模块41还可从所述所构造的多个参考图像子集导出参考图像集。而且,预测模块41可实施上文所描述的实例伪码集合中的任何一者或一者以上,以实施本发明中所描述的一个或一个以上实例技术。According to this disclosure, prediction module 41 represents one example unit for performing the example functions described above. For example, prediction module 41 may determine which reference pictures belong to a reference picture set and cause video encoder 20 to decode information indicating the reference pictures belonging to the reference picture set. Furthermore, during a reconstruction process (e.g., a process used to reconstruct pictures for use as reference pictures and stored in decoded picture buffer 64), prediction module 41 may construct multiple reference picture subsets, each of which identifies one or more of the reference pictures. Prediction module 41 may also derive a reference picture set from the constructed multiple reference picture subsets. Furthermore, prediction module 41 may implement any one or more of the example pseudo-code sets described above to implement one or more example techniques described in this disclosure.
在一些实例中,预测模块41可以上文所描述的方式构造初始参考图像列表。在一些实例中,不需要将待包含在初始参考图像列表中的图像重新排序。而且,预测模块41可以参考图像列表中不存在非完成条目的方式构造参考图像列表。在一些实例中,预测模块41还可以上文所描述的方式修改初始参考图像列表以构造修改的参考图像列表。此外,在一些实例中,预测模块41可以上文所描述的方式实施将已解码图像从DPB 64去除。此外,在一些实例中,预测模块41可经配置以按上文所描述的方式确定哪些长期参考图像属于当前图像的参考图像集。In some examples, prediction module 41 may construct an initial reference picture list in the manner described above. In some examples, there is no need to reorder the pictures to be included in the initial reference picture list. Furthermore, prediction module 41 may construct the reference picture list in such a way that no incomplete entries exist in the reference picture list. In some examples, prediction module 41 may also modify the initial reference picture list in the manner described above to construct a modified reference picture list. Furthermore, in some examples, prediction module 41 may implement the removal of decoded pictures from DPB 64 in the manner described above. Furthermore, in some examples, prediction module 41 may be configured to determine which long-term reference pictures belong to the reference picture set of the current picture in the manner described above.
在其它实例中,不同于预测模块41的单元可实施上文所描述的实例。在一些其它实例中,预测模块41结合视频编码器20的一个或一个以上其它单元可实施上文所描述的实例。在又一些其它实例中,视频编码器20的处理器或单元(图3中未展示)可单独地或结合视频编码器20的其它单元实施上文所描述的实例。In other examples, units other than prediction module 41 may implement the examples described above. In some other examples, prediction module 41, in conjunction with one or more other units of video encoder 20, may implement the examples described above. In still other examples, a processor or unit (not shown in FIG. 3 ) of video encoder 20, alone or in conjunction with other units of video encoder 20, may implement the examples described above.
图4为说明可实施本发明中所描述的技术的实例视频解码器30的框图。在图4的实例中,视频解码器30包含熵解码单元80、预测模块81、反量化单元86、反变换单元88、求和器90,和已解码图像缓冲器(DPB)92。预测模块81包含运动补偿单元82和帧内预测模块84。视频解码器30在一些实例中可执行一般与关于视频编码器20(图3)所描述的编码遍次互逆的解码遍次。FIG4 is a block diagram illustrating an example video decoder 30 that may implement the techniques described in this disclosure. In the example of FIG4, video decoder 30 includes an entropy decoding unit 80, a prediction module 81, an inverse quantization unit 86, an inverse transform unit 88, a summer 90, and a decoded picture buffer (DPB) 92. Prediction module 81 includes a motion compensation unit 82 and an intra prediction module 84. Video decoder 30 may, in some examples, perform a decoding pass that is generally reciprocal to the encoding pass described with respect to video encoder 20 (FIG. 3).
在解码过程期间,视频解码器30从视频编码器20接收表示经编码视频切片的视频块及相关联的语法元素的经编码视频位流。视频解码器30的熵解码单元80熵解码所述位流以产生经量化的系数、运动向量及其它语法元素。熵解码单元80将运动向量及其它语法元素转发到预测模块81。视频解码器30可在视频切片层级和/或视频块层级接收语法元素。During the decoding process, video decoder 30 receives an encoded video bitstream representing video blocks of an encoded video slice and associated syntax elements from video encoder 20. Entropy decoding unit 80 of video decoder 30 entropy decodes the bitstream to generate quantized coefficients, motion vectors, and other syntax elements. Entropy decoding unit 80 forwards the motion vectors and other syntax elements to prediction module 81. Video decoder 30 may receive syntax elements at the video slice level and/or at the video block level.
当视频切片经译码为经帧内译码(I)切片时,预测模块81的帧内预测模块84可基于用信号发出的帧内预测模式和来自当前图像的先前已解码块的数据而产生用于当前视频切片的视频块的预测数据。当视频图像经译码为经帧间译码(即,B或P)切片时,预测模块81的运动补偿单元82基于从熵解码单元80所接收的运动向量及其它语法元素而产生用于当前视频切片的视频块的预测性块。预测性块可产生自参考图像列表中的一者内的参考图像中的一者。视频解码器30可使用默认构造技术基于存储在已解码图像缓冲器92中的参考图像而构造参考帧列表(列表0和列表1)。在一些实例中,视频解码器30可从在所导出的参考图像集中识别的参考图像构造列表0和列表1。When the video slice is coded as an intra-coded (I) slice, intra-prediction module 84 of prediction module 81 may generate prediction data for the video block of the current video slice based on the signaled intra-prediction mode and data from previously decoded blocks of the current picture. When the video picture is coded as an inter-coded (i.e., B or P) slice, motion compensation unit 82 of prediction module 81 generates a predictive block for the video block of the current video slice based on the motion vector and other syntax elements received from entropy decoding unit 80. The predictive block may be generated from one of the reference pictures in one of the reference picture lists. Video decoder 30 may construct the reference frame lists (List 0 and List 1) based on the reference pictures stored in decoded picture buffer 92 using default construction techniques. In some examples, video decoder 30 may construct List 0 and List 1 from reference pictures identified in the derived reference picture set.
运动补偿单元82通过分析运动向量及其它语法元素而确定当前视频切片的视频块的预测信息,且使用所述预测信息产生正被解码的当前视频块的预测性块。举例来说,运动补偿单元82使用所接收语法元素中的一些所接收语法元素确定:用以译码视频切片的视频块的预测模式(例如,帧内预测或帧间预测)、帧间预测切片类型(例如,B切片或P切片)、用于切片的参考图像列表中的一者或一者以上的构造信息、用于切片的每一经帧间编码视频块的运动向量、用于切片的每一经帧间译码视频块的帧间预测状态,以及用以解码当前视频切片中的视频块的其它信息。Motion compensation unit 82 determines prediction information for a video block of the current video slice by analyzing motion vectors and other syntax elements, and uses the prediction information to produce a predictive block for the current video block being decoded. For example, motion compensation unit 82 uses some of the received syntax elements to determine: a prediction mode (e.g., intra-prediction or inter-prediction) used to code the video block of the video slice, an inter-prediction slice type (e.g., B-slice or P-slice), construction information for one or more of the reference picture lists for the slice, a motion vector for each inter-coded video block of the slice, an inter-prediction state for each inter-coded video block of the slice, and other information used to decode the video blocks in the current video slice.
运动补偿单元82还可基于内插滤波器而执行内插。运动补偿单元82可使用如由视频编码器20在编码视频块期间使用的内插滤波器,以计算参考块的子整数像素的内插值。在此情况下,运动补偿单元82可根据所接收语法元素确定由视频编码器20使用的内插滤波器且使用所述内插滤波器来产生预测性块。Motion compensation unit 82 may also perform interpolation based on interpolation filters. Motion compensation unit 82 may use interpolation filters as used by video encoder 20 during encoding of video blocks to calculate interpolated values for sub-integer pixels of reference blocks. In this case, motion compensation unit 82 may determine the interpolation filters used by video encoder 20 from received syntax elements and use the interpolation filters to produce predictive blocks.
反量化单元86将提供于位流中且由熵解码单元80解码的经量化的变换系数反量化(即,解量化)。反量化过程可包含使用由视频编码器20计算的用于视频切片中的每一视频块的量化参数,以确定量化程度及(同样的)应应用的反量化的程度。反变换模块88将反变换(例如,反DCT、反整数变换或概念上类似的反变换过程)应用于变换系数,以便在像素域中产生残余块。Inverse quantization unit 86 inverse quantizes (i.e., dequantizes) the quantized transform coefficients provided in the bitstream and decoded by entropy decoding unit 80. The inverse quantization process may include using the quantization parameter for each video block in the video slice calculated by video encoder 20 to determine the degree of quantization and, likewise, the degree of inverse quantization that should be applied. Inverse transform module 88 applies an inverse transform (e.g., an inverse DCT, an inverse integer transform, or a conceptually similar inverse transform process) to the transform coefficients to produce residual blocks in the pixel domain.
在预测模块81基于帧间预测或帧内预测而产生用于当前视频块的预测性块之后,视频解码器30通过将来自反变换模块88的残余块与由预测模块81产生的对应预测性块加总而形成已解码视频块。求和器90表示执行此加总运算的一个或一个以上组件。在需要时,还可应用解块滤波器来对已解码块滤波以便去除方块效应伪影。其它环路滤波器(译码环路中或译码环路后)还可用以使像素转变平滑,或以其它方式改善视频质量。然后将给定图像中的已解码视频块存储在已解码图像缓冲器92中,已解码图像缓冲器92存储用于后续运动补偿的参考图像。已解码图像缓冲器92还存储已解码视频以用于稍后呈现于显示装置(例如,图1的显示装置32)上。After prediction module 81 generates a predictive block for the current video block based on inter-frame prediction or intra-frame prediction, video decoder 30 forms a decoded video block by summing the residual block from inverse transform module 88 with the corresponding predictive block generated by prediction module 81. Summer 90 represents one or more components that perform this summing operation. If desired, a deblocking filter may also be applied to filter the decoded block to remove blocking artifacts. Other loop filters (in the decoding loop or after the decoding loop) may also be used to smooth pixel transitions or otherwise improve video quality. The decoded video block in a given picture is then stored in decoded picture buffer 92, which stores reference pictures used for subsequent motion compensation. Decoded picture buffer 92 also stores the decoded video for later presentation on a display device (e.g., display device 32 of FIG. 1 ).
根据本发明,预测模块81表示用于执行上文所描述的实例功能的一个实例单元。举例来说,预测模块81可确定哪些参考图像属于参考图像集。而且,预测模块81可构造多个参考图像子集,每一参考图像子集识别所述参考图像中的一者或一者以上。预测模块81还可从所述所构造的多个参考图像子集导出参考图像集。而且,预测模块81可实施上文所描述的实例伪码集合中的任何一者或一者以上,以实施本发明中所描述的一个或一个以上实例技术。According to this disclosure, prediction module 81 represents one example unit for performing the example functions described above. For example, prediction module 81 may determine which reference images belong to a reference image set. Furthermore, prediction module 81 may construct multiple reference image subsets, each of which identifies one or more of the reference images. Prediction module 81 may also derive a reference image set from the constructed multiple reference image subsets. Furthermore, prediction module 81 may implement any one or more of the example pseudo-code sets described above to implement one or more example techniques described in this disclosure.
在一些实例中,预测模块81可以上文所描述的方式构造初始参考图像列表。在一些实例中,不需要将待包含在初始参考图像列表中的图像重新排序。而且,预测模块81可以参考图像列表中不存在非完成条目的方式构造参考图像列表。在一些实例中,预测模块81还可以上文所描述的方式修改初始参考图像列表以构造修改的参考图像列表。此外,在一些实例中,预测模块81可以上文所描述的方式实施将已解码图像从DPB 92中去除。此外,在一些实例中,预测模块81可经配置以按上文所描述的方式确定哪些长期参考图像属于当前图像的参考图像集。In some examples, the prediction module 81 may construct an initial reference picture list in the manner described above. In some examples, there is no need to reorder the pictures to be included in the initial reference picture list. Furthermore, the prediction module 81 may construct the reference picture list in such a way that no incomplete entries exist in the reference picture list. In some examples, the prediction module 81 may also modify the initial reference picture list in the manner described above to construct a modified reference picture list. Furthermore, in some examples, the prediction module 81 may implement the removal of decoded pictures from the DPB 92 in the manner described above. Furthermore, in some examples, the prediction module 81 may be configured to determine which long-term reference pictures belong to the reference picture set of the current picture in the manner described above.
在其它实例中,不同于预测模块81的单元可实施上文所描述的实例。在一些其它实例中,预测模块81结合视频解码器30的一个或一个以上其它单元可实施上文所描述的实例。在又一些其它实例中,视频解码器30的处理器或单元(图4中未展示)可单独地或结合视频解码器30的其它单元实施上文所描述的实例。In other examples, units other than prediction module 81 may implement the examples described above. In some other examples, prediction module 81, in conjunction with one or more other units of video decoder 30, may implement the examples described above. In still other examples, a processor or unit (not shown in FIG. 4 ) of video decoder 30, alone or in conjunction with other units of video decoder 30, may implement the examples described above.
图5为说明导出参考图像集的实例操作的流程图。仅为了说明的目的,图5的方法可由对应于视频编码器20或视频解码器30的视频译码器来执行。举例来说,视频译码器(例如,视频编码器20或视频解码器30)可译码(例如,编码或解码)指示属于参考图像集的参考图像的信息(94)。参考图像集可识别可潜在地用于对当前图像进行帧间预测且用于对在解码次序上在当前图像之后的一个或一个以上图像进行帧间预测的参考图像。FIG5 is a flowchart illustrating an example operation of deriving a reference picture set. For purposes of illustration only, the method of FIG5 may be performed by a video coder corresponding to video encoder 20 or video decoder 30. For example, a video coder (e.g., video encoder 20 or video decoder 30) may code (e.g., encode or decode) information indicating reference pictures belonging to a reference picture set (94). The reference picture set may identify reference pictures that may potentially be used for inter-prediction of a current picture and for inter-prediction of one or more pictures that follow the current picture in decoding order.
举例来说,当视频编码器20执行步骤94时,视频编码器20可编码指示属于参考图像集的参考图像的识别符的值。举例来说,视频编码器20可在位流中用信号发出pic_order_cnt_lsb语法元素和log2_max_pic_order_cnt_lsb_minus4语法元素。当视频解码器30执行步骤94时,视频解码器30可根据log2_max_pic_order_cnt_lsb_minus4语法元素确定MaxPicOrderCntLsb的值。视频解码器30可然后确定属于参考图像集的参考图像的识别符(例如,POC值)。For example, when video encoder 20 performs step 94, video encoder 20 may encode a value indicating an identifier of a reference picture belonging to a reference picture set. For example, video encoder 20 may signal a pic_order_cnt_lsb syntax element and a log2_max_pic_order_cnt_lsb_minus4 syntax element in the bitstream. When video decoder 30 performs step 94, video decoder 30 may determine a value of MaxPicOrderCntLsb based on the log2_max_pic_order_cnt_lsb_minus4 syntax element. Video decoder 30 may then determine an identifier (e.g., a POC value) of the reference picture belonging to the reference picture set.
视频译码器可构造多个参考图像子集,每一参考图像子集识别所述参考图像中的零者或多者(96)。举例来说,视频译码器可构造RefPicSetStCurr0、RefPicSetStCurr1、RefPicSetStFoll0、RefPicSetStFoll1、RefPicSetLtCurr和RefPicSetLtFoll参考图像子集。然而,本发明的方面不应受此限制。在一些实例中,视频译码器可构造五个参考图像子集,所述五个参考图像子集中的四者为RefPicSetStCurr0、RefPicSetStCurr1、RefPicSetStFoll0、RefPicSetStFoll1、RefPicSetLtCurr和RefPicSetLtFoll参考图像子集中的四者,且第五者可为剩余六个参考图像子集中的两者的组合(例如,RefPicSetFoll0与RefPicSetFoll1参考图像子集的组合)。The video coder may construct a plurality of reference picture subsets, each reference picture subset identifying zero or more of the reference pictures (96). For example, the video coder may construct the RefPicSetStCurr0, RefPicSetStCurr1, RefPicSetStFoll0, RefPicSetStFoll1, RefPicSetLtCurr, and RefPicSetLtFoll reference picture subsets. However, aspects of this disclosure should not be so limited. In some examples, the video coder may construct five reference picture subsets, four of which are four of the RefPicSetStCurr0, RefPicSetStCurr1, RefPicSetStFoll0, RefPicSetStFoll1, RefPicSetLtCurr, and RefPicSetLtFoll reference picture subsets, and the fifth may be a combination of two of the remaining six reference picture subsets (e.g., a combination of the RefPicSetFoll0 and RefPicSetFoll1 reference picture subsets).
在一些实例中,视频译码器可构造以下四个参考图像子集中的至少两者。在其它实例中,视频译码器可至少构造以下四个参考图像子集。第一参考图像子集可识别满足以下情形的短期参考图像:在解码次序上在当前图像之前且在输出次序上在当前图像之前,且可潜在地用于对当前图像及在解码次序上在当前图像之后的一个或一个以上图像中的一者或一者以上进行帧间预测。第二参考图像子集可识别满足以下情形的短期参考图像:在解码次序上在当前图像之前且在输出次序上在当前图像之后,且可潜在地用于对当前图像及在解码次序上在当前图像之后的一个或一个以上图像中的一者或一者以上进行帧间预测。In some examples, the video coder may construct at least two of the following four reference picture subsets. In other examples, the video coder may construct at least the following four reference picture subsets. A first reference picture subset may identify short-term reference pictures that precede a current picture in decoding order and precede the current picture in output order, and that may potentially be used for inter-prediction of the current picture and one or more pictures that follow the current picture in decoding order. A second reference picture subset may identify short-term reference pictures that precede the current picture in decoding order and follow the current picture in output order, and that may potentially be used for inter-prediction of the current picture and one or more pictures that follow the current picture in decoding order.
第三参考图像子集可识别满足以下情形的长期参考图像:在解码次序上在当前图像之前,且可潜在地用于对当前图像及在解码次序上在当前图像之后的一个或一个以上图像中的一者或一者以上进行帧间预测。第四参考图像子集可识别满足以下情形的长期参考图像:在解码次序上在当前图像之前,且无法用于对当前图像进行帧间预测,且可潜在地用于对在解码次序上在当前图像之后的一个或一个以上图像中的一者或一者以上进行帧间预测。The third reference picture subset may identify long-term reference pictures that precede the current picture in decoding order and that can potentially be used for inter-prediction of the current picture and one or more pictures that follow the current picture in decoding order. The fourth reference picture subset may identify long-term reference pictures that precede the current picture in decoding order and that cannot be used for inter-prediction of the current picture, and that can potentially be used for inter-prediction of one or more pictures that follow the current picture in decoding order.
视频译码器可从所述多个参考图像子集导出参考图像集(98)。举例来说,视频译码器可以特定次序将以下各者中的至少两者排序:RefPicSetStCurr0、RefPicSetStCurr1、RefPicSetStFoll0、RefPicSetStFoll1、RefPicSetLtCurr和RefPicSetLtFoll参考图像子集,以导出参考图像集。The video coder may derive a reference picture set from the plurality of reference picture subsets (98). For example, the video coder may sort at least two of the following in a particular order: RefPicSetStCurr0, RefPicSetStCurr1, RefPicSetStFoll0, RefPicSetStFoll1, RefPicSetLtCurr, and RefPicSetLtFoll reference picture subsets to derive the reference picture set.
在一些实例中,由视频译码器执行的排序可意味着:参考图像子集中的每一者中的图像可在参考图像集内顺序地加以识别。在这些实例中,视频译码器可通过到参考图像集中的索引值来参考参考图像集中的参考图像。In some examples, the ordering performed by the video coder may mean that the images in each of the reference image subsets can be identified sequentially within the reference image set. In these examples, the video coder can reference a reference image in the reference image set by an index value into the reference image set.
视频译码器可基于所导出的参考图像集而译码当前图像(100)。应理解,因为视频译码器从参考图像子集导出参考图像集,所以视频译码器可被视为基于所述多个参考图像子集而译码当前图像。举例来说,视频译码器可基于所述多个参考图像子集(例如,来自从所述多个参考图像子集导出的所导出的参考图像集)而构造第一参考图像列表和第二参考图像列表中的至少一者。视频译码器可然后基于第一参考图像列表和第二参考图像列表中的至少一者而译码当前图像。A video coder may code a current picture based on the derived reference picture set (100). It should be understood that because the video coder derives the reference picture set from the reference picture subsets, the video coder may be considered to code the current picture based on the multiple reference picture subsets. For example, the video coder may construct at least one of a first reference picture list and a second reference picture list based on the multiple reference picture subsets (e.g., from the derived reference picture set derived from the multiple reference picture subsets). The video coder may then code the current picture based on at least one of the first reference picture list and the second reference picture list.
图6为说明构造参考图像列表的实例操作的流程图。仅为了说明的目的,图6的方法可由对应于视频编码器20或视频解码器30的视频译码器来执行。类似于图5,视频译码器可译码指示参考图像的信息(102),且构造多个参考图像子集(104)。FIG6 is a flowchart illustrating an example operation of constructing a reference picture list. For illustrative purposes only, the method of FIG6 may be performed by a video coder corresponding to video encoder 20 or video decoder 30. Similar to FIG5 , the video coder may decode information indicating a reference picture (102) and construct a plurality of reference picture subsets (104).
视频译码器可然后将来自参考图像子集的参考图像添加到初始参考图像列表中,以构造初始参考图像列表(106)。在一些实例中,视频编码器20与视频解码器30两者可构造初始参考图像列表。举例来说,视频编码器20可构造初始参考图像列表以建立用于存储在DPB 64中的经重构造的视频块。视频解码器30可作为其解码过程的部分构造初始参考图像列表,且可实施默认构造技术,在默认构造技术中,视频解码器30不需要从视频编码器20接收关于借以构造初始参考图像列表的方式的信息。The video coder may then add the reference pictures from the reference picture subset to the initial reference picture list to construct the initial reference picture list (106). In some examples, both video encoder 20 and video decoder 30 may construct the initial reference picture list. For example, video encoder 20 may construct the initial reference picture list to create a reconstructed video block for storage in DPB 64. Video decoder 30 may construct the initial reference picture list as part of its decoding process and may implement a default construction technique in which video decoder 30 does not need to receive information from video encoder 20 regarding the manner in which the initial reference picture list was constructed.
在一些实例中,为了构造初始参考图像列表,视频译码器可将来自所述多个参考图像子集中的第一子集的参考图像添加到初始参考图像列表中,后接续将来自第二子集的参考图像添加到初始参考图像列表中,且然后接续将来自第三子集的参考图像添加到初始参考图像列表中。只要初始参考图像列表中所列出的参考图像的总数目不大于初始参考图像列表中的可允许条目的最大数目,视频译码器便可添加来自这些参考图像子集的参考图像。举例来说,如果在于参考图像列表中添加参考图像期间的任何时间,初始参考图像列表中的条目的数目变成等于可允许初始参考列表条目的最大数目,那么视频译码器可停止在初始参考图像列表中添加任何额外图像。In some examples, to construct an initial reference picture list, the video coder may add reference pictures from a first subset of the plurality of reference picture subsets to the initial reference picture list, followed by adding reference pictures from a second subset to the initial reference picture list, and then subsequently adding reference pictures from a third subset to the initial reference picture list. The video coder may add reference pictures from these reference picture subsets as long as the total number of reference pictures listed in the initial reference picture list is not greater than the maximum number of allowable entries in the initial reference picture list. For example, if at any time while adding reference pictures to the reference picture list, the number of entries in the initial reference picture list becomes equal to the maximum number of allowable initial reference list entries, the video coder may stop adding any additional pictures to the initial reference picture list.
视频译码器可类似地构造另一初始参考图像列表,例如在当前图像的视频块经双向预测的实例中。在此实例中,为了构造此另一初始参考图像列表,只要此另一初始参考图像列表中的条目的总数目不大于条目的可允许数目,视频译码器便可将来自第二子集的参考图像添加到所述另一初始参考图像列表中,后接续将来自第一子集的参考图像添加到所述另一初始参考图像列表中,且然后接续将来自第三子集的参考图像添加到所述另一初始参考图像列表中。在这些实例中,第一子集可为RefPicSetStCurr0参考图像子集,第二子集可为RefPicSetStCurr1参考图像子集,且第三子集可为RefPicSetLtCurr参考图像子集。The video coder may similarly construct another initial reference picture list, such as in an example where the video block of the current picture is bidirectionally predicted. In this example, to construct this another initial reference picture list, the video coder may add reference pictures from the second subset to the another initial reference picture list, followed by adding reference pictures from the first subset to the another initial reference picture list, and then subsequently adding reference pictures from the third subset to the another initial reference picture list, as long as the total number of entries in the another initial reference picture list is not greater than the allowable number of entries. In these examples, the first subset may be the RefPicSetStCurr0 reference picture subset, the second subset may be the RefPicSetStCurr1 reference picture subset, and the third subset may be the RefPicSetLtCurr reference picture subset.
在一些实例中,为了添加在RefPicSetStCurr0、RefPicSetStCurr1和RefPicSetLtCurr参考图像子集中识别的参考图像,视频译码器可译码(例如,编码或解码)语法元素,视频译码器可根据所述语法元素确定这些参考图像子集中的每一者中的参考图像的数目。举例来说,视频译码器可译码num_short_term_curr0语法元素和num_short_term_curr1语法元素。num_short_term_curr0语法元素和num_short_term_curr1语法元素可分别指示在RefPicSetStCurr0参考图像子集和RefPicSetStCurr1参考图像子集中识别的参考图像的数目。In some examples, to add reference pictures identified in the RefPicSetStCurr0, RefPicSetStCurr1, and RefPicSetLtCurr reference picture subsets, a video coder may code (e.g., encode or decode) syntax elements from which the video coder may determine the number of reference pictures in each of these reference picture subsets. For example, the video coder may code the num_short_term_curr0 syntax element and the num_short_term_curr1 syntax element. The num_short_term_curr0 syntax element and the num_short_term_curr1 syntax element may indicate the number of reference pictures identified in the RefPicSetStCurr0 reference picture subset and the RefPicSetStCurr1 reference picture subset, respectively.
视频译码器还可译码num_long_term_pps_curr语法元素和num_long_term_add_curr语法元素。num_long_term_pps_curr语法元素可指示识别包含在图像参数集(PPS)中的长期参考图像的数目,且num_long_term_add_curr语法元素可指示识别信息不包含在PPS中的长期参考图像的数目。在此实例中,这些长期参考图像可潜在地用于对当前图像进行帧间预测且可潜在地用于对在解码次序上在当前图像之后的一个或一个以上图像进行帧间预测。The video coder may also decode the num_long_term_pps_curr syntax element and the num_long_term_add_curr syntax element. The num_long_term_pps_curr syntax element may indicate the number of long-term reference pictures identified in a picture parameter set (PPS), and the num_long_term_add_curr syntax element may indicate the number of long-term reference pictures whose identification information is not included in the PPS. In this example, these long-term reference pictures may potentially be used for inter-prediction of the current picture and may potentially be used for inter-prediction of one or more pictures that follow the current picture in decoding order.
视频译码器可基于num_long_term_pps_curr语法元素和num_long_term_add_curr语法元素而确定RefPicSetLtCurr参考图像子集中的参考图像的数目。举例来说,视频译码器可将num_long_term_pps_curr语法元素和num_long_term_add_curr语法元素的值加总,以确定RefPicSetLtCurr参考图像子集中的参考图像的数目。The video coder may determine the number of reference pictures in the RefPicSetLtCurr reference picture subset based on the num_long_term_pps_curr syntax element and the num_long_term_add_curr syntax element. For example, the video coder may sum the values of the num_long_term_pps_curr syntax element and the num_long_term_add_curr syntax element to determine the number of reference pictures in the RefPicSetLtCurr reference picture subset.
视频译码器可基于一个或一个以上参考图像列表而译码当前图像(108)。举例来说,视频译码器可基于所导出的参考图像集而构造第一参考图像列表和第二参考图像列表中的至少一者。视频译码器可然后基于第一参考图像列表和第二参考图像列表中的至少一者而译码当前图像。The video coder may code the current picture based on one or more reference picture lists (108). For example, the video coder may construct at least one of a first reference picture list and a second reference picture list based on the derived reference picture set. The video coder may then code the current picture based on at least one of the first reference picture list and the second reference picture list.
图7为说明构造参考图像列表的另一实例操作的流程图。仅为了说明的目的,图7的方法可由对应于视频编码器20或视频解码器30的视频译码器来执行。类似于图5,视频译码器可译码指示参考图像的信息(110),且构造多个参考图像子集(112)。视频译码器可将参考图像添加到参考图像列表的第一条目集合中(114)。举例来说,参考图像列表中的条目的数目可等于可允许条目的最大数目,如通过num_ref_idx_l0_active_minus1或num_ref_idx_l1_active_minus1语法元素所定义。FIG7 is a flowchart illustrating another example operation of constructing a reference picture list. For purposes of illustration only, the method of FIG7 may be performed by a video coder corresponding to video encoder 20 or video decoder 30. Similar to FIG5 , the video coder may decode information indicating a reference picture (110) and construct a plurality of reference picture subsets (112). The video coder may add the reference picture to a first set of entries in the reference picture list (114). For example, the number of entries in the reference picture list may be equal to the maximum number of allowable entries, as defined by the num_ref_idx_l0_active_minus1 or num_ref_idx_l1_active_minus1 syntax elements.
在此实例中,视频译码器可将在RefPicSetStCurr0、RefPicSetStCurr1和RefPicSetLtCurr参考图像子集中识别的参考图像列入(例如,添加)到第一条目集合中。举例来说,对于列表0,视频译码器可按次序将在RefPicSetStCurr0、RefPicSetStCurr1和RefPicSetLtCurr参考图像子集中识别的参考图像添加到列表0的第一条目集合中。对于列表1,视频译码器可按次序将在RefPicSetStCurr1、RefPicSetStCurr0和RefPicSetLtCurr参考图像子集中识别的参考图像添加到列表1的第一条目集合中。In this example, the video coder may list (e.g., add) the reference pictures identified in the RefPicSetStCurr0, RefPicSetStCurr1, and RefPicSetLtCurr reference picture subsets into a first set of entries. For example, for List 0, the video coder may add the reference pictures identified in the RefPicSetStCurr0, RefPicSetStCurr1, and RefPicSetLtCurr reference picture subsets, in order, to a first set of entries for List 0. For List 1, the video coder may add the reference pictures identified in the RefPicSetStCurr1, RefPicSetStCurr0, and RefPicSetLtCurr reference picture subsets, in order, to a first set of entries for List 1.
视频译码器可然后确定参考图像列表中的条目的数目是否等于参考图像列表中的可允许条目的最大数目(116)。如果参考图像列表中的条目的数目不小于可允许条目的最大数目(116的“否”),那么视频译码器可基于参考图像列表而译码当前图像(118)。The video coder may then determine whether the number of entries in the reference picture list is equal to the maximum number of allowable entries in the reference picture list (116). If the number of entries in the reference picture list is not less than the maximum number of allowable entries ("No" of 116), the video coder may code the current picture based on the reference picture list (118).
否则,如果参考图像列表中的条目的数目小于可允许条目的最大数目(116的“是”),那么视频译码器可将来自参考图像子集中的至少一者的一个或一个以上参考图像重新列入(例如,重新识别或重新添加)到参考图像列表中在第一条目集合之后的条目中(120)。举例来说,视频译码器可将在RefPicSetStCurr0参考图像子集中识别的一个或一个以上参考图像添加到列表0中在列表0中的第一条目集合之后的条目中,或将在RefPicSetStCurr1参考图像子集中识别的一个或一个以上参考图像添加到列表1中在列表1中的第一条目集合之后的条目中。以此方式,视频译码器可识别在参考图像列表中的一个以上条目中的第一参考图像子集中的至少一个参考图像。Otherwise, if the number of entries in the reference picture list is less than the maximum number of allowable entries ("YES" of 116), the video coder may relist (e.g., reidentify or re-add) one or more reference pictures from at least one of the reference picture subsets to entries in the reference picture list that follow the first set of entries (120). For example, the video coder may add one or more reference pictures identified in the RefPicSetStCurr0 reference picture subset to entries in List0 that follow the first set of entries in List0, or add one or more reference pictures identified in the RefPicSetStCurr1 reference picture subset to entries in List1 that follow the first set of entries in List1. In this manner, the video coder may identify at least one reference picture in the first reference picture subset in one or more entries in the reference picture list.
视频译码器可然后确定参考图像列表中的条目的数目是否等于参考图像列表中的可允许条目的最大数目(122)。如果参考图像列表中的条目的数目不小于可允许条目的最大数目(122的“否”),那么视频译码器可基于参考图像列表而译码当前图像(124)。The video coder may then determine whether the number of entries in the reference picture list is equal to the maximum number of allowable entries in the reference picture list (122). If the number of entries in the reference picture list is not less than the maximum number of allowable entries ("No" of 122), the video coder may code the current picture based on the reference picture list (124).
否则,如果参考图像列表中的条目的数目小于可允许条目的最大数目(122的“是”),那么视频译码器可将来自参考图像子集中的至少一者的一个或一个以上参考图像重新列入(例如,重新识别或重新添加)到参考图像列表中在第一条目集合之后的条目中(120)。举例来说,在此情形下,视频译码器可重新添加在第一参考图像子集中识别的额外参考图像。如果视频译码器已经重新添加第一参考图像子集中的所有参考图像,那么视频译码器可重新添加来自第二参考图像子集(例如,用于列表0的RefPicSetStCurr0参考图像子集,或用于列表1的RefPicSetStCurr1参考图像子集)的一个或一个以上参考图像。可重复此过程,直到参考图像列表中的条目的数目不小于可允许条目的最大数目(122的“否”)为止。Otherwise, if the number of entries in the reference picture list is less than the maximum number of allowable entries ("YES" of 122), the video coder may re-list (e.g., re-identify or re-add) one or more reference pictures from at least one of the reference picture subsets to the entries in the reference picture list that follow the first set of entries (120). For example, in this case, the video coder may re-add the additional reference pictures identified in the first reference picture subset. If the video coder has re-added all reference pictures in the first reference picture subset, the video coder may re-add one or more reference pictures from the second reference picture subset (e.g., the RefPicSetStCurr0 reference picture subset for List 0 or the RefPicSetStCurr1 reference picture subset for List 1). This process may be repeated until the number of entries in the reference picture list is no less than the maximum number of allowable entries ("NO" of 122).
以此方式,当参考图像列表中的条目的数目不等于参考图像列表中的可允许条目的最大数目时,视频译码器可重复地将来自参考图像子集中的至少一者的一个或一个以上参考图像重新列入(例如,重新识别或重新添加)到参考图像列表中在第一条目集合之后的条目中,直到参考图像列表中的条目的数目等于参考图像列表中的可允许条目的最大数目为止。此情形可导致视频译码器在参考图像列表的条目中列出参考图像,以使得参考图像列表的每一条目识别所述参考图像中的一者,且使得参考图像列表中的至少两个条目识别所述参考图像中的一相同参考图像。In this manner, when the number of entries in the reference picture list is not equal to the maximum number of allowable entries in the reference picture list, the video coder may repeatedly re-list (e.g., re-identify or re-add) one or more reference pictures from at least one of the reference picture subsets to entries following the first set of entries in the reference picture list until the number of entries in the reference picture list is equal to the maximum number of allowable entries in the reference picture list. This may result in the video coder listing the reference pictures in the entries of the reference picture list such that each entry of the reference picture list identifies one of the reference pictures and such that at least two entries in the reference picture list identify the same reference picture of the reference pictures.
图8为说明修改初始参考图像列表的实例操作的流程图。仅为了说明的目的,图8的方法可由对应于视频编码器20或视频解码器30的视频译码器来执行。类似于图6,视频译码器可译码指示参考图像的信息(126),且构造多个参考图像子集(128)。所述多个参考图像子集可包含RefPicSetStCurr0、RefPicSetStCurr1和RefPicSetLtCurr参考图像子集。视频译码器可以上文所描述的方式基于RefPicSetStCurr0、RefPicSetStCurr1和RefPicSetLtCurr参考图像子集而构造初始参考图像列表(130)。FIG8 is a flowchart illustrating an example operation of modifying an initial reference picture list. For purposes of illustration only, the method of FIG8 may be performed by a video coder corresponding to video encoder 20 or video decoder 30. Similar to FIG6 , the video coder may decode information indicating a reference picture (126) and construct a plurality of reference picture subsets (128). The plurality of reference picture subsets may include RefPicSetStCurr0, RefPicSetStCurr1, and RefPicSetLtCurr reference picture subsets. The video coder may construct an initial reference picture list (130) based on the RefPicSetStCurr0, RefPicSetStCurr1, and RefPicSetLtCurr reference picture subsets in the manner described above.
视频译码器可确定是否需要参考图像列表修改(132)。举例来说,视频译码器可译码语法元素,例如,指示是否需要修改初始列表0或初始列表1的ref_pic_list_modification_flag_l0及ref_pic_list_modification_flag_l1。如果不需要初始参考图像列表的修改(132的“否”),那么视频译码器可基于初始参考图像列表而译码当前图像(134)。The video coder may determine whether reference picture list modification is required (132). For example, the video coder may code syntax elements such as ref_pic_list_modification_flag_l0 and ref_pic_list_modification_flag_l1 that indicate whether initial list 0 or initial list 1 needs to be modified. If modification of the initial reference picture list is not required ("No" of 132), the video coder may code the current picture based on the initial reference picture list (134).
如果需要修改(132的“是”),那么视频译码器可识别所构造的参考图像子集中的至少一者中的参考图像(136)。举例来说,视频译码器可译码modification_of_ref_pic_idc语法元素。modification_of_ref_pic_idc语法元素的值可指示视频译码器将利用哪个参考图像子集来识别参考图像。视频译码器还可译码ref_pic_set_idx语法元素,所述ref_pic_set_idx语法元素指示到视频译码器将用以识别参考图像的参考图像子集中的索引。If modification is required ("YES" of 132), the video coder may identify a reference picture in at least one of the constructed reference picture subsets (136). For example, the video coder may code a modification_of_ref_pic_idc syntax element. The value of the modification_of_ref_pic_idc syntax element may indicate which reference picture subset the video coder will utilize to identify the reference picture. The video coder may also code a ref_pic_set_idx syntax element that indicates an index into the reference picture subset that the video coder will use to identify the reference picture.
视频译码器可在初始参考图像列表中在当前条目处列出(例如,添加或识别)所识别的参考图像以构造修改的参考图像列表(138)。当前条目最初可为初始参考图像列表中通过索引0定义的条目。对于经译码位流中的modification_of_ref_pic_idc语法元素的每一实例(其中modification_of_ref_pic_idc语法元素的值并不是3),视频译码器可将初始条目的值递增一(例如,通过索引1来定义条目的下一值)。视频译码器可基于修改的参考图像列表而译码当前图像(140)。The video coder may list (e.g., add or identify) the identified reference picture at the current entry in the initial reference picture list to construct a modified reference picture list (138). The current entry may initially be the entry defined by index 0 in the initial reference picture list. For each instance of the modification_of_ref_pic_idc syntax element in the coded bitstream (where the value of the modification_of_ref_pic_idc syntax element is not 3), the video coder may increment the value of the initial entry by one (e.g., define the next value of the entry by index 1). The video coder may code the current picture based on the modified reference picture list (140).
图9为说明已解码图像去除的实例操作的流程图。仅为了说明的目的,图8的方法可由对应于视频编码器20或视频解码器30的视频译码器来执行。类似于图5,视频译码器(例如,视频编码器20或视频解码器30)可译码(例如,编码或解码)指示参考图像集的参考图像的信息(142),且可从经译码(例如,经编码或经解码)信息导出参考图像集(144)。FIG9 is a flowchart illustrating an example operation of decoded picture removal. For purposes of illustration only, the method of FIG8 may be performed by a video coder corresponding to video encoder 20 or video decoder 30. Similar to FIG5 , a video coder (e.g., video encoder 20 or video decoder 30) may code (e.g., encode or decode) information indicating reference pictures of a reference picture set (142) and may derive the reference picture set from the coded (e.g., encoded or decoded) information (144).
视频译码器可确定存储在已解码图像缓冲器(DPB)中的已解码图像是否不需要输出(即,已经输出或并不希望输出)及是否在参考图像集中未加以识别(146)。如果已解码图像需要输出或在参考图像集中加以识别(146的“否”),那么视频译码器可能不将已解码图像从DPB中去除,且可保持已解码图像存储在DPB中(148)。The video coder may determine whether a decoded picture stored in a decoded picture buffer (DPB) does not need to be output (i.e., has already been output or is not desired to be output) and is not identified in a reference picture set (146). If the decoded picture needs to be output or is identified in a reference picture set ("No" of 146), the video coder may not remove the decoded picture from the DPB and may keep the decoded picture stored in the DPB (148).
当已解码图像已经输出且在参考图像集中未加以识别时(146的“是”),视频译码器可将已解码图像从DPB中去除(150)。在去除已解码图像之后,视频译码器可然后译码当前图像(152)。When the decoded picture has been output and is not identified in the reference picture set ("YES" of 146), the video coder may remove the decoded picture from the DPB (150). After removing the decoded picture, the video coder may then decode the current picture (152).
如上文所描述,视频译码器可基于用于译码当前图像的参考图像集而构造参考图像列表。在一些实例中,视频译码器可在构造参考图像列表之后将已解码图像从DPB中去除。此外,对于经输出的已解码图像,视频译码器可确定输出已解码图像的时间,且可基于所确定的时间且在译码当前图像之前输出已解码图像。As described above, the video coder may construct a reference picture list based on the reference picture set used to code the current picture. In some examples, the video coder may remove the decoded picture from the DPB after constructing the reference picture list. Furthermore, for the decoded picture that is output, the video coder may determine a time to output the decoded picture and may output the decoded picture based on the determined time and before coding the current picture.
在一些实例中,视频译码器可将经译码(例如,已解码)图像存储在DPB中。在一些实例中,视频译码器可确定在存储之前DPB已满。在这些实例中,视频译码器可选择满足以下情形的已解码图像:当前存储在DPB中,标记为“需要输出”且具有存储在DPB中的所有已解码图像的最小图像序列号(POC)值。视频译码器可然后输出所选定图像。此外,视频译码器可确定经输出图像不包含在当前图像的参考图像集中。在此情况下,视频译码器可将DPB内存储经输出图像的缓冲器清空,且可将经译码图像存储在DPB内的所述缓冲器中。In some examples, the video coder may store a coded (e.g., decoded) picture in the DPB. In some examples, the video coder may determine that the DPB is full before storing. In these examples, the video coder may select a decoded picture that satisfies the following conditions: is currently stored in the DPB, is marked as "need to be output," and has the smallest picture sequence number (POC) value of all decoded pictures stored in the DPB. The video coder may then output the selected picture. In addition, the video coder may determine that the output picture is not included in the reference picture set of the current picture. In this case, the video coder may clear the buffer within the DPB that stores the output picture and may store the coded picture in the buffer within the DPB.
图10为说明确定哪些长期参考图像属于当前图像的参考图像集的实例操作的流程图。仅为了说明的目的,图10的方法可由对应于视频编码器20或视频解码器30的视频译码器来执行。10 is a flowchart illustrating an example operation of determining which long-term reference pictures belong to the reference picture set of the current picture. For purposes of illustration only, the method of FIG. 10 may be performed by a video coder corresponding to video encoder 20 or video decoder 30.
视频译码器(例如,视频编码器20或视频解码器30)可译码指示在参数集中识别的候选长期参考图像的语法元素(154)。在一些实例中,所述候选长期参考图像中的一者或一者以上属于当前图像的一参考图像集。根据本发明中所描述的技术,参数集可为序列参数集或图像参数集。在一些实例中,为了译码指示候选长期参考图像的语法元素,视频译码器可在参数集中译码用于候选长期参考图像的POC值列表,且在当前图像的切片标头中译码到列表的索引值。A video coder (e.g., video encoder 20 or video decoder 30) may code a syntax element indicating candidate long-term reference pictures identified in a parameter set (154). In some examples, one or more of the candidate long-term reference pictures belong to a reference picture set for a current picture. According to the techniques described in this disclosure, the parameter set may be a sequence parameter set or a picture parameter set. In some examples, to code the syntax element indicating the candidate long-term reference pictures, the video coder may code a list of POC values for the candidate long-term reference pictures in the parameter set and an index value to the list in a slice header of the current picture.
视频译码器可译码指示在参数集中识别的哪些候选长期参考图像属于当前图像的参考图像集的语法元素(156)。举例来说,视频译码器可在当前图像的切片标头中译码指示哪些候选长期参考图像属于参考图像集的语法元素。The video coder may code a syntax element indicating which candidate long-term reference pictures identified in the parameter set belong to the reference picture set of the current picture (156). For example, the video coder may code the syntax element indicating which candidate long-term reference pictures belong to the reference picture set in a slice header of the current picture.
在一些实例中,并不是属于参考图像集的所有长期参考图像包含在候选长期参考图像中。在这些实例中,视频译码器可进一步译码指示属于参考图像集的长期参考图像的语法元素(158)。视频译码器可然后基于关于哪些候选长期参考图像属于当前图像的参考图像集的指示而构造多个参考图像子集中的至少一者(160)。In some examples, not all long-term reference pictures belonging to the reference picture set are included in the candidate long-term reference pictures. In these examples, the video coder may further code syntax elements indicating the long-term reference pictures belonging to the reference picture set (158). The video coder may then construct at least one of a plurality of reference picture subsets based on the indication of which candidate long-term reference pictures belong to the reference picture set for the current picture (160).
在上述实例中,描述各种实例以及所述实例的可能的替代例。下文描述所述实例的一些额外替代例,所述额外替代例可被视为上文所描述的实例中的一者或一者以上的替代实例。此外,这些替代实例可结合上文所描述的实例使用,或与上文所描述的实例分开使用。In the above examples, various examples and possible alternatives to the examples are described. Below, some additional alternatives to the examples are described, which can be considered as alternatives to one or more of the examples described above. Furthermore, these alternatives can be used in conjunction with the examples described above, or separately from them.
举例来说,上文已经描述的实例为参考图像集概念的替代实例、在参数集中用信号发出参考图像集的替代实例、参考图像集的子集的替代实例,以及参考图像标记的替代实例。下文提供额外替代实例。For example, the examples described above are alternatives to the concept of reference picture sets, alternatives to signaling reference picture sets in parameter sets, alternatives to subsets of reference picture sets, and alternatives to reference picture labeling. Additional alternatives are provided below.
举例来说,对于NAL单元标头,在上述实例中,NAL单元标头语法可包含nal_ref_idc、temporal_id和output_flag语法元素。在一个替代实例中,用nal_ref_flag(1位)替换nal_ref_idc(2位)。在此实例中,等于1的nal_ref_flag具有语义为nal_ref_idc大于0,且等于0的nal_ref_flag具有与nal_ref_idc等于0相同的语义。在一个替代实例中,去除nal_ref_idc(2位)。可将参考图像的定义改变为:含有可用于在解码次序上的后续图像的解码过程中进行帧间预测的样本的图像。在一个替代实例中,temporal_id不存在于NAL单元标头语法中,且导出:所述值对于所有图像相同。在一个替代实例中,output_flag不存在于NAL单元标头语法中,且导出:所述值对于所有图像等于1。For example, for the NAL unit header, in the above example, the NAL unit header syntax may include nal_ref_idc, temporal_id, and output_flag syntax elements. In an alternative example, nal_ref_idc (2 bits) is replaced with nal_ref_flag (1 bit). In this example, nal_ref_flag equal to 1 has the semantics of nal_ref_idc being greater than 0, and nal_ref_flag equal to 0 has the same semantics as nal_ref_idc being equal to 0. In an alternative example, nal_ref_idc (2 bits) is removed. The definition of a reference picture may be changed to one containing samples that can be used for inter-frame prediction during the decoding of subsequent pictures in decoding order. In an alternative example, temporal_id is not present in the NAL unit header syntax, and it is derived that its value is the same for all pictures. In an alternative example, output_flag is not present in the NAL unit header syntax, and it is derived that its value is equal to 1 for all pictures.
对于图像序列号发信号及计算,上述技术可能使用可类似于AVC中的图像序列号类型0的图像序列号的发信号及计算的一种方式。可应用分别与AVC中的图像序列号类型1和2相同的用于图像序列号的发信号及计算的两种替代方式。还可应用三种方式中的两者的任何组合,或所有三种方式的组合。For picture sequence number signaling and calculation, the above-described techniques may use a method that may be similar to the signaling and calculation of picture sequence numbers for picture sequence number type 0 in AVC. Two alternative methods for signaling and calculation of picture sequence numbers, which are the same as those for picture sequence number types 1 and 2 in AVC, respectively, may be used. Any combination of two of the three methods, or a combination of all three methods, may also be used.
对于图像识别,上述技术可利用图像序列号(POC)值用于图像识别。在一个替代实例中,将时间参考(TR)用作图像识别。定义TR的一种方式为:当POC受限制以使得任何两个图像之间的POC差与呈现时间或取样时间差成比例时,TR与POC相同。在一个替代实例中,可将指示解码次序的frame_num(而POC指示输出或显示次序)或从frame_num导出的可为32-位无符号整数值中的任一值的变量(例如,命名为UnWrappedFrameNum)用作图像识别。基本上,UnWrappedFrameNum可为frame_num的展开版本。举例来说,如果通过8位来表示frame_num,那么frame_num的最大值为255。用于frame_num的在255之后的下一值为0。UnWrappedFrameNum的值在frame_num绕回到0的位置处继续增加。For image identification, the above-described techniques can utilize a picture sequence number (POC) value for image identification. In an alternative example, a temporal reference (TR) is used for image identification. One way to define TR is that when the POC is constrained so that the POC difference between any two images is proportional to the presentation time or sampling time difference, the TR is the same as the POC. In an alternative example, frame_num, which indicates the decoding order (whereas the POC indicates the output or display order), or a variable derived from frame_num (e.g., named UnWrappedFrameNum), which can be any of a 32-bit unsigned integer value, can be used for image identification. Essentially, UnWrappedFrameNum can be an expanded version of frame_num. For example, if frame_num is represented using 8 bits, the maximum value of frame_num is 255. The next value for frame_num after 255 is 0. The value of UnWrappedFrameNum continues to increase after frame_num wraps around to 0.
对于在参数集中用信号发出长期参考图像,在上述实例中,视频编码器20可在图像参数集中用信号发出绝对长期参考图像识别信息的列表,可用信号发出关于以位为单位的绝对长期参考图像识别信息的长度的信息,且可在切片标头中参考到列表的索引,从而减少发信号耗用。在一个替代实例中,可在序列参数集中用信号发出差分长期参考图像识别信息的列表,且可在切片标头中参考到列表的索引,从而减少发信号耗用。在一个替代实例中,可用信号发出关于以位为单位的绝对长期参考图像识别信息的长度的信息,但可将长度视为常数(例如,32)。在各种实例中,应用上述实例中的任一者的组合。For signaling long-term reference pictures in parameter sets, in the above example, video encoder 20 may signal a list of absolute long-term reference picture identification information in a picture parameter set. Information regarding the length of the absolute long-term reference picture identification information in bits may be signaled, and the index to the list may be referenced in a slice header, thereby reducing signaling overhead. In an alternative example, a list of differential long-term reference picture identification information may be signaled in a sequence parameter set, and the index to the list may be referenced in a slice header, thereby reducing signaling overhead. In an alternative example, information regarding the length of the absolute long-term reference picture identification information in bits may be signaled, but the length may be considered a constant (e.g., 32). In various examples, combinations of any of the above examples apply.
对于短期参考图像的发信号,在上述实例中,对于经译码图像的参考图像集中的短期参考图像,或者在所参考的图像参数集中用信号发出所有短期参考图像,或者在切片标头中用信号发出所有短期参考图像。在一个替代实例中,对于经译码图像的参考图像集中的短期参考图像,在所参考的图像参数集中用信号发出一些短期参考图像,且在切片标头中用信号发出其它短期参考图像。Regarding the signaling of short-term reference pictures, in the above example, for the short-term reference pictures in the reference picture set of the coded picture, either all the short-term reference pictures are signaled in the referenced picture parameter set or all the short-term reference pictures are signaled in the slice header. In an alternative example, for the short-term reference pictures in the reference picture set of the coded picture, some short-term reference pictures are signaled in the referenced picture parameter set, and other short-term reference pictures are signaled in the slice header.
对于参考图像列表初始化,在一个替代实例中,在参考图像列表初始化过程中,首先可将短期参考图像添加到列表中,且其次,视情况,可将长期参考图像添加到列表中。在所述操作之后,如果参考图像列表(RefPicList0或RefPicList1)中的条目的数目仍小于num_ref_idx_lx_active_minus1+1的值(lx为l0或l1),那么可将剩余条目标记为“无参考图像”。在一个替代实例中,以下情形还可能为有可能的:如果在添加RefPicSetStCurr0和RefPicSetStCurr1中的条目及可能的长期参考图像之后,参考图像列表仍未完成,那么可添加RefPicSetStFoll0和/或RefPicSetStFoll1中的图像。在一个替代实例中,参考图像列表初始化过程可仅在参考图像列表中添加短期参考图像。在此情况下,可通过使用如在参考图像列表修改(RPLM)语法表中用信号发出的参考图像列表修改命令,仅将长期参考图像添加到参考图像列表。For reference picture list initialization, in an alternative example, short-term reference pictures may be added to the list first, and then, as appropriate, long-term reference pictures may be added to the list. After this operation, if the number of entries in the reference picture list (RefPicList0 or RefPicList1) is still less than the value of num_ref_idx_lx_active_minus1+1 (lx is 10 or 11), the remaining entries may be marked as "no reference picture." In an alternative example, the following scenario may also be possible: if the reference picture list is still incomplete after adding entries from RefPicSetStCurr0 and RefPicSetStCurr1, and possibly long-term reference pictures, pictures from RefPicSetStFoll0 and/or RefPicSetStFoll1 may be added. In an alternative example, the reference picture list initialization process may only add short-term reference pictures to the reference picture list. In this case, only long-term reference pictures may be added to the reference picture list using reference picture list modification commands, as signaled in the Reference Picture List Modification (RPLM) syntax table.
对于参考图像列表修改,在一个替代实例中,参考图像列表修改还可以差分方式用信号发出ref_pic_set_idx,其中先前索引用作当前索引的预测因数。在此实例中,不同modification_of_ref_pic_idc值可对应于不同索引类别(用于RefPicListx的RefPicSetStCurrx、用于RefPicList(1-x)的RefPicSetStCurrx,或RefPicSetLtCurr),所述索引类别中的每一者维持一不同预测因数。一旦刚好分析属于相同类别的语法元素,便可更新预测因数。在一个替代实例中,参考图像列表修改可基于图像编号差。在一个替代实例中,参考图像列表修改可基于POC值差。For reference picture list modifications, in an alternative example, reference picture list modifications can also be signaled differentially using ref_pic_set_idx, where the previous index is used as the predictor for the current index. In this example, different modification_of_ref_pic_idc values can correspond to different index categories (RefPicSetStCurrx for RefPicListx, RefPicSetStCurrx for RefPicList(1-x), or RefPicSetLtCurr), each of which maintains a different predictor. The predictor can be updated whenever syntax elements belonging to the same category are parsed. In an alternative example, reference picture list modifications can be based on picture number differences. In an alternative example, reference picture list modifications can be based on POC value differences.
对于已解码图像缓冲器(DPB)操作,在上述实例中,在解码当前图像之后且在分析解码次序上的下一经译码图像的切片标头之前,将当前已解码图像存储在DPB中。在一个替代实例中,在解码当前图像之后且在分析解码次序上的下一经译码图像的切片标头之前,将当前已解码图像存储在临时存储器中(并不是存储在DPB中)。在分析解码次序上的下一经译码图像的切片标头且构造所述图像的参考图像集之后,如果当前已解码图像仍需要供参考或用于输出,那么将当前已解码图像存储到DPB中。此刻,如果已解码图像既不需要供参考也不需要输出,那么可简单地舍弃已解码图像(从临时缓冲器)。Regarding decoded picture buffer (DPB) operations, in the example described above, after decoding the current picture and before analyzing the slice header of the next coded picture in decoding order, the current decoded picture is stored in the DPB. In an alternative example, after decoding the current picture and before analyzing the slice header of the next coded picture in decoding order, the current decoded picture is stored in temporary storage (not in the DPB). After analyzing the slice header of the next coded picture in decoding order and constructing the reference picture set for that picture, if the current decoded picture is still needed for reference or output, the current decoded picture is stored in the DPB. At this point, if the decoded picture is neither needed for reference nor output, the decoded picture can simply be discarded (from the temporary buffer).
而且,在上述实例中,将已解码图像从DPB中去除紧于分析当前图像的切片标头之后且在解码当前图像的任何切片之前发生。在一个替代实例中,已解码图像的标记(如果存在的话)及将已解码图像从DPB中去除发生在完全解码当前图像之后。Furthermore, in the above example, the removal of the decoded picture from the DPB occurs immediately after parsing the slice header of the current picture and before decoding any slices of the current picture. In an alternative example, the marking of the decoded picture (if any) and the removal of the decoded picture from the DPB occur after the current picture is completely decoded.
在上述实例中,针对所有已解码图像导出用于当前图像的参考图像集的子集RefPicSetStCurr0和RefPicSetStCurr1。然而,对于帧内图像,此情形可能并不是必要的。对于帧内图像参考图像集导出,在一个替代实例中,对于经帧内译码的非IDR图像(即,经译码图像的所有切片为I切片),不导出RefPicSetStCurr0和RefPicSetStCurr1,这是因为:甚至在RefPicSetStCurr0和RefPicSetStCurr1在导出之后还不为空的情况下,在经译码图像的解码中也不需要RefPicSetStCurr0和RefPicSetStCurr1。允许用于非IDR帧内图像的非空RefPicSetStCurr0或RefPicSetStCurr1可允许共享RefPicSetStCurr0和RefPicSetStCurr1可能均不为空的一个或一个以上经帧间译码图像的实例short_term_ref_pic_set()语法结构。In the above example, the subsets RefPicSetStCurr0 and RefPicSetStCurr1 of the reference picture set for the current picture are derived for all decoded pictures. However, this may not be necessary for intra pictures. In an alternative example for intra picture reference picture set derivation, RefPicSetStCurr0 and RefPicSetStCurr1 are not derived for intra-coded non-IDR pictures (i.e., all slices of the coded picture are I slices) because: even if RefPicSetStCurr0 and RefPicSetStCurr1 are not empty after derivation, RefPicSetStCurr0 and RefPicSetStCurr1 are not needed in the decoding of the coded picture. Allowing non-empty RefPicSetStCurr0 or RefPicSetStCurr1 for non-IDR intra pictures may allow sharing of an example short_term_ref_pic_set() syntax structure for one or more inter-coded pictures for which both RefPicSetStCurr0 and RefPicSetStCurr1 may be non-empty.
对于损失检测,用于检测参考图像的损失或较早检测当前图像是否可得到正确解码的以下不同方法可能为有可能的。在各种实例中,在导出参考图像集之后,视频解码器30(例如,解码器侧)可检查包含在RefPicSetStCurr0、RefPicSetStCurr1和RefPicSetLtCurr中的参考图像的存在。如果包含在RefPicSetStCurr0、RefPicSetStCurr1和RefPicSetLtCurr中的参考图像中的任一者不存在于DPB中,那么解码器侧可推断:参考图像已损失,且当前图像很可能将不会得到正确解码,且可采取一些行动以改善所述情形,例如,通过向编码器侧(例如,视频编码器20)通知所述图像损失,且编码器可重新传输所述损失的参考图像或仅使用已知在解码器侧正确用于帧间预测参考的那些参考图像编码下一(多个)图像。For loss detection, the following different methods for detecting the loss of a reference picture or detecting earlier whether the current picture can be correctly decoded may be possible. In various examples, after deriving the reference picture set, video decoder 30 (e.g., the decoder side) may check for the presence of reference pictures included in RefPicSetStCurr0, RefPicSetStCurr1, and RefPicSetLtCurr. If any of the reference pictures included in RefPicSetStCurr0, RefPicSetStCurr1, and RefPicSetLtCurr are not present in the DPB, the decoder side may infer that the reference picture has been lost and that the current picture will most likely not be correctly decoded, and may take some action to improve the situation, for example, by notifying the encoder side (e.g., video encoder 20) of the picture loss, and the encoder may retransmit the lost reference picture or encode the next picture(s) using only those reference pictures known to be correctly used for inter-frame prediction references at the decoder side.
在各种实例中,在导出参考图像集之后,解码器侧可检查包含在RefPicSetStFoll0、RefPicSetStFoll1和RefPicSetLtFoll中的参考图像的存在。如果包含在RefPicSetStFoll0、RefPicSetStFoll1和RefPicSetLtFoll中的参考图像中的任一者不存在于DPB中,那么解码器侧可推断:参考图像已损失,且除非采取一些行动,否则解码次序上的随后图像中的一些图像很可能将不会得到正确解码,且可采取一些行动以补救所述情形,例如,通过向编码器侧通知所述图像损失,且编码器可重新传输所述损失的参考图像或仅使用已知在解码器侧正确用于帧间预测参考的那些参考图像编码下一(多个)图像。In various examples, after deriving the reference picture set, the decoder side may check for the presence of reference pictures included in RefPicSetStFoll0, RefPicSetStFoll1, and RefPicSetLtFoll. If any of the reference pictures included in RefPicSetStFoll0, RefPicSetStFoll1, and RefPicSetLtFoll are not present in the DPB, the decoder side may infer that the reference picture has been lost and that some of the subsequent pictures in decoding order will likely not be decoded correctly unless some action is taken, and may take some action to remedy the situation, for example, by notifying the encoder side of the picture loss, and the encoder may retransmit the lost reference picture or encode the next picture(s) using only those reference pictures known to be correctly used for inter-prediction references at the decoder side.
对于编码器侧(例如,视频编码器20)参考图像集组成,通过上述实例,用于编码器侧的参考图像集组成的以下不同方法可能为有可能的。举例来说,在各种实例中,编码器组成参考图像集有关语法结构,以使得在于解码器侧对于当前图像导出参考图像集之后:(1)RefPicSetStCurr0包含且仅包含具有比当前图像早的输出次序且用于在当前图像的帧间预测中供参考的所有短期参考图像的识别信息,(2)RefPicSetStCurr1包含且仅包含具有比当前图像迟的输出次序且用于在当前图像的帧间预测中供参考的所有短期参考图像的识别信息,且(3)RefPicSetLtCurr包含且仅包含用于在当前图像的帧间预测中供参考的所有长期参考图像的识别信息。For encoder-side (e.g., video encoder 20) reference picture set composition, through the above examples, the following different methods for encoder-side reference picture set composition may be possible. For example, in various examples, the encoder composes reference picture set-related syntax structures such that after deriving the reference picture set for the current picture at the decoder side: (1) RefPicSetStCurr0 includes and only includes identification information of all short-term reference pictures that have an output order earlier than the current picture and are used for reference in inter-frame prediction of the current picture, (2) RefPicSetStCurr1 includes and only includes identification information of all short-term reference pictures that have an output order later than the current picture and are used for reference in inter-frame prediction of the current picture, and (3) RefPicSetLtCurr includes and only includes identification information of all long-term reference pictures that are used for reference in inter-frame prediction of the current picture.
在各种实例中,编码器(例如,视频编码器20)可组成参考图像集有关语法结构,以使得在于解码器侧对于当前图像导出参考图像集之后:(1)RefPicSetStCurr0包含且仅包含以下各者的识别信息:1)具有比当前图像早的输出次序且用于在当前图像的帧间预测中供参考的所有短期参考图像,以及2)具有比当前图像早的输出次序且不用于在当前图像的帧间预测中供参考的一个或一个以上短期参考图像,(2)RefPicSetStCurr1包含且仅包含以下各者的识别信息:1)具有比当前图像迟的输出次序且用于在当前图像的帧间预测中供参考的所有短期参考图像,以及2)具有比当前图像迟的输出次序且不用于在当前图像的帧间预测中供参考的一个或一个以上短期参考图像,且RefPicSetLtCurr包含且仅包含以下各者的识别信息:1)用于在当前图像的帧间预测中供参考的所有长期参考图像,以及2)不用于在当前图像的帧间预测中供参考的一个或一个以上长期参考图像。In various examples, an encoder (e.g., video encoder 20) may compose reference picture set-related syntax structures such that, after deriving a reference picture set for a current picture at the decoder side: (1) RefPicSetStCurr0 includes, and only includes, identification information of: 1) all short-term reference pictures that have an output order earlier than the current picture and are used for reference in inter-frame prediction of the current picture, and 2) one or more short-term reference pictures that have an output order earlier than the current picture and are not used for reference in inter-frame prediction of the current picture, (2) RefPicSetStCurr1 includes, and only includes, identification information of: 1) all short-term reference pictures that have an output order earlier than the current picture and are used for reference in inter-frame prediction of the current picture, and r1 includes and only includes identification information of the following: 1) all short-term reference pictures that have an output order later than the current picture and are used for reference in the inter-frame prediction of the current picture, and 2) one or more short-term reference pictures that have an output order later than the current picture and are not used for reference in the inter-frame prediction of the current picture, and RefPicSetLtCurr includes and only includes identification information of the following: 1) all long-term reference pictures used for reference in the inter-frame prediction of the current picture, and 2) one or more long-term reference pictures that are not used for reference in the inter-frame prediction of the current picture.
以此方式,上述个别技术或个别技术的任何组合(包含替代实例的任何组合)可提供与下文有关的技术。然而,下文列表是用于便于理解而提供且不应被视为限制性的。上述技术中的一者或一者以上可一起加以实施或单独加以实施。此外,上述技术为实例,且不应被视为限于那些特定实例技术。In this manner, any combination of the above-described individual techniques or individual techniques (including any combination of alternative examples) can provide techniques related to the following. However, the following list is provided for ease of understanding and should not be considered limiting. One or more of the above-described techniques can be implemented together or individually. Furthermore, the above-described techniques are examples and should not be considered limited to those specific example techniques.
限制参考图像集的temporal_id,使得DPB管理方法良好地适合于时间可调性,可减少发信号耗用,且可使得能够进行用于干净地提取的位流子集的简单位流提取过程。Limiting the temporal_id of the reference picture set makes the DPB management method well suited for temporal scalability, may reduce signaling overhead, and may enable a simple bitstream extraction process for cleanly extracted bitstream subsets.
在图像参数集中用信号发出的长期参考图像子集和索引可包含在切片标头中。此情形可提供长期图像的有效率发信号。The long-term reference picture subset and index signaled in the picture parameter set can be included in the slice header. This can provide efficient signaling of long-term pictures.
将参考图像集分成各种子集,包含用于当前图像的分离或用于解码次序上的随后图像的分离、用于具有比当前图像早或迟的输出次序的那些图像的分离。这些情形可提供用于参考列表初始化及参考图像列表修改的改善的效率和降低的复杂性。The reference picture set is divided into various subsets, including those for the current picture, for subsequent pictures in decoding order, or for pictures with an earlier or later output order than the current picture. These scenarios can provide improved efficiency and reduced complexity for reference list initialization and reference picture list modification.
短期图像识别发信号中的双差分译码可提供改善的效率。扩展且受限制的长期图像识别可提供改善的效率和灵活性。简化的参考图像列表初始化可去除对参考图像列表中的非完成条目的“无参考图像”标记的需要;然而,可能并不是在所有实例中需要此情形。Double differential decoding in short-term image recognition signaling can provide improved efficiency. Extended and restricted long-term image recognition can provide improved efficiency and flexibility. Simplified reference picture list initialization can remove the need for "no reference picture" marking of non-completed entries in the reference picture list; however, this may not be required in all instances.
用于已解码图像输出、插入到DPB中及从DPB中去除的简化过程。图像序列号(POC)可为负的。此情形可实现在POC无法为负的情况下可能不允许的一些重要的使用情况。关于图像是否为解码过程中不需要的参考图像的发信号可能并不是需要的,但所述情形仍可能有可能用信号发出。可能不再需要将参考图像标记为“不用于参考”。Simplified process for outputting, inserting, and removing decoded pictures from the DPB. Picture order codes (POCs) can be negative. This enables some important use cases that might not be allowed if the POC could not be negative. Signaling whether a picture is a reference picture that is not needed in the decoding process may not be necessary, but it may still be possible to signal such a situation. It may no longer be necessary to mark reference pictures as "unused for reference."
在一个或一个以上实例中,所描述的功能可在硬件、软件、固件或其任何结合中实施。如果在软件中实施,那么功能可作为一个或一个以上指令或代码而存储在计算机可读媒体上或经由计算机可读媒体而加以传输,且由基于硬件的处理单元来执行。计算机可读媒体可包含计算机可读存储媒体(其对应于例如数据存储媒体等有形媒体)或通信媒体,通信媒体包含(例如)根据通信协议促进计算机程序从一处传送到另一处的任何媒体。以此方式,计算机可读媒体一般可对应于(1)非暂时性的有形计算机可读存储媒体,或(2)例如信号或载波等通信媒体。数据存储媒体可为可由一个或一个以上计算机或一个或一个以上处理器存取以检索指令、代码和/或数据结构以用于实施本发明中所描述的技术的任何可用媒体。计算机程序产品可包含计算机可读媒体。In one or more examples, the functions described may be implemented in hardware, software, firmware, or any combination thereof. If implemented in software, the functions may be stored on or transmitted via a computer-readable medium as one or more instructions or codes and executed by a hardware-based processing unit. Computer-readable media may include computer-readable storage media (which corresponds to tangible media such as data storage media) or communication media, which includes, for example, any media that facilitates the transfer of a computer program from one place to another according to a communication protocol. In this manner, computer-readable media may generally correspond to (1) non-transitory, tangible computer-readable storage media, or (2) communication media such as signals or carrier waves. Data storage media may be any available media that can be accessed by one or more computers or one or more processors to retrieve instructions, codes, and/or data structures for implementing the techniques described in this disclosure. A computer program product may include computer-readable media.
作为实例而非限制,此类计算机可读存储媒体可包括RAM、ROM、EEPROM、CD-ROM或其它光盘存储装置、磁盘存储装置或其它磁性存储装置、快闪存储器,或可用以存储呈指令或数据结构的形式的所要程序代码且可由计算机存取的任何其它媒体。而且,任何连接可适当地称为计算机可读媒体。举例来说,如果使用同轴电缆、光缆、双绞线、数字订户线(DSL)或无线技术(例如,红外线、无线电和微波)从网站、服务器或其它远程源传输指令,那么同轴电缆、光缆、双绞线、DSL或无线技术(例如,红外线、无线电和微波)包含在媒体的定义中。然而,应理解,计算机可读存储媒体和数据存储媒体不包含连接、载波、信号或其它暂时性媒体,而是有关非暂时性有形存储媒体。如本文中所使用,磁盘和光盘包含压缩光盘(CD)、激光光盘、光学光盘、数字多功能光盘(DVD)、软磁盘和蓝光光盘,其中磁盘通常以磁性方式再生数据,而光盘通过激光以光学方式再生数据。以上各者的组合也应包含在计算机可读媒体的范围内。By way of example, and not limitation, such computer-readable storage media may include RAM, ROM, EEPROM, CD-ROM or other optical disk storage, magnetic disk storage or other magnetic storage, flash memory, or any other medium that can be used to store desired program code in the form of instructions or data structures and that can be accessed by a computer. Furthermore, any connection may be properly termed a computer-readable medium. For example, if instructions are transmitted from a website, server, or other remote source using a coaxial cable, fiber optic cable, twisted pair, digital subscriber line (DSL), or wireless technologies (e.g., infrared, radio, and microwave), then the coaxial cable, fiber optic cable, twisted pair, DSL, or wireless technologies (e.g., infrared, radio, and microwave) are included in the definition of medium. However, it should be understood that computer-readable storage media and data storage media do not include connections, carrier waves, signals, or other transitory media, but rather refer to non-transitory, tangible storage media. As used herein, disk and disc include compact disc (CD), laser disc, optical disc, digital versatile disc (DVD), floppy disk, and Blu-ray disc, where disks typically reproduce data magnetically, while discs reproduce data optically using lasers. Combinations of the above should also be included within the scope of computer-readable media.
可由例如一个或一个以上数字信号处理器(DSP)、通用微处理器、专用集成电路(ASIC)、现场可编程逻辑阵列(FPGA)或其它等效集成或离散逻辑电路等一个或一个以上处理器来执行指令。因此,如本文中所使用的术语“处理器”可指前述结构或适合于实施本文中所描述的技术的任何其它结构中的任一者。另外,在一些方面中,可将本文中所描述的功能性提供于经配置以用于编码及解码的专用硬件和/或软件模块内,或并入于组合式编码解码器中。而且,所述技术可完全实施于一个或一个以上电路或逻辑元件中。Instructions may be executed by one or more processors, such as one or more digital signal processors (DSPs), general-purpose microprocessors, application-specific integrated circuits (ASICs), field-programmable logic arrays (FPGAs), or other equivalent integrated or discrete logic circuits. Thus, the term "processor," as used herein, may refer to any of the aforementioned structures or any other structure suitable for implementing the techniques described herein. Additionally, in some aspects, the functionality described herein may be provided within dedicated hardware and/or software modules configured for encoding and decoding, or incorporated into a combined codec. Moreover, the techniques may be fully implemented in one or more circuits or logic elements.
本发明的技术可在广泛多种装置或设备中加以实施,所述装置或设备包含无线手机、集成电路(IC)或IC集合(例如,芯片组)。在本发明中描述各种组件、模块或单元以强调经配置以执行所揭示技术的装置的功能方面,但未必需要通过不同硬件单元来实现。而是,如上文所描述,可将各种单元组合于编码解码器硬件单元中,或通过互操作性硬件单元(包含如上文所描述的一个或一个以上处理器)的集合且结合合适软件和/或固件来提供所述单元。The techniques of this disclosure can be implemented in a wide variety of devices or apparatuses, including wireless handsets, integrated circuits (ICs), or sets of ICs (e.g., chipsets). Various components, modules, or units are described in this disclosure to emphasize functional aspects of devices configured to perform the disclosed techniques, but do not necessarily require implementation by different hardware units. Rather, as described above, the various units can be combined in a codec hardware unit, or provided by a collection of interoperable hardware units (including one or more processors as described above) in conjunction with appropriate software and/or firmware.
已描述各种实例。这些及其它实例在以下权利要求书的范围内。Various embodiments have been described. These and other embodiments are within the scope of the following claims.
Claims (20)
Applications Claiming Priority (8)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| US201161538787P | 2011-09-23 | 2011-09-23 | |
| US61/538,787 | 2011-09-23 | ||
| US201161539433P | 2011-09-26 | 2011-09-26 | |
| US61/539,433 | 2011-09-26 | ||
| US201161542034P | 2011-09-30 | 2011-09-30 | |
| US61/542,034 | 2011-09-30 | ||
| US13/622,931 US9338474B2 (en) | 2011-09-23 | 2012-09-19 | Reference picture list construction for video coding |
| US13/622,931 | 2012-09-19 |
Related Parent Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| HK14110685.3A Addition HK1197329B (en) | 2011-09-23 | 2012-09-20 | Reference picture list construction for video coding |
Related Child Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| HK14110685.3A Division HK1197329B (en) | 2011-09-23 | 2012-09-20 | Reference picture list construction for video coding |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| HK1243571A1 HK1243571A1 (en) | 2018-07-13 |
| HK1243571B true HK1243571B (en) | 2021-01-15 |
Family
ID=
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN107580229B (en) | Reference picture list construction for video coding | |
| HK1247761B (en) | Reference picture list construction for video coding | |
| HK1243571B (en) | Methods and devices for video coding | |
| HK1247013B (en) | Methods and devices for encoding video data | |
| HK1253675B (en) | Methods for decoding video data and video decoders | |
| HK1247486B (en) | Methods and devices for decoding video data | |
| HK1195426B (en) | Method and apparatus for decoding video data | |
| HK1247486A1 (en) | Methods and devices for decoding video data | |
| HK1194231B (en) | Video coding with subsets of a reference picture set | |
| HK1195185A (en) | Reference picture list construction for video coding | |
| HK1194231A (en) | Video coding with subsets of a reference picture set | |
| HK1195185B (en) | Reference picture list construction for video coding | |
| HK1195426A (en) | Method and apparatus for decoding video data |