CN108449602A - Method and apparatus for encoding coded block flag and decoding video bitstream - Google Patents
Method and apparatus for encoding coded block flag and decoding video bitstream Download PDFInfo
- Publication number
- CN108449602A CN108449602A CN201810299233.4A CN201810299233A CN108449602A CN 108449602 A CN108449602 A CN 108449602A CN 201810299233 A CN201810299233 A CN 201810299233A CN 108449602 A CN108449602 A CN 108449602A
- Authority
- CN
- China
- Prior art keywords
- block flag
- encoding block
- coding
- converter unit
- context
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 66
- 230000008569 process Effects 0.000 claims abstract description 17
- 230000015572 biosynthetic process Effects 0.000 claims abstract description 15
- 230000003044 adaptive effect Effects 0.000 claims abstract description 6
- 230000009466 transformation Effects 0.000 claims description 12
- 230000011664 signaling Effects 0.000 abstract description 25
- 241000023320 Luma <angiosperm> Species 0.000 description 28
- OSWPMRLSEDHDFF-UHFFFAOYSA-N methyl salicylate Chemical compound COC(=O)C1=CC=CC=C1O OSWPMRLSEDHDFF-UHFFFAOYSA-N 0.000 description 28
- 238000010586 diagram Methods 0.000 description 15
- 238000000638 solvent extraction Methods 0.000 description 3
- 230000006835 compression Effects 0.000 description 2
- 230000007246 mechanism Effects 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 230000005540 biological transmission Effects 0.000 description 1
- 238000007906 compression Methods 0.000 description 1
- 238000009795 derivation Methods 0.000 description 1
- 230000006870 function Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 238000012545 processing Methods 0.000 description 1
- 238000011160 research Methods 0.000 description 1
- 238000012360 testing method Methods 0.000 description 1
Landscapes
- Compression Or Coding Systems Of Tv Signals (AREA)
- Color Television Systems (AREA)
Abstract
Description
技术领域technical field
本发明有关于视频编码,且特别地,本发明有关于高效视频编码(High-Efficiency Video coding,HEVC)中与编码单元(coding unit,CU)和变换单元(transformunit,TU)相关的编码块旗标(coded block flag,cbf)语法(syntax)的编码方法与装置以及视频比特流的解码方法与装置。The present invention relates to video coding, and in particular, the present invention relates to coding block flags associated with coding units (CU) and transform units (TU) in High-Efficiency Video Coding (HEVC) A coding method and device for a coded block flag (cbf) syntax (syntax) and a decoding method and device for a video bit stream.
背景技术Background technique
HEVC是由来自ITU-T研究组的视频编码专家组成的视频编码联合组(JointCollaborative Team on Video Coding,以下简称JCT-VC)开发的一种先进的视频编码系统。在HEVC测试版本5.0(HM-5.0)中,帧间编码(inter-coded)和帧内编码(intra-coded)的残差是利用基于块的变换编码方式来编码。上述块(称为变换单元)是利用四叉树结构从根块(根变换单元)分割而来。上述四叉树分割可被递归地应用直到产生叶块(leaf block)或者最小块。之后,二维变换被应用至每一变换单元。每一变换单元(TU)可被分成四个子TU,即叶TU。对于每一TU来说,需要传送一个叫做cbf(编码块旗标)的语法元素以指示此TU是否具有非零变换系数,其中“1”表示存在至少一个非零变换系数,“0”则表示不存在非零变换系数。HEVC is an advanced video coding system developed by the Joint Collaborative Team on Video Coding (JCT-VC for short) composed of video coding experts from the ITU-T research group. In HEVC test version 5.0 (HM-5.0), inter-coded (inter-coded) and intra-coded (intra-coded) residuals are encoded using block-based transform coding. The above blocks (referred to as TUs) are partitioned from the root block (root TU) using a quadtree structure. The quadtree partitioning described above may be applied recursively until a leaf block or minimum block is produced. Afterwards, a 2D transformation is applied to each transformation unit. Each transform unit (TU) may be divided into four sub-TUs, ie, leaf-TUs. For each TU, a syntax element called cbf (coded block flag) needs to be transmitted to indicate whether the TU has non-zero transform coefficients, where "1" means that there is at least one non-zero transform coefficient, and "0" means There are no non-zero transform coefficients.
在HM-5.0中,对于亮度分量来说,cbf只会针对残差四叉树的叶TU发信(signaled)。而对于色度分量来说,cbf则针对根TU和叶TU都会发信,然而,cbf也仅在尺寸小于或者等于最大色度TU尺寸的TU中发信。图1至图3显示了cbf发信(signalling)的范例。在图1中,块110显示了TU的残差四叉树分割,其中利用四叉树分割,根TU被分割成子TU(TU0~TU 6)。块120显示对应的cbf位元,其中TU 1、TU 3、TU 5和TU 6具有非零变换系数,而TU0、TU 2和TU 4则不具有非零变换系数。若此TU为亮度TU,则cbf位元只针对叶TU发信。图2A是用于亮度TU的cbf发信(cbf编码)的范例,其中四组位元“0”、“1”、“0101”以及“1”分别对应于根TU 210的四个叶TU的cbf位元。上述cbf位元是按照循序扫描(raster-scan)顺序发信的,即按照左上TU、右上TU、左下TU、右下TU的顺序。对于左下叶TU来说,其进一步被分割成4个叶TU。在循序扫描顺序中,此叶TU的cbf位元为“0101”。相应地,图2A显示了cbf位元220的四个分组。图2B所示为用于色度TU的cbf发信范例,其中cbf位元会针对根TU和叶TU传送。根TU 230被分割成四个叶TU,且左下叶TU进一步被分割成四个叶TU。因此,对应于TU的三个层级会有三个层级的cbf位元。对于根TU(即,深度=0)来说,cbf位元“1”(由编号240表示)被发信。对于根TU的四个叶TU来说,按照循序扫描顺序,cbf位元分别为“0”、“1”、“1”和“1”(由编号250表示)。对于左下叶TU来说,其进一步被分割成四个叶TU,按照循序扫描顺序,上述四个叶TU分别对应于cbf位元“0”、“1”、“0”和“1”(由编号260表示)。如图2A和图2B所示,虽然亮度TU和色度TU使用相同的RQT(残差四叉树),但cbf的发信是不同的。图2B所示范例适用于根块尺寸小于或等于最大色度TU尺寸的状况。举例来说,假定最大色度TU尺寸为16×16且最小色度TU尺寸为4×4,则根TU 230的尺寸为16×16,每一左下叶TU中每一叶TU的尺寸为4×4。当色度叶TU的尺寸大于最大色度TU尺寸时,譬如32×32,则在32×32的层级不会进行cbf发信。In HM-5.0, for the luminance component, cbf will only signal the leaf TU of the residual quadtree. For the chroma component, cbf sends a signal to both the root TU and the leaf TU. However, the cbf only sends a signal in a TU whose size is smaller than or equal to the maximum chroma TU size. Figures 1 to 3 show examples of cbf signaling. In FIG. 1 , block 110 shows the residual quadtree partitioning of TUs, where the root TU is partitioned into sub-TUs (TU0-TU 6) using quadtree partitioning. Block 120 shows the corresponding cbf bits where TU 1 , TU 3 , TU 5 and TU 6 have non-zero transform coefficients, while TU0 , TU 2 and TU 4 do not have non-zero transform coefficients. If the TU is a luma TU, the cbf bit is only sent for the leaf TU. 2A is an example of cbf signaling (cbf encoding) for luma TUs, where four groups of bits "0", "1", "0101" and "1" correspond to the four leaf-TUs of the root TU 210, respectively. cbf bits. The above cbf bits are transmitted in the order of raster-scan, that is, in the order of upper left TU, upper right TU, lower left TU, and lower right TU. For the lower left leaf TU, it is further divided into 4 leaf TUs. In sequential scan order, the cbf bits of this leaf-TU are "0101". Accordingly, FIG. 2A shows four groupings of cbf bits 220 . Figure 2B shows an example of cbf signaling for chroma TUs, where cbf bits are transmitted for root TU and leaf TU. The root TU 230 is partitioned into four leaf-TUs, and the lower left leaf-TU is further partitioned into four leaf-TUs. Therefore, there are three levels of cbf bits corresponding to the three levels of the TU. For the root TU (ie, depth=0), the cbf bit "1" (represented by number 240) is signaled. For the four leaf-TUs of the root TU, the cbf bits are "0", "1", "1" and "1" (represented by number 250), respectively, in sequential scan order. For the lower left leaf TU, it is further divided into four leaf TUs. According to the sequential scanning order, the above four leaf TUs correspond to cbf bits "0", "1", "0" and "1" respectively (by number 260). As shown in FIG. 2A and FIG. 2B , although the luma TU and the chroma TU use the same RQT (residual quadtree), the signaling of cbf is different. The example shown in FIG. 2B is applicable to the case where the root block size is smaller than or equal to the maximum chroma TU size. For example, assuming the maximum chroma TU size is 16x16 and the minimum chroma TU size is 4x4, the root TU 230 is 16x16 in size, and each leaf TU in each lower left leaf TU is of size 4 ×4. When the size of the chroma leaf TU is larger than the maximum chroma TU size, for example, 32×32, cbf signaling will not be performed at the 32×32 level.
为了减少cbf位元的数量,可将一种推断方法应用与亮度与色度TU,此方法中,根TU的第四叶TU的cbf可利用其它TU的cbf推断出来。从而,无需对第四叶TU的cbf进行发信。In order to reduce the number of cbf bits, an inference method can be applied to luma and chroma TUs, in which the cbf of the fourth leaf TU of the root TU can be inferred using the cbf of other TUs. Therefore, there is no need to send a signal to the cbf of the fourth leaf TU.
对于亮度TU来说,第四叶TU的cbf可由先前的三个叶TU的cbf以及相关的根TU的cbf推断出来。图3中的块310显示了第四叶TU的cbf可被推断出来的范例。由粗线框312表示的左下TU被分割成四个叶TU,其中第四叶TU的cbf为1。由于TU 312被分割成四个叶TU,因此在四个叶TU中存在至少一个非零变换系数。当三个先前叶TU的cbf都是0时(按照循序扫描顺序),最后一个叶TU(即,第四叶TU)的cbf必然是1。因此,在此状况下,第四叶TU的cbf可被推断出来。为简便起见,叶TU的cbf也被称为叶cbf。For a luma TU, the cbf of the fourth leaf TU can be inferred from the cbf of the previous three leaf TUs and the cbf of the associated root TU. Block 310 in FIG. 3 shows an example of how the cbf of the fourth leaf-TU can be inferred. The lower left TU indicated by the thick line box 312 is divided into four leaf-TUs, where the cbf of the fourth leaf-TU is 1. Since the TU 312 is partitioned into four leaf-TUs, there is at least one non-zero transform coefficient in the four leaf-TUs. When the cbfs of the three previous leaf-TUs are all 0 (in sequential scan order), the cbf of the last leaf-TU (ie, the fourth leaf-TU) must be 1. Therefore, in this case, the cbf of the fourth leaf-TU can be inferred. For brevity, the cbf of a leaf-TU is also referred to as the leaf-cbf.
对于色度TU来说,则由于需要为所有残差四叉树层级进行cbf传送而有所不同。对于与每一根TU相关的四个叶TU来说,根TU的cbf会被传送。若TU(图3中的块312)的cbf为1,则四个叶TU中必然有至少一个非零叶TU。因此,若前三个叶TU的cbf都是0,则最后一个叶TU(圆圈所示)的cbf必然是1。在此状况下,最后一个cbf可被推断出来而无需被发信。进一步来说,色度分量的帧内和帧间编码TU皆可应用上述推断机制。For chroma TUs, it is different because cbf transmission needs to be done for all residual quadtree levels. For the four leaf-TUs associated with each root TU, the cbf of the root TU is transmitted. If the cbf of a TU (block 312 in FIG. 3 ) is 1, there must be at least one non-zero leaf-TU among the four leaf-TUs. Therefore, if the cbfs of the first three leaf-TUs are all 0, then the cbf of the last leaf-TU (indicated by the circle) must be 1. In this case, the last cbf can be deduced without being signaled. Furthermore, both the intra- and inter-coded TUs of the chroma components can apply the above inference mechanism.
在HEVC中,存在一个用于帧间编码CU的根残差旗标(root residual flag)。当残差旗标为假(false)时,则不需要发信Y、U、V分量的全部cbf。当残差旗标为真且当前CU的TU深度为0时,若色度cbf都为0时则可推断亮度cbf为1。因此,若U(块320)及V(块330)的cbf都是0,则亮度TU在深度为0时的cbf可被推断为1,如图3所示。In HEVC, there is a root residual flag for inter-coded CUs. When the residual flag is false, it is not necessary to send all the cbf of the Y, U, V components. When the residual flag is true and the TU depth of the current CU is 0, it can be inferred that the luma cbf is 1 if both the chroma cbf are 0. Therefore, if the cbf of U (block 320 ) and V (block 330 ) are both 0, the cbf of a luma TU at depth 0 can be inferred to be 1, as shown in FIG. 3 .
在HM-5.0中,色度分量及亮度分量的最大TU尺寸分别为16×16和32×32。然而,色度分量的最大CU尺寸为32×32。因此,其最大CU尺寸和最大TU不相同。进一步来说,在HM-5.0中,色度cbf仅针对尺寸小于或等于最大TU尺寸的TU发信。举例来说,当CU尺寸为64×64,即,色度CU尺寸为32×32,最大TU尺寸则对应于16×16。因此,四个根cbf将针对32×32CU中的四个16×16色度TU而传送。在此状况下,即使四个cbf都是0,cbf也会被传送,如图4所示,其中色度CU 410的尺寸为32×32。In HM-5.0, the maximum TU sizes for chroma and luma components are 16×16 and 32×32, respectively. However, the maximum CU size for chroma components is 32×32. Therefore, its maximum CU size and maximum TU size are not the same. Furthermore, in HM-5.0, the chroma cbf only sends signals for TUs whose size is smaller than or equal to the maximum TU size. For example, when the CU size is 64×64, ie, the chroma CU size is 32×32, the maximum TU size corresponds to 16×16. Therefore, four root cbfs will be transmitted for four 16x16 chroma TUs in a 32x32 CU. In this case, even if all four cbfs are 0, the cbfs will be transmitted, as shown in FIG. 4 , where the size of the chroma CU 410 is 32×32.
如上所述,用于亮度TU和色度TU的cbf发信方法是不同的。因此,需要一种统一的cbf发信方法以简化上述过程。此外,现有cbf发信方法中存在一些冗余,因此也需要进一步提升现有cbf发信方法的效率。As mentioned above, the cbf signaling method for luma TU and chroma TU is different. Therefore, a unified cbf signaling method is needed to simplify the above process. In addition, there are some redundancies in the existing cbf signaling method, so it is also necessary to further improve the efficiency of the existing cbf signaling method.
发明内容Contents of the invention
有鉴于此,特提供以下技术方案:In view of this, the following technical solutions are provided:
本发明的实施例提供一种视频比特流的解码方法和装置,其中方法包含:从媒体或者处理器接收该视频比特流;根据第一上下文形成,基于上下文自适应二进制算术编码的解码进程从该视频比特流中还原第一编码块旗标,其中该第一编码块旗标与第一色彩分量的第一变换单元相关,该第一编码块旗标指示该第一色彩分量的该第一变换单元是否具有至少一非零变换系数;以及根据第二上下文形成,基于该上下文自适应二进制算术编码的解码进程从该视频比特流中还原第二编码块旗标,其中该第二编码块旗标与第二色彩分量的第二变换单元相关,该第二编码块旗标指示该第二色彩分量的该第二变换单元是否具有至少一非零变换系数,其中该第一色彩分量与该第二色彩分量不同,且该第一上下文形成和该第二上下文形成均取决于残差四叉树的深度。Embodiments of the present invention provide a decoding method and device for a video bitstream, wherein the method includes: receiving the video bitstream from a media or a processor; forming a decoding process based on context-adaptive binary arithmetic coding from the first context Restoring a first coded block flag in the video bitstream, wherein the first coded block flag is associated with a first transform unit of a first color component, the first coded block flag indicates the first transform of the first color component whether the unit has at least one non-zero transform coefficient; and according to a second context formation, a decoding process based on the context-adaptive binary arithmetic coding restores a second coded block flag from the video bitstream, wherein the second coded block flag Associated with a second TU of a second color component, the second coding block flag indicates whether the second TU of the second color component has at least one non-zero transform coefficient, wherein the first color component and the second The color components are different, and both the first context formation and the second context formation depend on the depth of the residual quadtree.
本发明的实施例提供一种编码块旗标的编码方法和装置,其中方法包含:从媒体或者处理器接收第一色彩分量的第一变换单元和第二色彩分量的第二变换单元;决定与该第一变换单元相关的第一残差四叉树和与该第二变换单元相关的第二残差四叉树;决定对应于该第一变换单元的第一编码块旗标以及对应于该第二变换单元的第二编码块旗标,其中该第一编码块旗标指示该第一变换单元是否具有至少一非零变换系数,该第二编码块旗标指示该第二变换单元是否具有至少一非零变换系数;以及根据第一上下文形成,基于上下文自适应二进制算术编码的编码进程对该第一编码块旗标进行编码,并根据第二上下文形成,基于该上下文自适应二进制算术编码的编码进程对该第二编码块旗标进行编码,从而生成视频比特流,其中该第一色彩分量与该第二色彩分量不同,且该第一上下文形成和该第二上下文形成均取决于残差四叉树的深度。Embodiments of the present invention provide an encoding method and device for encoding a block flag, wherein the method includes: receiving a first transformation unit of a first color component and a second transformation unit of a second color component from a medium or a processor; A first residual quadtree related to the first TU and a second residual quadtree related to the second TU; determine a first coding block flag corresponding to the first TU and a flag corresponding to the first TU The second coding block flag of two transformation units, wherein the first coding block flag indicates whether the first transformation unit has at least one non-zero transform coefficient, and the second coding block flag indicates whether the second transformation unit has at least one a non-zero transform coefficient; and a coding process based on context-adaptive binary arithmetic coding encoding the first coded block flag formed according to a first context and formed according to a second context based on the context-adaptive binary arithmetic coding An encoding process encodes the second coded block flag to generate a video bitstream in which the first color component is different from the second color component and both the first context formation and the second context formation depend on residual The depth of the quadtree.
以上所述的方法和装置能够简化编码块旗标的发信方法并提升效率。The method and device described above can simplify the signaling method of the coding block flag and improve the efficiency.
附图说明Description of drawings
图1是叶变换单元的残差四叉树结构及编码块旗标范例的示意图。FIG. 1 is a diagram illustrating an example of a residual quadtree structure and coded block flags of a leaf TU.
图2A是依据HM-5.0的、用于亮度变换单元的编码块旗标发信方法范例的示意图。FIG. 2A is a diagram illustrating an example of a coding block flag signaling method for a luma TU according to HM-5.0.
图2B是依据HM-5.0的、用于色度变换单元的编码块旗标发信方法范例的示意图。FIG. 2B is a diagram illustrating an example of a coding block flag signaling method for a chroma TU according to HM-5.0.
图3是基于推断的亮度变换单元与色度变换单元的编码块旗标发信范例的示意图。FIG. 3 is a diagram illustrating an example of coding block flag signaling based on inferred luma TUs and chroma TUs.
图4是用于四个16×16色度根变换单元的编码块旗标的编码块旗标发信范例的示意图。FIG. 4 is a diagram illustrating an example of CBF signaling for CBFs of four 16×16 chroma root transform units.
图5是依据本发明实施例的、用于帧间编码单元的编码块旗标推断机制范例的示意图。FIG. 5 is a diagram illustrating an example of a coded block flag inference mechanism for an Inter CU according to an embodiment of the invention.
图6A和6B是依据本发明实施例的、色度分量的编码块旗标于编码单元层级发信的范例的示意图。6A and 6B are diagrams illustrating an example of signaling of coding block flags of chroma components at CU level according to an embodiment of the present invention.
图7是整合本发明实施例的编码器的范例性流程的示意图。FIG. 7 is a schematic diagram of an exemplary flow of an encoder integrating an embodiment of the present invention.
图8是整合本发明实施例的解码器的范例性流程的示意图。FIG. 8 is a schematic diagram of an exemplary process of integrating a decoder according to an embodiment of the present invention.
图9是整合本发明另一实施例的编码器的范例性流程的示意图。FIG. 9 is a schematic diagram of an exemplary process of integrating an encoder according to another embodiment of the present invention.
图10是整合本发明另一实施例的解码器的范例性流程的示意图。FIG. 10 is a schematic diagram of an exemplary process of integrating a decoder according to another embodiment of the present invention.
具体实施方式Detailed ways
在本发明的一个实施例中,通过将色度cbf编码方法扩展至亮度cbf,亮度及色度cbf的发信方法得以统一。因此,亮度和色度cbf皆会针对残差四叉树的每一层级发信。换句话说,cbf发信会针对根TU和叶TU进行。在此状况下,用于亮度和色度分量的推断方法也得到统一。因此,亮度TU和色度TU使用相同的推断方法。换句话说,若前三个叶TU的cbf都是0,则最后一个叶TU的cbf必然为1。In one embodiment of the present invention, by extending the chroma cbf encoding method to luma cbf, the signaling methods of luma and chroma cbf are unified. Therefore, both luma and chrominance cbf are sent for each level of the residual quadtree. In other words, cbf sending will be carried out for root TU and leaf TU. In this case, the inference methods for luma and chroma components are also unified. Therefore, luma TU and chroma TU use the same inference method. In other words, if the cbf of the first three leaf-TUs are all 0, then the cbf of the last leaf-TU must be 1.
在另一实施例中,用于帧间CU的残差旗标推断方法被应用至统一的发信方法。因此,当残差旗标为真且色度TU的cbf皆为0时,顶层根亮度TU的cbf被推断为1而不管此顶层根TU是否能够被进一步分割。进一步来说,上述用于帧间CU的残差旗标推断方法也可被应用至除了深度0以外的其他TU深度。换句话说,当TU被进一步分割且色度cbf都是0时,亮度TU的cbf可被推断为1。如图5所示,当残差旗标为1且用于色度根TU(U 520和V530)的cbf都为0时,亮度根TU 510的cbf可被推断为1。In another embodiment, the residual flag derivation method for Inter CUs is applied to the unified signaling method. Therefore, when the residual flag is true and the cbf of the chroma TU is all 0, the cbf of the top-level root luma TU is inferred to be 1 regardless of whether the top-level root TU can be further partitioned. Furthermore, the above-mentioned residual flag inference method for inter CUs can also be applied to other TU depths except depth 0. In other words, when the TU is further partitioned and the chroma cbfs are all 0, the cbf of the luma TU can be inferred to be 1. As shown in FIG. 5 , when the residual flag is 1 and the cbfs for the chroma root TUs (U 520 and V 530 ) are both 0, the cbf of the luma root TU 510 may be inferred to be 1.
进一步来说,色度cbf的上下文形成(context formation)也可与色度cbf相统一,以使基于上下文自适应二进制算术编码(context-based adaptive arithmetic coding,CABAC)的cbf编码的上下文形成对于亮度和色度分量来说都取决于TU深度。为了降低cbf旗标的熵编码的复杂度,上下文的数量可被减少。此外,旁路编码模式(bypass coding mode)也可用于基于CABAC的cbf编码。Furthermore, the context formation of chroma cbf can also be unified with chroma cbf, so that the context formation of cbf coding based on context-based adaptive binary arithmetic coding (CABAC) is more effective for luma Both depend on TU depth for chroma components. To reduce the complexity of entropy coding of cbf flags, the number of contexts can be reduced. In addition, a bypass coding mode is also available for CABAC-based cbf coding.
在另一实施例中,根cbf总是在CU层级被发信而无视最大TU尺寸。因此,每一CU中总是存在根cbf。图6A和6B是当色度CU尺寸为32×32且最大TU尺寸为16×16时cbf编码过程的范例。在图6A中,色度CU对应于32×32的块,其大于最大色度TU尺寸(即16×16)。由于与CU相关的所有色度TU都没有非零变换系数(以0表示),则用于色度CU的根cbf为0。依据本发明的实施例,每一CU中的根cbf总是被发信,因此0会被发信以用于CU,而无需其他的cbf发信。图6B所示为另一范例,其中左下TU包含至少一个非零变换系数。在此状况下,1被发送以用于根色度CU,且另外的cbf位元“0 0 1 0”也被发信以表示哪一TU包含非零变换系数。基于HM-5.0的编码系统中,亮度和色度分量的最大TU尺寸是已知的。最大TU尺寸的信息也可于比特流中发信,例如在比特流的序列级(例如,SPS)。In another embodiment, the root cbf is always signaled at the CU level regardless of the maximum TU size. Therefore, there is always a root cbf in each CU. 6A and 6B are examples of the cbf encoding process when the chroma CU size is 32x32 and the maximum TU size is 16x16. In Figure 6A, a chroma CU corresponds to a 32x32 block, which is larger than the maximum chroma TU size (ie, 16x16). Since all chroma TUs associated with a CU have no non-zero transform coefficients (represented by 0), the root cbf for a chroma CU is 0. According to an embodiment of the present invention, the root cbf in each CU is always signaled, so 0 will be signaled for the CU without other cbf signaling. Another example is shown in Fig. 6B, where the bottom left TU contains at least one non-zero transform coefficient. In this case, 1 is sent for the root chroma CU, and additional cbf bits "0 0 1 0" are also signaled to indicate which TU contains non-zero transform coefficients. In coding systems based on HM-5.0, the maximum TU sizes for luma and chrominance components are known. Information about the maximum TU size can also be signaled in the bitstream, for example at the sequence level of the bitstream (eg, SPS).
在又一实施例中,通过将亮度cbf编码方法扩展至色度cbf,亮度及色度cbf的发信方法得以统一。从而,亮度和色度cbf都仅针对叶TU发信。In yet another embodiment, by extending the encoding method of luma cbf to chroma cbf, the signaling methods of luma and chroma cbf are unified. Thus, both luma and chroma cbfs are signaled only for leaf-TUs.
以上所述的cbf发信方法可被应用于视频编码器中,同样也可被应用于视频解码器中。图7是整合本发明实施例的编码器的范例性流程的示意图。在步骤710中,决定当前CU的残差,其中当前CU的尺寸大于最大TU尺寸。在步骤720中,决定色彩分量的第一cbf,第一cbf指示当前CU(深度=0)是否具有至少一非零变换系数。如步骤730所示,依据第一cbf的结果可选择不同的处理路径。若色彩分量的当前CU具有至少一非零变换系数,则在步骤740中决定色彩分量的四个第二cbf,其中每一第二cbf指示当前CU中的色彩分量的四个子块(深度=1)之一是否具有至少一非零变换系数。在此状况下,如步骤750所示,第一cbf和四个第二cbf都会被整合至视频比特流中。若当前CU不具有非零变换系数,则如步骤760所示,仅第一cbf被整合至视频比特流中。通过将cbf整合至视频比特流中的cbf发信将允许解码器还原残差四叉树结构并执行相应的解码程序。在一些实施例中,若色彩分量的至少一个子块具有至少一非零变换系数,且此子块并未达到色彩分量的最小TU尺寸,则具有非零变换系数的子块进一步被分割成4个叶块(深度=2)。对于每一个具有非零变换系数的子块来说,四个第三cbf被决定,其中每一第三cbf指示色彩分量的四个叶块之一是否具有至少一非零变换系数。上述色彩分量的四个第三cbf也被整合至视频比特流。上述子块和叶块可以是当前CU中的根TU和叶TU。上述色彩分量可以是亮度或色度分量。The cbf signaling method described above can be applied to a video encoder, and can also be applied to a video decoder. FIG. 7 is a schematic diagram of an exemplary flow of an encoder integrating an embodiment of the present invention. In step 710, the residual of the current CU is determined, wherein the size of the current CU is larger than the maximum TU size. In step 720, a first cbf of the color component is determined, the first cbf indicates whether the current CU (depth=0) has at least one non-zero transform coefficient. As shown in step 730, different processing paths may be selected according to the result of the first cbf. If the current CU of the color component has at least one non-zero transform coefficient, then in step 740, four second cbfs of the color component are determined, wherein each second cbf indicates four sub-blocks (depth=1) of the color component in the current CU ) has at least one non-zero transform coefficient. In this case, as shown in step 750, the first cbf and the four second cbfs will be integrated into the video bitstream. If the current CU does not have non-zero transform coefficients, as shown in step 760, only the first cbf is integrated into the video bitstream. The cbf signaling by integrating the cbf into the video bitstream will allow the decoder to restore the residual quadtree structure and execute the corresponding decoding procedure. In some embodiments, if at least one sub-block of a color component has at least one non-zero transform coefficient, and the sub-block does not reach the minimum TU size of the color component, the sub-block with non-zero transform coefficient is further divided into 4 leaf blocks (depth=2). For each sub-block with non-zero transform coefficients, four third cbfs are determined, where each third cbf indicates whether one of the four leaf blocks of the color component has at least one non-zero transform coefficient. The four third cbfs of the above color components are also integrated into the video bitstream. The aforementioned sub-blocks and leaf blocks may be root TUs and leaf-TUs in the current CU. The aforementioned color components may be luma or chrominance components.
图8是整合本发明实施例的解码器的范例性流程的示意图。在步骤810中,从媒体(media)或处理器(processor)接收视频比特流。上述视频比特流可被存储于媒体中,例如存储媒体(硬盘、光盘、闪存卡),或计算机存储器(RAM、PROM、DRAM或闪存)中。视频比特流也可被处理器接收及/或处理。举例来说,在广播环境中,信道接收机(channel receiver)可接收调制的信号,解调及解复用以还原所需比特流。在此状况下,视频比特流接收自处理器(即,信道接收机)。在步骤830中,解码色彩分量的第一cbf,第一cbf指示此色彩分量的当前CU(深度=0)是否具有至少一非零变换系数。如步骤840所示,依据解码结果可选择不同的解码路径。若色彩分量的第一cbf不为0,则在步骤850中解码色彩分量的四个第二cbf,其中每一第二cbf指示当前CU中的色彩分量的四个子块(深度=1)之一是否具有至少一非零变换系数。在步骤860中,基于第一cbf和四个第二cbf决定色彩分量的当前CU的残差四叉树结构。若色彩分量的四个第二cbf都为0,则如步骤870所示,仅基于第一cbf来决定色彩分量的当前CU的残差四叉树结构。在一些实施例中,若色彩分量在深度=1的一个子块具有至少一非零变换系数,且此子块的尺寸大于色彩分量的最小TU尺寸,则解码色彩分量的四个第三cbf。其中色彩分量的每一第三cbf指示色彩分量的四个叶块之一是否具有至少一非零变换系数。此时,色彩分量的当前CU的残差四叉树结构是基于上述第一cbf、第二cbf以及第三cbf来决定。上述子块和叶块可以是当前CU中的根TU和叶TU。上述色彩分量可以是亮度或色度分量。FIG. 8 is a schematic diagram of an exemplary process of integrating a decoder according to an embodiment of the present invention. In step 810, a video bitstream is received from a media or processor. The above-mentioned video bitstream may be stored in a medium, such as a storage medium (hard disk, optical disk, flash memory card), or computer memory (RAM, PROM, DRAM or flash memory). A video bitstream may also be received and/or processed by the processor. For example, in a broadcast environment, a channel receiver may receive the modulated signal, demodulate and demultiplex to recover the desired bit stream. In this case, the video bitstream is received from the processor (ie, channel receiver). In step 830, the first cbf of the color component is decoded, the first cbf indicates whether the current CU (depth=0) of this color component has at least one non-zero transform coefficient. As shown in step 840, different decoding paths may be selected according to the decoding result. If the first cbf of the color component is not 0, four second cbfs of the color component are decoded in step 850, wherein each second cbf indicates one of the four sub-blocks (depth=1) of the color component in the current CU has at least one non-zero transform coefficient. In step 860, the residual quadtree structure of the current CU of the color component is determined based on the first cbf and the four second cbfs. If the four second cbfs of the color component are all 0, then as shown in step 870, the residual quadtree structure of the current CU of the color component is determined based only on the first cbf. In some embodiments, if the color component has at least one non-zero transform coefficient in a sub-block of depth=1, and the size of this sub-block is larger than the minimum TU size of the color component, four third cbfs of the color component are decoded. Each third cbf of the color component indicates whether one of the four leaf blocks of the color component has at least one non-zero transform coefficient. At this time, the residual quadtree structure of the current CU of the color component is determined based on the above-mentioned first cbf, second cbf and third cbf. The aforementioned sub-blocks and leaf blocks may be root TUs and leaf-TUs in the current CU. The aforementioned color components may be luma or chrominance components.
图9是整合本发明另一实施例的编码器的范例性流程的示意图。在步骤910中,从媒体或处理器接收TU。随后在步骤920中决定与此TU相关的RQT(残差四叉树)。在步骤930中,决定对应于此TU的RQT的一或多个cbf,其中用于亮度分量和色度分量的cbf的发信是相同的。FIG. 9 is a schematic diagram of an exemplary process of integrating an encoder according to another embodiment of the present invention. In step 910, a TU is received from a medium or a processor. Then in step 920 the RQT (residual quadtree) associated with this TU is determined. In step 930, one or more cbfs corresponding to the RQT of the TU are determined, wherein the signaling of the cbfs for luma and chrominance components is the same.
图10是整合本发明另一实施例的解码器的范例性流程的示意图。在步骤1010中,从媒体或处理器接收视频比特流。在步骤1020中,决定与TU相关的cbf,其中此cbf是从视频比特流中还原的。在步骤1030中,基于上述cbf决定与TU相关的残差四叉树,其中用于亮度分量和色度分量的cbf的发信是相同的。FIG. 10 is a schematic diagram of an exemplary process of integrating a decoder according to another embodiment of the present invention. In step 1010, a video bitstream is received from a media or processor. In step 1020, the cbf associated with the TU is determined, wherein the cbf is recovered from the video bitstream. In step 1030, the residual quadtree related to the TU is determined based on the above cbf, wherein the signaling of the cbf for the luma component and the chrominance component is the same.
以上所述的流程仅仅是为了描述用于整合了本发明实施例的编码器和解码器的cbf发信的范例。在不脱离本发明精神的前提下,本领域的技术人员可修改每一步骤,对上述步骤重新排序,拆分一个步骤,或者整合多个步骤以实现本发明。The above-mentioned process is only for describing an example of cbf signaling for the encoder and decoder integrating the embodiment of the present invention. Without departing from the spirit of the present invention, those skilled in the art can modify each step, reorder the above steps, split one step, or integrate multiple steps to realize the present invention.
以上描述是为了使本领域的技术人员能够以上下文中的特定实施方式及其需求来实现本发明。然而,本领域的技术人员应可对其进行各种变型与修饰,而本发明的基本精神也可以应用至其他实施例中。因此,本发明并非以所述特定实施例为限,而应以符合本发明宗旨及新特征的最广的范围为界。在上述详细描述中,阐述各种特定细节是为了便于对本发明有全面的了解,然而,本领域的技术人员应可理解本发明可以在不限定这些具体细节中的一部分或者全部的情况下实施。The above description is to enable those skilled in the art to implement the present invention with specific implementations and requirements in the context. However, those skilled in the art can make various variations and modifications, and the basic spirit of the present invention can also be applied to other embodiments. Therefore, the present invention is not limited to the specific embodiments described above, but should be defined in the broadest scope consistent with the spirit and new features of the present invention. In the above detailed description, various specific details are set forth to facilitate a comprehensive understanding of the present invention, however, those skilled in the art should understand that the present invention may be implemented without limiting some or all of these specific details.
上述的根据本发明的实施例可以不同硬件、软件代码、或两者的结合来实施。举例来说,依据本发明的一实施例,其可以是用来实施所述方法的、整合至视频压缩芯片中的电路,或是整合至视频压缩软件中的程序代码。依据本发明的另一实施例,其也可以是数字信号处理器(Digital Signal Processor,DSP)上执行的、用来实施所述方法的程序代码。本发明亦可包含由计算机处理器、DSP、微处理器、或现场可编程门阵列(Field ProgrammableGate Array,FPGA)执行的一系列功能。依据本发明,通过执行定义了本发明实施例特定方法的机器可读软件代码或固件代码,这些处理器可被设置为执行特定的任务。所述软件代码或固件代码可通过不同的编程语言及不同格式/样式来开发。所述软件代码亦可符合不同的目标平台。然而,执行与本发明相应的任务的、具有不同代码格式、样式及语言的软件代码,以及其他方式形成的代码都应包含在本发明的范围内。The above-mentioned embodiments according to the present invention can be implemented by different hardware, software codes, or a combination of both. For example, according to an embodiment of the present invention, it may be a circuit integrated into a video compression chip for implementing the method, or a program code integrated into video compression software. According to another embodiment of the present invention, it may also be a program code executed on a digital signal processor (Digital Signal Processor, DSP) to implement the method. The present invention may also include a series of functions performed by a computer processor, DSP, microprocessor, or field programmable gate array (Field Programmable Gate Array, FPGA). In accordance with the present invention, these processors can be configured to perform specific tasks by executing machine-readable software code or firmware code that defines specific methods of embodiments of the present invention. The software code or firmware code may be developed in different programming languages and in different formats/styles. The software code can also conform to different target platforms. However, software codes with different code formats, styles and languages, and codes formed in other ways to perform the tasks corresponding to the present invention should be included within the scope of the present invention.
在不脱离本发明的精神及基本特征的前提下,本发明亦可用其他特定形式来实施。以上所述的实施例仅仅是为了例示本发明,并非本发明的限制。本发明的范围当所附的权利要求为准,凡依本发明权利要求所做的均等变化与修饰,皆应属本发明的涵盖范围。The present invention can also be implemented in other specific forms without departing from the spirit and essential features of the present invention. The above-mentioned embodiments are only for illustrating the present invention, and are not intended to limit the present invention. The scope of the present invention shall be determined by the appended claims, and all equivalent changes and modifications made according to the claims of the present invention shall fall within the scope of the present invention.
Claims (14)
Applications Claiming Priority (3)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
PCT/CN2012/070612 WO2013107027A1 (en) | 2012-01-19 | 2012-01-19 | Methods and apparatuses of cbf coding in hevc |
CNPCT/CN2012/070612 | 2012-01-19 | ||
CN201380006152.6A CN104137545B (en) | 2012-01-19 | 2013-01-07 | Method and apparatus for encoding coded block flag and decoding video bitstream |
Related Parent Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201380006152.6A Division CN104137545B (en) | 2012-01-19 | 2013-01-07 | Method and apparatus for encoding coded block flag and decoding video bitstream |
Publications (1)
Publication Number | Publication Date |
---|---|
CN108449602A true CN108449602A (en) | 2018-08-24 |
Family
ID=51808355
Family Applications (2)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201380006152.6A Active CN104137545B (en) | 2012-01-19 | 2013-01-07 | Method and apparatus for encoding coded block flag and decoding video bitstream |
CN201810299233.4A Pending CN108449602A (en) | 2012-01-19 | 2013-01-07 | Method and apparatus for encoding coded block flag and decoding video bitstream |
Family Applications Before (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201380006152.6A Active CN104137545B (en) | 2012-01-19 | 2013-01-07 | Method and apparatus for encoding coded block flag and decoding video bitstream |
Country Status (1)
Country | Link |
---|---|
CN (2) | CN104137545B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111372082A (en) * | 2019-03-27 | 2020-07-03 | 北京达佳互联信息技术有限公司 | Coding and decoding method and device for coding block flag CBF in video coding |
Families Citing this family (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2016205999A1 (en) * | 2015-06-23 | 2016-12-29 | Mediatek Singapore Pte. Ltd. | Adaptive coding group for image/video coding |
WO2019141012A1 (en) * | 2018-01-18 | 2019-07-25 | Mediatek Inc. | Video processing methods and apparatuses for processing video data coded in large size coding units |
CN116600142A (en) | 2018-03-27 | 2023-08-15 | 株式会社Kt | Method for decoding or encoding image and method for transmitting image data |
WO2019234608A1 (en) | 2018-06-05 | 2019-12-12 | Beijing Bytedance Network Technology Co., Ltd. | Partition tree with more than four sub-blocks |
KR20210130735A (en) * | 2019-03-02 | 2021-11-01 | 베이징 바이트댄스 네트워크 테크놀로지 컴퍼니, 리미티드 | Restrictions on in-loop filtering |
WO2020248954A1 (en) | 2019-06-09 | 2020-12-17 | Beijing Bytedance Network Technology Co., Ltd. | Significant coefficient signaling in video coding |
BR112022004668A2 (en) | 2019-09-14 | 2022-05-31 | Bytedance Inc | Video data processing method, apparatus for processing video data and computer readable non-transient storage and recording media |
KR20220073746A (en) * | 2019-10-14 | 2022-06-03 | 바이트댄스 아이엔씨 | Using chroma quantization parameters in video processing |
Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102172025A (en) * | 2008-10-03 | 2011-08-31 | 高通股份有限公司 | Video coding with large macroblocks |
Family Cites Families (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
TWI339074B (en) * | 2007-09-05 | 2011-03-11 | Via Tech Inc | Operating method and device of coded block flag parameter |
KR101456498B1 (en) * | 2009-08-14 | 2014-10-31 | 삼성전자주식회사 | Method and apparatus for video encoding considering scanning order of coding units with hierarchical structure, and method and apparatus for video decoding considering scanning order of coding units with hierarchical structure |
WO2011121715A1 (en) * | 2010-03-30 | 2011-10-06 | 株式会社 東芝 | Image decoding method |
US8942282B2 (en) * | 2010-04-12 | 2015-01-27 | Qualcomm Incorporated | Variable length coding of coded block pattern (CBP) in video compression |
-
2013
- 2013-01-07 CN CN201380006152.6A patent/CN104137545B/en active Active
- 2013-01-07 CN CN201810299233.4A patent/CN108449602A/en active Pending
Patent Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102172025A (en) * | 2008-10-03 | 2011-08-31 | 高通股份有限公司 | Video coding with large macroblocks |
Non-Patent Citations (2)
Title |
---|
BENJAMIN BROSS: "WD5: Working Draft 5 of High-Efficiency Video Coding", 《JOINT COLLABORATIVE TEAM ON VIDEO CODING (JCT-VC) OF ITU-T SG16 WP3 AND ISO/IEC JTC1/SC29/WG11 7TH MEETING: GENEVA, CH, 21–30 NOVEMBER, 2011,JCTVC-G1103_D0》 * |
BENJAMIN BROSS: "WD5: Working Draft 5 of High-Efficiency Video Coding", 《JOINT COLLABORATIVE TEAM ON VIDEO CODING (JCT-VC) OF ITU-T SG16 WP3 AND ISO/IEC JTC1/SC29/WG11 7TH MEETING: GENEVA, CH, 21–30 NOVEMBER, 2011,JCTVC-G1103_D4》 * |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111372082A (en) * | 2019-03-27 | 2020-07-03 | 北京达佳互联信息技术有限公司 | Coding and decoding method and device for coding block flag CBF in video coding |
CN111372082B (en) * | 2019-03-27 | 2022-06-03 | 北京达佳互联信息技术有限公司 | Coding and decoding method and device for coding block flag CBF in video coding |
Also Published As
Publication number | Publication date |
---|---|
CN104137545A (en) | 2014-11-05 |
CN104137545B (en) | 2018-06-05 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10531122B2 (en) | Method and apparatus for coded block flag coding in high efficiency video coding | |
CN104137545B (en) | Method and apparatus for encoding coded block flag and decoding video bitstream | |
TWI753356B (en) | Method and apparatuses for coding transform blocks | |
AU2021221878B2 (en) | Method and device for entropy encoding, decoding video signal | |
JP6950004B2 (en) | Intrafiltering applied with conversion in video coding | |
KR101773240B1 (en) | Coded block flag coding | |
KR102331361B1 (en) | Video encoding and decoding method and apparatus using same | |
CA2811849C (en) | Apparatus and method of constrained partition size for high efficiency video coding | |
HUE027592T2 (en) | Context reduction for context adaptive binary arithmetic coding | |
CN104704841A (en) | Error resilient decoding unit association | |
WO2013148466A1 (en) | Merge signaling and loop filter on/off signaling | |
KR20150024857A (en) | Method for encoding a current block of a first image component relative to a reference block of at least one second image component, encoding device and corresponding computer program | |
EP3958570A1 (en) | Video encoding/decoding method and device using bdpcm, and method for transmitting bitstream | |
WO2018123316A1 (en) | Image encoding method, image decoding method, image encoding device, image decoding device and program | |
AU2020354148B2 (en) | Image encoding/decoding method and apparatus for signaling residual coding method used for encoding block to which BDPCM is applied, and method for transmitting bitstream | |
BR112014014121B1 (en) | METHOD FOR DECODING A VIDEO BIT SEQUENCE, METHOD FOR ENCODING A CODED BLOCK FLAG, APPARATUS FOR DECODING A VIDEO BIT SEQUENCE, AND APPARATUS FOR ENCODING A CODED BLOCK FLAG |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
WD01 | Invention patent application deemed withdrawn after publication | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20180824 |