A method for decoding image data

By using a tree type in a video coding system to derive predicted brightness quantization parameters and determining quantization parameters based on adjacent block availability, the problem of low video coding efficiency in the prior art is solved and more efficient video data coding is achieved.

CN113366840BActive Publication Date: 2024-10-11SHARP KK
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202080009409.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Priority Date
2019-01-17
Filing Date
2020-01-15
Publication Date
2024-10-11
Estimated Expiration
2040-01-15

AI Technical Summary

Technical Problem

Existing video coding technology has problems of low efficiency and high complexity when deriving quantization parameters. Especially when processing multi-component video data, it is difficult to effectively utilize quantization parameters for coding optimization.

Method used

By introducing tree types in the video coding system to derive predicted brightness quantization parameters, using single or double trees to divide the coding tree, and determining the quantization parameters based on the availability of adjacent blocks, generate appropriate quantization parameters to optimize the encoding process of video blocks.

Benefits of technology

It improves the efficiency and flexibility of video encoding, can more accurately process the quantization parameters of brightness and chrominance components, and improves encoding quality and compression rate.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113366840B_ABST
    Figure CN113366840B_ABST
Patent Text Reader

Abstract

The present invention discloses a method for encoding video data and a method for decoding video data. According to the method, a predicted brightness quantization parameter is derived and a brightness quantization parameter is generated. The predicted brightness quantization parameter is derived by using a tree type, and the tree type specifies whether a single tree or a double tree is used to divide the coding tree. The brightness quantization parameter is generated by using the predicted brightness quantization parameter. When a first condition of a current quantization group is true and a second condition of adjacent block availability is true, the predicted brightness quantization parameter is set to be equal to the brightness quantization parameter of a coding unit containing a brightness coding block covering an adjacent position. The adjacent position is located above the current quantization group.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to video encoding and, more particularly, to techniques for deriving quantization parameters. Background Art

[0002] Digital video capabilities can be incorporated into a variety of devices, including digital televisions, laptop or desktop computers, tablet computers, digital recording devices, digital media players, video game devices, cellular phones (including so-called smart phones), medical imaging devices, etc. Digital video can be encoded according to a video coding standard. Video coding standards can be combined with video compression technology. Examples of video coding standards include ISO / IEC MPEG-4Visual and ITU-T H.264 (also known as ISO / IEC MPEG-4AVC) and High Efficiency Video Coding (HEVC). HEVC is described in High Efficiency Video Coding (HEVC) of the ITU-T H.265 Recommendation in December 2016, which is incorporated herein by reference and is referred to herein as ITU-TH.265. ITU-T H.265 is currently being considered for expansion and improvement to develop the next generation of video coding standards. For example: the ITU-T Video Coding Experts Group (VCEG) and the ISO / IEC Moving Picture Experts Group (MPEG) (collectively referred to as the Joint Video Study Group (JVET)) are studying the potential need for standardization of future video coding technologies with compression capabilities significantly exceeding the current HEVC standard. The Joint Exploration Model 7 (JEM 7), Algorithmic Description of the Joint Exploration Test Model 7 (JEM 7), ISO / IEC JTC1 / SC29 / WG11 document: JVET-G1001 (July 2017, Torino, Italy), incorporated herein by reference, describes the coding features under investigation by JVET under the Joint Test Model, which is a potential enhanced video coding technology beyond the capabilities of ITU-T H.265. It should be noted that the coding features of JEM 7 are implemented in the JEM reference software. As used herein, the term JEM may refer collectively to the algorithms included in JEM 7 and to specific implementations of the JEM reference software.

[0003] Video compression techniques can reduce the data requirements for storing and transmitting video data. Video compression techniques can reduce data requirements by exploiting the redundancy inherent in video sequences. Video compression techniques can subdivide video sequences into successively smaller parts (i.e., groups of frames within a video sequence, frames within a group of frames, segments within a frame, coding tree units (e.g., macroblocks) within a segment, coding blocks within a coding tree unit, etc.). Intra-frame prediction coding techniques (e.g., intra-picture (spatial)) and inter-frame prediction techniques (i.e., inter-picture (temporal)) can be used to generate the difference between the video data unit to be encoded and the reference unit of the video data. The difference may be referred to as residual data. The residual data may be encoded as quantized transform coefficients. Syntax elements may involve residual data and reference coding units (e.g., intra-frame prediction mode indexes, motion vectors, and block vectors). The residual data and syntax elements may be entropy encoded. Entropy-encoded residual data and syntax elements may be included in a compatible bitstream. Summary of the invention

[0004] In one example, a method for decoding image data is provided, the method comprising the steps of: deriving a predicted brightness quantization parameter by using a tree type that specifies whether a single tree or a double tree is used to partition a coding tree; and generating a brightness quantization parameter by using the predicted brightness quantization parameter, wherein when a first condition of a current quantization group is true and a second condition of neighboring block availability is true, the predicted brightness quantization parameter is set equal to a brightness quantization parameter of a coding unit containing a brightness coding block covering a neighboring position; and the neighboring position is located above the current quantization group.

[0005] In one example, a method for encoding image data is provided, the method comprising:

[0006] A predicted luminance quantization parameter is derived by using a tree type that specifies whether a single tree or a dual tree is used to partition the coding tree; and a luminance quantization parameter is generated by using the predicted luminance quantization parameter, wherein when a first condition of a current quantization group is true and a second condition of neighboring block availability is true, the predicted luminance quantization parameter is set equal to a luminance quantization parameter of a coding unit containing a luminance coding block covering a neighboring position; and the neighboring position is located above the current quantization group. BRIEF DESCRIPTION OF THE DRAWINGS

[0007] Figure 1 is a conceptual diagram illustrating an example of a set of pictures encoded according to quadtree binary tree partitioning according to one or more techniques of this disclosure.

[0008] Figure 2 is a conceptual diagram illustrating an example of a quadtree binary tree in accordance with one or more techniques of this disclosure.

[0009] Figure 3is a conceptual diagram illustrating a quadtree binary tree partitioning of video components in accordance with one or more techniques of this disclosure.

[0010] Figure 4 is a conceptual diagram illustrating an example of a video component sampling format in accordance with one or more techniques of this disclosure.

[0011] Figure 5 is a conceptual diagram illustrating a possible encoding structure for a block of video data in accordance with one or more techniques of this disclosure.

[0012] Fig. 6A is a conceptual diagram illustrating an example of encoding a block of video data in accordance with one or more techniques of this disclosure.

[0013] Figure 6B is a conceptual diagram illustrating an example of encoding a block of video data in accordance with one or more techniques of this disclosure.

[0014] Figure 7 is a conceptual diagram illustrating video component partitioning in accordance with one or more techniques of this disclosure.

[0015] Figure 8 is a conceptual diagram illustrating a quadtree binary tree partitioning of video components in accordance with one or more techniques of this disclosure.

[0016] Fig. 9 is a conceptual diagram illustrating video component partitioning in accordance with one or more techniques of this disclosure.

[0017] Fig.10 is a block diagram illustrating an example of a system that may be configured to encode and decode video data in accordance with one or more techniques of this disclosure.

[0018] Fig.11 is a block diagram illustrating an example of a video encoder that may be configured to encode video data in accordance with one or more techniques of this disclosure.

[0019] Fig.12 is a conceptual diagram illustrating video component partitioning and neighboring video blocks, in accordance with one or more techniques of this disclosure.

[0020] Fig.13 is a conceptual diagram illustrating video component partitioning and neighboring video blocks, in accordance with one or more techniques of this disclosure.

[0021] Fig.14 is a conceptual diagram illustrating video component partitioning and neighboring video blocks, in accordance with one or more techniques of this disclosure.

[0022] Fig.15 is a conceptual diagram illustrating video component partitioning and neighboring video blocks, in accordance with one or more techniques of this disclosure.

[0023] Fig.16 is a conceptual diagram illustrating an example of a quadtree binary tree in accordance with one or more techniques of this disclosure.

[0024] Fig.17 is a conceptual diagram illustrating video component partitioning and quantization groups in accordance with one or more techniques of this disclosure.

[0025] Fig.18 is a block diagram illustrating an example of a video decoder that may be configured to decode video data in accordance with one or more techniques of this disclosure. DETAILED DESCRIPTION

[0026] In general, the present disclosure describes various techniques for encoding video data. Specifically, the present disclosure describes techniques for deriving quantization parameters. It should be noted that although the techniques of the present disclosure are described with respect to ITU-T H.264, ITU-T H.265, and JEM, the techniques of the present disclosure are generally applicable to video coding. For example, in addition to those techniques included in ITU-T H.265 and JEM, the encoding techniques described herein may be incorporated into video encoding systems (including video encoding systems based on future video encoding standards), including block structures, intra-frame prediction techniques, inter-frame prediction techniques, transform techniques, filtering techniques, and / or other entropy encoding techniques. Therefore, references to ITU-T H.264, ITU-T H.265, and / or JEM are for descriptive purposes and should not be interpreted as limiting the scope of the techniques described herein. In addition, it should be noted that the inclusion of the document by reference herein is for descriptive purposes and should not be interpreted as limiting or creating ambiguity about the terms used herein. For example: where an incorporated reference provides a definition for a term that differs from another incorporated reference and / or as used herein, the term should be interpreted in a manner that broadly includes each corresponding definition and / or in a manner that includes each specific definition in alternatives.

[0027] In one example, a method of encoding video data includes determining a predicted quantization parameter for a current video block based at least in part on a quantization parameter associated with a reference video block, a partition used to generate the reference video block, and a partition used to generate the current video block, and generating a quantization parameter for the current video block based at least in part on the determined predicted quantization parameter.

[0028] In one example, an apparatus for encoding video data includes one or more processors configured to determine a predicted quantization parameter for a current video block based at least in part on a quantization parameter associated with a reference video block, a partition used to generate the reference video block, and a partition used to generate the current video block, and to generate a quantization parameter for the current video block based at least in part on the determined predicted quantization parameter.

[0029] In one example, a non-transitory computer-readable storage medium includes instructions stored thereon that, when executed, cause one or more processors of a device to: determine a predicted quantization parameter for a current video block based at least in part on a quantization parameter associated with a reference video block, a partition used to generate the reference video block, and a partition used to generate the current video block, and generate a quantization parameter for the current video block based at least in part on the determined predicted quantization parameter.

[0030] In one example, an apparatus includes: means for determining a predicted quantization parameter for a current video block based at least in part on a quantization parameter associated with a reference video block, means for generating a partition of the reference video block, and means for generating a partition of the current video block, and means for generating a quantization parameter for the current video block based at least in part on the determined predicted quantization parameter.

[0031] The details of one or more examples are set forth in the accompanying drawings and the description below. Other features, objects, and advantages will be apparent from the description and drawings, and from the claims.

[0032] Video content generally includes a video sequence consisting of a series of frames (or pictures). A series of frames may also be referred to as a group of pictures (GOP). Each video frame or picture may include multiple segments or tiles, wherein the segments or tiles include multiple video blocks. As used herein, the term "video block" may generally refer to an area of ​​a picture, or may more specifically refer to a maximum array of sample values ​​that can be predictively encoded, its sub-partitions and / or corresponding structures. In addition, the term "current video block" may refer to an area of ​​a picture being encoded or decoded. A video block may be defined as an array of sample values ​​that can be predictively encoded. It should be noted that in some cases, a pixel value may be described as a sample value comprising a corresponding component of video data, which may also be referred to as a color component (e.g., brightness (Y) and chrominance (Cb and Cr) components or red, green and blue components). It should be noted that in some cases, the terms "pixel value" and "sample value" may be used interchangeably. Video blocks may be sorted within a picture according to a scanning mode (e.g., raster scanning). A video encoder may perform predictive coding on a video block and its sub-partitions. A video block and its sub-partitions may be referred to as a node.

[0033] ITU-T H.264 specifies macroblocks including 16×16 luma samples. That is, in ITU-T H.264, pictures are partitioned into macroblocks. ITU-T H.265 specifies a similar coding tree unit (CTU) structure (which may be referred to as a maximum coding unit (LCU)). In ITU-T H.265, pictures are partitioned into CTUs. In ITU-T H.265, for a picture, the CTU size may be set to include 16×16, 32×32, or 64×64 luma samples. In ITU-T H.265, a CTU consists of a corresponding coding tree block (CTB) for each component of the video data, for example, luma (Y) and chroma (Cb and Cr). It should be noted that a video with one luma component and two corresponding chroma components may be described as having two channels, i.e., a luma channel and a chroma channel. In addition, in ITU-T H.265, CTUs can be divided according to a quadtree (QT) partitioning structure, which allows the CTBs of a CTU to be divided into coding blocks (CBs). That is, in ITU-T H.265, CTUs can be divided into quadtree leaf nodes. According to ITU-TH.265, a luma CB together with two corresponding chroma CBs and associated syntax elements is called a coding unit (CU). In ITU-T H.265, the minimum allowed size of a CB can be signaled. In ITU-T H.265, the minimum allowed minimum size of a luma CB is 8×8 luma samples. In ITU-T H.265, the decision to encode a picture area using intra prediction or inter prediction is made at the CU level.

[0034] In ITU-T H.265, a CU is associated with a prediction unit (PU) structure having its root at the CU. In ITU-T H.265, the PU structure allows the partitioning of luma CB and chroma CB to generate corresponding reference samples. That is, in ITU-T H.265, the luma CB and chroma CB can be partitioned into corresponding luma prediction blocks and chroma prediction blocks (PBs), where the PBs include blocks of sample values ​​to which the same prediction is applied. In ITU-T H.265, the CB can be divided into 1, 2, or 4 PBs. ITU-T H.265 supports PB sizes from 64×64 samples down to 4×4 samples. In ITU-T H.265, square PBs are supported for intra prediction, where the CBs can form a PB, or the CBs can be partitioned into four square PBs (i.e., the intra prediction PB types include M×M or M / 2×M / 2, where M is the height and width of the square CB). In ITU-T H.265, in addition to square PBs, rectangular PBs are also supported for inter prediction, where the CB can be halved vertically or horizontally to form a PB (i.e., inter prediction PB types include M×M, M / 2×M / 2, M / 2×M, or M×M / 2). In addition, it should be noted that in ITU-T H.265, for inter prediction, four asymmetric PB partitions are supported, where the CB is divided into two PBs at one quarter of the height (top or bottom) or width (left or right) of the CB (i.e., asymmetric partitions include M / 4×M left, M / 4×M right, M×M / 4 top, and M×M / 4 bottom). Intra prediction data (e.g., intra prediction mode syntax element) or inter prediction data (e.g., motion data syntax element) corresponding to the PB is used to generate reference and / or prediction sample values ​​for the PB.

