Chroma quantization parameter adjustment in video encoding and decoding
By adapting chroma quantization parameters and using different chroma QP tables, the method addresses inefficiencies in bit rate allocation between luma and chroma components, enhancing overall coding efficiency and reducing the bit rate in video encoding and decoding.
Patent Information
- Application Number
- JP2020549756
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Priority Date
- 2018-07-02
- Filing Date
- 2019-03-27
- Publication Date
- 2024-10-24
- Estimated Expiration
- 2039-03-27
AI Technical Summary
Existing video encoding and decoding technologies face challenges in achieving optimal compression efficiency, particularly in balancing the coding gains between luma and chroma components, leading to inefficiencies in bit rate allocation.
Adapting chroma quantization parameters based on encoding performance levels, using different chroma QP tables for various encoding configurations, and dynamically selecting the appropriate chroma QP table set to trade off coding efficiency between luma and chroma components.
Improves overall coding efficiency by reducing the bit rate of the entire coded bitstream while maintaining targeted quality, with a moderate relative loss in chroma coding efficiency, thereby optimizing the balance between luma and chroma components.
Smart Images

Figure 0007572858000005 
Figure 0007572858000006 
Figure 0007572858000007
Abstract
Description
[Technical field]
[0001] At least one of the embodiments relates generally to video encoding or decoding, and more particularly to a method, apparatus, and signal for adjusting a chroma quantization parameter in video encoding or decoding. [Background technology]
[0002] To achieve high compression efficiency, image and video coding schemes usually employ prediction and transformation to exploit spatial and temporal redundancy in video content. In general, intra- or inter-prediction is used to exploit intra- or inter-frame correlation, and then the difference between the original block and the predicted block, often referred to as prediction error or prediction residual, is transformed, quantized, and entropy coded. To reconstruct the video, the compressed data is decoded by an inverse process corresponding to entropy coding, quantization, transformation, and prediction. Summary of the Invention
[0003] According to a first aspect of at least one embodiment, a method for encoding video data is presented, the method including: selecting, for a block of an image, at least one quantization parameter from among a plurality of sets of chroma quantization parameters based on an encoding performance level, the set of chroma quantization parameters differing depending on whether the image is motion predicted or not; encoding the block based on the at least one selected chroma quantization parameter, the encoding including quantizing chroma values of the block in accordance with the at least one selected chroma quantization parameter; and generating a bitstream including at least the encoded block and metadata representative of the at least one selected chroma quantization parameter.
[0004] According to a second aspect of at least one embodiment, a method for decoding video data is presented, the method including: accessing metadata of a block of an image or video, the metadata representing a selection of at least one chroma quantization parameter from a plurality of sets of chroma quantization parameters, the selection being based on an encoding performance level; and dequantizing chroma values of the block in accordance with the metadata representing the selection of at least one chroma quantization parameter.
[0005] According to a third aspect of at least one embodiment, a signal is presented for an encoded image, the signal including information representing at least one chroma quantization parameter selected from among a plurality of sets of chroma quantization parameters based on an encoding performance level, the set of chroma quantization parameters differing depending on whether the image is motion predicted or not, the selection being for at least one block of the image.
[0006] According to a fourth aspect of at least one embodiment, a device for encoding video data is presented, the device comprising: means for selecting, for a block of an image, at least one chroma quantization parameter from among a plurality of sets of chroma quantization parameters based on an encoding performance level, the set of chroma quantization parameters differing depending on whether the image is motion predicted or not; means for encoding the block based on the at least one selected chroma quantization parameter, the encoding comprising quantizing chroma values of the block in accordance with the at least one selected chroma quantization parameter; and means for generating a bitstream including at least the encoded block and metadata representative of the at least one selected chroma quantization parameter.
[0007] According to a fifth aspect of at least one embodiment, a device for decoding video data is presented, the device comprising: means for accessing metadata of a block of an image or video, the metadata representing a selection of at least one chroma quantization parameter from a plurality of sets of chroma quantization parameters, the selection being based on an encoding performance level; and means for dequantizing chroma values of the block in accordance with the metadata representing the selection of at least one chroma quantization parameter.
[0008] According to a sixth aspect of at least one embodiment, a device for displaying video data is presented, the device comprising: one or more processors configured to access metadata of a block of an image or video, the metadata representing a selection of at least one chroma quantization parameter from a plurality of sets of chroma quantization parameters, the selection being based on an encoding performance level; dequantizing chroma values of the block in accordance with the metadata representing the selection of at least one chroma quantization parameter; and producing a reconstructed image based on the dequantized chroma values of a plurality of blocks of the image; and a display configured to display the reconstructed image.
[0009] According to a seventh aspect of at least one embodiment, a device for receiving video data is presented, the device comprising: an antenna configured to receive a signal including an image or video via wireless communication; one or more processors configured to access metadata of a block of the received image or video, the metadata representing a selection of at least one chroma quantization parameter from a plurality of sets of chroma quantization parameters, the selection being based on an encoding performance level; dequantizing chroma values of the block in accordance with the metadata representing the selection of at least one chroma quantization parameter; and producing a reconstructed image based on the dequantized chroma values of a plurality of blocks of the image; and an output configured to display the reconstructed image.
[0010] According to another aspect of at least one embodiment, a non-transitory computer readable medium is presented that includes data content generated by a method or apparatus according to any of the preceding claims.
[0011] According to another aspect of at least one embodiment, there is provided a computer program comprising program code instructions executable by a processor for performing at least the steps of the method according to the first aspect.
[0012] According to another aspect of at least one embodiment, there is provided a computer program product stored on a non-transitory computer readable medium and comprising program code instructions executable by a processor for performing at least the steps of the method of the first aspect.
[0013] According to variant embodiments of the first and fourth aspects, the coding performance level is automatically selected according to coding-related information, said information relating to the coding tree structure or the coding mode or partitioning mode. [Brief description of the drawings]
[0014] [Figure 1] An example of a video encoder 100, such as a High Efficiency Video Coding (HEVC) encoder, is shown. [Diagram 2] 2 shows a block diagram of an example video decoder 200, such as an HEVC decoder. [Diagram 3] An example of a Quad-Tree plus Binary-Tree (QTBT) CTU representation is shown below. [Figure 4] 13 shows an example of an extended set of coding unit partitioning. [Diagram 5] We show the improvement in coding efficiency by using the QTBT+ABT coding structure. [Figure 6] In one embodiment that implements chroma quantization adaptation, we show the improvement in coding efficiency by using the QTBT+ABT coding structure. [Figure 7A] 1 shows an example of a process used at the decoder side to determine the QP parameters used for encoding and decoding the chroma components. [Figure 7B] show [Figure 8] 1 illustrates a block diagram of an example system in which various aspects and embodiments may be implemented. [Figure 9A] 4 shows a flowchart of an example of part of an encoding method according to one embodiment implementing chroma quantization adaptation. [Figure 9B] 4 shows a flowchart of an example of part of a decoding method according to one embodiment implementing chroma quantization adaptation. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0015] In at least one embodiment, improved coding efficiency results from the use of a topology for block partitioning described below. In particular, in some embodiments, larger gains are obtained in the chroma components than in the luma components. As a result, it is important to balance the obtained coding gains by shifting some gains from one or more chroma components to the luma components. This is particularly beneficial in certain embodiments, since at a certain level of quality, additional visual benefits from additional coding efficiency improvements in the chroma components are not usually obtained. Therefore, in at least one embodiment, it is proposed to employ quantization parameters in such a way as to trade off further quality improvements between the chroma and luma components. In at least one such embodiment, the overall bitrate of the entire coded bitstream including the chroma and luma components is reduced.
[0016] 1 shows an example of a video encoder 100, such as a High Efficiency Video Coding (HEVC) encoder, and may also show an encoder that improves on the HEVC standard or employs technology similar to HEVC, such as the Joint Exploration Model (JEM) encoder under development by the Joint Video Exploration Team (JVET).
[0017] In this application, the terms "reconstructed" and "decoded" may be used interchangeably, the terms "encoded" or "coded" may be used interchangeably, and the terms "image", "picture" and "frame" may be used interchangeably. Usually, but not necessarily, the term "reconstructed" is used on the encoder side, while "decoded" is used on the decoder side.
[0018] Before being encoded, a video sequence can undergo a pre-encoding process (101), for example by applying a color transformation to the input color picture (e.g., from RGB 4:4:4 to YCbCr 4:2:0) or by performing a remapping of the input picture components (e.g., using a histogram equalization of one of the color components) to obtain a more compression-robust signal distribution. Metadata can be attached to the bitstream in association with the pre-processing.
[0019] In HEVC, to encode a video sequence with one or more pictures, a picture is divided into one or more slices, where each slice may contain one or more slice segments (102). The slice segments are organized into coding units, prediction units, and transform units. The HEVC specification distinguishes between "blocks" and "units," where a "block" addresses a specific region (e.g., luma, Y) in a sample array, and a "unit" includes an ordered block of all coded color components (Y, Cb, Cr, or monochrome), syntax elements, and prediction data (e.g., motion vectors) associated with the block.
[0020] In HEVC coding, a picture is divided into square coding tree blocks (CTBs) with configurable size, and a contiguous set of coding tree blocks is grouped into a slice. A coding tree unit (CTU) contains the CTB of a coded color component. The CTB is the root of a quadtree division into coding blocks (CBs), which can be divided into one or more prediction blocks (PBs), forming the root of a quadtree division into transform blocks (TBs). Corresponding to the coding blocks, prediction blocks, and transform blocks, a coding unit (CU) includes a prediction unit (PU) and a tree-structured set of transform units (TUs), where a PU includes prediction information for all color components, and a TU includes a coding syntax structure for the residual of each color component. The sizes of the CB, PB, and TB of the luma component apply to the corresponding CU, PU, and TU. In this application, the term "block" can be used to refer to any of, for example, a CTU, a CU, a PU, a TU, a CB, a PB, and a TB. In addition, "block" can also be used to refer to macroblocks and partitions as specified in H.264 / AVC or other video coding standards, or more generally to refer to arrays of data of various sizes.
[0021] In the example encoder 100, a picture is encoded by the encoder elements as described below. A picture to be encoded is processed on a CU-by-CU basis. Each CU is encoded using either intra or inter mode. When a CU is encoded in intra mode, intra prediction is performed (160). In inter mode, motion estimation (175) and motion compensation (170) are performed. The encoder determines (105) whether intra or inter mode is used to encode the CU, and indicates the intra / inter decision with a prediction mode flag. A prediction residual is calculated by subtracting the predicted block from the original image block (110).
[0022] CUs in intra modes are predicted from reconstructed neighboring samples in the same slice. In HEVC, a set of 35 intra prediction modes is available, including DC, planar, and 33 angular prediction modes. The intra prediction reference is reconstructed from rows and columns neighboring the current block. The reference is extended to twice the block size in the horizontal and vertical directions using samples available from previously reconstructed blocks. When an angular prediction mode is used for intra prediction, the reference samples may be copied along the direction indicated by the angular prediction mode.
[0023] The luma intra-prediction modes applicable to the current block may be coded using two different options: If the applicable mode is included in a configuration list of three most probable modes (MPMs), the mode is signaled by an index in the MPM list; otherwise, the mode is signaled by a fixed-length binarization of the mode index. The three most probable modes are derived from the intra-prediction modes of the top and left neighboring blocks.
[0024] For an inter CU, the corresponding coded block is further divided into one or more predictive blocks. Inter prediction is performed at the PB level, and the corresponding PU contains information on how to perform inter prediction. Motion information (e.g., motion vectors and reference picture indexes) can be signaled in two ways: "merge mode" and "Advanced Motion Vector Prediction (AMVP)".
[0025] In merge mode, a video encoder or decoder assembles a candidate list based on already coded blocks, and the video encoder signals an index to one of the candidates in the candidate list. At the decoder side, motion vectors (MVs) and reference picture indexes are reconstructed based on the signaled candidates.
[0026] In AMVP, a video encoder or decoder assembles a candidate list based on motion vectors determined from already coded blocks. The video encoder then signals an index in the candidate list to identify a motion vector predictor (MVP) and a motion vector differential (MVD). At the decoder side, the motion vector (MV) is reconstructed as MVP+MVD. Also, the applicable reference picture indexes are explicitly coded in the PU syntax of AMVP.
[0027] The prediction residual, including at least one embodiment for adapting a chroma quantization parameter described below, is then transformed (125) and quantized (130). The transformation is typically based on a separable transform. For example, a DCT transform is applied first horizontally and then vertically. In modern codecs such as JEM, the transforms used in both directions may be different (e.g., DCT in one direction and DST in the other), which allows for a rich variety of 2D transforms, but in older codecs the variety of 2D transforms for a given block size is typically limited.
[0028] In addition to the quantized transform coefficients, the motion vectors and other syntax elements are entropy coded to output a bitstream (145). The encoder may also skip the transform and apply quantization directly to the untransformed residual signal on a 4x4TU basis. The encoder may also bypass both the transform and quantization, i.e., the residual is coded directly without applying a transform or quantization process. In direct PCM coding, no prediction is applied and the coded unit samples are coded directly into the bitstream.
[0029] The encoder decodes the coded block to provide a reference for further prediction. The quantized transform coefficients are dequantized (140) and inverse transformed (150) to decode the prediction residual. The decoded prediction residual is combined (155) with the predicted block to reconstruct an image block. An in-loop filter (165) is applied to the reconstructed picture, for example to perform deblocking / sample adaptive offset (SAO) filtering to reduce coding artifacts. The filtered image is stored in a reference picture buffer (180).
[0030] Figure 2 illustrates a block diagram of an example video decoder 200, such as an HEVC decoder. In the example decoder 200, the bitstream is decoded by the decoder elements described below. The video decoder 200 generally performs a reverse decoding pass of the encoding pass as described in Figure 1, which performs video decoding as part of the encoding of the video data. Figure 2 may also illustrate a decoder that improves on the HEVC standard or employs techniques similar to HEVC, such as a JEM decoder.
[0031] In particular, the decoder input includes a video bitstream that may be generated by video encoder 100. The bitstream is first entropy decoded (230) to obtain transform coefficients, motion vectors, picture partitioning information, and other coded information. The picture partitioning information indicates the size of the CTUs and how the CTUs are divided into CUs, and possibly PUs, if applicable. Thus, the decoder may divide the image into CTUs (235) and each CTU into CUs according to the decoded picture partitioning information. The transform coefficients are dequantized (240), including at least one embodiment for adapting chroma quantization parameters, described below, and inverse transformed (250) to decode the prediction residual.
[0032] The decoded prediction residual and the predicted block are combined (255) to reconstruct an image block. The prediction block may result from intra prediction (260) or motion compensated prediction (i.e., inter prediction) (275) (270). As described above, AMVP and merge mode techniques may be used to derive motion vectors for motion compensation, which may use an interpolation filter to calculate interpolated values of sub-integer samples of the reference block. An in-loop filter (265) is applied to the reconstructed image. The filtered image is stored in a reference picture buffer (280).
[0033] The decoded picture may further undergo a post-decoding process (285), such as an inverse color conversion (e.g., from YCbCr 4:2:0 to RGB 4:4:4) or an inverse remapping that performs the inverse of the remapping process performed in the pre-encoding process (101). The post-decoding process may use metadata derived in the pre-encoding process and signaled in the bitstream.
[0034] Emerging video compression tools include a coding tree unit representation in the compressed domain, which proposes to represent picture data in a more flexible way. The advantage of this more flexible representation of the coding tree is that it leads to improved compression efficiency compared to the CU / PU / TU arrangement of the HEVC standard.
[0035] Figure 3 shows an example of a quadtree plus binary tree (QTBT) CTU representation. The quadtree plus binary tree (QTBT) coding tool provides such increased flexibility. QTBT consists of a coding tree that can split a coding unit into both quadtree and binary tree ways. The split of the coding unit is determined at the encoder side via a rate-distortion optimization procedure to determine the QTBT representation of the CTU that has the lowest rate-distortion cost. In the QTBT technique, the CU has either a square or rectangular shape. The size of the coding unit is always a power of two, typically between 4 and 128. In addition to this various rectangular shapes of the coding unit, such CTU representations have the following different properties compared to HEVC: The QTBT decomposition of a CTU consists of two stages, first the CTU is split in a quadtree way, and then the leaves of each quadtree can be further split in a binary tree way. This is shown on the right side of the figure, where the solid lines represent the quadtree decomposition stage and the dashed lines represent the binary tree decomposition spatially embedded in the leaves of the quadtree. In intra slices, the partitioning structures of luma and chroma blocks are separated and determined independently. No CU partitioning into prediction units or transform units is employed. In other words, each coding unit is systematically composed of a single prediction unit (2Nx2N prediction unit partition type) and a single transform unit (no partitioning into transform trees).
[0036] Figure 4 shows an example of an extended set of coding unit partitioning. In the asymmetric binary tree partitioning mode (ABT), the size of the coding unit that is considered to be partitioned through one of the asymmetric binary partitioning modes, e.g., HOR_UP (horizontal-up), is
number
number
[0037] Figure 5 shows the coding efficiency improvement by using the QTBT+ABT coding structure. Such a coding structure is proposed in JVET-J0022. The table in Figure 5 shows the coding results of a subset of selected images listed in the first column. In the second column entitled "Reference", numerical values are given that represent the coding performance of a reference encoder depending on several coding parameters, showing the bit rate, PSNR for Y, U and V components, coding time and decoding time, respectively. In the third column entitled "Tested", numerical values represent the coding performance of a reference encoder modified to use the QTBT+ABT coding structure with the same coding parameters as the "Reference" coding. In this third column, the bit rate, PSNR for Y, U and V components, coding time and decoding time, respectively, are given. In the fifth column, numerical values represent the bit rate improvement for Y, U and V components.
[0038] The improvement in coding efficiency compared to standard coding is shown in the last column. In particular, in some embodiments, larger gains are obtained for the chroma components than for the luma components.
[0039] To fully benefit from such improvements, it is important to balance the resulting coding gains by shifting some gains from one or more chroma components to the luma component. This is particularly beneficial in certain embodiments, since at certain quality levels, additional coding efficiency improvements in the chroma component(s) typically do not provide additional visual benefits. Therefore, in at least one embodiment, it is proposed to employ quantization parameters in such a way as to trade off further quality improvements between the chroma and luma components. In at least one such embodiment, the overall bitrate of the entire coded bitstream, including the chroma and luma components, is reduced.
[0040] FIG. 6 shows the coding efficiency improvement when using the QTBT+ABT structure in one embodiment with a coding implementation of chroma quantization adaptation. FIG. 6 shows the coding efficiency performance obtained by using the video codec of JVET-J0022 used in the configuration of FIG. 5, but with the addition of chroma quantization adaptation. The table of FIG. 6 shows the coding results for a subset of selected images listed in the first column according to some parameters listed in the second column. In the third column, the numbers represent the coding performance of the reference encoder, showing the bit rate, the PSNR of the Y component, the U component, and the V component, respectively. In the fourth column, the numbers represent the coding performance of the reference encoder modified to use the QTBT+ABT coding structure. This fourth column shows the bit rate, the PSNR of the Y component, the U component, and the V component, respectively. In the fifth column, the numbers represent the improvement in the bit rate of the Y component, the U component, and the V component.
[0041] The table shows a significant coding efficiency improvement with a moderate relative loss in chroma coding efficiency compared to Figure 5. Furthermore, from a perceptual point of view, the luma component is usually much more important, so prioritizing luma over chroma from a coding efficiency point of view is very interesting.
[0042] In one embodiment, adapting the chroma quantization parameters allows for trading off bitrate allocation between luma and chroma components in a video coding scheme, whereby the coding efficiency of the luma component is adjusted with a controlled penalty in the coding efficiency of the chroma component. Furthermore, in at least one embodiment, the use of luma / chroma bitrate allocation is made independent of the coding tool being used in the encoding and decoding.
[0043] A first approach considers using well-known chroma QP (quantization parameter) offset sequence level parameters signaled in the high level syntax (sequence parameter set) of the coded bitstream. The drawback of such an approach is that the loss of chroma coding efficiency may become too large and difficult to control. Another approach considers using a so-called chroma QP table, which is used in inter-slice to derive the QP of a slice of chroma given the QP used in the luma slice of the same picture. In JEM, the QP of a chroma slice is calculated via a look-up table, here called the chroma QP table, given the QP associated with the luma slice. The chroma QP table is used to derive the QP of a slice's chroma components given the QP used in the luma components of the slice of the same picture. The index value into this table is the so-called base QP associated with the chroma component considered (i.e. the base chroma QP), which is obtained as the sum of the corresponding luma slice QP and the chroma QP offset of the slice considered. This chroma QP offset of the considered slice is obtained as the sum of the sequence-level chroma QP offset and the slice-level chroma QP delta corresponding to the considered slice. The output value corresponding to the index value can then be used as the QP value for encoding or decoding the chroma slice. It should be noted that the slice QP may be further modified by block-level QP adjustment, e.g., for rate control.
[0044] In JEM, the chroma QP table used depends only on the chroma format (e.g. 4:0:0, 4:2:0, 4:2:2, etc.), which hinders flexibility.
[0045] In the example embodiment, it is proposed to use different chroma QP tables for different coding configurations. In fact, the configuration of the coding system to reach a certain level of coding efficiency may involve tuning of coding parameters, which may include the set of partitions used, and several other parameters. Typically, the maximum tree depth allowed in the CTU coding tree representation also impacts the overall coding efficiency, allowing to reach a desired trade-off between coding efficiency and computational complexity at the encoder side.
[0046] One principle of the various embodiments is to signal the use of the desired chroma QP table by some means independent of the coding tool used to code or decode the sequence. Thus, the chroma QP table is selected as a coding configuration parameter on the encoder side. This usually takes the form of a high-level syntax element of "coding performance level" signaled in the Sequence Parameter Set (SPS) or Picture Parameter Set (PPS). It is decoded at the decoder and switches to the same chroma QP table that was used on the encoder side. In one embodiment, two sets of tables are proposed, so a simple binary flag is sufficient to carry the information. In other embodiments, more than two sets of tables are proposed, so an integer value (or other way of signaling one of the other sets) is required. The example shown below shows two sets of tables.
[0047] The range of QP values used in JEM is -6 to 51. The chroma QP table used in JEM for the 4:2:0 color format consists of 58 elements (i.e. one entry for each possible QP value), and is typically as follows: chromaQPTableJEM[0..57]=[0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 29, 30, 31, 32, 33, 33, 34, 34, 35, 35, 36, 36, 37, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51]
[0048] In one embodiment, it is proposed to use several sets of chroma QP tables. The tables are differentiated first with respect to the efficiency they are intended to code, and then with respect to their slice type (I slice type or non-I slice type). The chroma QP table set for standard coding efficiency level is as follows, containing values for both I slice type and non-I slice type: chromaQPTableStandardPerf[2][0..57]=[ [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 29, 30, 31, 32, 33, 33, 34, 34, 35, 35, 36, 36, 37, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51], [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 29, 30, 31, 32, 33, 33, 34, 35, 36, 36, 37, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53]]
[0049] The chroma QP table set for high performance coding efficiency level is as follows: chromaQPTableHighPerf[2][0..57]=[ [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 29, 30, 31, 32, 33, 33, 34, 34, 35, 35, 36, 36, 37, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51], [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 29, 30, 31, 32, 33, 34, 35, 35, 36, 37, 38, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54]
[0050] The chroma QP table contains zero or more output QPs and is non-decreasing as a function of input index, such that for each non-zero input index into the chroma QP table, its output integer value is greater than or equal to the output QP value associated with the preceding input index into that table.
[0051] The difference between the standard and high performance table sets is the following: the output QP value contained in the high performance table set is always equal to or greater than the output with the same input index value in the standard performance table set. In practice, this is especially relevant for high QP values.
[0052] In the illustrated example, for tables corresponding to non-I slice types, from an output QP value of 34 in the high performance table set, the output QP value with the same input index in the standard performance table set is equal to 33. Then, from that input index in the two tables, the output QP value in the high performance QP table for the non-I slice is strictly higher than the corresponding output QP value in the standard performance chroma QP table set. This is explained by the fact that as the coding efficiency improves in the high performance case, the bit rate in the chroma components can be reduced while maintaining comparable PSNR values in the chroma components. In this way, the overall bit rate is reduced while maintaining the target quality (PSNR) in the luma slice. Some overall coding gain is obtained with no or limited penalty in coding efficiency for chroma.
[0053] In the above two sets of tables, a two-dimensional array is used, where the first dimension of the array corresponds to the slice type (e.g., 0 → I_SLICE, 1 → B_SLICE (more generally, non-I slice)) and the second dimension corresponds to the base chroma QP for the slice considered.
[0054] As described further below, the chroma QP table sets may be stored in both the encoder and the decoder, and the encoder may indicate to the decoder, for example through a flag or index, which table set should be selected by the decoder. Alternatively, the table sets may be directly encoded into the bitstream.
[0055] On the encoder side, the encoder chooses which chroma QP table set to use. This selection can be made by a user through an encoding configuration parameter (usually a flag) that indicates whether or not the high performance chroma QP table set should be used during the encoding process and then the decoding process. In an example embodiment, this selection is made by setting a value in a file, and the flag is read by the encoding device, which interprets the value of the flag to select which chroma QP table to use. In an example embodiment, this selection is made manually by a user, who selects the encoding configuration parameter using a graphical user interface that operates the encoder device.
[0056] In another embodiment, this may be selected automatically by the encoder as a function of the measured coding efficiency obtained on the luma and chroma slices. Typically, this may consist in checking the PSNR values obtained on the Cb and Cr components. If these two values are significantly higher than the PSNR obtained on the corresponding luma slice, it may be important to boost the QP on the chroma components to save some bits. In doing so, the encoder may select the high-performance chroma QP table set and may indicate its use in the next SPS, PPS, or even slice header.
[0057] In the example embodiment, two performance levels are considered: standard and high, and in each setting, two chroma QP tables are used for different slice types. It should be noted that the technique can also be used for other numbers of settings or slice types. In this case, it is no longer possible to signal the table with one 1-bit flag, but rather a parameter offering a wider selection of values is required, e.g. an integer. Furthermore, the size of the chroma QP table can be different from 58, e.g. the table size can be adapted to the QP range.
[0058] FIG. 7A shows an example of a process used on the decoder side to determine the QP parameters used for coding and decoding of chroma components. The inputs to this process are chromaQP, which corresponds to the base chroma QP value for the considered slide (and is the value to be adapted), an "I-SLICE" flag indicating the slice type, and "HighPerformanceCodingFlag" indicating whether high performance coding efficiency is expected or not. In step 700, the slice type is checked, and if it is I-SLICE, in step 710, the index value is set to 0, which points to the set corresponding to the I-SLICE set. Otherwise, in step 711, the index value is set to 1, which points to the set corresponding to the non-I-SLICE set. In step 720, the "HighPerformanceCodingFlag" is checked. If this flag is set to true, in step 731, the outputChroma value is determined from the set of values of chromaQPTableHighPerf according to this index and the input value. If "HighPerformanceCodingFlag" is set to false, then in step 730, the outputChroma value is determined from the set of values of chromaQPTableStandardPerf according to this index and the input value. For example, if the initial chromaQP value is 57 (thus the "highest" possible value), then in high performance I-SLICE the chromaQP value will be set to 54 (the latest entry in the latest table). This will result in a reduction in the bitrate for the chroma components. A conventional decoding process is used to produce a decoded image.
[0059] As you can see, this flag is used to force the use of a chroma QP table in a prescriptive sense.
[0060] According to at least one embodiment, the selection between at least two of the chroma QP tables is achieved as a function of some other coding parameters, which may be related to the coding tree structure or to the set of valid coding modes or the set of valid partitioning modes selected for coding the considered video sequence.
[0061] As an example, coding parameters that may produce a standard performance level with the considered video codec may be: The coding tree structure used differs depending on the slice type and the temporal layer: The maximum quad-tree and binary tree depth allowed per picture of a random access sequence is shown in Figure 7B, and is detailed with the ABT and coding tree structure for the standard performance level.
[0062] Table 1 shows the maximum quadtree depth and binary tree depth used for the medium complexity profile with respect to slice type, temporal layer, and component for the random access coding structure. As can be seen in the table, the maximum allowed quadtree depth varies depending on the slice type, temporal level, and component. Furthermore, the maximum allowed binary tree depth varies depending on the slice type, temporal layer of the slice, and quadtree depth level. [Table 1]
[0063] Furthermore, in the standard performance level encoding process, the quadtree and binary tree multi-depth structures of ABT and coding tree structures for medium complexity (random access) are used as starting structures when coding random access intra-periods, which may be used as the starting coding tree structure for each intra-period if parallel coding of intra-periods is desired.
[0064] In addition to this starting configuration, subsequent pictures employ a dynamic adaptation process of maximum quad-tree depth and binary tree depth based on the average quad-tree and binary coding trees used for pictures already coded at the same temporal level in the considered intra period.
[0065] Furthermore, the coding parameters capable of producing a high performance level with the considered video codec are usually the following: When starting intra-period coding, the coding tree structure is modified for B slices compared to the standard performance structure: The maximum BT depth is always equal to 3, except for the quadtree depth level 0. This corresponds to the table below: [Table 2]
[0066] In other words, the maximum BT depth is one parameter related to the coding tree configuration that can be used to select a coding performance level and thereby select a corresponding chroma QP table. For example, according to Tables 1 and 2, if the maximum BT depth is equal to 2, the standard performance level chroma QP table is selected, and if the maximum BT depth is greater than 2, the high performance level chroma QP table is selected.
[0067] According to a further embodiment, an additional low-complexity encoder configuration may be used. In this case, the previously presented chroma QP table linked to the standard encoder performance level may be adopted for this low-complexity encoder configuration. Alternatively, a dedicated third chroma QP table may be used for the low-complexity encoder configuration.
[0068] The low-complexity encoder configuration introduced here corresponds to the following typical coding parameters: The combination level of the partitioning mode rate-distortion search may be further lowered in some slices compared to the standard performance level configuration. Typically, the asymmetric binary tree partitioning mode may be disabled for B slices, strictly speaking, with temporal layer larger than 0. Furthermore, some other coding modes with some encoder-side rate-distortion selection, and thus encoder complexity, may be disabled in the low-complexity encoder profile / configuration. For example, some inter-coding tools, such as template-based motion search or template-based affine motion model search for temporal prediction, may be disabled in case of the low-complexity profile. In other words, if the tools used are of a lower performance level, a low-performance chroma QP table is also selected.
[0069] According to at least one embodiment, the selection of a chroma QP table between a standard performance one, a high performance one, and possibly a low complexity additional one may be dynamically selected in each slice according to the coding tree configuration and possibly according to the partitioning mode allowed for the slice considered. Thus, in this embodiment, the chroma QP table used may differ from slice to slice. In this case, the chroma QP table used may be signaled in the slice header, the picture header, or the slice group header.
[0070] According to a further alternative to the last embodiment, the chroma QP table may not be explicitly signaled in the slice, picture or tile group header, but may be implied by the decoder according to the coding tree configuration used for the considered slice and possibly according to the coding mode allowed for the considered slice.
[0071] As in the last embodiment, if the same chroma QP table is used for an entire sequence, GOP (group of pictures) or intra period, the chroma QP table used for this sequence, intra period or GOP may also be implied by the decoder as a function of the coding tree structure used and signaled in the header data, and possibly also as a function of the coding modes allowed for coding / decoding of the sequence, intra period or GOP considered.
[0072] The above method of adapting chroma quantization parameters can be used to modify the quantization and dequantization modules (130, 140, 240) of JVET or HEVC encoders and decoders as shown in Figures 1 and 2. Furthermore, the present embodiments are not limited to JVET or HEVC, but can be applied to other standards, recommendations, and their extensions. The various embodiments described above can be used individually or in combination.
[0073] FIG. 8 illustrates a block diagram of an example system in which various aspects and embodiments may be implemented. In at least one embodiment, system 800 may be embodied as a device including the various components described below and configured to perform one or more of the aspects described herein. Examples of such devices include, but are not limited to, various electronic devices such as personal computers, laptop computers, smartphones, tablet computers, digital multimedia set-top boxes, digital television sets, personal video recording systems, connected home appliances, and servers. The elements of system 800, either alone or in combination, may be embodied in an integrated circuit, multiple ICs, and / or discrete components. For example, in at least one embodiment, the processing and encoder / decoder elements of system 800 are distributed across multiple ICs and / or discrete components. In various embodiments, system 800 is communicatively coupled to other similar systems or to other electronic devices, for example, via a communication bus or through dedicated input and / or output ports. In various embodiments, system 800 is configured to perform one or more of the aspects described herein.
[0074] The system 800 includes at least one processor 810 configured to execute instructions loaded therein, for example, in implementing various aspects described herein. The processor 810 may include embedded memory, input / output interfaces, and various other circuitry as known in the art. The system 800 includes at least one memory 820 (e.g., a volatile memory device and / or a non-volatile memory device). The system 800 includes a storage device 840, which may include non-volatile and / or volatile memory, including but not limited to EEPROM, ROM, PROM, RAM, DRAM, SRAM, flash, magnetic disk drives, and / or optical disk drives. The storage device 840 may include, by way of non-limiting example, an internal storage device, a removable storage device, and / or a network-accessible storage device.
[0075] The system 800 includes an encoder / decoder module 830 configured to process data to provide, for example, encoded or decoded video, which may include its own processor and memory. The encoder / decoder module 830 represents a module or modules that may be included in a device that performs encoding and / or decoding functions. As is known, a device may include one or both of an encoding module and a decoding module. Also, the encoder / decoder module 830 may be implemented as a separate element of the system 800 or may be incorporated within the processor 810 as a combination of hardware and software as known to those skilled in the art.
[0076] Program code to be loaded into the processor 810 or the encoder / decoder 830 to perform aspects described herein may be stored in the storage device 840 and subsequently loaded into the memory 820 for execution by the processor 810. According to various embodiments, one or more of the processor 810, the memory 820, the storage device 840, and the encoder / decoder module 830 may store one or more of various items during execution of the processes described herein. Such stored items may include, but are not limited to, input video, decoded video or portions of decoded video, bitstreams, matrices, variables, and intermediate or final results from the processing of equations, expressions, operations, and operational logic.
[0077] In some embodiments, memory internal to the processor 810 and / or the encoder / decoder module 830 is used to store instructions and provide working memory for processing required during encoding or decoding. However, in other embodiments, memory external to the processing device (e.g., the processing device can be either the processor 810 or the encoder / decoder module 830) is used for one or more of these functions. The external memory can be the memory 820 and / or the storage device 840, e.g., dynamic volatile memory and / or non-volatile flash memory. In some embodiments, an external non-volatile flash memory is used to store the TV's operating system. In at least one embodiment, a high-speed external dynamic volatile memory such as RAM is used as working memory for video coding and decoding operations, such as MPEG-2, HEVC, or VVC (Versatile Video Coding).
[0078] Input to the elements of system 800 may be provided through various input devices as shown in block 866. Such input devices may include, but are not limited to, (i) an RF section that receives an RF signal transmitted, for example, via wireless communication by a broadcaster, (ii) a composite input, (iii) a USB input, and / or (iv) an HDMI input.
[0079] In various embodiments, the input devices of block 866 have corresponding respective input processing elements as known in the art. For example, the RF section may be associated with elements necessary to (i) select a desired frequency (also referred to as selecting a signal or band-limiting a signal to a frequency band), (ii) downconvert the selected signal, (iii) band-limit again to a narrower frequency band to select a signal frequency band, which in certain embodiments may be referred to as a channel (for example), (iv) demodulate the downconverted, band-limited signal, (v) perform error correction, and (vi) demultiplex to select a desired data packet stream. The RF section of various embodiments includes one or more elements that perform these functions, such as a frequency selector, a signal selector, a band limiter, a channel selector, a filter, a downconverter, a demodulator, an error corrector, and a demultiplexer. The RF section may include, for example, a wavelength tuner that performs a variety of these functions, including downconverting a received signal to a lower frequency (e.g., an intermediate frequency or near baseband frequency) or to baseband. In one set-top box embodiment, the RF section and its associated input processing elements perform frequency selection by receiving, filtering, downconverting, and refiltering RF signals transmitted over a wired (e.g., cable) medium to a desired frequency band. In various embodiments, the order of the above (and other) elements is rearranged, some of these elements are removed, and / or other elements that perform similar or different functions are added. Adding elements may include inserting elements between existing elements, such as inserting amplifiers and analog-to-digital converters. In various embodiments, the RF section includes an antenna.
[0080] The USB and / or HDMI terminals may also include respective interface processors for connecting the system 800 to other electronic devices over USB and / or HDMI connections. It should be appreciated that various aspects of the input processing, e.g., Reed-Solomon error correction, may be implemented, for example, in a separate input processing IC or in the processor 810, as desired. Similarly, aspects of the USB or HDMI interface processing may be implemented, for example, in a separate interface IC or in the processor 810, as desired. The demodulated, error corrected and demultiplexed stream is provided to various processing elements, including the processor 810, which operates in conjunction with memory and storage elements, and the encoder / decoder 830, to process the data stream as desired for display on an output device.
[0081] The various elements of system 800 may be provided within a unitary housing in which the various elements are interconnected and data may be transmitted therebetween using any suitable connection arrangement, for example, an internal bus as is known in the art, including an I2C bus, hardwired, and printed circuit boards.
[0082] System 800 includes a communication interface 850 that enables communication with other devices over a communication channel 870. The communication interface 850 may include, but is not limited to, a transceiver configured to transmit and receive data over the communication channel 870. The communication interface 850 may include, but is not limited to, a modem or a network card, and the communication channel 870 may be implemented in a wired and / or wireless medium, for example.
[0083] In various embodiments, data is streamed to the system 800 using a Wi-Fi network, such as IEEE 802.11. The Wi-Fi signal in these embodiments is received via a communication channel 870 and communication interface 850 adapted for Wi-Fi communication. The communication channel 870 in these embodiments is typically connected to an access point or router that provides access to outside networks, including the Internet, to enable streaming applications and other over-the-top communication. Other embodiments provide streamed data to the system 800 using a set-top box that delivers data via an HDMI connection in the input block 866. Still other embodiments provide streamed data to the system 800 using an RF connection in the input block 866.
[0084] System 800 can provide output signals to various output devices, including display 880, speakers 882, and other peripherals 884. Other peripherals 884, in various example embodiments, include a standalone DVR, a disc player, a stereo system, a lighting system, and other devices that provide functionality based on the output of system 800. In various embodiments, control signals are communicated between system 800 and display 880, speakers 882, or other peripherals 884 using signaling such as AV link, CEC, or other communication protocols that allow device-to-device control with or without user intervention. Output devices may be communicatively coupled to system 800 via dedicated connections through respective interfaces 860, 862, and 864. Alternatively, output devices may be connected to system 800 using communication channel 870 via communication interface 850. Display 880 and speakers 882 may be integrated in a single unit with other components of system 800 in an electronic device, such as a television. In various embodiments, the display interface 860 includes a display driver, such as, for example, a timing controller (T Con) chip.
[0085] The display 880 and speakers 882 may alternatively be separate from one or more of the other components, for example, if the RF portion of input 866 is part of a separate set-top box. In various embodiments in which the display 880 and speakers 882 are external components, the output signal may be provided via a dedicated output connection, including, for example, an HDMI® port, a USB port, or a composite (COMP) output.
[0086] The embodiments described herein may be implemented, for example, in a method or process, an apparatus, a software program, a data stream, or a signal. The implementation of the discussed functions may be implemented in other forms (e.g., an apparatus or a program) even if discussed only in the context of a single form of embodiment (e.g., discussed only as a method). An apparatus may be implemented, for example, in appropriate hardware, software, and firmware. The methods may be implemented, for example, in an apparatus, and may be implemented, for example, in a processor, which broadly refers to a processing device including, for example, a computer, a microprocessor, an integrated circuit, or a programmable logic device. Processors also include communication devices, including, for example, computers, mobile phones, portable / personal digital assistants ("PDAs"), and other devices that facilitate the transfer of information between end users.
[0087] FIG. 9A shows a flowchart of an example of an encoding method according to an embodiment implementing chroma quantization adaptation. Such an encoding method may be executed by the system 800 described in FIG. 8, and more precisely, by the processor 810. In at least one embodiment, in step 910, the processor 810 selects a set of chroma QP tables to be used. As mentioned above, this selection may be made using different techniques, e.g., manually by a user or automatically by an encoder, e.g., dynamically for each slice according to a coding tree configuration. Once this selection is made, in step 920, encoding is performed according to the quantization parameters selected for the chroma components, and the selection of the chroma QP table is signaled in a high-level syntax element (e.g., in the following SPS, PPS, or even in the slice header).
[0088] FIG. 9B shows a flowchart of some examples of a decoding method according to an embodiment implementing chroma quantization adaptation. Such a decoding method may be executed by the system 800 described in FIG. 8, or more precisely, by the processor 810. In at least one embodiment, in step 950, a signal is accessed (e.g., received on an input interface or read from a media support). High-level syntax elements are extracted and analyzed to determine quantization parameters for selected chroma components at the encoding device. In step 960, these parameters are used to dequantize the chroma components. A conventional decoding process is used to produce a decoded image (not shown in FIG. 9B), which may be provided to a device or displayed on the device, for example.
[0089] "One embodiment" or "an embodiment", or "one implementation" or "an implementation", as well as other variations thereof, means that a particular feature, structure, characteristic, etc. described in connection with an embodiment is included in at least one embodiment. Thus, the appearances of the phrases "in one embodiment" or "in an embodiment", or "in one implementation" or "in an implementation", as well as other variations thereof, appearing in various places throughout this specification are not necessarily all referring to the same embodiment.
[0090] Also, the application or claims thereof may refer to "determining" various pieces of information. Determining information may include, for example, one or more of valuing the information, estimating the information, predicting the information, or retrieving the information from a memory.
[0091] Additionally, the application or claims thereof may refer to "accessing" various information. Accessing information may include, for example, one or more of receiving information, retrieving information (e.g., from a memory), storing information, moving information, copying information, estimating information, predicting information, or valuing information.
[0092] Also, the application or claims thereof may refer to "receiving" various information. Receiving is intended to be broad, similar to "accessing." Receiving information may include, for example, one or more of accessing information or retrieving information (e.g., from memory or optical media storage). Furthermore, "receiving" typically involves in some way, for example, storing information, processing information, transmitting information, moving information, copying information, erasing information, estimating information, determining information, predicting information, or valuing information.
[0093] For example, in the case of "A / B," "A and / or B," and "at least one of A and B," it should be understood that the use of any of " / ," "and / or," and "at least one of" is intended to encompass the selection of only the first listed option (A), or the selection of only the second listed option (B), or the selection of both options (A and B). As a further example, in the case of "A, B, and / or C" and "at least one of A, B, and C," such language is intended to encompass the selection of only the first listed option (A), or the selection of only the second listed option (B), or the selection of only the third listed option (C), or the selection of only the first and second listed options (A and B), or the selection of only the first and third listed options (A and C), or the selection of only the second and third listed options (B and C), or the selection of all three options (A, B, and C). This can be applied regardless of the number of items listed, as will be readily apparent to one of skill in the art.
[0094] As will be apparent to one of ordinary skill in the art, the implementations can produce a wide variety of signals formatted to convey information, which can be stored or transmitted, for example. The information can include, for example, instructions for performing a method, or data produced by one of the described implementations. For example, the signal can be formatted to carry a bit stream of the described embodiments. Such a signal can be formatted, for example, as an electromagnetic wave (e.g., using a radio frequency portion of the spectrum) or as a baseband signal. Formatting can include, for example, encoding a data stream and modulating a carrier wave with the encoded data stream. The information that the signal conveys can be, for example, analog or digital information. The signal can be transmitted over a wide variety of different wired or wireless links, as is known. The signal can be stored on a processor-readable medium.
[0095] According to a variant embodiment of the first aspect, a method is presented, further comprising generating a bitstream including metadata representative of at least the encoded block and the at least one selected chroma quantization parameter.
[0096] According to a variant embodiment of the second aspect, a method is presented, further comprising: generating a reconstructed image based on the dequantized chromium values of a plurality of blocks of the image.
[0097] According to a variant embodiment according to the third aspect, a signal is presented, further comprising an encoding of at least one block of an image.
[0098] According to a variant embodiment according to a fourth aspect, a device is presented, further comprising means for generating a bitstream including metadata representative of at least the encoded block and the at least one selected chroma quantization parameter.
[0099] According to a variant embodiment according to the fifth aspect, a device is presented, further comprising: generating a reconstructed image based on dequantized chroma values of a plurality of blocks of the image.
Claims
1. 1. A method comprising: selecting, for a block of an image, at least one chroma quantization parameter from a chroma quantization parameter table selected from a plurality of sets of chroma quantization parameter tables, the chroma quantization parameter table being selected based on a coding performance level indicative of coding efficiency, the set of chroma quantization parameters differing depending on whether the image is motion predicted or not; encoding the block based on at least one selected chroma quantization parameter, the encoding comprising quantizing chroma values of the block in accordance with the at least one selected chroma quantization parameter; generating a bitstream including at least the encoded blocks and metadata representative of the encoding performance level; Including, A method, wherein the multiple sets of chroma quantization parameter tables are stored on a device that executes the method.
2. The method of claim 1 , wherein the coding performance level is selected based on a coding tree configuration or a coding mode or a partitioning mode.
3. A device, comprising: means for storing a plurality of sets of chroma quantization parameter tables; means for selecting, for a block of an image, at least one chroma quantization parameter from a chroma quantization parameter table selected from a plurality of sets of chroma quantization parameter tables, the chroma quantization parameter table being selected based on a coding performance level indicative of coding efficiency, the set of chroma quantization parameters differing depending on whether the image is motion predicted or not; means for encoding the block based on at least one selected chroma quantization parameter, the encoding comprising quantizing chroma values of the block in accordance with the at least one selected chroma quantization parameter; means for generating a bitstream including at least the encoded blocks and metadata representative of the encoding performance level; A device comprising:
4. The device of claim 3 , wherein the coding performance level is selected based on a coding tree configuration or a coding mode or a partitioning mode.
5. A computer program comprising program code instructions executable by a processor for performing the steps of the method according to at least one of claims 1 to 2.
6. A computer program stored on a non-transitory computer readable medium and comprising program code instructions executable by a processor for performing the steps of the method according to at least one of claims 1-2.
Citation Information
Patent Citations
Moving image encoding apparatus
JP2010187302A
Video image coding method and video image decoding method
JP2017216687A
Block-Adaptive Color Space Conversion Coding
JP2017520991A
Method for determining color difference component quantization parameter and device using the method
US20130329785A1