[0035] JEM specifies a CTU with a maximum size of 256×256 luma samples. JEM specifies a quadtree plus binary tree (QTBT) block structure. In JEM, the QTBT structure allows the quadtree leaf nodes to be further divided by the binary tree (BT) structure. That is, in JEM, the binary tree structure allows the quadtree leaf nodes to be recursively divided vertically or horizontally. Figure 1 An example is shown in which a CTU (e.g., a CTU having a size of 256×256 luma samples) is divided into quad leaf nodes and the quad leaf nodes are further divided according to a binary tree. That is, in Figure 1 In FIG. 1 , the dashed lines indicate additional binary tree partitions in the quadtree. Therefore, the binary tree structure in JEM implements square and rectangular leaf nodes, where each leaf node includes a CB. Figure 1 As shown, a picture included in a GOP may include slices, wherein each slice includes a CTU sequence, and each CTU may be divided according to a QTBT structure. Figure 1An example of QTBT partitioning of one CTU included in a segment is shown. Figure 2 is shown corresponding to Figure 1 An exemplary QTBT is shown conceptually showing an example of a partitioned QTBT.

[0036] In JEM, QTBT is signaled by signaling the QT split flag and the BT split mode syntax element. When the value of the QT split flag is 1, QT split is indicated. When the value of the QT split flag is 0, the BT split mode syntax element is signaled. When the value of the BT split mode syntax element is 0 (i.e., BT split mode coding tree = 0), binary split is not indicated. When the value of the BT split mode syntax element is 3 (i.e., BT split mode coding tree = 11), vertical split mode is indicated. When the value of the BT split mode syntax element is 2 (i.e., BT split mode coding tree = 10), horizontal split mode is indicated. In addition, BT split can be performed until the maximum BT depth is reached. Therefore, according to JEM, Figure 2 The QTBT shown in can be expressed based on the pseudo-grammar provided in Table 1:

[0037]

[0038] Table 1

[0039] like Figure 2 As shown in Table 1, the QT split flag syntax element and the BT split mode syntax element are associated with a depth, where a depth of zero corresponds to the root of the QTBT, and a higher value of the depth corresponds to a subsequent depth other than the root. In addition, in JEM, the luma channel and the chroma channel may have separate QTBT partitions. That is, in JEM, the luma channel and the chroma channel may be partitioned independently by signaling the corresponding QTBT. Figure 3 An example of dividing a CTU according to a QTBT for luma components and independent QTBTs for chroma components is shown. Figure 3 As shown in , when independent QTBT is used to divide CTU, the CB of luma component does not need to and is not necessarily aligned with the CB of chroma component. Currently, in JEM, an independent QTBT structure is enabled for intra prediction technology segments. It should be noted that for video data segments with intra type (which may be referred to as intra prediction segments), only intra prediction mode is enabled, and for video data segments with inter type (which may be referred to as inter prediction segments), both intra prediction mode and inter prediction mode are enabled.

[0040] Additionally, it should be noted that the JEM includes the following parameters for signaling the QTBT tree: CTU size: the root node size of the quadtree (e.g., 256×256, 128×128, 64×64, 32×32, 16×16 luma samples);

[0041] MinQTSize: minimum allowed quadleaf node size (e.g., 16×16, 8×8 brightness samples);

[0042] MaxQTSize is the maximum allowed binary tree root node size, i.e., the maximum size of a quadtree leaf node that can be partitioned by binary splitting (e.g., 64×64 luminance samples);

[0043] MaxBTDepth: the maximum allowed binary tree depth, i.e. the lowest level at which a binary tree split can occur, with a quadtree leaf node as the root (e.g., 3);

[0044] MinBTSize: Minimum allowed binary leaf node size; that is, the minimum width or height of a binary leaf node (e.g., 4 luma samples).

[0045] It should be noted that in some examples, MinQTSize, MaxBTSize, MaxBTDepth and / or MinBTSize may be different for different components of a video.

[0046] In JEM, CB is used for prediction without any further partitioning. That is, in JEM, CB can be a block of sample values ​​to which the same prediction is applied. Therefore, JEM QTBT leaf node can be similar to PB in ITU-T H.265.

[0047] The video sampling format (which may also be referred to as the chroma format) may define the number of chroma samples included in a CU relative to the number of luma samples included in the CU. For example: for a 4:2:0 sampling format, the sampling rate of the luma component is twice the sampling rate of the chroma components in both horizontal and vertical directions. Therefore, for a CU formatted according to the 4:2:0 format, the width and height of the sample array for the luma component are twice the width and height of each sample array for the chroma components. Figure 4 is a conceptual diagram illustrating an example of coding units formatted according to a 4:2:0 sample format. Figure 4 shows the relative position of chroma samples relative to luma samples within a CU. As mentioned above, a CU is usually defined based on the number of horizontal and vertical luma samples. Figure 4 As shown, a 16×16 CU formatted according to the 4:2:0 sample format includes 16×16 samples of the luma component and 8×8 samples for each chroma component. Figure 4In the example shown, the relative positions of chroma samples of adjacent video blocks of a 16×16 CU with respect to luma samples are shown. For a CU formatted according to the 4:2:2 format, the width of the sample array of the luma component is twice the width of the sample array of each chroma component, but the height of the sample array of the luma component is equal to the height of the sample array of each chroma component. In addition, for a CU formatted according to the 4:4:4 format, the sample array of the luma component has the same width and height as the sample array of each chroma component.

[0048] As described above, intra prediction data or inter prediction data is used to generate reference sample values ​​for a block of sample values. The difference between the sample values ​​included in the current PB or another type of picture region structure and the associated reference samples (e.g., those generated using prediction) can be referred to as residual data. The residual data may include a corresponding difference array corresponding to each component of the video data. The residual data may be in the pixel domain. A transform such as a discrete cosine transform (DCT), a discrete sine transform (DST), an integer transform, a wavelet transform, or a conceptually similar transform may be applied to the difference array to generate transform coefficients. In some cases, the transform process may include rotation and / or performing one or more one-dimensional transforms. It should be noted that in ITU-T H.265, a CU is associated with a transform unit (TU) structure having its root at the CU level. That is, in ITU-T H.265, in order to generate transform coefficients, the array of difference values ​​may be subdivided (e.g., four 8×8 transforms may be applied to a 16×16 residual value array). For each component of the video data, such subdivision of the difference value may be referred to as a transform block (TB). It should be noted that in ITU-T H.265, TB is not necessarily aligned with PB. Figure 5 Examples of alternative PB and TB combinations that can be used to encode a particular CB are shown. Furthermore, it should be noted that in ITU-T H.265, TBs can have the following sizes: 4×4, 8×8, 16×16, and 32×32.

[0049] It should be noted that in JEM, the residual values ​​corresponding to CB are used to generate transform coefficients without further partitioning. That is, in JEM, the QTBT leaf node can be similar to both PB and TB in ITU-T H.265. It should be noted that in JEM, a core transform and a subsequent secondary transform can be applied (in a video encoder) to generate transform coefficients. For a video decoder, the order of transforms is reversed. In addition, in JEM, whether a secondary transform is applied to generate transform coefficients may depend on the prediction mode.

[0050] For example, in the case of palette coded quantization, the quantization process may be performed directly on the transform coefficients or residual sample values. Quantization approximates the transform coefficients by limiting the amplitude to a set of specified values. Quantization essentially scales the transform coefficients in order to change the amount of data required to represent a set of transform coefficients. Quantization may include dividing the transform coefficients (or the resulting values ​​of adding the offset values ​​to the transform coefficients) by a quantization scaling factor and any associated rounding functions (e.g., rounding to the nearest integer). The quantized transform coefficients may be referred to as coefficient level values. Inverse quantization (or "dequantization") may include multiplying the coefficient level values ​​by the quantization scaling factor, as well as any reciprocal rounding or offset addition operations. It should be noted that, as used herein, the term quantization process may refer to dividing by a scaling factor in some cases to generate a level value, and may refer to multiplying by a scaling factor in some cases to recover the transform coefficients. That is, the quantization process may refer to quantization in some cases, and to inverse quantization in some cases. In addition, it should be noted that although the quantization process is described in some of the examples below with respect to arithmetic operations associated with decimal notation, such description is for illustrative purposes and should not be construed as limiting. For example, the techniques described herein can be implemented in devices that use binary operations, etc. For example, the multiplication and division operations described herein can be implemented using shift operations, etc.

[0051] For the formulas used in this article, the following arithmetic operators can be used:

[0052] +Addition

[0053] - Subtraction

[0054] * Multiplication, including matrix multiplication

[0055] x y Exponentiation. Raises x to the power of y. In other contexts, such symbols are used for superscripts and are not intended to be interpreted as exponentiation.

[0056] / Integer division truncates the result toward zero. For example, 7 / 4 and -7 / -4 are truncated to 1, and -7 / 4 and 7 / -4 are truncated to -1.

[0057] ÷ is used to represent division in mathematical formulas when truncation or rounding is not intended.

[0058] Used to represent division in mathematical formulas without the intent to truncate or round.

[0059] x % y modulus. The remainder when x is divided by y, defined only for integers x and y where x ≥ 0 and y > 0.

[0060] Additionally, the following logical operators can be used:

[0061] x && y The Boolean logical "AND" of x and y

[0062] x || y The Boolean logical "OR" of x and y

[0063] ! The Boolean logical "NOT"

[0064] x? y : z If x is TRUE or not equal to 0, evaluate to y; otherwise, evaluate to z.

[0065] In addition, the following relational operators can be used:

[0066] > Greater than

[0067] >= Greater than or equal to

[0068] < Less than

[0069] <= Less than or equal to

[0070] == Equal to

[0071] != Not equal to

[0072] In addition, the following bitwise operators can be used:

[0073] & Bitwise "AND". When operating on integer variables, operate on the two's complement representation of the integer value. When operating on binary variables that contain fewer bits than another variable, extend the shorter variable by adding more significant bits equal to 0.

[0074] | Bitwise "OR". When operating on integer variables, operate on the two's complement representation of the integer value. When operating on binary variables that contain fewer bits than another variable, extend the shorter variable by adding more significant bits equal to 0.

[0075] ^ Bitwise "XOR". When operating on integer variables, operate on the two's complement representation of the integer value. When operating on binary variables that contain fewer bits than another variable, extend the shorter variable by adding more significant bits equal to 0.

[0076] x >> y The two's complement integer representation of x is arithmetically right-shifted by y binary bits. This function is only defined for non-negative integer values of y.

[0077] The value of the bit shifted into the most significant bit (MSB) due to the right shift is equal to the MSB of x before the shift operation.

[0078] x << y The two's complement integer representation of x is arithmetically left-shifted by y binary bits. This function is only defined for non-negative integer values of y.

[0079] The value of the bit shifted into the least significant bit (LSB) due to the left shift is equal to 0.

[0080] Additionally, the following math functions are available:

[0081] Log2(x), logarithm of x to base 2;

[0082]

[0083]

[0084] FIG. 6A to FIG. 6B is a conceptual diagram showing an example of encoding a video data block. Fig. 6A As shown, a current block of video data (e.g., corresponding to a CB of a video component) is encoded by subtracting a set of prediction values ​​from the current block of video data to generate a residual, performing a transform on the residual, and quantizing the transform coefficients to generate a level value. Figure 6B As shown in , the current video data block is decoded by performing inverse quantization on the level value, performing an inverse transform, and adding a set of prediction values ​​to the resulting residual. It should be noted that in FIG. 6A to FIG. 6B In the example of , the sample values ​​of the reconstructed block are different from the sample values ​​of the current video block being encoded. In this way, the encoding can be considered lossy. However, for a viewer of the reconstructed video, the difference in sample values ​​can be considered acceptable or imperceptible.

[0085] In addition, if FIG. 6A to FIG. 6B As shown, coefficient level values ​​are generated using a scaling factor array. In ITU-T H.265, a scaling factor array is generated by selecting a scaling matrix and multiplying each entry in the scaling matrix by a quantization scaling factor. In ITU-T H.265, a scaling matrix is ​​selected based in part on the prediction mode and the color component, where scaling matrices of the following sizes are defined: 4×4, 8×8, 16×16, and 32×32. It should be noted that in some examples, the scaling matrix may provide the same value for each entry (i.e., all coefficients are scaled according to a single value). In ITU-T H.265, the value of the quantization scaling factor may be determined by a quantization parameter QP. In ITU-T H.265, for a bit depth of 8 bits, QP can take 52 values ​​from 0 to 51, and a QP change of 1 generally corresponds to a change of about 12% in the value of the quantization scaling factor. It should be noted that, more generally, in ITU-TH.265, the valid range of QP values ​​for source bit depths is: -6*(bitdepth-8) to +51 (including end values). Thus, for example, with a bit depth of 10 bits, QP can take 64 values ​​from -12 to 51, which can be mapped to values ​​0 to 63 during dequantization.

[0086] In addition, in ITU-T H.265, a QP value for a set of transform coefficients may be derived using a predicted quantization parameter value (which may be referred to as a predicted QP value or a QP prediction value) and an optionally signaled quantization parameter delta value (which may be referred to as a QP delta value or a deltaQP value). In ITU-T H.265, a quantization parameter may be updated for each CU, and a respective quantization parameter may be derived for each of the luma and chroma channels. In ITU-T H.265, for a current CU, a predicted QP value (i.e., a signaled QP at a slice level or a QP from a previous CU) is inherited for the CU, and a deltaQP value may be optionally signaled for each TU within the CU. For the luma channel, the QP for each luma TB is the sum of the predicted QP value and any signaled deltaQP value. Furthermore, for most profiles in ITU-T H.265, for the chroma channels of the current CU, the chroma QP is a function of the QP determined for the luma channel and the chroma QP offset signaled in the slice header and / or the chroma QP offset signaled in the picture parameter set (PPS).

[0087] As described above, in ITU-T H.265, an incremental QP value may be optionally signaled for each TU within a CU. Specifically, in ITU-T H.265, the quantization group size is used to determine whether an incremental QP may be signaled for a particular TU. For example, a video encoder may select a CTU size of 64×64 and a quantization group size of 32×32. In this case, if the CTU is divided into four 32×32 CUs with corresponding 32×32 TUs, an incremental QP may be signaled for each TU. However, if the 32×32 CU is further divided into smaller TUs (e.g., 8×8, 16×16), an incremental QP is sent only for the first 8×8 TU in each 32×32 CU region. It should be noted that in ITU-T H.265, the TU structure aligns TBs for each luma channel and chroma channel. That is, in ITU-T H.265, a TB for a component (e.g., a chroma component) directly corresponds to a TB for another component. In ITU-T H.265, a difference value is signaled in the PPS (i.e., the syntax element diff_cu_qp_delta_depth) to indicate the difference between the luma CTB size and the quantization group size. For example, if the CTB size is 64x64 and the quantization group size is 16x16, a difference value (in logarithmic notation) is signaled to indicate the quantization group size. It should be noted that in ITU-T H.265, the quantization groups are always square.

[0088] As described above, quantization may include dividing the transform coefficients by a quantization scaling factor (referred to herein as Q scaling) and any associated rounding functions (e.g., rounding to the nearest integer). In some cases, quantization may result in a scale value of zero, for example, for a relatively high quantization parameter. Non-zero scale values ​​may be described as valid. In ITU-T H.265, a coding block flag (cbf) may be signaled for each component to indicate whether the transform block includes one or more transform coefficient scales (e.g., coding block flags, cbf_luma, cbf_cb, and cbf_cr) that are not equal to 0. In addition, in ITU-T H.265, cbf may be signaled at the root (root_cbf) to indicate the presence of cbf_luma, cbf_cb, and cbf_cr, and therefore, to indicate whether the block corresponding to the root does not include a valid coefficient. In ITU-T H.265, the signaling of the delta QP value is conditional on one of cbf_luma, cbf_cb, or cbf_cr (cbfChroma in the logical expression cbf_cb OR cbf_cr), indicating that one or more transform coefficient levels of the component are not equal to 0 (i.e., when the TU includes a valid level value, the delta QP value may be signaled). That is, the syntax indicating the delta QP value (delta_qp()) may exist in the TU unit syntax, as provided in the example of the pseudo-syntax of Table 2.

[0089]

[0090] Table 2

[0091] Regarding delta_qp() syntax, ITU-T H.265 includes the following syntax shown in Table 3:

[0092]

[0093] Table 3

[0094] The cu_qp_delta_enabled_flag is defined in ITU-T H.265 as follows:

[0095] cu_qp_delta_enabled_flag equal to 1 specifies that ... cu_qp_delta_abs may be present in transform unit syntax ... cu_qp_delta_enabled_flag equal to 0 specifies that ... cu_qp_delta_abs is not present in transform unit syntax ...

[0096] The syntax elements cu_qp_delta_abs and cu_qp_delta_sign_flag are described in further detail below. IsCuQpDeltaCoded is also set to 1 when the first non-zero TU of a quantization group is signaled and a delta_qp value is received. IsCuQpDeltaCoded is set to 0 at the beginning of a new quantization group. The start of a new quantization group is determined based on the quantization group size. For example, if the quantization group size is the same as the CTU size, IsCuQpDeltaCoded is set to 0 at the beginning of the CTU.

[0097] The dequantization process defined in ITU-T H.265 for each entry in the x×y array can be summarized as follows:

[0098] d[x][y]=((TransCoeffLevel[x][y]*m[x][y]*levelScale[qP%6]<<(qP / 6))+(1<<(bdShift-1)))>>bdShift

[0099] in

[0100] d[x][y] is the obtained transformation coefficient;

[0101] TransCoeffLevel[x][y] is the coefficient level value;

[0102] m[x][y] is the scaling matrix;

[0103] levelScale[k] = {40, 45, 51, 57, 64, 72}, where k = 0..5;

[0104] qP is the quantization parameter;

[0105] bdShift=BitDepth+Log2(nTbS)+10;

[0106] BitDepth is the bit depth of the corresponding component; and

[0107] nTbS specifies the size of the corresponding transform block.

[0108] It should be noted that in some cases (eg, for DCT), the transform coefficient at d[0][0] may be referred to as the DC transform coefficient, and the other transform coefficients in the array may be referred to as AC transform coefficients.

[0109] As described above, in ITU-T H.265, for the luma component, the QP of each luma TB is the sum of the predicted QP value and any signaled delta QP value. Specifically, for the current CU, the video decoder may derive the value of the luma QP based on the prediction derived from the QP value of the neighboring CU. That is, in ITU-T H.265, the luma QP (Qp'Y) is derived as follows:

[0110] Qp' Y =Qp Y +QpBdOffset Y ;

[0111] in

[0112] Q Y =((qP Y_PRED +CuQpDeltaVal+52+2*QpBdOffset Y )%(52+QpBdOffset Y ))-QpBdOffset Y ;

[0113] in

[0114] Q Y_PRED =((qP Y_A +qP Y_B +1)>>1;

[0115] in

[0116] In most cases, qP Y_A Set equal to the Qp of the coding unit to the left of the current CU Y ;

[0117] In most cases, qP Y_B Set equal to the Qp of the coding unit above the current CU Y ;

[0118] in

[0119] CuQpDeltaVal=cu_qp_delta_abs*(1-2*cu_qp_delta_sign_flag);

[0120] in

[0121] cu_qp_delta_abs is a syntax element conditionally included in the bitstream at the transform unit level, which specifies the absolute value of the difference CuQpDeltaVal between the luma quantization parameter of the current coding unit and its prediction.

[0122] cu_qp_delta_sign_flag is a syntax element conditionally included in the bitstream at transform unit level that specifies the sign of CuQpDeltaVal as follows:

[0123] - If cu_qp_delta_sign_flag is equal to 0, the corresponding CuQpDeltaVal has a positive value.

[0124] - Otherwise (cu_qp_delta_sign_flag is equal to 1), the corresponding CuQpDeltaVal has a negative value.

[0125] in

[0126] QpBdOffset Y =6*bit_depth_luma_minus8;

[0127] in

[0128] bit_depth_luma_minus8 is a syntax element included in the bitstream at the sequence level, which specifies the value of the luma quantization parameter range offset QpBdOffsetY and should be in the range of 0 to 8 (inclusive).

[0129] It should be noted that in some cases, for example, when neighboring blocks are not available, qPY_A and qPY_B may be set equal to the variable qP Y_PREV In ITU-T H.265, qP Y_PREV Set to the QpY of the last coding unit in the previous quantization group in decoding order, or set equal to SliceQp determined based on the syntax element slice_qp_delta signaled in the bitstream at the slice header Y ,in

[0130] slice_qp_delta specifies the initial value of QpY to be used for coding blocks in a slice until modified by the value of CuQpDeltaVal in the coding unit layer. The initial value of the QpY quantization parameter for a slice, SliceQpY, is derived as follows:

[0131] SliceQpY=26+init_qp_minus26+slice_qp_delta

[0132] The value of SliceQpY should be in the range of –QpBdOffsetY to +51 (inclusive).

[0133] As described above, currently, in JEM, independent QTBT partitioning for luma and chroma channels is enabled for intra-prediction segments, and the QTBT leaf nodes may be similar to TBs in ITU-T H.265. In JEM, in the case where independent QTBT partitioning is not enabled (i.e., inter segments), the syntax indicating the delta QP value exists in a similar manner in the CU unit syntax as provided in ITU-T H.265, as described above with respect to the example of the pseudo-syntax of Table 2. In JEM, in the case where the independent QTBT structure is enabled (i.e., for intra segments), when the luma and chroma channels have separate partitioning trees, the QP values ​​are signaled independently for the luma component and the chroma component. Specifically, two sets of syntax indicating delta QP (i.e., delta_qp() for luma and delta_qp() for chroma) are adjusted independently for cbfLuma and cbfChroma, respectively. That is, for each independent QTBT partition, delta_qp() may exist, as provided in the example of the pseudo-syntax of Tables 4A and 4B.

[0134]

[0135] Table 4A

[0136]

[0137] Table 4B

[0138] See again Fig. 6A, the quantized transform coefficients are encoded into a bitstream. The quantized transform coefficients and syntax elements (e.g., syntax elements indicating the coding structure of the video block) may be entropy encoded according to an entropy coding technique. Examples of entropy coding techniques include content adaptive variable length coding (CAVLC), context adaptive binary arithmetic coding (CABAC), probability interval partitioning entropy coding (PIPE), etc. The entropy-coded quantized transform coefficients and the corresponding entropy-coded syntax elements may form a compatible bitstream that can be used to reproduce video data at a video decoder. The entropy coding process may include binarizing the syntax elements. Binarization refers to the process of converting the value of a syntax value into a sequence of one or more bits. These bits may be referred to as "binary codes". Binarization is a lossless process and may include one or a combination of the following coding techniques: fixed length coding, unary coding, truncated unary coding, truncated Rice coding, Golomb coding, k-order exponential Golomb coding, and Golomb-Rice coding. For example, binarization may include representing the integer value 5 of the syntax element as 00000101 using an 8-bit fixed-length binarization technique, or representing the integer value 5 as 11110 using a unary coding binarization technique. As used herein, each of the terms fixed-length coding, unary coding, truncated unary coding, truncated Rice coding, Golomb coding, k-order exponential Golomb coding, and Golomb-Rice coding may refer to general implementations of these techniques and / or more specific implementations of these coding techniques. For example, a Golomb-Rice coding implementation may be specifically defined according to a video coding standard (e.g., ITU-T H.265). The entropy coding process also includes encoding the binary code value using a lossless data compression algorithm. In the example of CABAC, for a particular binary code, a context model may be selected from a set of available context models associated with the binary code. In some examples, a context model may be selected based on a previous binary code and / or a value of a previous syntax element. A context model may identify the probability that a certain binary code has a particular value. For example, the context model may indicate that the probability of encoding a binary code with a value of 0 is 0.7, and the probability of encoding a binary code with a value of 1 is 0.3. It should be noted that in some cases, the sum of the probability of encoding a binary code with a value of 0 and the probability of encoding a binary code with a value of 1 may not be equal to 1. After selecting an available context model, the CABAC entropy encoder may arithmetically encode the binary code based on the identified context model. The context model may be updated based on the value of the encoded binary code. The context model may be updated based on associated variables stored with the context, such as: adaptation window size, the number of encoded binary codes using the context.It should be noted that according to ITU-T H.265, a CABAC entropy encoder may be implemented such that some syntax elements may be entropy encoded using arithmetic coding without using an explicitly specified context model, such encoding may be referred to as bypass coding.

[0139] As described above, intra prediction data or inter prediction data may associate an area of ​​a picture (e.g., PB or CB) with a corresponding reference sample. For intra prediction coding, an intra prediction mode may specify the position of a reference sample within a picture. In ITU-T H.265, possible intra prediction modes defined include a plane (i.e., surface fitting) prediction mode (predMode:0), a DC (i.e., flat overall average) prediction mode (predMode:1), and 33 angle prediction modes (predMode:2-34). In JEM, possible intra prediction modes defined include a plane prediction mode (predMode:0), a DC prediction mode (predMode:1), and 65 angle prediction modes (predMode:2-66). It should be noted that the plane prediction mode and the DC prediction mode may be referred to as a non-directional prediction mode, and the angle prediction mode may be referred to as a directional prediction mode. It should be noted that the techniques described herein may be generally applicable regardless of the number of possible prediction modes defined.

[0140] For inter-frame prediction coding, a motion vector (MV) identifies a reference sample in a picture other than the picture of the video block to be encoded, thereby exploiting temporal redundancy in the video. For example, the current video block can be predicted from one or more reference blocks located in one or more previously encoded frames, and a motion vector can be used to indicate the location of the reference block. The motion vector and associated data may describe, for example, the horizontal component of the motion vector, the vertical component of the motion vector, the resolution of the motion vector (e.g., quarter-pixel precision, half-pixel precision, one-pixel precision, two-pixel precision, four-pixel precision), the prediction direction, and / or the reference picture index value. In addition, coding standards such as ITU-T H.265 may support motion vector prediction. Motion vector prediction allows the motion vector to be specified to use the motion vectors of neighboring blocks. Examples of motion vector prediction include advanced motion vector prediction (AMVP), temporal motion vector prediction (TMVP), so-called "merge" mode, and "skip" and "direct" motion inference. In addition, JEM supports advanced temporal motion vector prediction (ATMVP) and spatial-temporal motion vector prediction (STMVP).

[0141] As described above, in JEM, independent QTBTs can be used to independently partition the luma channel and the chroma channel. In some cases, it may be useful to enable partitioning of the CTU so that the luma channel and the chroma channel have a common partitioning structure up to the CU level, and one or both of the luma channel and the chroma channel are enabled to be further partitioned. For example, commonly assigned U.S. Provisional Patent Application No. 62 / 598,956, filed on December 14, 2017, describes a technique for using a common partitioning structure up to the CU level, and if the CU condition is met, each of the luma channel and the chroma channel can be further partitioned. For example, if the CU is an intra-prediction CU included in an inter-prediction fragment, the CU can be further partitioned for the purpose of generating predictions corresponding to the further partitioning. Figure 7 An example is shown in which, for a CTU, the luma channel and the chroma channel have a common partition structure up to the CU level, and the CU (i.e., CU FP ) is further divided into each of the luminance channel and the chrominance channel. It should be noted that relative to Figure 7 , to simplify the illustration, only one CU in the CUs in the CTU is shown as being further divided. Figure 7 In the example shown, each illustrated CB may be a block of sample values ​​to which the same prediction is applied. Figure 7 The CB shown in may be similar to the PB in ITU-T H.265. However, it should be noted that Figure 7 The CB in is not limited to the PB shape defined in ITU-T H.265 (ie, the CB may have a shape resulting from QTBT division).

[0142] refer to Figure 7 , C.U. FP The brightness channel of CU is further divided according to the quadrilateral division, and CU FP The chroma channels are further divided according to the vertical division. Figure 8 is shown corresponding to Figure 7 1 is a conceptual diagram of an example of an exemplary QTBT partitioned QTBT. Figure 8 As shown, once a CU associated with a common partition is reached, a QTBT is signaled for each of the luma and chroma channels. Table 5 shows an example of a pseudo syntax that can be used to signal the QTBT for Figure 8The example shown has shared QTBTs and independent QTBTs for luma and chroma channels. It should be noted that, with respect to Table 5, for illustrative purposes, the FI_Part tag only shows the conditions (e.g., prediction mode, etc.) on which further independent partitioning may be based. It should be noted that, in Table 5, as described above with respect to Table 1, QT flag = 0 indicates no QT split; QT flag = 1 indicates QT split; Bt flag = 0 indicates no BT split; Bt flag = 1 indicates vertical BT split; and BT flag = 2 indicates horizontal BT split. In addition, the signaling in the example shown in Table 5 is based on the so-called z-scan.

[0143]

[0144]

[0145] Table 5

[0146] As shown in Table 5, upon reaching a coding unit (BT split = 0), the condition for further independent splitting is determined. If the condition is false, no further split signaling occurs for that coding unit. If the condition is true, QTBT is signaled for the luma channel and QTBT is signaled for the chroma channels.

[0147] Table 6 shows the general case of signaling that occurs for a coding unit. In some examples, further splitting may be disabled for one of the luma or chroma channels. In such examples, either coding_tree_unit_luma() or coding_tree_unit_chroma() in Table 6 may be replaced with coding_block_luma() or coding_block_chroma().

[0148]

[0149] Table 6

[0150] In addition, various techniques may be used to determine whether and how the luma channel and / or chroma channel may be further divided beyond the CU. Therefore, in Table 6, coding_tree_unit_luma() and coding_tree_unit_chroma() may provide semantics for enabling various types of divisions. In one example, the luma channel and the chroma channel may be further divided beyond the CU according to separate partitioning trees or shared partitioning trees. Figure 7 An example of further partitioning into luma and chroma channels beyond the CU according to separate partitioning trees is shown. Fig. 9An example is shown in which the luminance channel and the chrominance channel beyond the CU are further divided according to the shared partitioning tree. In one example, the flag may indicate whether the luminance channel and the chrominance channel are further divided according to a separate partitioning tree or a shared partitioning tree. Table 7 shows an example in which the flag (i.e., separate_tree_flag) indicates whether the luminance channel and the chrominance channel are further divided according to separate partitioning trees (i.e., coding_tree_unit_luma() and coding_tree_unit_chroma()) or a shared partitioning tree (i.e., coding_tree_unit_shared()), where coding_tree_unit_shared() provides semantics for enabling various types of partitioning.

[0151]

[0152] Table 7

[0153] As mentioned above, in JEM, the QTBT leaf node can be similar to the TB in ITU-T H.265. Figure 7 According to the JEM as described above, the QP value will be derived at the CU level. Therefore, the techniques described in the JEM may not be ideal. For example, the techniques described in the JEM for deriving QP values ​​may not be easily applicable to the following cases: the case where the luma channel and the chroma channels have a common partition structure up to the CU level, and the case where one or both of the luma channel and the chroma channel can be further divided for the purpose of generating predictions.

[0154] Fig.10 1 is a block diagram illustrating an example of a system that may be configured to encode (e.g., encode and / or decode) video data in accordance with one or more techniques of this disclosure. System 100 represents an example of a system that may perform video encoding using the partitioning techniques described in accordance with one or more techniques of this disclosure. Figure 8 As shown, system 100 includes source device 102, communication medium 110, and target device 120. Fig.10 In the example shown, source device 102 may include any device configured to encode video data and transmit the encoded video data to communication medium 110. Target device 120 may include any device configured to receive the encoded video data via communication medium 110 and decode the encoded video data. Source device 102 and / or target device 120 may include computing devices equipped for wired and / or wireless communication, and may include set-top boxes, digital video recorders, televisions, desktop, laptop or tablet computers, game consoles, mobile devices including, for example, "smart" phones, cellular phones, personal gaming devices, and medical imaging devices.

[0155] The communication medium 110 may include any combination of wireless and wired communication media and / or storage devices. The communication medium 110 may include coaxial cables, fiber optic cables, twisted pair cables, wireless transmitters and receivers, routers, switches, repeaters, base stations, or any other device that can be used to facilitate communication between various devices and sites. The communication medium 110 may include one or more networks. For example: the communication medium 110 may include a network configured to allow access to the World Wide Web, such as the Internet. The network may operate according to a combination of one or more telecommunication protocols. The telecommunication protocol may include proprietary aspects and / or may include standardized telecommunication protocols. Examples of standardized telecommunication protocols include digital video broadcasting (DVB) standards, advanced television system committee (ATSC) standards, integrated service digital broadcasting (ISDB) standards, cable data service interface specifications (DOCSIS) standards, global mobile communication systems (GSM) standards, code division multiple access (CDMA) standards, 3rd Generation Partnership Project (3GPP) standards, European Telecommunications Standards Institute (ETSI) standards, Internet Protocol (IP) standards, wireless application protocol (WAP) standards, and Institute of Electrical and Electronics Engineers (IEEE) standards.

[0156] A storage device may include any type of device or storage medium capable of storing data. The storage medium may include a tangible or non-transitory computer-readable medium. The computer-readable medium may include an optical disk, a flash memory, a magnetic memory, or any other suitable digital storage medium. In some examples, a memory device or a portion thereof may be described as a non-volatile memory, and in other examples, a portion of a memory device may be described as a volatile memory. Examples of volatile memory may include random access memory (RAM), dynamic random access memory (DRAM), and static random access memory (SRAM). Examples of non-volatile memory may include a magnetic hard disk, an optical disk, a floppy disk, a flash memory, or an electrically programmable memory (EPROM) or an electrically erasable and programmable (EEPROM) memory. One or more storage devices may include a memory card (e.g., a secure digital (SD) memory card), an internal / external hard drive, and / or an internal / external solid-state drive. Data may be stored on a storage device according to a defined file format.

[0157] Reference again Fig.10, source device 102 includes video source 104, video encoder 106 and interface 108. Video source 104 may include any device configured to capture and / or store video data. For example: video source 104 may include a camera and a storage device operably coupled thereto. Video encoder 106 may include any device configured to receive video data and generate a compatible bitstream representing video data. A compatible bitstream may refer to a bitstream from which a video decoder can receive and reproduce video data. Various aspects of a compatible bitstream may be defined according to a video coding standard. When generating a compatible bitstream, video encoder 106 may compress video data. Compression may be lossy (perceptible or imperceptible) or lossless. Interface 108 may include any device configured to receive a compatible video bitstream and transmit and / or store the compatible video bitstream to a communication medium. Interface 108 may include a network interface card such as an Ethernet card, and may include an optical transceiver, a radio frequency transceiver, or any other type of device that can send and / or receive information. In addition, interface 108 may include a computer system interface that may allow a compatible video bitstream to be stored on a storage device. For example, interface 108 may include a computer system interface that supports peripheral component interconnect (PCI) and peripheral component interconnect express (PCIe) bus protocols, proprietary bus protocols, universal serial bus (USB) protocols, I 2 C's chipset or any other logical and physical structure that can be used to interconnect peer devices.

[0158] Reference again Fig.10 , target device 120 includes interface 122, video decoder 124, and display 126. Interface 122 may include any device configured to receive a compatible video bitstream from a communication medium. Interface 108 may include a network interface card such as an Ethernet card, and may include an optical transceiver, a radio frequency transceiver, or any other type of device that can receive and / or send information. In addition, interface 122 may include a computer system interface that allows a compatible video bitstream to be retrieved from a storage device. For example, interface 122 may include a computer system interface that supports PCI and PCIe bus protocols, dedicated bus protocols, USB protocols, I 2 C chipset, or any other logical and physical structure that can be used to interconnect peer devices. Video decoder 124 may include any device configured to receive a compatible bitstream and / or an acceptable variant thereof, and reproduce video data therefrom. Display 126 may include any device configured to display video data. Display 126 may include a variety of display devices such as: a liquid crystal display (LCD), a plasma display, an organic light emitting diode (OLED) display, or one of another type of display. Display 126 may include a high definition display or an ultra high definition display. It should be noted that although in Figure 8In the example shown, video decoder 124 is described as outputting data to display 126, but video decoder 124 can be configured to output video data to various types of devices and / or subcomponents thereof. For example, video decoder 124 can be configured to output video data to any communication medium, as described herein.

[0159] Fig.11 is a block diagram illustrating an example of a video encoder 200 that may implement the techniques described herein for encoding video data. It should be noted that although the exemplary video encoder 200 is illustrated as having different functional blocks, such illustration is intended for descriptive purposes and does not limit the video encoder 200 and / or its subcomponents to a particular hardware or software architecture. The functionality of the video encoder 200 may be implemented using any combination of hardware, firmware, and / or software implementations. In one example, the video encoder 200 may be configured to encode video data in accordance with the techniques described herein. The video encoder 200 may perform intra-frame prediction encoding and inter-frame prediction encoding of picture regions, and therefore may be referred to as a hybrid video encoder. In Fig.11 In the example shown, the video encoder 200 receives a source video block. In some examples, the source video block may include a picture area that has been divided according to a coding structure. For example: the source video data may include macroblocks, CTUs, CBs, their sub-partitions and / or other equivalent coding units. In some examples, the video encoder 200 may be configured to perform additional subdivision of the source video block. It should be noted that some of the techniques described herein may be generally applicable to video coding, regardless of how the source video data is divided before and / or during encoding. Fig.11 In the example shown, the video encoder 200 includes a summer 202, a transform coefficient generator 204, a coefficient quantization unit 206, an inverse quantization / transform processing unit 208, a summer 210, an intra-frame prediction processing unit 212, an inter-frame prediction processing unit 214, a filter unit 216 and an entropy coding unit 218.

[0160] like Fig.11As shown, the video encoder 200 receives a source video block and outputs a bitstream. The video encoder 200 can generate residual data by subtracting a predicted video block from a source video block. The summer 202 represents a component configured to perform the subtraction operation. In one example, the subtraction of the video block occurs in the pixel domain. The transform coefficient generator 204 applies a transform, such as a discrete cosine transform (DCT), a discrete sine transform (DST), or a conceptually similar transform, to its residual block or sub-partition (for example, four 8×8 transforms can be applied to a 16×16 residual value array) to generate a set of residual transform coefficients. The transform coefficient generator 204 can be configured to perform any and all combinations of transforms included in the discrete triangular transform series. As described above, in ITU-T H.265, TBs are limited to the following sizes 4×4, 8×8, 16×16, and 32×32. In one example, the transform coefficient generator 204 may be configured to perform transforms according to arrays of sizes 4×4, 8×8, 16×16, and 32×32. In one example, the transform coefficient generator 204 may be further configured to perform transforms according to arrays of other sizes. In particular, in some cases, it may be useful to perform transforms on rectangular arrays of different values. In one example, the transform coefficient generator 204 may be configured to perform transforms according to the following array sizes: 2×2, 2×4N, 4M×2, and / or 4M×4N. In one example, a two-dimensional (2D) M×N inverse transform may be implemented as a one-dimensional (1D) M-point inverse transform followed by a 1D N-point inverse transform. In one example, a 2D inverse transform may be implemented as a 1D N-point vertical transform followed by a 1D N-point horizontal transform. In one example, a 2D inverse transform may be implemented as a 1D N-point horizontal transform followed by a 1D N-point vertical transform. The transform coefficient generator 204 may output the transform coefficients to the coefficient quantization unit 206.

[0161] The coefficient quantization unit 206 may be configured to perform quantization of the transform coefficients. As described above, the degree of quantization may be modified by adjusting a quantization parameter. The coefficient quantization unit 206 may be further configured to determine the quantization parameter and output QP data (e.g., data for determining a quantization group size and / or an incremental QP value), which a video decoder may use to reconstruct the quantization parameter to perform inverse quantization during video decoding. It should be noted that in other examples, one or more additional or alternative parameters may be used to determine the quantization scale (e.g., a scaling factor). The techniques described herein may generally be applied to determine the quantization scale of a transform coefficient corresponding to another component of video data based on the quantization scale of a transform coefficient corresponding to another component of video data.

[0162] As described above, the techniques used in JEM to derive QP values ​​may not be ideal. According to the techniques described herein, coefficient quantization unit 206 may be further configured to determine quantization parameters for video blocks in the case where the luma channel and the chroma channels may have a common partitioning structure up to a certain level and (e.g., for the purpose of generating predictions) enable further partitioning of one or both of the luma channel and the chroma channel according to separate or shared partitioning structures. Figure 7 and Fig. 9 , according to the techniques described herein, the CBs shown may be blocks of sample values ​​to which the same prediction is applied. In addition, the CUs shown may correspond to transform and quantization groups. That is, the residuals may be aligned with the CUs shown for transform and / or quantization purposes. Thus, the CUs may have corresponding QP values ​​for each of the luma and chroma channels.

[0163] Fig.12 Examples of the left neighboring CU, the upper neighboring CU, the last encoded CU, and the temporal neighboring CU of the current CU are shown. Fig.12 Corresponding to the exemplary partitioning described above with respect to Table 5. Thus, neighboring CUs may be defined based on spatial and / or temporal sample positions (including in one or more reference pictures), and a last coded CU may refer to a video block previously coded according to video coding semantics, e.g., according to a scan order (e.g., z-scan). Furthermore, as described above, each CU may have a corresponding QP value for each of the luma channel and the chroma channels. In one example, the derivation of the QP value for the current video block may include deriving the QP value based on one or more of: a QP value of a neighboring spatial or temporal video block, and / or a last coded QP value. As described in further detail below, a spatial position offset (e.g., a motion vector) may be used to collocate or determine a temporal video block.

[0164] Fig.13 An example is shown in which the last coded CU and the neighboring CU use separate trees to further divide the luma channel and the chroma channel. In one example, according to the technology of this article, when the last coded block uses separate trees to further divide the luma channel and the chroma channel, the last coded QP value lastCodedQP used to derive the QP value of the current CU can be derived based on the luma QP value lastCodedLumaQP of the last coded CU and / or the chroma QP value lastCodedChromaQP of the last coded CU. For example, lastCodedQP can be derived according to one of the following formulas:

[0165] lastCodedQP=

[0166] (lastCodedLumaQP+lastCodedChromaQp+1)>>1;

[0167] lastCodedQP=

[0168] lastCodedLumaQP;

[0169] lastCodedQP=

[0170] max(lastCodedLumaQP,lastCodedChromaQp); or

[0171] lastCodedQP=

[0172] min(lastCodedLumaQP,lastCodedChromaQp)

[0173] In one example, according to the technology of this article, when a neighboring CU uses a separate tree to further divide the luma channel and the chroma channel, a neighboring QP value neighborQP used to derive the QP value of the current CU may be derived based on the luma QP value neighborLumaQP of the neighboring CU and / or the chroma QP value neighborChromaQP of the neighboring CU. For example, the neighborQP may be derived according to one of the following formulas:

[0174] neighborQP=

[0175] (neighborLumaQP+neighborChromaQP+1)>>1;

[0176] neighborQP=

[0177] neighborLumaQP;

[0178] neighborQP=

[0179] min(neighborLumaQP,neibhborChromaQP); or

[0180] neighborQP=

[0181] max(neighborLumaQP,neibhborChromaQP)

[0182] Fig.14An example is shown in which the last coded CU, the neighboring CU, and the current CU use separate trees to further divide the luma channel and the chroma channel. In one example, according to the technology of this article, when the last coded block and the current CU use separate trees to further divide the luma channel and the chroma channel, the last coded QP value used to derive the QP value of the current CU, that is, the lastCodedQP of each of the luma channel and the chroma channel of the current block, can be derived based on the luma QP value lastCodedLumaQP of the last coded CU and / or the chroma QP value lastCodedChromaQP of the last coded CU. For example, the lastCodedQP of each of the luma channel and the chroma channel of the current block can be derived according to one of the following formulas:

[0183] lastCodedQP of both luma and chroma channels =

[0184] lastCodedLumaQP;

[0185] lastCodedQP of the luminance channel =

[0186] lastCodedLumaQP, and

[0187] lastCodedQP of chroma channel =

[0188] lastCodedLumaQP;

[0189] lastCodedQP of both luma and chroma channels =

[0190] (lastCodedLumaQP+lastCodedChromaQP+1)>>1;

[0191] lastCodedQP of both luma and chroma channels =

[0192] max(lastCodedLumaQP+lastCodedChromaQP); or

[0193] lastCodedQP of both luma and chroma channels =

[0194] min(lastCodedLumaQP+lastCodedChromaQP).

[0195] In one example, according to the techniques of this document, when the neighboring video block and the current CU use separate trees to further divide the luma channel and the chroma channel, the neighboring QP value for deriving the QP value of the current CU, i.e., the neighborQP of each of the luma channel and the chroma channel of the current block, may be derived based on the luma QP value neighborLumaQP of the neighboring CU and / or the chroma QP value neighborChromaQP of the neighboring CU. For example, the neighborQP may be derived according to one of the following formulas:

[0196] NeighborQP for both luma and chroma channels =

[0197] neighborLumaQP;

[0198] NeighborQP of the luminance channel =

[0199] neighborLumaQP, and

[0200] NeighborQP of chroma channel =

[0201] neighborChromaQP;

[0202] NeighborQP for both luma and chroma channels =

[0203] (neighborLumaQP+neighborChromaQP+1)>>1;

[0204] NeighborQP for both luma and chroma channels =

[0205] max(neighborLumaQP+neighborChromaQP); or

[0206] NeighborQP for both luma and chroma channels =

[0207] min(neighborLumaQP,neighborChromaQP).

[0208] Fig.15An example is shown in which the last coded CU and the neighboring CU use shared partitioning to further divide the luma channel and the chroma channel, and the current CU uses a separate tree to further divide the luma channel and the chroma channel. In one example, according to the technology of this article, when the last coded block uses shared partitioning to further divide the luma channel and the chroma channel and the current CU uses a separate tree to further divide the luma channel and the chroma channel, the last coded QP value for deriving the QP value of the current CU, that is, the lastCodedQP of each of the luma channel and the chroma channel of the current block, can be derived based on the luma QP value lastCodedLumaQP of the last coded CU and / or the chroma QP value lastCodedChromaQP of the last coded CU. For example, the lastCodedQP of each of the luma channel and the chroma channel of the current block can be derived according to one of the following formulas:

[0209] lastCodedQP of both luma and chroma channels =

[0210] lastCodedLumaQP;

[0211] lastCodedQP of the luminance channel =

[0212] lastCodedLumaQP, and

[0213] lastCodedQP of chroma channel =

[0214] lastCodedChromaQP;

[0215] lastCodedQP of both luma and chroma channels =

[0216] (lastCodedLumaQP+lastCodedChromaQP+1)>>1;

[0217] lastCodedQP of both luma and chroma channels =

[0218] max(lastCodedLumaQP,lastCodedChromaQP); or

[0219] lastCodedQP of both luma and chroma channels =

[0220] min(lastCodedLumaQP,lastCodedChromaQP).

[0221] In one example, according to the techniques of this document, when a neighboring video block uses a shared partition to further partition the luma channel and the chroma channel and the current CU uses a separate tree to further partition the luma channel and the chroma channel, a neighboring QP value for deriving the QP value of the current CU, i.e., the neighborQP of each of the luma channel and the chroma channel of the current block, may be derived based on the luma QP value neighborLumaQP of the neighboring CU and / or the chroma QP value neighborChromaQP of the neighboring CU. For example, the neighborQP may be derived according to one of the following formulas:

[0222] NeighborQP for both luma and chroma channels =

[0223] neighborLumaQP;

[0224] NeighborQP of the luminance channel =

[0225] neighborLumaQP, and

[0226] NeighborQP of chroma channel =

[0227] neighborChromaQP;

[0228] NeighborQP for both luma and chroma channels =

[0229] (neighborLumaQP+neighborChromaQP+1)>>1;

[0230] NeighborQP for both luma and chroma channels =

[0231] max(neighborLumaQP,neighborChromaQP); or

[0232] NeighborQP for both luma and chroma channels =

[0233] min(neighborLumaQP,neighborChromaQP).

[0234] According to various techniques described herein, a QP value for a current CU may be derived based on lastCodedQP or neighborQP. That is, the derived lastCodedQP or neighborQP value may be used as a predicted QP value. For example, in some cases, for a luma channel, lastCodedQP or neighborQP may replace qPY_PRED in the above formula. That is, the QP value for the current CU may be derived by adding the delta value to the lastCodedQP or neighborQP. In addition, in some examples, a chroma QP for the current CU may be derived based on the luma QP of the current CU. For example, a chroma QP value may be derived using one or more chroma QP offsets in a manner similar to that described above. The one or more chroma offsets may be signaled at various locations (e.g., parameter sets (e.g., PPS), slice headers, etc.). It should be noted that in some cases (e.g., high dynamic range video), properties of corresponding luma sample values ​​(such as: DC value of corresponding decoded luma sample value, variance value of corresponding decoded luma sample value, predicted DC value for corresponding luma sample value, predicted variance value for corresponding luma sample value) may be used to determine the QP prediction for the chroma block. Furthermore, in some examples, the chroma QP for the current CU may be derived independently of the luma QP. That is, for example, a respective predicted QP value may be derived for each of the luma channel and the chroma channels.

[0235] It should be noted that in some cases, in an example where the last coded CU and the neighboring CU use a shared partition to further partition the luma channel and the chroma channel and the current CU uses a separate tree to further partition the luma channel and the chroma channel, it may be useful to derive the predicted QP without using lastCodedQP or neighborQP. That is, in some cases, lastCodedQP or neighborQP may not act as a good predictor in this case. That is, the signaled deltaQP value may be relatively large. In one example, according to the techniques described herein, in a case where the last coded CU and the neighboring CU use a shared partition to further partition the luma channel and the chroma channel and the current CU uses a separate tree to further partition the luma channel and the chroma channel, the coefficient quantization unit 206 may be configured to calculate the predicted QP value for the luma channel and / or the chroma channel according to a variance-based technique.

[0236] In one example, according to the techniques herein, the predicted QP may be derived according to the following process:

[0237] qP_PRED0=qP_L+qP_A–qp_AL;

[0238] qP_PRED1=max(qP_PRED0,min(qP_L,qp_A));

[0239] qP_PRED F =min(qP_PRED1,max(qP_L,qp_A)).

[0240] in,

[0241] In most cases, qP_L (e.g., depending on availability) is set equal to the QP value of the coding unit at the position to the left of the current CU;

[0242] In most cases, qP_A is set equal to the QP value of the coding unit located above the current CU; and

[0243] In most cases, qP_AL is equal to the QP value of the coding unit located above and to the left of the current CU; and

[0244] It should be noted that deriving the predicted QP according to the above process generally produces smaller deltaQP values ​​on average, and increases the likelihood that the deltaQP is zero, and further compresses the signaling of QP data.

[0245] In one example, according to the techniques herein, the QP value of a CU may be calculated as follows:

[0246] QP=QP_Rate+dQP_Visual;

[0247] QP_Rate=lastCodedQP Rate +delta_QP Rate ;

[0248] dQP_Visual=dQP_Visual PRED +delta_dQP Visual ;

[0249] in

[0250] lastCodedQPRate is the QP_Rate value of the previously coded CU; when there is no previously coded CU, such as at the beginning of a slice, lastCodedQpRate takes the value sliceQP signaled in the slice header;

[0251] delta_QP Rate It is the QP_Rate and lastCodedQP of the current CU Rate The difference between

[0252] dQP_VisualPRED is the use of qp_PRED0, qP_RED1 and qP_PRED F to calculate the predicted dQP_Visual value, where qP_L, qP_A and qP_AL are set to the dQP_Visual values ​​of the corresponding neighboring CU; and

[0253] delta_dQP Visual It is the dQP_Visual and dQP_Visual of the current CU PRED The difference between .

[0254] In this way, the QP value of the current CU can be indicated by signaling the difference between the current rate component QP value and the predictor rate component QP value, where the predictor rate component QP value is based on the rate component QP value of the previously encoded CU; and signaling the difference between the current visual component QP value and the predictor visual component QP value, where the visual component QP value is based on the visual component QP values ​​of one or more neighboring CUs.

[0255] It should be noted that in some examples, dQP_Visual can be determined based on the following formula PRED :

[0256] dQP_Visual PRED =dQP SV ;

[0257] in

[0258] The dQP may be determined based on an average luminance value of a reference block of the video data and a corresponding function (including one or more lookup tables) SV ;

[0259] For example, the average luminance value of a reference block of video data may be indexed as dQP SV For a current video data block, the reference blocks of the video may include, for example, (i) one or more collocated blocks, (ii) blocks forming motion compensated predictions and / or (iii) one or more spatially neighboring blocks.

[0260] In one example, whether to determine the QP value of the current CU according to QP_Rate and / or dQP_Visual may be determined according to a set of flags or a slice header included in a parameter set. That is, QP_Rate and dQP_Visual may be turned on / off independently and may be encoded at different spatial granularities, as determined by an index included in the parameter set. It should be noted that when one of QP_Rate or dQP_Visual is "off", the corresponding incremental QP value is assumed to be 0. Therefore, if QP_Rate is off, the value of QP_Rate is inferred to be equal to the sliceQP of each CU in the slice. If dQP_Visual is off, the value of dQP_Visual is inferred to be equal to 0 for each CU in the slice. In some cases, it may be useful to use coarse spatial granularity for QP_Rate and fine spatial granularity for dQP_Visual.

[0261] Rate Control for Low-Delay Video Communication, Ribas-Corbera, J. et al., June 1997, Portland, Oregon, USA (Contribution Q15-A-20 to the First Meeting of the ITU-T Video Coding Experts Group (ITU-T SG16 Q.15 Study Period 1997-2000)) describes a rate control technique that adjusts the QP of macroblocks within a frame according to an optimized bit allocation strategy, which is incorporated herein by reference and is referred to as Ribas-Corbera. Variance-based techniques for deriving predicted QP techniques can be based on Ribas-Corbera, as described below. It should be noted that, as mentioned above, ITU-T H.265 specifies a CTU structure that is similar to the 16x16 macroblocks in previous video coding standards. It should be noted that in some cases, a macroblock may correspond to a quantization group. Therefore, as described in further detail below, the techniques described in Ribas-Corbera may be applied to CUs of sizes other than 16x16. Ribas-Corbera describes a rate control technique based on an optimized quantization step size Q i *To calculate the quantization step size Q of the i-th macroblock i It should be noted that Ribas-Corbera is based on a video coding standard where QP = 2*Q i In ITU-T H.265, for most profiles, Q i =2 (QP-4) / 6 Specifically, Ribas-Corbera describes that for a picture having N macroblocks and a total number of bits B allocated for encoding the picture, based on an optimized quantization step size Q specified as follows i *To calculate Q i Situation:

[0262]

[0263] in,

[0264] A is the number of samples in a macroblock;

[0265] B is the total number of bits B allocated for encoding the picture;

[0266] N is the number of macroblocks in the picture;

[0267] σ i is the empirical standard deviation of the difference between the prediction and the original luma and chroma samples in the ith macroblock; and

[0268] and

[0269] Where B' LC,i is the number of bits used to encode the luminance and chrominance of the i-th macroblock, and B'i is the actual number of bits used to encode the DCT coefficients of the i-th macroblock.

[0270] According to the optimized quantization parameters in Ribas-Corbera, the relationship between variance and quantization step size can be derived as follows:

[0271] Make B' LC,i =B / N and B'i = B' LC,i -b' i , where b' i is the number of bits in the i-th macroblock that are not associated with DCT coefficients (eg, bits used to encode prediction modes, etc.).

[0272] In addition, b' i =b / N, where b is the number of bits in the picture that are not associated with DCT coefficients.

[0273] Substituting these expressions into the i-1 and C i-1 From those expressions, we get:

[0274] and

[0275] About K i-1 and C i-1 The above expression is further substituted into the Q i * The expression of and simplifying it, we get:

[0276]

[0277] For ITU-T H.265, the quantization step size Q i The expression can be derived as:

[0278]

[0279] Solving the above formula for qPY_PRED yields:

[0280]

[0281] In addition, in the above formula, QP i-1 The above qP can be used Y_A Alternatively, therefore, according to the techniques described herein, video encoder 200 may be configured to determine qP based on the following formula Y_PRED :

[0282]

[0283] It should be noted that in the above formula,

[0284] -item The fact that the QP only affects the bitrate of the DCT coefficients (or similarly, the QP affects the bitrate of the result of the transform process (e.g., 2-D DST, other 2-D transform, 1-D transform, main transform and secondary transform, or no transform (affecting the residual)) is accounted for, and can be estimated using previously coded frames and / or set to a constant.

[0285] -σ 2 i-1 The value of can be estimated by the decoder by calculating the variance of the decoded luminance coefficient values ​​and chrominance coefficient values ​​of the previous CU.

[0286] - The value of may be estimated as the average of the standard deviations of the luma coefficient values ​​and chroma coefficient values ​​of previously decoded CUs in the picture.

[0287] -σ i The value of may be estimated using an estimated empirical standard deviation of the decoded luma and chroma coefficient values ​​in the i-th CU. It should be noted that the QP value associated with the i-th CU needs to be known in order to decode its luma and chroma coefficients. Since the QP value of the i-th CU is not a priori known, an estimate of its value may be used instead. In one example, the QP associated with the i-th CU may be estimated as the arithmetic mean of the Qp associated with all CUs in the picture that have been decoded prior to the i-th CU. The QP of the first CU in a picture may be estimated as the picture QP value.

[0288] Therefore, according to the techniques described herein, video encoder 200 may be configured to determine qP based on the following formula: Y_PRED :

[0289]

[0290] in,

[0291] σ * i is the estimated empirical standard deviation of the difference between the original luma value and the original chroma value in the predicted CU;

[0292] SD avg_p is the average of the standard deviations of the luminance coefficient values ​​and chrominance coefficient values ​​of the previously decoded CU in the picture;

[0293] Var i-1 is the variance of the decoded luma coefficient value and chroma coefficient value of the previous CU; and

[0294] C is a predetermined constant.

[0295] Thus, the coefficient quantization unit 206 is configured to quantize the coefficients based on σ i *Multiply by SD avg_P Is the product of greater than Var? i-1 Adjust the QP value of the previously encoded CU to determine the qP of the current CU Y_PRED , in this case, the qP of the current CU Y_PRED Adjusted to be larger than the QP of the previously encoded CU.

[0296] It should be noted that relative to the terms in the above formula The scaling factor of 3 is derived from theoretical derivation. In some examples, it may be advantageous to use a different constant that can be derived empirically. That is, in some examples, a scaling factor other than 3 may be used.

[0297] It should be noted that the value of b / B is constrained based on the video coding standard relative to C. That is, the video coding standard has a theoretical minimum and maximum value for b / B. In addition, the value of QP affects the value of b / B because for high QP values, fewer bits are used to encode the DCT coefficients, thereby increasing b / B. The theoretical maximum value of b / B will be 1 because the QP can be high enough so that all coefficient levels are equal to zero (i.e., zero bits are used to encode the coefficient values). The theoretical minimum value of b / B will depend on the video coding standard. The typical value of b / B will depend on the target bit rate. For example, in the typical case of high-quality video, b / B will be about 0.3 and C will be equal to 0.77. For the purpose of describing the technology described herein, in the encoded picture, b / B can be described as typically in the range of 0.25 to 0.75, and therefore, C will typically be in the range of 0.5714 to 0.8.

[0298] It should be noted that in the above formula, because accurate predictions lead to low residual variance and inaccurate predictions lead to high residual variance, the term ((σ * i ×SD avg_p / Var i-1 ) indicates the relative prediction accuracy of the current CU. In other words, Var i-1 is an indication of the prediction accuracy of the previous CU, and if σ i is relatively large, indicating that the prediction accuracy of the current CU is relatively poor, (σ i * SD avg_P ) may be greater than Var i-1 When (σ i * SD avg_P ) is greater than Var i-1 hour, Usually positive and related to qP Y_A In comparison, qP Y_PRED Increases. Similarly, when (σ i * SD avg_P ) is less than Var i-1 hour, Usually less than zero and related to qP Y_A In comparison, qP YPRED It should be noted that the good prediction area of ​​the picture may correspond to the visually important area of ​​the picture (e.g., the surface), and the poor prediction area of ​​the picture may correspond to the visually unimportant area of ​​the picture (e.g., high texture area, such as the leaves of a tree). In this way, the coefficient quantization unit 206 is configured to determine the QP value of the current CU by adjusting the QP value of the previously encoded CU based on the relative prediction quality of the current CU. Y_PRED, where quantization is increased if the CU is relatively poorly predicted, and quantization is reduced if the CU is relatively well predicted.

[0299] As described above, in JEM, the residual value corresponding to the CB is used to generate the transform coefficient without further partitioning, that is, in JEM, the QTBT leaf node can be similar to the TU in ITU-T H.265, so the QP value in JEM is derived at the CU level. According to the technology described in this article, the QP value can be derived at a depth other than the CU level. Figure 7 As shown, in one example according to the techniques described herein, a QP value may be derived for a specified depth and signaled at the specified depth. Fig.16 An exemplary QTBT is shown in which a QP value is derived for each depth 1 node. That is, QP1, QP2, QP3, and QP4 are derived for each depth 1 node, and leaf nodes at depths beyond the depth 1 node form a transform coefficient group. Table 8 shows an example of a pseudo-syntax for Fig.16 As shown in the example, this pseudo-syntax can be used to signal the shared QTBT and independent QTBT of the luma channel and the chroma channel, and further signal the depth 1 node. It should be noted that Fig.16 The trees in and the pseudo-grammar in Table 8 are derived from the z-scans.

[0300]

[0301]

[0302] Table 8

[0303] As described above, QP values ​​may be derived for a specified depth and signaled at the specified depth. In one example, if a quantization group is defined with a depth 3 node, then transform units (or leaves of a CU or transform partition tree) above that depth may also signal QP values. Thus, in general, any leaf or node in the tree having a depth less than or equal to the highest depth value for which a QP value may be signaled may include a signaled QP value. Furthermore, all leaves / nodes below the highest depth value for which a QP value may be signaled may inherit a QP value from their parent / ancestor node.

[0304] As described above, according to the techniques described herein, the luma channel and the chroma channels may be further partitioned into out-of-CUs for the purpose of prediction according to separate partition trees or shared partition trees. In one example, when the luma channel and the chroma channels are further partitioned into out-of-CUs according to a shared partition tree, the QP values ​​for the luma channel and the chroma channels may be derived based on the signaled QP value at the parent depth, and when the luma channel and the chroma channels are further partitioned into out-of-CUs according to separate partition trees, the QP values ​​for each of the luma channel and the chroma channels may be derived (i.e., signaled by the video encoder and received by the video decoder) based on the QP value signaled at the root of the separate trees. In some cases, a common QP value may be derived for the luma channel and the chroma channels. Table 9 shows an example of a pseudo syntax that may be used to signal a QP value for each of the luma channel and the chroma channels with separate partition trees.

[0305]

[0306] Table 9

[0307] In one example, according to the techniques described herein, transform quantization groups may be derived independently of partitioning for prediction purposes. That is, for example, transform quantization groups may be set based on a predetermined / signaled block size, and QP values ​​may be signaled for each block independently of the partitioning. It should be noted that in some cases, QP blocks at picture boundaries may have different sizes (e.g., partial QP blocks may be formed at the boundaries). Fig.17 An example of signaling a QP value for each block independent of the exemplary partitioning is shown. Fig.17 In , the QP value of the CU is derived based on the collocated QP value. It should be noted that in some cases, such as Fig.17 As shown in with respect to the lower left rectangular CU in the figure, a CU may include multiple collocated QP values. In this way, a set of rules may be defined to derive QP values ​​for such CUs. For example, a collocated QP value may be defined as a QP value collocated with the upper left sample of the CU. That is, in this example, the spatial position of the sample in the block is used to determine the QP to be used for the block. In one example, where the luma channel and the chroma channel are further divided according to separate trees, the luma channel and the chroma channel may be considered as one quantization group, and the luma channel and the chroma channel may be assigned the same collocated QP. In one example, where the luma channel and the chroma channel are further divided according to separate trees, QP signaling may depend on both cbfLuma and cbfChroma, and isCuQpDeltaCoded is set only once at the luma and chroma quantization groups, for example, as shown in Table 2.

[0308] In response to the "Joint Call for Proposals on Video Compression with Capabilities beyond HEVC" jointly issued by VCEG and MPEG, various groups proposed and responded to multiple video coding descriptions at the 10th meeting of ISO / IEC JTC1 / SC29 / WG11, San Diego, California, April 16-20, 2018. As a result of the multiple video coding descriptions, the draft text of the video coding specification is described in "Generic Video Coding (Draft 1)", document JVET-J1001-v2 of the 10th meeting of ISO / IEC JTC1 / SC29 / WG11, San Diego, California, April 16-20, 2018, which is incorporated herein by reference and is referred to as JVET-J1001. "Generic Video Coding (Draft 2)", document JVET-K1001-v7, at the 11th meeting of ISO / IEC JTC1 / SC29 / WG11, Ljubljana, Slovenia, July 10-18, 2018, which is incorporated herein by reference and is referred to as JVET-K1001, is an update to JVET-J1001. "Generic Video Coding (Draft 3)", document JVET-L1001-v7, at the 12th meeting of ISO / IEC JTC1 / SC29 / WG11, Macau, China, October 3-12, 2018, which is incorporated herein by reference and is referred to as JVET-L1001, is an update to JVET-K1001. JVET-L1001 provides a derivation process for quantization parameters.

[0309] In one example, according to the techniques of this document, the process of deriving the quantization parameters may be as follows:

[0310] The input to this process is:

[0311] - luma position (xCb, yCb), which specifies the top left luma sample of the current coding block relative to the top left luma sample of the current picture,

[0312] - the variable cbWidth, which specifies the width of the current coding block in luma samples,

[0313] - the variable cbHeight, which specifies the height of the current coding block in luma samples,

[0314] - The variable treeType specifies whether a single tree (SINGLE_TREE) or a dual tree is used to partition the CTU, and when a dual tree is used, specifies whether the luma component (DUAL_TREE_LUMA) or the chroma component (DUAL_TREE_CHROMA) is currently being processed.

[0315] In this process, the brightness quantization parameter Qp' is derived Y And the chromaticity quantization parameter Qp' Cb and Qp' Cr .

[0316] The luma position (xQg, yQg) specifies the top left luma sample of the current quantization group relative to the top left luma sample of the current picture. Set the horizontal position xQg and the vertical position yQg equal to CuQgTopLeftX and CuQgTopLeftY respectively.

[0317] Note: The current quantization group shares the same qP Y_PRED A rectangular area within the coding tree block of . Its width and height are equal to the width and height of the coding tree node, and the top left luma sample position of the coding tree node is assigned to the variables CuQgTopLeftX and CuQgTopLeftY.

[0318] When treeType is equal to SINGLE_TREE or DUAL_TREE_LUMA, the predicted luma quantization parameter qP is derived by the following ordered steps Y_PRED :

[0319] 1. Export the variable qP as follows Y_PREV :

[0320] -If one or more of the following conditions are true, qP Y_PREV Set equal to TileGroupQp Y :

[0321] - The current quantization group is the first quantization group in the tile group.

[0322] - The current quantization group is the first quantization group in the tile.

[0323] - Otherwise, if both of the following are true, qP Y_PREV Set equal to the luma quantization parameter Qp of the coding unit containing the luma coding block covering (xQg, yQg–1) Y ;

[0324] - The current quantization group is the first quantization group in the tile row.

[0325] - The current quantization group is in the same tile as the luma coding block covering (xQg,yQg–1)

[0326] - Otherwise, qP Y_PREV Set equal to the luma quantization parameter Qp of the last luma coding unit in the previous quantization group in decoding order Y .

[0327] 2. The availability derivation procedure for the block is called with the position (xCurr, yCurr) set equal to (xCb, yCb) and the adjacent position (xNbY, yNbY) set equal to (xQg–1, yQg) as input, and the output is assigned to availability A. The variable qP is derived as follows Y_A :

[0328] -If one or more of the following conditions are true, qP Y_A Set equal to qP Y_PREV :

[0329] -Available A equals false.

[0330] - The CTB address of the CTB containing the luma coding block covering the luma position (xQg–1, yQg) is not equal to CtbAddrInTs, where ctbAddrA is derived as follows:

[0331] xTmp=(xQg–1)>>MinTbLog2SizeY

[0332] yTmp=yQg>>MinTbLog2SizeY

[0333] minTbAddrA=MinTbAddrZs[xTmp][yTmp]

[0334] ctbAddrA=minTbAddrA>>(2*(CtbLog2SizeY-MinTbLog2SizeY))

[0335] - Otherwise, qP Y_A Set equal to the luma quantization parameter Qp of the coding unit containing the luma coding block covering (xQg–1,yQg) Y .

[0336] 3. The availability derivation procedure for the block is called with the position (xCurr, yCurr) set equal to (xCb, yCb) and the adjacent position (xNbY, yNbY) set equal to (xQg, yQg–1) as input, and the output is assigned to the availability B. The variable qP is derived as follows Y_B :

[0337] -If one or more of the following conditions are true, qP Y_BSet equal to qP Y_PREV :

[0338] - Available B equals false.

[0339] - The CTB address ctbAddrB of the CTB containing the luma coding block covering the luma position (xQg, yQg–1) is not equal to CtbAddrInTs, where ctbAddrB is derived as follows:

[0340] xTmp=xQg>>MinTbLog2SizeY

[0341] yTmp=(yQg–1)>>MinTbLog2SizeY

[0342] minTbAddrB=MinTbAddrZs[xTmp][yTmp]

[0343] ctbAddrB=minTbAddrB>>(2*(CtbLog2SizeY–MinTbLog2SizeY))

[0344] - Otherwise, qP Y_B Set equal to the luma quantization parameter QP of the coding unit containing the luma coding block covering (xQg,yQg–1) Y .

[0345] 4. The predicted brightness quantization parameter qP is derived as follows Y_PRED :

[0346] Q Y_PRED =(qP Y_A+ Q Y_B +1)>>1

[0347] The variable Qp is derived as follows Y :

[0348] Q Y =

[0349] ((qP Y_PRED +CuQpDeltaVal+64+2*QpBdOffset Y )%(64+QpBdOffset Y ))-QpBdOffset Y

[0350] The luminance quantization parameter Qp' is derived as follows Y :

[0351] Qp' Y =Qp Y +QpBdOffset Y

[0352] When ChromaArrayType is not equal to 0 and treeType is equal to SINGT_TREE or DUAL_TREE_CHROMA, the following applies:

[0353] -When treeType is equal to DUAL_TREE_CHROMA, set the variable Qp Y Set equal to the luma quantization parameter Qp of the luma coding unit covering the luma position (xCb+cbWidth / 2,yCb+cbHeight / 2) Y .

[0354] - Export the variable qP as follows Cb and qP Cr :

[0355] Q Cb =Clip3(-QpBdOffsetc,69,Qp Y +pps_cb_qp_offset+title_group_cb_qp_offset)

[0356] Q Cr =Clip3(-QpBdOffsetc,69,Qp Y +pps_cr_qp_offset+title_group_cr_qp_offset)

[0357] - If ChromaArrayType is equal to 1, based on the index qPi is equal to qPi Cb and qPi Cr , respectively, as specified in Table 10. Cb and qP Cr Set equal to Qp C The value of .

[0358] - Otherwise, based on index qP i Equal to qPi Cb and qPi Cr , respectively, the variable qP Cb and qP Cr Set equal to Min(qPi,63).

[0359] - The chromaticity quantization parameters Qp' of the Cb and Cr components are derived as follows Cb and Qp' Cr :

[0360] Qp' Cb =qP Cb +QpBdOffsetC

[0361] Qp' Cr =qP Cr +QpBdOffset C

[0362] <![CDATA[qP i ]]> <30 30 31 32 33 34 35 36 37 38 39 40 41 42 43 >43 <![CDATA[Qp C ]]> <![CDATA[=qP i ]]> 29 30 31 32 33 33 34 34 35 35 36 36 37 37 <![CDATA[=qP i -6]]>

[0363] Table 10

[0364] In one example, according to the techniques of this document, the process of deriving the quantization parameters may be as follows:

[0365] The input to this process is:

[0366] - luma position (xCb, yCb), which specifies the top left luma sample of the current coding block relative to the top left luma sample of the current picture,

[0367] - the variable cbWidth, which specifies the width of the current coding block in luma samples,

[0368] - the variable cbHeight, which specifies the height of the current coding block in luma samples,

[0369] - The variable treeType specifies whether a single tree (SINGLE_TREE) or a dual tree is used to partition the CTU, and when a dual tree is used, specifies whether the luma component (DUAL_TREE_LUMA) or the chroma component (DUAL_TREE_CHROMA) is currently being processed.

[0370] In this process, the brightness quantization parameter Qp' is derived Y And the chromaticity quantization parameter Qp' Cb and Qp' Cr .

[0371] The luma position (xQg, yQg) specifies the top left luma sample of the current quantization group relative to the top left luma sample of the current picture. Set the horizontal position xQg and the vertical position yQg equal to CuQgTopLeftX and CuQgTopLeftY respectively.

[0372] Note: The current quantization group shares the same qP Y_PRED A rectangular area within the coding tree block of . Its width and height are equal to the width and height of the coding tree node, and the top left luma sample position of the coding tree node is assigned to the variables CuQgTopLeftX and CuQgTopLeftY.

[0373] When treeType is equal to SINGLE_TREE or DUAL_TREE_LUMA, the predicted luma quantization parameter qP is derived by the following ordered stepsY_PRED :

[0374] 1. Export the variable qP as follows Y_PREV :

[0375] -If one or more of the following conditions are true, qP Y_PREV Set equal to TileGroupQp Y :

[0376] - The current quantization group is the first quantization group in the tile group.

[0377] - The current quantization group is the first quantization group in the tile.

[0378] - Otherwise, qP Y_PREV Set equal to the luma quantization parameter Qp of the last luma coding unit in the previous quantization group in decoding order Y .

[0379] 2. The availability derivation procedure for the block is called with the position (xCurr, yCurr) set equal to (xCb, yCb) and the adjacent position (xNbY, yNbY) set equal to (xQg-1, yQg) as input, and the output is assigned to availability A. The variable qP is derived as follows Y_A :

[0380] -If one or more of the following conditions are true, qP Y_A Set equal to qP Y_PREV :

[0381] -Available A equals false.

[0382] - The CTB address of the CTB containing the luma coding block covering the luma position (xQg-1, yQg) is not equal to CtbAddrInTs, where ctbAddA is derived as follows:

[0383] xTmp=(xQg-1)>>MinTbLog2SizeY

[0384] yTmp=yQg>>MinTbLog2SizeY

[0385] minTbAddrA=minTbAddrZs[xTmp][yTmp]

[0386] ctbAddrA=minTbAddrA>>(2*(CtbLog2SizeY–MinTbLog2SizeY))

[0387] - Otherwise, qP Y_ASet equal to the luma quantization parameter Qp of the coding unit containing the luma coding block covering (xQg–1,yQg) Y .

[0388] 3. The availability derivation procedure for the block is called with the position (xCurr, yCurr) set equal to (xCb, yCb) and the adjacent position (xNbY, yNbY) set equal to (xQg, yQg–1) as input, and the output is assigned to availability B. The variable qP is derived as follows Y_B :

[0389] -If one or more of the following conditions are true, qP Y_B Set equal to qP Y_PREV :

[0390] - Available B equals false.

[0391] - The CTB address ctbAddrB of the CTB containing the luma coding block covering the luma position (xQg, yQg–1) is not equal to CtbAddrInTs, where ctbAddrB is derived as follows:

[0392] xTmp=xQg>>MinTbLog2SizeY

[0393] yTmp=(yQg–1)>>MinTbLog2SizeY

[0394] minTbAddrB=MinTbAddrZs[xTmp][yTmp]

[0395] ctbAddrB=minTbAddrB>>(2*(CtbLog2SizeY–MinTbLog2SizeY))

[0396] - Otherwise, qP Y_B Set equal to the luma quantization parameter QP of the coding unit containing the luma coding block covering (xQg,yQg–1) Y .

[0397] 4. The predicted brightness quantization parameter qP is derived as follows Y_PRED :

[0398] -If the following conditions are true, then qP Y_PRED Set equal to the luma quantization parameter QpY of the coding unit containing the luma coding block covering (xQg,yQg–1):

[0399] - Available B equals true.

[0400] - The current quantization group is the first quantization group in the CTB row within the tile.

[0401] - Otherwise, derive qP as follows Y_PRED :

[0402] Q Y_PRED =(qP Y_A +qP Y_B +1)>>1

[0403] The variable Qp is derived as follows Y :

[0404] Q Y =

[0405] ((qP Y_PRED +CuQpDeltaVal+64+2*QpBdOffset Y )%(64+QpBdOffset Y ))-QpBdOffset Y

[0406] The luminance quantization parameter Qp' is derived as follows Y :

[0407] Qp' Y =Qp Y +QpBdOffset Y

[0408] When ChromaArrayType is not equal to 0 and treeType is equal to SINGT_TREE or DUAL_TREE_CHROMA, the following applies:

[0409] -When treeType is equal to DUAL_TREE_CHROMA, set the variable Qp Y Set equal to the luma quantization parameter Qp of the luma coding unit covering the luma position (xCb+cbWidth / 2,yCb+cbHeight / 2) Y .

[0410] - Export the variable qP as follows Cb and qP Cr :

[0411] Q Cb =Clip3(-QpBdOffset C ,69,Qp Y +pps_cb_qp_offset+title_group_cb_qp_offset)

[0412] Q Cr =Clip3(-QpBdOffset C,69,Qp Y +pps_cr_qp_offset+title_group_cr_qp_offset)

[0413] - If ChromaArrayType is equal to 1, based on the index qPi is equal to qPi Cb and qPi Cr , respectively, as specified in Table 10. Cb and qP Cr Set equal to the value of QpC.

[0414] - Otherwise, based on index qPi being equal to qPi Cb and qPi Cr , respectively, the variable qP Cb and qP Cr Set equal to Min(qPi,63).

[0415] - The chromaticity quantization parameters Qp' of the Cb and Cr components are derived as follows Cb and Qp' Cr :

[0416] Qp' Cb =qP' Cb +QpBdOffset C

[0417] Qp' Cr =qP' Cr +QpBdOffset C

[0418] It should be noted that according to the techniques herein, deriving quantization parameters specifies that the QP at the beginning of a row does not depend on the QP at the end of the previous row, which has the benefit of simplifying the design of parallel processing encoders and also improving the efficiency of encoding QP parameters.

[0419] See again Fig.11 , the quantized transform coefficients are output to the inverse quantization / transform processing unit 208. The inverse quantization / transform processing unit 208 may be configured to apply inverse quantization and inverse transformation to generate reconstructed residual data. Fig.11 As shown, at the summer 210, the reconstructed residual data can be added to the predicted video block. In this way, the encoded video block can be reconstructed, and the resulting reconstructed video block can be used to evaluate the coding quality of a given prediction, transformation and / or quantization. The video encoder 200 can be configured to perform multiple encoding rounds (e.g., performing encoding while changing one or more of the prediction, transformation parameters and quantization parameters). The rate distortion or other system parameters of the bitstream can be optimized based on the evaluation of the reconstructed video block. In addition, the reconstructed video block can be stored and used as a reference for predicting subsequent blocks.

[0420] As described above, intra-frame prediction may be used to encode a video block. The intra-frame prediction processing unit 212 may be configured to select an intra-frame prediction mode for a video block to be encoded. The intra-frame prediction processing unit 212 may be configured to evaluate a frame and / or a region thereof and determine an intra-frame prediction mode to be used to encode a current block. Fig.11 As shown, the intra prediction processing unit 212 outputs intra prediction data (e.g., syntax elements) to the entropy coding unit 218 and the transform coefficient generator 204. As described above, the transformation performed on the residual data may depend on the mode. As described above, possible intra prediction modes may include a plane prediction mode, a DC prediction mode, and an angle prediction mode. In addition, in some examples, the prediction of the chrominance component may be inferred from the intra prediction for the luma prediction mode. The inter prediction processing unit 214 may be configured to perform inter prediction coding for the current video block. The inter prediction processing unit 214 may be configured to receive a source video block and calculate a motion vector of a PU of the video block. The motion vector may indicate the displacement of a PU (or a similar coding structure) of a video block within the current video frame relative to a prediction block within a reference frame. Inter prediction coding may use one or more reference pictures. In addition, motion prediction may be unidirectional prediction (using one motion vector) or bidirectional prediction (using two motion vectors). The inter-frame prediction processing unit 214 may be configured to select a prediction block by calculating a pixel difference determined by, for example, a sum of absolute differences (SAD), a sum of squared differences (SSD), or other difference metrics. As described above, the motion vector may be determined and specified based on motion vector prediction. As described above, the inter-frame prediction processing unit 214 may be configured to perform motion vector prediction. The inter-frame prediction processing unit 214 may be configured to generate a prediction block using motion prediction data. For example, the inter-frame prediction processing unit 214 may locate a prediction video block within a frame buffer ( Fig.11 It should be noted that the inter-frame prediction processing unit 214 may be further configured to apply one or more interpolation filters to the reconstructed residual block to calculate sub-integer pixel values ​​for motion estimation. The inter-frame prediction processing unit 214 may output the motion prediction data of the calculated motion vector to the entropy coding unit 218. Fig.11 As shown, the inter-frame prediction processing unit 214 may receive the reconstructed video block via the filter unit 216. The filter unit 216 may be configured to perform deblocking and / or sample adaptive offset (SAO) filtering. Deblocking refers to the process of smoothing the boundaries of the reconstructed video blocks (e.g., making the boundaries less noticeable to the viewer). SAO filtering is a non-linear amplitude mapping that can be used to improve reconstruction by adding an offset to the reconstructed video data.

[0421] Reference again Fig.11, the entropy coding unit 218 receives the quantized transform coefficients and prediction syntax data (i.e., intra-frame prediction data, motion prediction data, QP data, etc.). It should be noted that in some examples, the coefficient quantization unit 206 may perform a scan of the matrix including the quantized transform coefficients before outputting the coefficients to the entropy coding unit 218. In other examples, the entropy coding unit 218 may perform the scan. The entropy coding unit 218 may be configured to perform entropy coding according to one or more of the techniques described herein. The entropy coding unit 218 may be configured to output a compatible bitstream (i.e., a bitstream from which a video decoder can receive and reproduce video data).

[0422] As such, video encoder 200 represents an example of a device configured to determine a predicted quantization parameter for a current video block based at least in part on a quantization parameter associated with a reference video block, a partition used to generate the reference video block, and a partition used to generate the current video block, and to generate a quantization parameter for the current video block based at least in part on the determined predicted quantization parameter.

[0423] Fig.18 300 is a block diagram illustrating an example of a video decoder that may be configured to decode video data in accordance with one or more techniques of the present disclosure. In one example, the video decoder 300 may be configured to reconstruct the video data based on one or more of the techniques described above. That is, the video decoder 300 may operate in a manner reciprocal to the video encoder 200 described above. The video decoder 300 may be configured to perform intra-frame prediction decoding and inter-frame prediction decoding, and may therefore be referred to as a hybrid decoder. Fig.18 In the example shown, the video decoder 300 includes an entropy decoding unit 302, an inverse quantization unit 304, an inverse transform processing unit 306, an intra-frame prediction processing unit 308, an inter-frame prediction processing unit 310, a summer 312, a filter unit 314, and a reference buffer 316. The video decoder 300 can be configured to decode video data in a manner consistent with a video encoding system that can implement one or more aspects of a video coding standard. It should be noted that although the exemplary video decoder 300 is shown with different functional blocks, such illustrations are intended for descriptive purposes and do not limit the video decoder 300 and / or its subcomponents to a particular hardware or software architecture. The functionality of the video decoder 300 can be implemented using any combination of hardware, firmware, and / or software implementations.

[0424] like Fig.18As shown, the entropy decoding unit 302 receives an entropy-coded bitstream. The entropy decoding unit 302 may be configured to decode quantized syntax elements and quantized coefficients from the bitstream according to a process that is inverse to the entropy coding process. The entropy decoding unit 302 may be configured to perform entropy decoding according to any of the entropy coding techniques described above. The entropy decoding unit 302 may parse the coded bitstream in a manner consistent with the video coding standard. The video decoder 300 may be configured to parse a coded bitstream, wherein the coded bitstream is generated based on the above-mentioned techniques. That is, for example, the video decoder 300 may be configured to determine a partitioning structure generated and / or sent in a signal form based on one or more of the above-mentioned techniques intended to reconstruct video data. For example, the video decoder 300 may be configured to parse syntax elements and / or evaluate characteristics of the video data to determine the partitioning.

[0425] Reference again Fig.18 , the inverse quantization unit 304 receives the quantized transform coefficients (i.e., the scale values) and the quantization parameter data from the entropy decoding unit 302. The quantization parameter data may include any and all combinations of the above-mentioned incremental QP values ​​and / or quantization group size values, etc. The video decoder 300 and / or the inverse quantization unit 304 may be configured to determine the QP value for inverse quantization based on the value signaled by the video encoder and / or through video attributes and / or encoding parameters. That is, the inverse quantization unit 304 may operate in an inverse manner to the coefficient quantization unit 206 described above. For example, the inverse quantization unit 304 may be configured to infer predetermined values, allowed quantization group sizes, etc. according to the above-mentioned techniques. The inverse quantization unit 304 may be configured to apply inverse quantization. The inverse transform processing unit 306 may be configured to perform an inverse transform to generate reconstructed residual data. The techniques performed by the inverse quantization unit 304 and the inverse transform processing unit 306, respectively, may be similar to the techniques performed by the above-mentioned inverse quantization / transform processing unit 208. The inverse transform processing unit 306 may be configured to apply an inverse DCT, an inverse DST, an inverse integer transform, a non-separable quadratic transform (NSST), or a conceptually similar inverse transform process to transform the coefficients so as to produce a residual block in the pixel domain. In addition, as described above, whether a particular transform (or type of particular transform) is performed may depend on the intra prediction mode. Fig.18 As shown, the reconstructed residual data may be provided to the summer 312. The summer 312 may add the reconstructed residual data to the predicted video block and generate the reconstructed video data. The predicted video block may be determined according to a predictive video technique (i.e., intra prediction and inter prediction). In one example, the video decoder 300 and the filter unit 314 may be configured to determine the QP value and use it for post filtering (e.g., deblocking). In one example, other functional blocks of the video decoder 300 that utilize the QP may determine the QP based on the received signaling and use it for decoding.

[0426] The intra prediction processing unit 308 may be configured to receive an intra prediction syntax element and retrieve a predicted video block from a reference buffer 316. The reference buffer 316 may include a memory device configured to store one or more frames of video data. The intra prediction syntax element may identify an intra prediction mode, such as the intra prediction mode described above. In one example, the intra prediction processing unit 308 may reconstruct the video block using one or more of the intra prediction encoding techniques described herein. The inter prediction processing unit 310 may receive the inter prediction syntax element and generate a motion vector to identify a predicted block in one or more reference frames stored in the reference buffer 316. The inter prediction processing unit 310 may generate a motion compensation block, possibly performing interpolation based on an interpolation filter. An identifier of an interpolation filter for motion estimation with sub-pixel precision may be included in the syntax element. The inter prediction processing unit 310 may use an interpolation filter to calculate interpolated values ​​of sub-integer pixels of a reference block. The filter unit 314 may be configured to perform filtering on the reconstructed video data. For example, filter unit 314 may be configured to perform deblocking and / or SAO filtering, as described above with respect to filter unit 216. Furthermore, it should be noted that in some examples, filter unit 314 may be configured to perform dedicated arbitrary filtering (e.g., visual enhancement). Fig.18 As shown, video decoder 300 can output a reconstructed video block. As such, video decoder 300 can be configured to generate reconstructed video data according to one or more of the techniques described herein. As such, video decoder 300 represents an example of a device configured to determine a predicted quantization parameter for a current video block based at least in part on a quantization parameter associated with a reference video block, a partition used to generate the reference video block, and a partition used to generate the current video block, and generate a quantization parameter for the current video block based at least in part on the determined predicted quantization parameter.

[0427] In one or more examples, the functions may be implemented by hardware, software, firmware, or any combination thereof. If implemented in software, the functions may be stored as one or more instructions or codes on or transmitted via a computer-readable medium and executed by a hardware-based processing unit. Computer-readable media may include computer-readable storage media corresponding to tangible media such as data storage media, or propagation media including, for example, any medium that facilitates the transmission of a computer program from one place to another according to a communication protocol. Thus, computer-readable media may generally correspond to: (1) a non-transitory tangible computer-readable storage medium, or (2) a communication medium such as a signal or carrier wave. The data storage medium may be any available medium that can be accessed by one or more computers or one or more processors to retrieve instructions, codes, and / or data structures for implementing the techniques described in the present disclosure. A computer program product may include a computer-readable medium.

[0428] By way of example and not limitation, such computer-readable storage media may include RAM, ROM, EEPROM, CD-ROM or other optical disk storage devices, magnetic disk storage devices or other magnetic storage devices, flash memory, or any other medium that can be used to store the required program code in the form of instructions or data structures and can be accessed by a computer. Moreover, any connection is appropriately referred to as a computer-readable medium. For example, if a coaxial cable, optical fiber cable, twisted pair, digital subscriber line (DSL) or wireless technology such as infrared, radio and microwave are used to transmit instructions from a website, server or other remote source, then the coaxial cable, optical fiber cable, twisted pair, DSL or wireless technology such as infrared, radio and microwave are included in the definition of the medium. However, it should be understood that computer-readable storage media and data storage media do not include connections, carriers, signals or other transient media, but are directed to non-transient tangible storage media. As used herein, disks and optical disks include compact disks (CDs), laser disks, optical optical disks, digital versatile disks (DVDs), floppy disks and Blu-ray disks, where disks usually copy data magnetically, while optical disks use lasers to copy data optically. The above combination should also be included in the scope of computer-readable media.

[0429] Instructions may be executed by one or more processors such as one or more digital signal processors (DSPs), general-purpose microprocessors, application-specific integrated circuits (ASICs), field programmable logic arrays (FPGAs), or other equivalent integrated or discrete logic circuits. Therefore, the term "processor" as used herein may refer to any of the foregoing structures or any other structure suitable for implementing the techniques described herein. In addition, in some aspects, the functionality described herein may be provided within dedicated hardware and / or software modules configured for encoding and decoding, or incorporated into a combined codec. Moreover, these techniques may be implemented entirely in one or more circuits or logic elements.

[0430] The techniques of the present disclosure may be implemented in a variety of devices or apparatuses including wireless handsets, integrated circuits (ICs), or a set of ICs (e.g., chipsets). Various components, modules, or units are described in the present disclosure to emphasize functional aspects of devices configured to perform the disclosed techniques, but do not necessarily need to be implemented by different hardware units. Instead, as described above, the various units may be combined in a codec hardware unit, or provided by a collection of interoperable hardware units including one or more processors as described above, in combination with appropriate software and / or firmware.

[0431] In addition, each functional block or various features of the base station equipment and terminal equipment used in each of the above-mentioned embodiments can be implemented or executed by a circuit (usually an integrated circuit or multiple integrated circuits). The circuit designed to perform the functions described in this specification may include a general-purpose processor, a digital signal processor (DSP), a dedicated or general-purpose integrated circuit (ASIC), a field programmable gate array (FPGA), or other programmable logic devices, discrete gates or transistor logic devices, or discrete hardware components, or a combination thereof. The general-purpose processor may be a microprocessor, or alternatively, the processor may be a conventional processor, a controller, a microcontroller or a state machine. The general-purpose processor or each of the above-mentioned circuits may be configured by a digital circuit, or may be configured by an analog circuit. In addition, when the technology of the integrated circuit that replaces the current integrated circuit appears due to the progress of semiconductor technology, the integrated circuit produced by the technology can also be used.

[0432] Various examples have been described. These and other examples are within the scope of the following claims.

[0433] <Detailed description of the invention>

[0434] In one example, a method of encoding video data is provided, the method comprising: determining a predicted quantization parameter for a current video block based at least in part on a quantization parameter associated with a reference video block, a partition used to generate the reference video block, and a partition used to generate the current video block; and generating a quantization parameter for the current video block based at least in part on the determined predicted quantization parameter.

[0435] In one example, a method of encoding video data is provided, the method comprising: determining a predicted quantization parameter of a current video block based at least in part on a rate component predicted quantization parameter and a visual component predicted quantization parameter; and generating a quantization parameter of the current video block based at least in part on the determined predicted quantization parameter.

[0436] In one example, the method further includes performing a quantization operation on a value associated with the current video block using the generated quantization parameter.

[0437] In one example, the method further includes signaling information associated with the predicted quantization parameter.

[0438] In one example, the method further includes performing an inverse quantization operation on a value associated with the current video block using the generated quantization parameter.

[0439] In one example, according to the method, wherein the reference video block comprises one of: a last encoded video block or a neighboring video block.

[0440] In one example, according to the method, the dividing includes one of: further dividing the luma channel and the chroma channel according to separate dividing structures, or further dividing the luma channel and the chroma channel according to a shared dividing structure.

[0441] In one example, a device for encoding video data is provided, the device comprising one or more processors configured to perform any and all combinations of the above steps.

[0442] In one example, according to the device, the device includes a video encoder.

[0443] In one example, according to the device, the device includes a video decoder.

[0444] In one example, a system is provided, the system comprising: the device; and the device.

[0445] In one example, an apparatus for encoding video data is provided, the apparatus comprising means for performing any and all combinations of the above steps.

[0446] In one example, a non-transitory computer-readable storage medium is provided, which includes instructions stored thereon, which, when executed, cause one or more processors of a device for encoding video data to perform any and all combinations of the above steps.

[0447] In one example, a method for encoding video data is provided, the method comprising: deriving a predicted luminance quantization parameter by using a tree type that specifies whether a single tree or a dual tree is used to partition a coding tree; and generating a luminance quantization parameter by using the predicted luminance quantization parameter, wherein the predicted luminance quantization parameter is set equal to a luminance quantization parameter of a coding unit containing a luminance coding block covering a neighboring position determined by using a current quantization group and neighboring block availability.

[0448] In one example, according to the method, if the current quantization group is the first quantization group in a coding treeblock row within the tile, the predicted luma quantization parameter is set equal to the luma quantization parameter.

[0449] In one example, according to the method, wherein the neighboring block availability is derived by using a current position and a neighboring position set equal to the encoding block position.

[0450] In one example, according to the method, the current quantization group is a rectangular area within the coding tree block that shares the same predicted luma quantization parameter.

[0451] In one example, according to the method, wherein the predicted luma quantization parameter is derived when the tree type is equal to single-tree or dual-tree luma, wherein the dual-tree luma is processed when dual-tree is used.

[0452] In one example, according to the method, the adjacent position is represented as (xQg, yQg-1), where xQg specifies the horizontal position of the upper left sample of the current quantization group relative to the upper left luma sample of the current picture, and yQg specifies the vertical position of the upper left sample of the current quantization group relative to the upper left luma sample of the current picture.

[0453] In one example, a method for decoding image data is provided, the method comprising: deriving a predicted brightness quantization parameter by using a tree type that specifies whether a single tree or a dual tree is used to partition a coding tree; and generating a brightness quantization parameter by using the predicted brightness quantization parameter, wherein the predicted brightness quantization parameter is set equal to a brightness quantization parameter of a coding unit containing a brightness coding block covering a neighboring position determined by using a current quantization group and neighboring block availability.

[0454] In one example, a device is provided that includes one or more processors configured to perform any and all combinations of the above steps.

[0455] <Cross Reference>

[0456] This non-provisional patent application claims priority under 35 U.S.C. §119 to provisional application 62 / 793,305 filed on January 16, 2019 and provisional application 62 / 793,515 filed on January 17, 2019, the entire contents of which are hereby incorporated by reference.

Claims

1. A method for decoding image data, characterized in that: The method comprises the following steps: deriving a predicted luma quantization parameter by using a tree type that specifies whether a single tree or a dual tree is used to partition the coding tree; as well as generating a luma quantization parameter by using the predicted luma quantization parameter, in: setting the predicted luma quantization parameter equal to a luma quantization parameter of a coding unit containing a luma coding block covering a neighboring position when a first condition for a current quantization group is true if the current quantization group is the first quantization group in a coding tree block row within a tile and a second condition for neighboring block availability is true; and The adjacent position is located above the current quantization group.

2. The method according to claim 1, characterized in that: The current quantization group is a rectangular area within the coding tree block that shares the same predicted luma quantization parameter.

3. The method according to claim 1, characterized in that The predicted luma quantization parameter is derived when the tree type is equal to the single-tree or dual-tree luma.

4. The method according to claim 1, characterized in that The neighboring position is expressed as (xQg, yQg-1), where xQg specifies the horizontal position of the upper left sample of the current quantization group relative to the upper left luma sample of the current picture, and yQg specifies the vertical position of the upper left sample of the current quantization group relative to the upper left luma sample of the current picture.

5. The method according to claim 4, characterized in that The second condition of the neighboring block availability is true if the call is set equal to the current position of the coded block position and the output of the availability derivation process of the neighboring position is true.

6. A method for encoding image data, characterized in that: The method comprises: deriving a predicted luma quantization parameter by using a tree type that specifies whether a single tree or a dual tree is used to partition the coding tree; and generating a luma quantization parameter by using the predicted luma quantization parameter, in: setting the predicted luma quantization parameter equal to a luma quantization parameter of a coding unit containing a luma coding block covering a neighboring position when a first condition for a current quantization group is true if the current quantization group is the first quantization group in a coding tree block row within a tile and a second condition for neighboring block availability is true; and The adjacent position is located above the current quantization group.