Data compression method and apparatus for multiple sets of coefficient component conversion of prediction residuals

CN112104876BActive Publication Date: 2026-08-18SHANGHAI TIANHE ELECTRONIC INFORMATION CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202010556415.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Priority Date
2019-06-17
Filing Date
2020-06-17
Publication Date
2026-08-18
Estimated Expiration
2040-06-17

AI Technical Summary

Technical Problem

[0030]为了解决现有技术中的这一问题,本发明提供了一种对多分量残差数据使用多套系数进行分量转换的数据压缩方法和装置

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112104876B_ABST
    Figure CN112104876B_ABST
Patent Text Reader

Abstract

The present application provides a data compression method and device for multiple sets of coefficient component conversion of prediction residual. In the method and device, for multiple component residual data, according to its characteristics, one of at least three sets of predetermined coefficients is selected for component conversion according to predetermined rules, and the at least three sets of predetermined coefficients can include a set of coefficients for identity conversion, i.e. actually no component conversion.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to an encoding and decoding system for lossy or lossless compression of data, and particularly to a method and apparatus for encoding and decoding prediction residual data. Background Technology

[0002] With the advent of the era of artificial intelligence, big data, cloud-edge computing, and 5G, ultra-high compression ratio and extremely high quality data compression, including image and video data as well as various new forms of data, has become an indispensable technology.

[0003] A dataset is a collection of data elements (e.g., bytes, bits, pixels, pixel components, spatial sampling points, transform domain coefficients).

[0004] When encoding or decoding a dataset, the data elements are usually sorted according to a predetermined rule, i.e., the order is specified, and then the encoding and decoding are performed according to the order.

[0005] When encoding (and corresponding decoding) a dataset arranged in a certain spatial (one-dimensional, two-dimensional, or multi-dimensional) shape (e.g., a one-dimensional data queue, a two-dimensional data file, a frame of an image, a video sequence, a transform domain, a transform block, multiple transform blocks, a three-dimensional scene, or a sequence of continuously changing three-dimensional scenes), especially two-dimensional or higher-dimensional datasets, the dataset is sometimes divided into several subsets with a predetermined shape and / or size (i.e., the number of elements), called integral compression units. Encoding or decoding is performed one integral compression unit at a time, in a predetermined order. At any given moment, the integral compression unit being encoded or decoded is called the current integral compression unit. The data element being encoded or decoded (sometimes simply called an element) is called the currently encoded data element or the currently decoded data element, collectively referred to as the current data element, or simply the current element. An element consists of N components (usually 1 ≤ N ≤ 5), therefore, both the dataset and the integral compression unit consist of N components.

[0006] When a dataset is divided into compressed units, a pre-defined sorting rule is to first sort the compressed units, and then sort the elements within each compressed unit.

[0007] A predetermined number of full compression units constitute a compression block. All full compression units within a compression block typically share one or more common characteristics.

[0008] Encoding in data compression typically consists of some or all of the following stages:

[0009] 1) Prediction, mainly including adjacent prediction, string prediction, block prediction, etc., generates predicted values ​​and prediction residuals, referred to as residuals; prediction is also called matching, especially string prediction is also called string matching, and block prediction is also called block matching.

[0010] 2) Transformation mainly involves transforming the predicted residuals to generate transformation coefficients, or simply coefficients. When the transformation is an identity transformation, i.e. no transformation is actually performed, the coefficients are exactly equal to the residuals.

[0011] 3) Quantization mainly involves quantizing the coefficients to generate quantization residuals. When quantization is identity quantization, i.e., no quantization is actually performed, the quantization residual is equal to the coefficient. When the transformation is identity transformation, the quantization residual is the result of quantizing the prediction residual. When both quantization and transformation are identity transformations, the quantization residual is equal to the coefficient and also equal to the residual.

[0012] 4) Entropy coding mainly includes entropy coding of the quantization residual, including at least binarization, to generate a compressed data stream.

[0013] The above 2), 3), and 4) are usually collectively referred to as residual coding.

[0014] Decoding in data compression typically consists of some or all of the following stages:

[0015] 1) Entropy decoding mainly involves parsing the compressed data stream and entropy decoding, including at least inverse binarization, to generate quantization residuals;

[0016] 2) Dequantization mainly involves dequantizing the quantization residual to generate reconstruction coefficients. When quantization is identity quantization, i.e. no quantization is actually performed, dequantization is also identity dequantization, i.e. no dequantization is actually performed, so the reconstruction coefficients are equal to the quantization residuals.

[0017] 3) Inverse transform mainly involves performing an inverse transform on the reconstruction coefficients to generate reconstruction residuals. When the transform is an identity transform (i.e., no actual transform is performed), the inverse transform is also an identity transform (i.e., no actual inverse transform is performed), thus the reconstruction residuals are completely equal to the reconstruction coefficients. When quantization is identity quantization and the transform is identity transform, the inverse quantization is also identity inverse quantization and the inverse transform is also identity inverse transform, thus the reconstruction residuals are equal to the reconstruction coefficients and also equal to the quantization residuals.

[0018] 4) Predictive compensation, mainly including adjacent predictive compensation, series predictive compensation, block predictive compensation, etc., generates predicted values ​​and reconstructed data, also known as reconstructed data or restored data.

[0019] The above 1), 2), and 3) are generally referred to as residual decoding.

[0020] The prediction residuals, transform coefficients, and quantization residuals in each encoding stage, and the quantization residuals, reconstruction coefficients, and reconstruction residuals in each decoding stage, are collectively referred to as residuals or residual data. Generally, the context determines whether the residual is a prediction residual, transform coefficient, quantization residual, reconstruction coefficient, or reconstruction residual. If the context cannot determine this, the residual refers to the prediction residual and / or transform coefficient and / or quantization residual and / or reconstruction coefficient and / or reconstruction residual.

[0021] The individual data points in the input data, raw data, residual data, and various intermediate data involved in each stage of encoding and decoding are called data samples, or simply samples or sample values.

[0022] In the case of multi-component data (N>1), the components of the residual data usually exhibit strong correlation. A common technique in data compression is to use component space transformation (component transformation) to convert the data from a component space with strong correlation between components to a component space with weak correlation between components, thereby improving the coding efficiency of subsequent entropy coding.

[0023] An example of the component transformation positive operation of residual data is:

[0024] Component 1 after conversion = (Component 1 before conversion + Component 2 before conversion) / 2;

[0025] Component 2 after conversion = (Component 1 before conversion - Component 2 before conversion) / 2;

[0026] The corresponding inverse component conversion operation is:

[0027] Component 1 before conversion = (Component 1 after conversion + Component 2 after conversion);

[0028] Component 2 before conversion = (Component 1 after conversion - Component 2 after conversion);

[0029] In existing technologies, a single fixed coefficient is usually used to transform the components of multi-component residual data. This cannot adapt to the new characteristics of various new forms of data with different correlations, and even different parts of the same dataset may have different correlations. Summary of the Invention

[0030] To address this problem in the prior art, the present invention provides a data compression method and apparatus for performing component transformation on multi-component residual data using multiple sets of coefficients. In this method and apparatus, for multi-component residual data, according to predetermined rules and based on its characteristics, one of at least three predetermined sets of coefficients is selected for component transformation. The at least three predetermined sets of coefficients may include a set of coefficients that undergoes identity transformation, i.e., one set of coefficients that is not actually used for component transformation.

[0031] According to one aspect of the present invention, a multi-component data encoding method or apparatus is provided, comprising at least the steps or modules that perform the following functions and operations:

[0032] 1) Analyze the characteristics of the current multi-component residual data, and select one of the predetermined sets of coefficients for component transformation as the selected coefficient for the current encoding according to the predetermined rules;

[0033] 2) Perform a component transformation positive operation on the current residual using at least the selected coefficients;

[0034] 3) Write the result of the current encoding into the compressed data stream, which includes at least some or all of the information called selected information that indicates which set of coefficients the selected coefficients belong to.

[0035] Figure 1 (a) is a schematic diagram of the encoding method or apparatus of the present invention.

[0036] From a first perspective, the present invention provides an encoding method for compressing multi-component data, characterized by comprising at least the following steps:

[0037] 1) Analyze the characteristics of the current multi-component residual data, and select one of the predetermined sets of coefficients for component transformation as the selected coefficient for the current encoding according to the predetermined rules;

[0038] 2) Perform a component transformation positive operation on the current residual using at least the selected coefficients;

[0039] 3) Write the result of the current encoding into the compressed data stream, which includes at least some or all of the information called selected information that indicates which set of coefficients the selected coefficients belong to.

[0040] From a second perspective, the present invention provides an encoding apparatus for compressing multi-component data, characterized by comprising at least the following modules:

[0041] Coefficient selection module: Analyzes the characteristics of the current multi-component residual data, and selects one of the predetermined sets of coefficients for component transformation as the selected coefficient for the current encoding according to predetermined rules;

[0042] Component conversion positive operation module: Performs component conversion positive operation on the current residual using at least the selected coefficients;

[0043] The bitstream generation module writes the result of the current encoding into the compressed data bitstream, which includes at least some or all of the information called selected information indicating which set of coefficients the selected coefficients belong to.

[0044] According to another aspect of the present invention, a multi-component data decoding method or apparatus is provided, comprising at least the steps or modules that perform the following functions and operations:

[0045] 1) Parse the compressed data stream to obtain at least some or all of the information needed to perform component transformation on the current residual, which is called the selected information, indicating which set of coefficients from a predetermined set of coefficients is selected as the selected coefficients.

[0046] 2) At least based on the information and / or the parameters and / or variables involved in the predetermined decoding, select one of the predetermined sets of coefficients as the selected coefficient for the current decoding;

[0047] 3) Use at least the selected coefficients to perform the component transformation inverse operation on the residuals to obtain restored, reconstructed or reconstructed multi-component residual data.

[0048] Figure 1 (b) is a schematic diagram of the decoding method or apparatus of the present invention.

[0049] From a third perspective, the present invention provides a decoding method for compressing multi-component data, characterized by comprising at least the following steps:

[0050] 1) Parse the compressed data stream to obtain at least some or all of the information needed to perform component transformation on the current residual, which is called the selected information, indicating which set of coefficients from a predetermined set of coefficients is selected as the selected coefficients.

[0051] 2) At least based on the information and / or the parameters and / or variables involved in the predetermined decoding, select one of the predetermined sets of coefficients as the selected coefficient for the current decoding;

[0052] 3) Use at least the selected coefficients to perform the component transformation inverse operation on the residuals to obtain restored, reconstructed or reconstructed multi-component residual data.

[0053] From a fourth perspective, the present invention provides a decoding apparatus for compressing multi-component data, characterized by comprising at least the following modules:

[0054] The bitstream parsing module parses the compressed data bitstream and at least obtains some or all of the information called selected information, which indicates which set of coefficients from a set of predetermined coefficients is selected as the selected coefficients for component conversion of the current residual.

[0055] Coefficient selection module: Based at least on the information and / or the parameters and / or variables involved in the predetermined decoding, select one of a predetermined set of coefficients as the selected coefficient for the current decoding;

[0056] Component transformation inverse operation module: At least the selected coefficients are used to perform component transformation inverse operation on the residuals to obtain restored, reconstructed or reconstructed multi-component residual data.

[0057] This invention is applicable to the encoding and decoding of data with lossy compression, and it is also applicable to the encoding and decoding of data with lossless compression. This invention is applicable to the encoding and decoding of one-dimensional data such as string data, byte string data, one-dimensional graphics, or fractal-dimensional graphics, and it is also applicable to the encoding and decoding of two-dimensional or higher-dimensional data such as image or video data.

[0058] In this invention, the data compression involves one or a combination of the following types of data:

[0059] 1) One-dimensional data; 2) Two-dimensional data; 3) Multi-dimensional data; 4) Graphics; 5) Fractal-dimensional graphics; 6) Images; 7) Sequences of images; 8) Video; 9) Audio; 10) Files; 11) Bytes; 12) Bits; 13) Pixels; 14) Three-dimensional scenes; 15) Sequences of continuously changing three-dimensional scenes; 16) Virtual reality scenes; 17) Sequences of continuously changing virtual reality scenes; 18) Images in pixel form; 19) Transform domain data of images; 20) Sets of bytes of two or more dimensions; 21) Sets of bits of two or more dimensions; 22) Sets of pixels; 23) ... 24) A set of three-component pixels (R, G, B, A); 25) A set of three-component pixels (Y, U, V); 26) A set of three-component pixels (Y, Cb, Cr); 27) A set of three-component pixels (Y, Cg, Co); 28) A set of four-component pixels (C, M, Y, K); 29) A set of four-component pixels (R, G, B, A); 30) A set of four-component pixels (Y, U, V, A); 31) A set of four-component pixels (Y, Cb, Cr, A); 32) A set of four-component pixels (Y, Cg, Co, A).

[0060] In this invention, when the original data is an image, a sequence of images, a video, etc., the entire compression unit is a coding region or a decoding region of the image or sequence, including the following: sub-images of an image, slices, tiles, tile groups, bricks, macroblocks, maximum coding units (LCU), coding tree units (CTU), coding units (CU), sub-regions of CU, sub-coding units (SubCU), prediction blocks, prediction units (PU), sub-regions of PU, sub-prediction units (SubPU), transform blocks, transform units (TU), sub-regions of TU, ​​and sub-transform units (SubTU). In this context, a compressed block is a predetermined number of coded regions or a predetermined number of decoded regions in an image or sequence, including the following: sequence, sequence of images, image, sub-image of an image, slice, tile, tile group, brick, maximum coding unit (LCU), coding tree unit (CTU), coding unit (CU), transform block, transform unit (TU), one or more predetermined numbers of slices, tiles, tile groups, bricks, maximum coding unit (LCU), coding tree unit (CTU), coding unit (CU), transform block, or transform unit (TU).

[0061] The technical features of the present invention have been illustrated above through several specific examples. Those skilled in the art can easily understand other advantages and effects of the present invention from the content disclosed in this specification. The present invention can also be implemented or applied through other different specific embodiments, and various details in this specification can also be modified or changed based on different viewpoints and applications without departing from the spirit of the present invention. Attached Figure Description

[0062] Figure 1 (a) is a schematic diagram of the encoding method or apparatus of the present invention.

[0063] Figure 1 (b) is a schematic diagram of the decoding method or apparatus of the present invention. Detailed Implementation

[0064] The following are further implementation details or variations of the present invention.

[0065] Implementation or variant example 1

[0066] In the encoding method or apparatus or the decoding method or apparatus, the multiple sets of coefficients include at least two sets of coefficients that are not identity transformations.

[0067] Implementation or variant example 2

[0068] In the encoding method or apparatus or decoding method or apparatus, in the compressed data bitstream, there is partial or all of the information required to represent which set or sets of coefficients from the multiple sets of coefficients are used by a whole compression unit, which is called the whole compression unit component conversion selection information.

[0069] Implementation or Variation Example 3

[0070] In the encoding method or apparatus or decoding method or apparatus, component conversion is performed on M (2 ≤ M < N) components out of N (N ≥ 3) components, and no component conversion is performed on the remaining N - M components.

[0071] Implementation or Variation Example 4

[0072] In the encoding method or apparatus or decoding method or apparatus, component conversion is performed on 2 components out of N (N ≥ 3) components, and no component conversion is performed on the remaining N - 2 components; the forward component conversion operation in the encoding method or apparatus is the linear conversion F that converts components w and x into components y and z, and has I (I ≥ 3) sets of coefficients; the inverse component conversion operation in the decoding method or apparatus is the linear conversion G that converts components and into components and and has I sets of coefficients.

[0073] In the case of lossless compression, , , , in the above decoding method or apparatus are usually respectively equal to w, x, y, and z in the encoding method or apparatus. In the case of lossy compression, , , , in the above decoding method or apparatus are usually either respectively equal to the reconstructed values of w, x, y, z in the encoding method or apparatus after transformation, quantization, inverse quantization, and inverse transformation or the reconstructed values after quantization and inverse quantization or the reconstructed values after transformation and inverse transformation.

[0074] Implementation or Variation Example 5

[0075] In the encoding method or apparatus or decoding method or apparatus described in Implementation or Variation Example 4,

[0076] the I sets of coefficients of the linear conversion F are o[i], p[i], q[i], r[i], s[i], t[i], u[i], v[i], 0 ≤ i < I, and the linear conversion F is calculated by the following method:

[0077] y = (o[i]*w + p[i]*x + q[i]) / r[i], z = (s[i]*w + t[i]*x + u[i]) / v[i];

[0078] The I sets of coefficients of the linear transformation G are a[i], b[i], c[i], d[i], e[i], f[i], g[i], h[i], 0 ≤ i < I, and the linear transformation G is calculated as follows:

[0079] = (a[i]* + b[i]* + c[i]) / d[i], = (e[i]* + f[i]* + g[i]) / h[i].

[0080] Implement or vary Example 6

[0081] In the encoding method or device or decoding method or device described in Implement or vary Example 5, the i-th (0 ≤ i < I) sets of coefficients o[i], p[i], q[i], r[i], s[i], t[i], u[i], v[i] of the positive operation of the component transformation are abbreviated as [o, p, q, r, s, t, u, v], and the i-th (0 ≤ i < I) sets of coefficients a[i], b[i], c[i], d[i], e[i], f[i], g[i], h[i] of the inverse operation of the component transformation are abbreviated as [a, b, c, d, e, f, g, h]. The multiple sets of coefficients include at least several sets or all sets of the following seven sets of coefficients:

[0082] 1) Coefficient #1: [o, p, q, r, s, t, u, v] = [1, 0, 0, 0, 0, 1, 0, 0], [a, b, c, d, e, f, g, h] = [1, 0, 0, 0, 0, 1, 0, 0], that is, the linear transformation is an identity transformation. The calculation formula for the positive operation of the component transformation using this set of coefficients is:

[0083] y = w, z = x;

[0084] And the calculation formula for the inverse operation of the component transformation is

[0085] = , = ;

[0086] 2) Coefficient #2a: [o, p, q, r, s, t, u, v] = [1, 1,δ, 2, 1, –1,λ, 2], [a, b, c,d,e, f, g, h] = [1, 1, 0, 1, 1, –1, 0, 1], where δ = 0, 1, or –1 and λ = 0, 1, or –1 are rounding control parameters. The calculation formula for the positive operation of component conversion using this set of coefficients is:

[0087] y = (w + x + δ) / 2, where δ = 0, 1, or –1; z = (w - x + λ) / 2, where λ = 0, 1, or –1.

[0088] The formula for calculating the inverse operation of component conversion is:

[0089] = + , = - ;

[0090] 3) Coefficient #2b: [o, p, q, r, s, t, u, v] = [1, –1,δ, 2, 1, 1,λ, 2], [a, b, c,d,e, f, g, h] = [1, 1, 0, 1, –1, 1, 0, 1], where δ=0 or 1 and λ=0 or 1 are rounding control parameters. The calculation formula for the positive operation of component conversion using this set of coefficients is:

[0091] y = (w - x +δ) / 2, where δ = 0, 1, or –1; z = (w + x +λ) / 2, where λ = 0, 1, or –1.

[0092] The formula for calculating the inverse operation of component conversion is:

[0093] = + , = - + ;

[0094] It can be seen that the difference between coefficient #2b and coefficient #2a is that the p, t, e, and f of the two sets of coefficients are opposites of each other.

[0095] 4) Coefficient #3a: [o, p, q, r, s, t, u, v] = [A, 2,δ, A+1, 1, –2,λ, A+1], [a,b, c, d,e, f, g, h] = [1, 1, 0, 1, 1, –A,ε, 2], where A = 1 or 4 or other predetermined integer constants satisfying 1≤A≤10, and δ, λ, and ε are rounding control parameters: δ = 0 or 1 or –1 or A / 2 or –A / 2 or other predetermined integer constants satisfying –A / 2≤δ≤A / 2, λ = 0 or 1 or –1 or A / 2 or –A / 2 or other predetermined integer constants satisfying –A / 2≤λ≤A / 2, ε = 0 or 1 or –1. The calculation formula for the positive operation of component conversion using this set of coefficients is:

[0096] y = (Aw + 2x +δ) / (A+1), z = (w - 2x +λ) / (A+1);

[0097] The formula for calculating the inverse operation of component conversion is:

[0098] = + , = ( - A +ε) / 2, where ε = 0, 1, or –1;

[0099] 5) Coefficient #3b: [o, p, q, r, s, t, u, v] = [A, –2,δ, A+1, 1, 2,λ, A+1], [a,b, c, d,e, f, g, h] = [1, 1, 0, 1, –1, A,ε, 2], where A = 1 or 4 or other predetermined integer constants satisfying 1 ≤ A ≤ 10, and δ, λ, and ε are rounding control parameters: δ = 0 or 1 or –1 or A / 2 or –A / 2 or other predetermined integer constants satisfying –A / 2 ≤ δ ≤ A / 2, λ = 0 or 1 or –1 or A / 2 or –A / 2 or other predetermined integer constants satisfying –A / 2 ≤ λ ≤ A / 2, ε = 0 or 1 or –1. The calculation formula for the positive operation of component conversion using this set of coefficients is:

[0100] y = (Aw - 2x +δ) / (A+1), z = (w + 2x +λ) / (A+1);

[0101] The formula for calculating the inverse operation of component conversion is:

[0102] = + , = (- + A +ε) / 2, where ε = 0, 1, or –1;

[0103] It can be seen that the difference between coefficient #3b and coefficient #3a is that the p, t, e, and f of the two sets of coefficients are opposites of each other.

[0104] 6) Coefficient #4a: [o, p, q, r, s, t, u, v] = [2, A,δ, A+1, –2, 1,λ, A+1], [a,b, c, d,e, f, g, h] = [1, –A,ε, 2, 1, 1, 0, 1], where A = 1 or 4 or other predetermined integer constants satisfying 1 ≤ A ≤ 10, and δ, λ, and ε are rounding control parameters: δ = 0 or 1 or –1 or A / 2 or –A / 2 or other predetermined integer constants satisfying –A / 2 ≤ δ ≤ A / 2, λ = 0 or 1 or –1 or A / 2 or –A / 2 or other predetermined integer constants satisfying –A / 2 ≤ λ ≤ A / 2, ε = 0 or 1 or –1. The calculation formula for the positive operation of component conversion using this set of coefficients is:

[0105] y = (2w + Ax +δ) / (A+1), z = (-2w + x +λ) / (A+1);

[0106] The formula for calculating the inverse operation of component conversion is:

[0107] = ( - A +ε) / 2, where ε = 0, 1, or –1. = + ;

[0108] It can be seen that coefficient #4a is the result of swapping o and p, s and t, a and e, b and f, c and g, and d and h in coefficient #3a;

[0109] 7) Coefficient #4b: [o, p, q, r, s, t, u, v] = [–2, A, δ, A + 1, 2, 1, λ, A + 1], [a, b, c, d, e, f, g, h] = [–1, A, ε, 2, 1, 1, 0, 1], where A = 1 or 4 or other predetermined integer constants satisfying 1 ≤ A ≤ 10, and δ, λ, ε are all rounding control parameters: δ = 0 or 1 or –1 or A / 2 or –A / 2 or other predetermined integer constants satisfying –A / 2 ≤ δ ≤ A / 2, λ = 0 or 1 or –1 or A / 2 or –A / 2 or other predetermined integer constants satisfying –A / 2 ≤ λ ≤ A / 2, ε = 0 or 1 or –1. The calculation formula for the positive operation of component conversion using this set of coefficients is:

[0110] y = (-2w + Ax + δ) / (A + 1), z = (2w + x + λ) / (A + 1);

[0111] And the calculation formula for the inverse operation of component conversion is

[0112] = (- + A + ε) / 2, where ε = 0 or 1 or –1, = + ;

[0113] It can be seen that the difference between coefficient #4b and coefficient #4a is that o, s, a, and b of the two sets of coefficients are opposite to each other;

[0114] It can also be seen that coefficient #4b is the result of swapping o and p, s and t, a and e, b and f, c and g, and d and h in coefficient #3b.

[0115] Implement or vary embodiment 7 (multiple sets of coefficients are divided into K coefficient groups allowing overlap, and one coefficient group is used for one compression block)

[0116] In the encoding method or device or decoding method or device, the multiple sets of coefficients are divided into a predetermined K (2 ≤ K ≤ 6) groups of coefficients, that is, K coefficient groups. The kth (0 ≤ k < K) group of coefficients, that is, the kth coefficient group, has J

[0113] , , , , , ,

[0115] , , ,

[0116] , , k ,

[0114] , sets of coefficients. Two coefficient groups are allowed to have the same set or several sets of coefficients (for example, usually each coefficient group includes the set of coefficients representing the identity conversion); a compression block using component conversion can only use the coefficients within one coefficient group: there is a part or all of the information called the selected information of the compression block component conversion in the compressed data bitstream, which indicates which coefficient group a compression block uses.

[0117] Implement or vary Embodiment 8 (multiple sets of coefficients are divided into K sets of coefficients that are allowed to overlap, and one coefficient set is used for one compression block).

[0118] In the encoding method or device or decoding method or device described in Embodiment 7, in the compressed data bitstream, there is also information that is called the selected information of the component transformation of the entire compression unit within the compression block, which represents some or all of the information required for which set of coefficients in the coefficient set used by the compression block is used by an entire compression unit within the compression block.

[0119] Implement or vary Embodiment 9 (multiple sets of coefficients are divided into K sets of coefficients that are allowed to overlap, and one coefficient set is used for one compression block).

[0120] In the encoding method or device or decoding method or device described in Embodiments 4, 5, and 6, the multiple sets of coefficients are divided into a predetermined K (2 ≤ K ≤ 6) sets of coefficients, that is, K coefficient sets. The kth (0 ≤ k < K) set of coefficients, that is, the kth coefficient set, has J k sets of coefficients. Two coefficient sets are allowed to have the same set or several sets of coefficients (for example, usually each coefficient set includes the set of coefficients representing the identity transformation); a compression block using component transformation can only use the coefficients within one coefficient set: in the compressed data bitstream, there is information that is called the selected information of the component transformation of the compression block, which represents some or all of the information required for which coefficient set is used by a compression block.

[0121] Implement or vary Embodiment 10 (multiple sets of coefficients are divided into K sets of coefficients that are allowed to overlap, and one coefficient set is used for one compression block).

[0122] In the encoding method or device or decoding method or device described in Embodiment 9, in the compressed data bitstream, there is also information that is called the selected information of the component transformation of the entire compression unit within the compression block, which represents some or all of the information required for which set of coefficients in the coefficient set used by the compression block is used by an entire compression unit within the compression block.

[0123] Implement or vary Embodiment 11 (multiple sets of coefficients are divided into K sets of coefficients that are allowed to overlap, and one coefficient set is used for one compression block).

[0124] In the encoding method or device or decoding method or device described in Embodiment 6, the seven sets of coefficients are divided into a predetermined K (2 ≤ K ≤ 6) sets of coefficients, that is, K coefficient sets. Each coefficient set has 4 sets of coefficients. The 4 sets of coefficients include coefficient #1; a compression block using component transformation can only use the coefficients within one coefficient set: in the compressed data bitstream, there is information that is called the selected information of the component transformation of the compression block, which represents some or all of the information required for which coefficient set is used by a compression block.

[0125] Implementation or variant example 12 (multiple sets of coefficients are divided into K coefficient groups that are allowed to overlap, and one compressed block uses one coefficient group)

[0126] In the encoding method or apparatus or decoding method or apparatus described in Implementation or Variation 11, the seven sets of coefficients are divided into the following two groups of coefficients, i.e., two coefficient groups:

[0127] Coefficient group 1: Coefficient #1, Coefficient #2a, Coefficient #3a, Coefficient #4a;

[0128] Coefficient group 2: Coefficient #1, Coefficient #2b, Coefficient #3b, Coefficient #4b.

[0129] Implementation or variant example 13 (component conversion and adjustment of energy-based quantization and dequantization degree)

[0130] In the encoding method or apparatus or the decoding method or apparatus, the degree of quantization and the corresponding degree of dequantization of the converted components are adjusted according to the energy of the component conversion, so as to increase or decrease the degree of quantization and the corresponding degree of dequantization.

[0131] Implementation or variant example 14 (component conversion and adjustment of energy-based quantization and dequantization degree)

[0132] In the encoding method or apparatus or the decoding method or apparatus, the quantization degree and the corresponding dequantization degree of the converted component are adjusted according to the energy of the component conversion. The increase in the quantization degree and the corresponding dequantization degree is proportional to the gain of the energy of the component conversion, and the decrease in the quantization degree and the corresponding dequantization degree is proportional to the attenuation of the energy of the component conversion.

[0133] Implementation or variant example 15 (component conversion and control of quantization and dequantization degree not only based on energy)

[0134] In the encoding method or apparatus, or the decoding method or apparatus, the degree of quantization and the corresponding degree of inverse quantization are represented and controlled by the quantization parameter QP; increasing QP increases the degree of quantization and the corresponding degree of inverse quantization, while decreasing QP decreases the degree of quantization and the corresponding degree of inverse quantization; the encoding method or apparatus controls the size of the quantization parameter QP based on the energy of component conversion and / or other predetermined factors, including improving encoding efficiency and / or reducing encoding and decoding complexity.

[0135] Implementation or variant example 16 (component conversion and quantization not only based on energy and the degree of dequantization through QP adjustment)

[0136] In the implementation or variation of Example 15, the amount of adjustment of QP is represented by QP offset or QP increment.

[0137] Implementation or variant example 17 (combined with component conversion, quantization, and dequantization, it is divided into normal quantization components and enhanced quantization components).

[0138] In the encoding method or apparatus or the decoding method or apparatus, each component obtained after non-identical transformation is divided into normal quantization components and enhanced quantization components. The quantization degree and the corresponding dequantization degree of the enhanced quantization components are several times greater than the quantization degree and the corresponding dequantization degree of the normal quantization components.

[0139] Implementation or variant example 18 (combining component conversion with quantization and dequantization QP to form normal quantization components and enhanced quantization components).

[0140] In the encoding method or apparatus or decoding method or apparatus described in Implementation or Variation 17, the degree of quantization and the corresponding degree of inverse quantization are represented and controlled by the quantization parameter QP. Increasing QP increases the degree of quantization and the corresponding degree of inverse quantization, while decreasing QP decreases the degree of quantization and the corresponding degree of inverse quantization. The QP value used for quantizing and inverse quantizing the enhanced quantized component is at least 6 greater than the QP value used for quantizing and inverse quantizing the normal quantized component.

[0141] Implementation or variant example 19 (combining component conversion with quantization and dequantization QP to form normal quantization components and enhanced quantization components).

[0142] In the implementation or variations of the encoding method or apparatus described in examples 4, 5, and 6, or in the decoding method or apparatus, the component y obtained after non-identity transformation is a normally quantized component, while the component z is an enhanced quantized component; the QP value used for quantizing z and the corresponding dequantization is at least 6 greater than the QP value used for quantizing y and the corresponding dequantization.

[0143] Implementation or variant example 20 (example of energy calculation for component conversion)

[0144] In the encoding method or apparatus or decoding method or apparatus described in embodiments or variations 5 and 6, the energy Ey of the component y obtained after linear transformation is o[i]. 2 + p[i] 2 The square root of , and the energy Ex of component z is s[i]. 2 + t[i] 2 The square root of.

[0145] Implementation or variant example 21 (QP offset value for adjusting QP)

[0146] In the implementation or variation of Example 6, the encoding method or apparatus or the decoding method or apparatus,

[0147] The QP value used for quantizing or dequantizing components that are not transformed or have undergone identity transformation is the basic QP. base ,

[0148] The QP value used for quantizing or dequantizing the component y obtained through a non-identical transformation with the i-th set of coefficients is

[0149] QPy[i] = QP base + DQPy[i],

[0150] The QP value used for quantizing or dequantizing the component z obtained by a non-identical transformation with the i-th set of coefficients is

[0151] QPz[i] = QP base + DQPz[i],

[0152] Each i-th set of coefficients has its own independent QP offset values ​​DQPy[i] and DQPz[i].

[0153] Implementation or variant example 22 (relationship between QP offset value and equal quantization component coefficient, normal reinforcement quantization component coefficient)

[0154] In the implementation or variation of Example 21, the encoding method or apparatus or the decoding method or apparatus,

[0155] The value of DQPy[i] is -4 or -3 or -2 or -1 or 0 or 1 or 2 or 3;

[0156] The value of DQPz[i] is DQPy[i] or DQPy[i]±1 or DQPy[i]±2 or DQPy[i]±3 or Q, where Q ≥ (DQPy[i]+ 6);

[0157] The i-th set of coefficients with a value of DQPz[i] of DQPy[i] or DQPy[i]±1 or DQPy[i]±2 or DQPy[i]±3 is called the equal quantization component coefficient with equal QP offset value.

[0158] The value of DQPz[i] is Q, where Q ≥ (DQPy[i] + 6) is called the normal reinforcement quantization component coefficient with normal reinforcement QP offset value. In this case, component y and component z are called normal quantization component and reinforcement quantization component, respectively.

[0159] Implementation or variant example 23 (example of equal quantification component coefficient, normal reinforcement quantification component coefficient)

[0160] In implementing or varying the encoding method or apparatus or decoding method or apparatus described in Example 22, several sets of coefficients among the seven sets of coefficients are combined with the QP offset value to be extended into the multiple sets of coefficients used in the following encoding method or apparatus or decoding method or apparatus:

[0161] 1) I1 sets of coefficients among the seven sets of coefficients are combined with the equal QP offset value to form I1 sets of equal quantization component coefficients,

[0162] 2) I2 sets of coefficients among the seven sets of coefficients are combined with the normal enhancement QP offset value to form I2 sets of normal enhancement quantization component coefficients,

[0163] Thus, the encoding method or apparatus or decoding method or apparatus uses a total of I1 + I2 sets of coefficients for the forward or inverse operation of component conversion.

[0164] Implementing or varying Example 24 (including the coefficient groups of equal quantization component coefficients and normal enhancement quantization component coefficients)

[0165] In the encoding method or apparatus or decoding method or apparatus described in Example 23, the I1 + I2 sets of coefficients are divided into a predetermined K (2 ≤ K ≤ 6) groups of coefficients, that is, K coefficient groups. The kth (0 ≤ k < K) group of coefficients, that is, the kth coefficient group, has J k sets of coefficients. Two coefficient groups are allowed to have the same set or several sets of coefficients (for example, usually each coefficient group includes the set of coefficients representing the identity transformation); a compression block using component conversion can only use the coefficients within one coefficient group: in the compressed data bitstream, there is information called the compressed block component conversion selection information, which represents part or all of the information required for a compression block to use which of the K coefficient groups.

[0166] Implementing or varying Example 25 (including the coefficient groups of equal quantization component coefficients and normal enhancement quantization component coefficients, and each coefficient group has 3 sets of coefficients)

[0167] In the encoding method or apparatus or decoding method or apparatus described in Example 23, the I1 + I2 sets of coefficients are divided into a predetermined K (2 ≤ K ≤ 6) groups of coefficients, that is, K coefficient groups. Each coefficient group has 3 sets of coefficients. The 3 sets of coefficients include coefficient #1; a compression block using component conversion can only use the coefficients within one coefficient group: in the compressed data bitstream, there is information called the compressed block component conversion selection information, which represents part or all of the information required for a compression block to use which of the K coefficient groups.

[0168] Implementing or varying Example 26 (including the coefficient groups of equal quantization component coefficients and normal enhancement quantization component coefficients, and each coefficient group has 4 sets of coefficients)

[0169] In the encoding method or apparatus or decoding method or apparatus described in Implementation or Variation 23, the I1+I2 sets of coefficients are divided into a predetermined K (2≤K≤6) groups of coefficients, i.e., K coefficient groups, each coefficient group having 4 sets of coefficients, the 4 sets of coefficients including coefficient #1; a compressed block using component conversion can only use coefficients from one coefficient group: the compressed data bitstream contains some or all of the information required to indicate which coefficient group of the K coefficient groups a compressed block uses, referred to as compressed block component conversion selection information.

[0170] Implementation or variant example 27 (a coefficient set containing equal quantification component coefficients and normal reinforcement quantification component coefficients, with 5 sets of coefficients in each coefficient set)

[0171] In the encoding method or apparatus or decoding method or apparatus described in Implementation or Variation 23, the I1+I2 sets of coefficients are divided into a predetermined K (2≤K≤6) groups of coefficients, i.e., K coefficient groups, each coefficient group having 5 sets of coefficients, the 5 sets of coefficients including coefficient #1; a compressed block using component conversion can only use coefficients from one coefficient group: the compressed data bitstream contains some or all of the information required to indicate which coefficient group of the K coefficient groups a compressed block uses, referred to as compressed block component conversion selection information.

[0172] Implementation or variant example 28 (a coefficient set containing equal quantification component coefficients and normal reinforcement quantification component coefficients, with 3 sets of coefficients for each coefficient set)

[0173] In the encoding method or apparatus or decoding method or apparatus described in embodiments or variations 24, 25, 26, and 27, the compressed data bitstream also contains information called "component conversion selection information of an integral compression unit within a compressed block," which indicates which set of coefficients in which coefficient group is used by an integral compression unit within the compressed block.

[0174] Implementation or variant example 29 (an example of a coefficient group containing equal quantization component coefficients and normal reinforcement quantization component coefficients).

[0175] In the encoding method or apparatus or decoding method or apparatus described in implementation or variation 24, the K coefficient sets are selected from the following coefficient sets:

[0176] Coefficient group 1: Coefficient #1, Coefficient #2a combined with the equal QP offset value, Coefficient #3a combined with the equal QP offset value, Coefficient #4a combined with the equal QP offset value;

[0177] Coefficient group 2: Coefficient #1, Coefficient #2b combined with the equal QP offset value, Coefficient #3b combined with the equal QP offset value, Coefficient #4b combined with the equal QP offset value;

[0178] Coefficient group 3: Coefficient #1, Coefficient #2a combined with normal reinforcement QP offset value, Coefficient #3a combined with normal reinforcement QP offset value, Coefficient #4a combined with normal reinforcement QP offset value;

[0179] Coefficient group 4: Coefficient #1, Coefficient #2b combined with normal reinforcement QP offset value, Coefficient #3b combined with normal reinforcement QP offset value, Coefficient #4b combined with normal reinforcement QP offset value;

[0180] Coefficient group 5: Coefficient #1, Coefficient #2a combined with normal reinforcement QP offset value, Coefficient #2a combined with equal QP offset value, Coefficient #3a combined with normal reinforcement QP offset value;

[0181] Coefficient group 6: Coefficient #1, Coefficient #2a combined with normal reinforcement QP offset value, Coefficient #2a combined with equal QP offset value, Coefficient #4a combined with normal reinforcement QP offset value;

[0182] Coefficient group 7: Coefficient #1, Coefficient #2b combined with normal reinforcement QP offset value, Coefficient #2b combined with equal QP offset value, Coefficient #3b combined with normal reinforcement QP offset value;

[0183] Coefficient group 8: Coefficient #1, Coefficient #2b combined with normal reinforcement QP offset value, Coefficient #2b combined with equal QP offset value, Coefficient #4b combined with normal reinforcement QP offset value;

[0184] Coefficient group 9: Coefficient #1, Coefficient #2a combined with normal reinforcement QP offset value, Coefficient #2a combined with equal QP offset value, Coefficient #3a combined with normal reinforcement QP offset value, Coefficient #4a combined with normal reinforcement QP offset value;

[0185] Coefficient group 10: Coefficient #1, Coefficient #2b combined with normal reinforcement QP offset value, Coefficient #2b combined with equal QP offset value, Coefficient #3b combined with normal reinforcement QP offset value, Coefficient #4b combined with normal reinforcement QP offset value;

[0186] Coefficient group 11: Coefficient #1, Coefficient #2a combined with normal enhanced QP offset value, Coefficient #2a combined with equal QP offset value, Coefficient #3a combined with normal enhanced QP offset value, Coefficient #3a combined with equal QP offset value, Coefficient #4a combined with normal enhanced QP offset value, Coefficient #4a combined with equal QP offset value;

[0187] Coefficient group 12: Coefficient #1, Coefficient #2b combined with normal reinforcement QP offset value, Coefficient #2b combined with equal QP offset value, Coefficient #3b combined with normal reinforcement QP offset value, Coefficient #3b combined with equal QP offset value, Coefficient #4b combined with normal reinforcement QP offset value, Coefficient #4b combined with equal QP offset value.

[0188] Implementation or variant example 30 (an example of a coefficient group containing equal quantification component coefficients and normal reinforcement quantification component coefficients, with each coefficient group having 4 sets of coefficients)

[0189] In the encoding method or apparatus or decoding method or apparatus described in implementation or variation 26, the K coefficient sets are selected from the following coefficient sets:

[0190] Coefficient group 1: Coefficient #1, Coefficient #2a combined with the equal QP offset value, Coefficient #3a combined with the equal QP offset value, Coefficient #4a combined with the equal QP offset value;

[0191] Coefficient group 2: Coefficient #1, Coefficient #2b combined with the equal QP offset value, Coefficient #3b combined with the equal QP offset value, Coefficient #4b combined with the equal QP offset value;

[0192] Coefficient group 3: Coefficient #1, Coefficient #2a combined with normal reinforcement QP offset value, Coefficient #3a combined with normal reinforcement QP offset value, Coefficient #4a combined with normal reinforcement QP offset value;

[0193] Coefficient group 4: Coefficient #1, Coefficient #2b combined with normal reinforcement QP offset value, Coefficient #3b combined with normal reinforcement QP offset value, Coefficient #4b combined with normal reinforcement QP offset value;

[0194] Coefficient group 5: Coefficient #1, Coefficient #2a combined with normal reinforcement QP offset value, Coefficient #2a combined with equal QP offset value, Coefficient #3a combined with normal reinforcement QP offset value;

[0195] Coefficient group 6: Coefficient #1, Coefficient #2a combined with normal reinforcement QP offset value, Coefficient #2a combined with equal QP offset value, Coefficient #4a combined with normal reinforcement QP offset value;

[0196] Coefficient group 7: Coefficient #1, Coefficient #2b combined with normal reinforcement QP offset value, Coefficient #2b combined with equal QP offset value, Coefficient #3b combined with normal reinforcement QP offset value;

[0197] Coefficient group 8: Coefficient #1, Coefficient #2b combined with normal reinforcement QP offset value, Coefficient #2b combined with equal QP offset value, Coefficient #4b combined with normal reinforcement QP offset value.

[0198] Implementation or variant example 31 (an example of a coefficient group containing equal quantification component coefficients and normal reinforcement component coefficients, with each coefficient group having 4 sets of coefficients)

[0199] In the encoding method or apparatus or decoding method or apparatus described in implementation or variation 26, the K coefficient groups are the following two coefficient groups:

[0200] Coefficient group A: Coefficient #1, Coefficient #2a combined with normal reinforcement QP offset value, Coefficient #3a combined with normal reinforcement QP offset value, Coefficient #4a combined with normal reinforcement QP offset value;

[0201] Coefficient group B: Coefficient #1, Coefficient #2b combined with normal reinforcement QP offset value, Coefficient #3b combined with normal reinforcement QP offset value, Coefficient #4b combined with normal reinforcement QP offset value.

[0202] Implementation or variant example 32 (an example of a coefficient group containing equal quantification component coefficients and normal reinforcement quantification component coefficients, with each coefficient group having 4 sets of coefficients)

[0203] In the encoding method or apparatus or decoding method or apparatus described in implementation or variation 26, the K coefficient groups are the following four coefficient groups:

[0204] Coefficient group I: Coefficient #1, Coefficient #2a combined with normal enhanced QP offset value, Coefficient #2a combined with equal QP offset value, Coefficient #3a combined with normal enhanced QP offset value;

[0205] Coefficient Group II: Coefficient #1, Coefficient #2a combined with normal reinforcement QP offset value, Coefficient #2a combined with equal QP offset value, Coefficient #4a combined with normal reinforcement QP offset value;

[0206] Coefficient Group III: Coefficient #1, Coefficient #2b combined with normal reinforcement QP offset value, Coefficient #2b combined with equal QP offset value, Coefficient #3b combined with normal reinforcement QP offset value;

[0207] Coefficient group IV: Coefficient #1, Coefficient #2b combined with normal reinforcement QP offset value, Coefficient #2b combined with equal QP offset value, Coefficient #4b combined with normal reinforcement QP offset value.

[0208] Implementation or variant example 33 (The QP of quantization and dequantization of the enhanced quantization component is very large, so the enhanced quantization component after quantization and dequantization is zero)

[0209] In the encoding method or apparatus or decoding method or apparatus described in implementations or variations 4, 5, 6, 8, 10, 11, 12, 16, 18, 21, 22, 23, 24, 25, 26, 27, 29, 30, 31, and 32, the degree of quantization and corresponding inverse quantization is represented and controlled by the quantization parameter QP. Increasing QP increases the degree of quantization and corresponding inverse quantization, while decreasing QP decreases the degree of quantization and corresponding inverse quantization. The components obtained after non-identical transformation are divided into normal quantized components and enhanced quantized components. The QP value used for quantizing and inverse quantizing the enhanced quantized components is at least 20 greater than the QP value used for quantizing and inverse quantizing the normal quantized components. Therefore, all enhanced quantized components are zero after quantization, and the reconstructed values ​​of the residual data obtained after at least inverse quantization are also all zero. Thus, in the inverse operation of component transformation, the enhanced quantized components... The values ​​are all zero, only from the normal quantization components. Calculate the components and components .

[0210] Implementation or variant example 34 (The QP of the quantization and dequantization of the enhanced quantization component is very large, so the enhanced quantization component after quantization and dequantization is zero).

[0211] In the decoding method or apparatus described in implementations or variations 6, 11, 12, 21, 22, 23, 24, 25, 26, 27, 29, 30, 31, and 32, the enhanced quantization component is... The QP value used for inverse quantization is compared to the normal quantization component. The QP value used for dequantization is at least 20, therefore the corresponding enhanced quantization component z is all zero after quantization in the corresponding encoding method or device. Thus, the enhanced quantization component... The values ​​are all zero. In the inverse operation of component transformation, only the normally quantized components are considered. Calculate the components and components .

[0212] Implementation or variant example 35 (The QP of the quantization and dequantization of the enhanced quantization component is very large, so the enhanced quantization component after quantization and dequantization is zero).

[0213] In the decoding method or apparatus described in Implementation or Variation 34, the calculation formulas for the inverse operation of the component conversion among the seven sets of coefficients are as follows:

[0214] 1) Coefficient #1: Still an identity transformation;

[0215] 2) Coefficient #2a: = , = ;

[0216] 3) Coefficient #2b: = , = - ;

[0217] 4) Coefficient #3a: = , = ( +ε) / 2, where ε = 0, 1, or –1;

[0218] 5) Coefficient #3b: = , = (- +ε) / 2, where ε = 0, 1, or –1;

[0219] 6) Coefficient #4a: = ( +ε) / 2, where ε = 0, 1, or –1. = ;

[0220] 7) Coefficient #4b: = (- +ε) / 2, where ε = 0, 1, or –1. = .

[0221] Implementation or variant example 36 (Implementation or variant example regarding selected information)

[0222] In the encoding method or apparatus or the decoding method or apparatus, the selected information exists in the compressed block header and / or the entire compressed unit header in a direct form, an indirect form, or a combination of direct and indirect forms; the selected information in the direct form consists of one or more bit strings in the compressed data bitstream; the selected information in the indirect form is information derived from other encoding parameters and / or encoding / decoding variables and / or other syntax elements of the compressed data bitstream; the selected information in the combination of direct and indirect forms is a selection information that is partially direct (i.e., consists of one or more bit strings in the compressed data bitstream) and partially indirect (i.e., derived from other encoding parameters and / or encoding / decoding variables and / or other syntax elements of the compressed data bitstream) mixed selection information.

[0223] Implementation or variant example 37 (Implementation or variant example regarding selected information)

[0224] In implementing or varying the encoding method or apparatus or decoding method or apparatus described in Example 36, the compressed block header is a sequence parameter set, or a picture parameter set, or a sequence header, or a picture header, or a slice header, or a tile header, or a brick header, or a largest coding unit (LCU) header, or a coding tree unit (CTU) header, or a coding unit (CU) header.

[0225] Implementing or varying Example 38 (Implementing or varying regarding selected information)

[0226] In the encoding method or apparatus or decoding method or apparatus, one or more flag bits and / or one or more identification codes and associated syntax elements in italics are obtained from at least the selected information as follows:

[0227] Component transformation selected coefficient flag bit and / or component transformation selected coefficient identification code;

[0228] The direct flag bits and / or identification codes are composed of one or more bit strings in the compressed data bitstream. The indirect flag bits and / or identification codes are flag bits and / or identification codes derived from other encoding parameters and / or encoding / decoding variables and / or other syntax elements of the compressed data bitstream. The direct-indirect mixed flag bits and / or identification codes are flag bits and / or identification codes that are partially direct (i.e., composed of one or more bit strings in the compressed data bitstream) and partially indirect (i.e., derived from other encoding parameters and / or encoding / decoding variables and / or other syntax elements of the compressed data bitstream).

[0229] Implementing or varying Example 39 (Implementing or varying regarding selected information)

[0230] In the encoding method or apparatus or decoding method or apparatus described in Example 38, the multiple sets of coefficients are I (I≥3) sets of coefficients, respectively called the i-th (0 ≤ i<I) set of coefficients; the component transformation and / or component transformation selected coefficient identification codes take II (II ≥ I) predetermined values, respectively called the ii-th (0 ≤ ii<II) value; each of the ii-th values corresponds to a predetermined set of coefficients in the I sets of coefficients, called the i(ii)-th set of coefficients. Different ii values are allowed to correspond to the same i(ii). For example, i(0)=i(1)=i(2)=i(3)=0, that is, the 0th, 1st, 2nd, and 3rd values of the component transformation selected coefficient identification code all correspond to the 0th set of coefficients; at least according to the values of the component transformation selected coefficient flag bit and / or component transformation selected coefficient identification code, the following corresponding component transformations are performed:

[0231] If the value of the component conversion selected coefficient flag bit and / or the component conversion selected coefficient identifier code is equal to the ii-th value, then {the component conversion positive operation or component conversion inverse operation is performed on the residual using the ii-th set of coefficients}.

[0232] Implementation or variant example 40 (Implementation or variant example regarding selected information for compressed block component conversion)

[0233] In the encoding method or apparatus or decoding method or apparatus described in embodiments or variations 11, 24, 25, 26, and 27, the compressed block component conversion selection information exists in the compressed block header in a direct form, an indirect form, or a combination of direct and indirect forms; the direct form selection information consists of one or more bit strings in the compressed data bitstream; the indirect form selection information is information derived from other encoding parameters and / or encoding / decoding variables and / or other syntax elements of the compressed data bitstream; and the combination of direct and indirect selection information is a selection information that is partially direct (i.e., consists of one or more bit strings in the compressed data bitstream) and partially indirect (i.e., derived from other encoding parameters and / or encoding / decoding variables and / or other syntax elements of the compressed data bitstream) mixed selection information.

[0234] Implementation or variant example 41 (Implementation or variant example regarding selected information for compressed block component conversion)

[0235] In the implementation or variant of Example 40, the encoding method or apparatus or decoding method or apparatus, the compressed block header is a sequence parameter set or image parameter set or sequence header or image header or strip header or patch header or brick header or maximum coding unit (LCU) header or coding tree unit (CTU) header or coding unit (CU) header.

[0236] Implementation or variant example 42 (Implementation or variant example regarding selected information for compressed block component conversion)

[0237] In the encoding method or apparatus or decoding method or apparatus described in embodiments or variations 11, 24, 25, 26, 27, the following one or more flag bits and / or one or more identifier codes and associated syntax elements, represented in italics, are obtained from selected information converted from at least the compressed block components:

[0238] Compressed block component conversion selected coefficient flag bit and / or compressed block component conversion selected coefficient identifier code;

[0239] The direct flag bit and / or identification code is composed of one or more bit strings in the compressed data bitstream. The indirect flag bit and / or identification code is a flag bit and / or identification code derived from other coding parameters and / or encoding / decoding variables and / or other syntax elements of the compressed data bitstream. The direct-indirect mixed flag bit and / or identification code is a flag bit and / or identification code that is partially direct (i.e., composed of one or more bit strings in the compressed data bitstream) and partially indirect (i.e., derived from other coding parameters and / or encoding / decoding variables and / or other syntax elements of the compressed data bitstream).

[0240] Embodiment or Variation Example 43 (Embodiment or Variation Example Regarding Selection Information of Compressed Block Component Transformation)

[0241] In the encoding method or device or decoding method or device described in Embodiment or Variation Example 42, the K coefficient groups are respectively referred to as the k-th (1 ≤ k ≤ K) coefficient group; the compressed block component transformation selected coefficient flag bit and / or the compressed block component transformation selected coefficient identification code take K predetermined values, which are respectively referred to as the k-th (0 ≤ k < K) value; at least according to the value of the compressed block component transformation selected coefficient flag bit and / or the compressed block component transformation selected coefficient identification code, the following corresponding component transformations are performed:

[0242] If the value of the compressed block component transformation selected coefficient flag bit and / or the identification code is equal to the k-th value, then

[0243] {Perform a component transformation positive operation or a component transformation inverse operation on the residual using the coefficients belonging to the k-th coefficient group}.

[0244] Embodiment or Variation Example 44 (Embodiment or Variation Example Regarding Selection Information of Intra-Compressed Unit Component Transformation in Compressed Block) 7>In the encoding method or device or decoding method or device described in Embodiment or Variation Example 43, there is also in the compressed data bitstream the information referred to as the selection information of intra-compressed unit component transformation in the compressed block, which represents part or all of the information required for which set of coefficients in the coefficient group used by the compressed block (i.e., the compressed block using the k-th coefficient group) is used by an intra-compressed unit within the compressed block. Obtain the following one or more flag bits and / or one or more identification codes and associated syntax elements in italics, which are direct or indirect or direct-indirect mixed, from at least the selection information of intra-compressed unit component transformation in the compressed block:

[0246] Selected coefficient flag bit for intra-compressed unit component transformation in compressed block

[0247] and / or

[0248] Selected coefficient identification code for intra-compressed unit component transformation in compressed block

[0249] The direct flag bits and / or identifiers consist of one or more bit strings in the compressed data bitstream. The indirect flag bits and / or identifiers are derived from other encoding parameters and / or encoding / decoding variables and / or other syntax elements of the compressed data bitstream. The direct-indirect mixed flag bits and / or identifiers are a mixture of partially direct (i.e., composed of one or more bit strings in the compressed data bitstream) and partially indirect (i.e., derived from other encoding parameters and / or encoding / decoding variables and / or other syntax elements of the compressed data bitstream) flag bits and / or identifiers.

[0250] Implementation or variant example 45 (Implementation or variant example regarding the selection information for whole compression unit component conversion within a compressed block)

[0251] In the encoding method or apparatus or decoding method or apparatus described in implementation or variation 44, the k-th coefficient group has J k The coefficients are respectively called the j-th (0 ≤ j) <J k ) Set coefficient; the selected coefficient flag bit for the whole compression unit component conversion within the compression block and / or the selected coefficient identifier code for the whole compression unit component conversion within the compression block are taken from the predetermined JJ k (JJ) k ≥ J k The j-th value (0 ≤ jj) is called the j-th value. <JJ k ) values; each of the jj-th values ​​corresponds to the J... k A predetermined set of coefficients in the set of coefficients is called the j-th (jj) set of coefficients. Different jj are allowed to correspond to the same j(jj), such as: j(0)=j(1)=j(2)=j(3)=0, that is, the 0th, 1st, 2nd, and 3rd values ​​of the selected coefficient identifier code of the whole compression unit component conversion in the compressed block all correspond to the 0th set of coefficients; at least according to the selected coefficient flag bit of the whole compression unit component conversion in the compressed block and / or the value of the selected coefficient identifier code of the whole compression unit component conversion in the compressed block, the following corresponding component conversions are performed:

[0252] If the value of the selected coefficient flag and / or identifier code of the whole compression unit component conversion in the compressed block is equal to the jjth value, then {the jjth (jj) set of coefficients is used to perform a component conversion positive operation or a component conversion inverse operation on the residual}.

[0253] Implementation or variant example 46 (Example of selecting information for whole compression unit component conversion within a compressed block, K=2, J) k =4)

[0254] In the encoding method or apparatus or decoding method or apparatus described in implementation or variation 45, the K coefficient groups are the following two coefficient groups:

[0255] Coefficient group A: Coefficient #1, Coefficient #2a combined with normal reinforcement QP offset value, Coefficient #3a combined with normal reinforcement QP offset value, Coefficient #4a combined with normal reinforcement QP offset value;

[0256] Coefficient group B: Coefficient #1, Coefficient #2b combined with normal reinforcement QP offset value, Coefficient #3b combined with normal reinforcement QP offset value, Coefficient #4b combined with normal reinforcement QP offset value.

[0257] Implementation or variant example 47 (Example of selecting information for whole compression unit component conversion within a compressed block, K=2, J) k =4)

[0258] In the encoding method or apparatus or decoding method or apparatus described in Implementation or Variation 46, the compressed block component conversion selection information is the compressed block component conversion selection coefficient flag bit or positive / negative sign flag bit (the names are derived from the difference between coefficients #2a, #3a, #4a and coefficients #2b, #3b, #4b, which are respectively opposites of each other by a positive or negative sign); the compressed block component conversion selection coefficient flag bit or the positive / negative sign flag bit exists in the compressed block header in a direct form, an indirect form, or a combination of direct and indirect forms; the direct form of the compressed block component conversion selection coefficient flag bit or the positive / negative sign flag bit is generated from the compressed data bitstream. Composed of one or more bit strings, the indirect form of the compressed block component conversion selected coefficient flag or positive / negative flag is a compressed block component conversion selected coefficient flag or positive / negative flag derived from other encoding parameters and / or encoding / decoding variables and / or other syntax elements of the compressed data bitstream. The direct-indirect mixed compressed block component conversion selected coefficient flag or positive / negative flag is a compressed block component conversion selected coefficient flag or positive / negative flag that is partially direct (i.e. composed of one or more bit strings in the compressed data bitstream) and partially indirect (i.e. derived from other encoding parameters and / or encoding / decoding variables and / or other syntax elements of the compressed data bitstream).

[0259] Implementation or variant example 48 (Example of selecting information for whole compression unit component conversion within a compressed block, K=2, J) k =4)

[0260] In the encoding method or apparatus or decoding method or apparatus described in implementation or variation 47, the selected coefficient flag bit of the compressed block component conversion or the positive / negative flag bit takes two predetermined values: a first predetermined value and a second predetermined value; at least based on the value of the selected coefficient flag bit of the compressed block component conversion or the positive / negative flag bit, the following corresponding component conversions are performed:

[0261] If the selected coefficient flag or the sign flag of the compressed block component conversion is equal to the first predetermined value, then {the residual is subjected to a positive or negative component conversion operation using the coefficients belonging to coefficient group A}.

[0262] If the selected coefficient flag or the sign flag of the compressed block component conversion is equal to the second predetermined value, then {the component conversion positive operation or component conversion inverse operation is performed on the residual using the coefficients belonging to the coefficient group B}.

[0263] Implementation or variant example 49 (Example of selecting information for whole compression unit component conversion within a compressed block, K=2, J) k =4)

[0264] In the encoding method or apparatus or decoding method or apparatus described in Implementation or Variation 48, the component conversion selection information of the compressed unit within the compressed block is the component conversion selection coefficient identifier code or the chroma residual code and component conversion type of the compressed unit within the compressed block; the component conversion selection coefficient identifier code or the chroma residual code and component conversion type of the compressed unit within the compressed block exists in the header of the compressed unit in a direct form, an indirect form, or a combination of direct and indirect forms; the direct form of the component conversion selection coefficient identifier code or the chroma residual code and component conversion type of the compressed unit within the compressed block is composed of one or more bit strings in the compressed data bitstream, and the indirect ... The selected coefficient identifier code or chroma residual code and component conversion type is a selected coefficient identifier code or chroma residual code and component conversion type for integer compression unit components within a compressed block derived from other encoding parameters and / or encoding / decoding variables and / or other syntax elements of the compressed data bitstream. The directly and indirectly mixed selected coefficient identifier code or chroma residual code and component conversion type for integer compression unit components within a compressed block is a partially directly (i.e. composed of one or more bit strings in the compressed data bitstream) and partially indirectly (i.e. derived from other encoding parameters and / or encoding / decoding variables and / or other syntax elements of the compressed data bitstream) mixed selected coefficient identifier code or chroma residual code and component conversion type for integer compression unit components within a compressed block.

[0265] Implementation or variant example 50 (Example of selecting information for whole compression unit component conversion within a compressed block, K=2, J) k =4)

[0266] In the encoding method or apparatus or decoding method or apparatus described in Implementation or Variation 49, the component conversion selection coefficient identifier code of the whole compression unit within the compressed block or the chroma residual code and component conversion type takes seven predetermined values: predetermined value 1, predetermined value 2, predetermined value 3, predetermined value 4, predetermined value 5, predetermined value 6, and predetermined value 7; at least based on the value of the component conversion selection coefficient identifier code of the whole compression unit within the compressed block or the chroma residual code and component conversion type, the following corresponding component conversions are performed:

[0267] If the selected coefficient identifier code for the whole compression unit component conversion within the compressed block or the chroma residual code and component conversion type are equal to the predetermined value 1, then

[0268] {Use coefficient #1 to perform either a forward or inverse component transformation operation on the residual, component...} and components Since all values ​​are zero, it is not actually necessary to adjust the components. and components Perform residual decoding

[0269] If the selected coefficient identifier code for the whole compression unit component conversion within the compressed block or the chroma residual code and component conversion type are equal to the predetermined value 2, then

[0270] {Use coefficient #1 to perform either a forward or inverse component transformation operation on the residual, component...} Zero components Since it is not zero, it is not actually necessary to evaluate the components. Perform residual decoding and only need to process the components Perform residual decoding

[0271] If the selected coefficient identifier code for the whole compression unit component conversion within the compressed block or the chroma residual code and component conversion type are equal to the predetermined value 3, then

[0272] {Use coefficient #1 to perform either a forward or inverse component transformation operation on the residual, component...} Non-zero component Since it is zero, it is only necessary to adjust the components. Perform residual decoding without needing to process the components. Perform residual decoding

[0273] If the selected coefficient identifier code for the whole compression unit component conversion within the compressed block or the chroma residual code and component conversion type are equal to the predetermined value 4, then

[0274] {Use coefficient #1 to perform either a forward or inverse component transformation operation on the residual, component...} and components None of them are zero, therefore, it is actually necessary to adjust the components. and components Perform residual decoding

[0275] If the selected coefficient identifier code for the whole compression unit component conversion within the compressed block or the chroma residual code and component conversion type are equal to the predetermined value 5, then

[0276] {

[0277] If the selected coefficient flag or the sign flag of the compressed block component conversion is equal to the first predetermined value, then {the residual is subjected to a positive or inverse component conversion operation using coefficient #2a combined with the normal reinforcement QP offset value}; otherwise, {the residual is subjected to a positive or inverse component conversion operation using coefficient #2b combined with the normal reinforcement QP offset value}.

[0278] }

[0279] If the selected coefficient identifier code for the whole compression unit component conversion within the compressed block or the chroma residual code and component conversion type are equal to the predetermined value 6, then

[0280] {

[0281] If the selected coefficient flag or the sign flag of the compressed block component conversion is equal to the first predetermined value, then {the residual is subjected to a positive or inverse component conversion operation using coefficient #3a combined with the normal reinforcement QP offset value}; otherwise, {the residual is subjected to a positive or inverse component conversion operation using coefficient #3b combined with the normal reinforcement QP offset value}.

[0282] }

[0283] If the selected coefficient identifier code for the whole compression unit component conversion within the compressed block or the chroma residual code and component conversion type are equal to the predetermined value 7, then

[0284] {

[0285] If the selected coefficient flag or the sign flag of the compressed block component conversion is equal to the first predetermined value, then {the residual is subjected to a positive or inverse component conversion operation using coefficient #4a combined with the normal reinforcement QP offset value}; otherwise, {the residual is subjected to a positive or inverse component conversion operation using coefficient #4b combined with the normal reinforcement QP offset value}.

[0286] }

[0287] Implementation or variant example 51 (Example of selecting information for whole compression unit component conversion within a compressed block, K=4, J) k =4)

[0288] In the encoding method or apparatus or decoding method or apparatus described in implementation or variation 45, the K coefficient groups are the following four coefficient groups:

[0289] Coefficient group I: Coefficient #1, Coefficient #2a combined with normal enhanced QP offset value, Coefficient #2a combined with equal QP offset value, Coefficient #3a combined with normal enhanced QP offset value;

[0290] Coefficient Group II: Coefficient #1, Coefficient #2a combined with normal reinforcement QP offset value, Coefficient #2a combined with equal QP offset value, Coefficient #4a combined with normal reinforcement QP offset value;

[0291] Coefficient Group III: Coefficient #1, Coefficient #2b combined with normal reinforcement QP offset value, Coefficient #2b combined with equal QP offset value, Coefficient #3b combined with normal reinforcement QP offset value;

[0292] Coefficient group IV: Coefficient #1, Coefficient #2b combined with normal reinforcement QP offset value, Coefficient #2b combined with equal QP offset value, Coefficient #4b combined with normal reinforcement QP offset value.

[0293] Implementation or variant example 52 (Example of selecting information for whole compression unit component conversion within a compressed block, K=4, J) k =4)

[0294] In the encoding method or apparatus or decoding method or apparatus described in Implementation or Variation 51, the compressed block component conversion selection information is the compressed block component conversion selection coefficient identifier code or positive / negative sign flag (named from the difference between coefficients #2a, #3a, #4a and coefficients #2b, #3b, #4b, which are respectively opposites of each other by a positive or negative sign) and the swap flag (named from the difference between coefficients #3a, #3b and coefficients #4a, #4b, which are respectively swapped between o and p, s and t, a and e, b and f, c and g, d and h); the compressed block component conversion selection coefficient identifier code or the positive / negative sign flag and the swap flag exist in the compressed block header in a direct form, an indirect form, or a combination of direct and indirect forms; the compressed block header in the direct form... The selected coefficient identifier or positive / negative flag and the swap flag are composed of one or more bit strings in the compressed data bitstream. The indirect form of the selected coefficient identifier or positive / negative flag and the swap flag are derived from other encoding parameters and / or encoding / decoding variables and / or other syntax elements of the compressed data bitstream. The direct-indirect hybrid selected coefficient identifier or positive / negative flag and the swap flag are partially direct (i.e. composed of one or more bit strings in the compressed data bitstream) and partially indirect (i.e. derived from other encoding parameters and / or encoding / decoding variables and / or other syntax elements of the compressed data bitstream) hybrid selected coefficient identifier or positive / negative flag and the swap flag.

[0295] Implementation or variant example 53 (Example of selecting information for whole compression unit component conversion within a compressed block, K=4, J) k =4)

[0296] In the encoding method or apparatus or decoding method or apparatus described in implementation or variation 52, the selected coefficient identifier code for the compressed block component conversion takes four predetermined values: predetermined value one, predetermined value two, predetermined value three, and predetermined value four; or the positive / negative flag bit and the swap flag bit each take two predetermined values ​​independently: a first predetermined value and a second predetermined value; at least based on the value of the selected coefficient identifier code for the compressed block component conversion or the value of the positive / negative flag bit and the swap flag bit, the following corresponding component conversions are performed:

[0297] If the selected coefficient identifier code for the compressed block component conversion is equal to the predetermined value, or the positive / negative flag is equal to the first predetermined value and the swap flag is also equal to the first predetermined value, then

[0298] {Use the coefficients belonging to coefficient group I to perform either a forward or inverse component transformation operation on the residuals}

[0299] If the selected coefficient identifier code for the compressed block component conversion is equal to the predetermined value two, or the positive / negative sign flag is equal to the first predetermined value and the swap flag is equal to the second predetermined value, then

[0300] {Use the coefficients belonging to coefficient group II to perform either a forward or inverse component transformation operation on the residuals}

[0301] If the selected coefficient identifier code for the compressed block component conversion is equal to the predetermined value three, or the positive / negative sign flag is equal to the second predetermined value and the swap flag is equal to the first predetermined value, then

[0302] {Use the coefficients belonging to coefficient group III to perform either a forward or inverse component transformation operation on the residuals}

[0303] If the selected coefficient identifier code for the compressed block component conversion is equal to the predetermined value four, or the positive / negative sign flag is equal to the second predetermined value and the swap flag is also equal to the second predetermined value, then

[0304] {Use the coefficients belonging to the coefficient group IV to perform a component transformation positive operation or a component transformation inverse operation on the residual}.

[0305] Implementation or variant example 54 (Example of selecting information for whole compression unit component conversion within a compressed block, K=4, J) k =4)

[0306] In the encoding method or apparatus or decoding method or apparatus described in Implementation or Variation 53, the component conversion selection information of the whole compression unit within the compressed block is the component conversion selection coefficient identifier code or the chroma residual code and component conversion type of the whole compression unit within the compressed block; the component conversion selection coefficient identifier code or the chroma residual code and component conversion type of the whole compression unit within the compressed block exists in the whole compression unit header in a direct form, an indirect form, or a direct-indirect mixed form; the direct form of the component conversion selection coefficient identifier code or the chroma residual code and component conversion type of the whole compression unit within the compressed block is composed of one or more bit strings in the compressed data bitstream, the indirect ... The selected coefficient identifier code or chroma residual code and component conversion type is a selected coefficient identifier code or chroma residual code and component conversion type for integer compression unit components within a compressed block derived from other encoding parameters and / or encoding / decoding variables and / or other syntax elements of the compressed data bitstream. The directly and indirectly mixed selected coefficient identifier code or chroma residual code and component conversion type for integer compression unit components within a compressed block is a partially directly (i.e. composed of one or more bit strings in the compressed data bitstream) and partially indirectly (i.e. derived from other encoding parameters and / or encoding / decoding variables and / or other syntax elements of the compressed data bitstream) mixed selected coefficient identifier code or chroma residual code and component conversion type for integer compression unit components within a compressed block.

[0307] Implementation or variant example 55 (Example of selecting information for whole compression unit component conversion within a compressed block, K=4, J) k =4)

[0308] In the encoding method or apparatus or decoding method or apparatus described in implementation or variation 54, the component conversion selection coefficient identifier code of the whole compression unit within the compressed block or the chroma residual code and component conversion type takes seven predetermined values: predetermined value 1, predetermined value 2, predetermined value 3, predetermined value 4, predetermined value 5, predetermined value 6, and predetermined value 7; at least based on the value of the component conversion selection coefficient identifier code of the whole compression unit within the compressed block or the chroma residual code and component conversion type, the following corresponding component conversions are performed:

[0309] If the selected coefficient identifier code for the whole compression unit component conversion within the compressed block or the chroma residual code and component conversion type are equal to the predetermined value 1, then

[0310] {Use coefficient #1 to perform either a forward or inverse component transformation operation on the residual, component...} and components Since all values ​​are zero, it is not actually necessary to adjust the components. and components Perform residual decoding

[0311] If the selected coefficient identifier code for the whole compression unit component conversion within the compressed block or the chroma residual code and component conversion type are equal to the predetermined value 2, then

[0312] {Use coefficient #1 to perform either a forward or inverse component transformation operation on the residual, component...} Zero components Since it is not zero, it is not actually necessary to evaluate the components. Perform residual decoding and only need to process the components Perform residual decoding

[0313] If the selected coefficient identifier code for the whole compression unit component conversion within the compressed block or the chroma residual code and component conversion type are equal to the predetermined value 3, then

[0314] {Use coefficient #1 to perform either a forward or inverse component transformation operation on the residual, component...} Non-zero component Since it is zero, it is only necessary to adjust the components. Perform residual decoding without needing to process the components. Perform residual decoding

[0315] If the selected coefficient identifier code for the whole compression unit component conversion within the compressed block or the chroma residual code and component conversion type are equal to the predetermined value 4, then

[0316] {Use coefficient #1 to perform either a forward or inverse component transformation operation on the residual, component...} and components None of them are zero, therefore, it is actually necessary to adjust the components. and components Perform residual decoding

[0317] If the selected coefficient identifier code for the whole compression unit component conversion within the compressed block or the chroma residual code and component conversion type are equal to the predetermined value 5, then

[0318] {

[0319] If the selected coefficient identifier of the compressed block component conversion is equal to the predetermined value, or the positive / negative flag is equal to the first predetermined value and the swap flag is also equal to the first predetermined value, then {then perform a positive or inverse component conversion operation on the residual using coefficient #2a combined with the normal enhanced QP offset value}.

[0320] If the selected coefficient identifier of the compressed block component conversion is equal to the predetermined value 2, or the positive / negative flag is equal to the first predetermined value and the swap flag is equal to the second predetermined value, then {then perform a positive or negative component conversion operation on the residual using coefficient #2a combined with the normal enhanced QP offset value}.

[0321] If the selected coefficient identifier of the compressed block component conversion is equal to the predetermined value three, or the positive / negative flag is equal to the second predetermined value and the swap flag is equal to the first predetermined value, then {then perform a positive or inverse component conversion operation on the residual using coefficient #2b combined with the normal enhanced QP offset value}.

[0322] If the selected coefficient identifier for the compressed block component conversion is equal to the predetermined value four, or the sign flag is equal to the second predetermined value and the swap flag is also equal to the second predetermined value, then {then perform a positive or inverse component conversion operation on the residual using coefficient #2b combined with the normal enhanced QP offset value}.

[0323] }

[0324] If the selected coefficient identifier code for the whole compression unit component conversion within the compressed block or the chroma residual code and component conversion type are equal to the predetermined value 6, then

[0325] {

[0326] If the selected coefficient identifier of the compressed block component conversion is equal to the predetermined value, or the positive / negative flag is equal to the first predetermined value and the swap flag is also equal to the first predetermined value, then {then perform a positive or inverse component conversion operation on the residual using coefficient #2a combined with the equal QP offset value}.

[0327] If the selected coefficient identifier of the compressed block component conversion is equal to the predetermined value 2, or the positive / negative flag is equal to the first predetermined value and the swap flag is equal to the second predetermined value, then {then perform a positive or inverse component conversion operation on the residual using coefficient #2a combined with the equal QP offset value}.

[0328] If the selected coefficient identifier of the compressed block component conversion is equal to the predetermined value three, or the positive / negative flag is equal to the second predetermined value and the swap flag is equal to the first predetermined value, then {then perform a positive or inverse component conversion operation on the residual using coefficient #2b combined with the equal QP offset value}.

[0329] If the selected coefficient identifier of the compressed block component conversion is equal to the predetermined value four, or the positive / negative flag is equal to the second predetermined value and the swap flag is also equal to the second predetermined value, then {then perform a positive or inverse component conversion operation on the residual using coefficient #2b combined with the equal QP offset value}.

[0330] }

[0331] If the selected coefficient identifier code for the whole compression unit component conversion within the compressed block or the chroma residual code and component conversion type are equal to the predetermined value 7, then

[0332] {

[0333] If the selected coefficient identifier of the compressed block component conversion is equal to the predetermined value, or the positive / negative flag is equal to the first predetermined value and the swap flag is also equal to the first predetermined value, then {then perform a positive or inverse component conversion operation on the residual using coefficient #3a combined with the normal enhanced QP offset value}.

[0334] If the selected coefficient identifier of the compressed block component conversion is equal to the predetermined value two, or the positive / negative flag is equal to the first predetermined value and the swap flag is equal to the second predetermined value, then {then perform a positive or negative component conversion operation on the residual using coefficient #4a combined with the normal enhanced QP offset value}.

[0335] If the selected coefficient identifier of the compressed block component conversion is equal to the predetermined value three, or the positive / negative flag is equal to the second predetermined value and the swap flag is equal to the first predetermined value, then {then perform a positive or negative component conversion operation on the residual using coefficient #3b combined with the normal enhanced QP offset value}.

[0336] If the selected coefficient identifier for the compressed block component conversion is equal to the predetermined value four, or the sign flag is equal to the second predetermined value and the swap flag is also equal to the second predetermined value, then {then perform a positive or inverse component conversion operation on the residual using coefficient #4b combined with the normal enhanced QP offset value}.

[0337] }

[0338] Implementation or variant example 56 (example of first predetermined value and second predetermined value)

[0339] In the implementation or variation of the encoding method or apparatus described in examples 48, 50, 53, or 55, or the decoding method or apparatus,

[0340] The first predetermined value is 0, and the second predetermined value is 1.

[0341] or

[0342] The first predetermined value is 1, and the second predetermined value is 0.

[0343] Implementation or variant example 57 (examples of predetermined values ​​1 to 7)

[0344] In the implementation or variation of the encoding method or apparatus described in example 50 or 55, or in the decoding method or apparatus,

[0345] The predetermined value 1 is 00.

[0346] The predetermined value 2 is 010.

[0347] The predetermined value 3 is 100.

[0348] The predetermined value 4 is 110.

[0349] The predetermined value 5 is 011.

[0350] The predetermined value 6 is 101.

[0351] The predetermined value 7 is 111;

[0352] or

[0353] The predetermined value 1 is 00.

[0354] The predetermined value 2 is 010.

[0355] The predetermined value 3 is 011.

[0356] The predetermined value 4 is 100.

[0357] The predetermined value 5 is 101.

[0358] The predetermined value 6 is 110.

[0359] The predetermined value 7 is 111.

[0360] Implementation or variant example 58 (examples of predetermined value one, predetermined value two, predetermined value three, and predetermined value four)

[0361] In the implementation or variation of the encoding method or apparatus described in example 53 or 55, or in the decoding method or apparatus,

[0362] The predetermined value is 00.

[0363] The predetermined value two is 01.

[0364] The predetermined value three is 10.

[0365] The predetermined value four is 11.

[0366] Implementation or variant example 59 (in addition to component conversion, color space transformation is also performed)

[0367] In any of the embodiments or variations 1 to 8, 10 to 18, 21 to 27, 29 to 32, 35 to 39, 41, 43 to 55, the encoding method or apparatus or the decoding method or apparatus, the multi-component is a 3-component, and the 3-component is subjected to a color space forward transformation or an inverse color space transformation before performing a component conversion forward operation on two of the 3-components or after performing a component conversion inverse operation.

[0368] Implementation or variant example 60 (in addition to component conversion, color space transformation is also performed)

[0369] In the encoding method or apparatus or decoding method or apparatus described in Implementation or Variation 59, the three components are R, S, and T; the forward color space transformation is a forward transformation that transforms R, S, and T into Y, Cg, and Co; the inverse color space transformation is a reconstruction value of Y, Cg, and Co after transformation, quantization, inverse quantization, and inverse transformation, or a reconstruction value after quantization and inverse quantization, or a reconstruction value after transformation and inverse transformation. , , Transformed into reconstructed values ​​of R, S, T , , The inverse transform of .

[0370] Implementation or variant example 61 (in addition to component conversion, color space transformation is also performed)

[0371] In the implementation or variation of the encoding method or apparatus described in Example 60, or in the decoding method or apparatus,

[0372] The positive transformation that converts R, S, and T into Y, Cg, and Co is:

[0373] Y = (2R + S + T) / 4

[0374] Cg = (2R - S - T) / 4

[0375] Co = (-S + T) / 2;

[0376] The , , Transform into , , The inverse transform is:

[0377] = +

[0378] = - -

[0379] = - + ;

[0380] or,

[0381] Another, simpler form, the positive transform that converts R, S, T into Y, Cg, Co, is:

[0382] Co = T - S

[0383] tmp = S + (Co>>1)

[0384] Cg = R - tmp

[0385] Y = tmp + (Cg>>1);

[0386] The , , Transform into , , The inverse transform is:

[0387] tmp = – ( >>1)

[0388] = + tmp

[0389] = tmp –( >>1)

[0390] = + ;

[0391] In the above inverse transform, , , Rename them to new ones , , The inverse transform becomes:

[0392] tmp = – ( >>1)

[0393] = + tmp

[0394] = tmp – ( >>1)

[0395] = + 。

Claims

1. A method for encoding component data with N, N≥3, at least comprising the following steps: 1) Analyze the characteristics of the N-component residual data. According to a predetermined rule, when performing component transformation on M of the N components, select one of a predetermined set of coefficients for component transformation as the selected coefficient for the current encoding, where 2≤M<N; 2) At least perform a forward component transformation operation on the M components of the current residual using the selected coefficient, and do not perform a forward component transformation operation on the remaining N-M components; 3) Write the result of the current encoding into the compressed data bitstream. The compressed data bitstream at least includes the part or all of the information required to represent which set of coefficients the selected coefficient is, which is called the selected information.

2. A method for decoding component data with N, N≥3, at least comprising the following steps: 1) Parse the compressed data bitstream to at least obtain the part or all of the information required to represent which set of coefficients in a predetermined set of coefficients is selected as the selected coefficient for performing component transformation on the current residual of M, 2≤M<N, components among the N components, which is called the selected information; 2) At least select one of a predetermined set of coefficients as the selected coefficient for the current decoding according to the selected information and / or the parameters involved in the predetermined decoding; 3) At least perform an inverse component transformation operation on the M components of the residual using the selected coefficient, and do not perform an inverse component transformation operation on the remaining N-M components to obtain the reconstructed N-component residual data.

3. The decoding method according to claim 2, wherein the N-component data includes one or a combination of the following types of data 1) Graphics; 2) A sequence of images including video; 3) Audio; 4) Three-dimensional scenes; 5) Virtual reality scenes; 6) Images in pixel form; 7) Transformed domain data of images; 8) A set of single-component pixels; 9) A set of three-component pixels (R, G, B); 10) A set of three-component pixels (Y, U, V); 11) A set of three-component pixels (Y, Cb, Cr); 12) A set of three-component pixels (Y, Cg, Co); 13) A set of four-component pixels (C, M, Y, K); 14) A set of four-component pixels (R, G, B, A); 15) A set of four-component pixels (Y, U, V, A); 16) A set of four-component pixels (Y, Cb, Cr, A); 17) A set of four-component pixels (Y, Cg, Co, A).

4. The decoding method according to claim 2, wherein in the case where the data is an image and a sequence of images including video, the entire compression unit is a decoding region of an image or a sequence of images, including the following cases: a sub-image of an image, a slice, a tile, a tile group, a brick, a macroblock, a largest coding unit (LCU), a coding tree unit (CTU), a coding unit (CU), a sub-region of a CU, a sub-coding unit (SubCU), a prediction block, a prediction unit (PU), a sub-region of a PU, a sub-prediction unit (SubPU), a transform block, a transform unit (TU), a sub-region of a TU, a sub-transform unit (SubTU); The compressed block is an image in an image or a sequence of images or a plurality of predetermined numbers of the decoded regions.

5. The decoding method according to claim 2, wherein the multiple sets of coefficients at least include two sets of non-identical transformation coefficients.

6. The decoding method according to claim 2, wherein in the compressed data bitstream, there is information representing which set or sets of the multiple sets of coefficients are used by a current integer compression unit, which is called the integer compression unit component transformation selection information.

7. The decoding method according to claim 2, wherein For N components (N≥3), perform component conversion on 2 of them, and do not perform component conversion on the remaining N-2 components; the inverse operation of the component conversion in the decoding method is to convert the components... and Convert to components and The linear transformation G has I sets of coefficients.

8. The decoding method according to claim 7, wherein the I sets of coefficients of the linear transformation G are a[i], b[i], c[i], d[i], e[i], f[i], g[i], h[i], 0 ≤ i < I, and the linear transformation G is calculated by the following method: = (a[i]* + b[i]* + c[i]) / d[i], = (e[i]* + f[i]* + g[i]) / h[i]。 9. The decoding method according to claim 8, characterized in that, Denote the i-th, 0 ≤ i < I, set of coefficients a[i], b[i], c[i], d[i], e[i], f[i], g[i], h[i] of the inverse operation of the component transformation as [a, b, c, d, e, f, g, h]. The multiple sets of coefficients at least include several sets or all sets of the following seven sets of coefficients: 1) Coefficient #1: [a, b, c, d, e, f, g, h] = [1, 0, 0, 0, 0, 1, 0, 0], that is, the linear transformation is an identical transformation. The calculation formula of the inverse operation of the component transformation using this set of coefficients is = , = ; 2) Coefficient #2a: [a, b, c, d, e, f, g, h] = [1, 1, 0, 1, 1, –1, 0, 1], and the calculation formula of the inverse operation of the component transformation using this set of coefficients is = + , = - ; 3) Coefficient #2b: [a, b, c, d, e, f, g, h] = [1, 1, 0, 1, –1, 1, 0, 1], and the calculation formula of the inverse operation of the component transformation using this set of coefficients is = + , = - + ; It can be seen that the difference between Coefficient #2b and Coefficient #2a is that e of the two sets of coefficients are opposite to each other, and f are opposite to each other; 4) Coefficient #3a: [a, b, c, d, e, f, g, h] = [1, 1, 0, 1, 1, –A, ε, 2], where A = 1 or 4 or other predetermined integer constants satisfying 1 ≤ A ≤ 10, and ε is a rounding mode control parameter: ε = 0 or 1 or –1. The calculation formula of the inverse operation of the component transformation using this set of coefficients is = + , = ( - A + ε) / 2, where ε = 0, 1, or –1; 5) Coefficient #3b: [a, b, c, d, e, f, g, h] = [1, 1, 0, 1, –1, A, ε, 2], where A = 1 or 4 or other predetermined integer constants satisfying 1 ≤ A ≤ 10, and ε is a rounding mode control parameter: ε = 0 or 1 or –1. The calculation formula of the inverse operation of the component transformation using this set of coefficients is = + , = (- + A + ε) / 2, where ε = 0, 1, or –1; It can be seen that the difference between Coefficient #3b and Coefficient #3a is that e of the two sets of coefficients are opposite to each other, and f are opposite to each other; 6) Coefficient #4a: [a, b, c, d, e, f, g, h] = [1, –A,ε, 2, 1, 1, 0, 1], where A = 1 or 4 or other predetermined integer constants satisfying 1 ≤ A ≤ 10, and ε is a rounding control parameter: ε = 0 or 1 or –1. The calculation formula using the inverse operation of component conversion of this set of coefficients is... = ( - A + ε) / 2, where ε = 0, 1, or –1. = + ; It can be seen that coefficient #4a is the result of swapping a and e, b and f, c and g, and d and h in coefficient #3a; 7) Coefficient #4b: [a, b, c, d, e, f, g, h] = [–1, A, ε, 2, 1, 1, 0, 1], where A = 1 or 4 or other predetermined integer constants satisfying 1 ≤ A ≤ 10, and ε is a rounding control parameter: ε = 0 or 1 or –1. The calculation formula for the inverse operation of component conversion using this set of coefficients is... = (- + A + ε) / 2, where ε = 0, 1, or –1. = + ; It can be seen that the difference between coefficient #4b and coefficient #4a is that the 'a' and 'b' of the two sets of coefficients are opposites of each other; It can also be seen that coefficient #4b is the result of swapping a and e, b and f, c and g, and d and h in coefficient #3b.

10. The decoding method according to claim 2, characterized in that, The multiple sets of coefficients are divided into a predetermined K, where 2 ≤ K ≤ 6, i.e., K coefficient groups, where the k-th group has J, where 0 ≤ k < K. k Two sets of coefficients are allowed to have the same set or several sets of coefficients; a compressed block using component conversion can only use coefficients from one set of coefficients: the compressed data bitstream contains some or all of the information needed to indicate which set of coefficients a compressed block uses, called compressed block component conversion selection information.

11. The decoding method according to claim 10, characterized in that, The compressed data stream also contains information called "component conversion selection information within a compressed block," which indicates which set of coefficients within the coefficient group used by a current compressed unit in the compressed block requires.

12. The decoding method according to claim 7, 8 or 9, characterized in that, The multiple sets of coefficients are divided into a predetermined K, where 2 ≤ K ≤ 6, i.e., K coefficient groups, where the k-th group has J, where 0 ≤ k < K. k Two sets of coefficients are allowed to have the same set or several sets of coefficients; a compressed block using component conversion can only use coefficients from one set of coefficients: the compressed data bitstream contains some or all of the information needed to indicate which set of coefficients a compressed block uses, called compressed block component conversion selection information.

13. The decoding method according to claim 12, characterized in that, The compressed data stream also contains information called "component conversion selection information within a compressed block," which indicates which set of coefficients within the coefficient group used by a current compressed unit in the compressed block requires.

14. The decoding method according to claim 9, characterized in that, The seven sets of coefficients are divided into a predetermined K, 2≤K≤6, that is, K coefficient groups, each coefficient group has 4 sets of coefficients, and the 4 sets of coefficients include coefficient #1. A compressed block using component conversion can only use coefficients from one coefficient group: the compressed data bitstream contains some or all of the information called compressed block component conversion selection information, which indicates which coefficient group a compressed block uses.

15. The decoding method according to claim 14, characterized in that, The seven sets of coefficients are divided into the following two groups of coefficients: Coefficient group 1: Coefficient #1, Coefficient #2a, Coefficient #3a, Coefficient #4a; Coefficient group 2: Coefficient #1, Coefficient #2b, Coefficient #3b, Coefficient #4b.

16. The decoding method according to claim 2, characterized in that, Adjust the degree of dequantization to either increase or decrease it.

17. The decoding method according to claim 2, characterized in that, The degree of dequantization is represented and controlled by the quantization parameter QP; increasing QP increases the degree of dequantization, while decreasing QP decreases the degree of dequantization.

18. The decoding method according to claim 17, characterized in that, The adjustment amount of QP is represented by QP offset or QP increment.

19. The decoding method according to claim 2, characterized in that, In the non-identity transformation, each component is divided into a normal quantization component and an enhanced quantization component, and the degree of dequantization of the enhanced quantization component is a predetermined multiple greater than the degree of dequantization of the normal quantization component.

20. The decoding method according to claim 19, characterized in that, The degree of dequantization is represented and controlled by the quantization parameter QP. Increasing QP increases the degree of dequantization, while decreasing QP decreases the degree of dequantization. The QP value used to dequantize the enhanced quantization component is at least 6 greater than the QP value used to dequantize the normal quantization component.

21. The decoding method according to claim 7, 8, 9 or 19, characterized in that, Components in non-identical transformations It is a normal quantized component, while the component It is to strengthen the quantitative components; right QP value comparison used for dequantization The QP value used for inverse quantization is at least 6.

22. The decoding method according to claim 9, characterized in that, The QP value used for dequantizing components that do not undergo component transformation or that undergo identity transformation is the basic QP. base , For the components generated by non-identical transformations with the i-th set of coefficients The QP value used for dequantization is QPy[i] = QP base + DQPy[i], For the components generated by non-identical transformations with the i-th set of coefficients The QP value used for dequantization is QPz[i] = QP base + DQPz[i], Each i-th set of coefficients has its own independent QP offset values ​​DQPy[i] and DQPz[i].

23. The decoding method according to claim 22, characterized in that, The value of DQPy[i] is -4 or -3 or -2 or -1 or 0 or 1 or 2 or 3; The value of DQPz[i] is DQPy[i] or DQPy[i]±1 or DQPy[i]±2 or DQPy[i]±3 or Q, where Q ≥ (DQPy[i] + 6); The i-th set of coefficients with a value of DQPz[i] of DQPy[i] or DQPy[i]±1 or DQPy[i]±2 or DQPy[i]±3 is called the equal quantization component coefficient with equal QP offset value. The value of DQPz[i] is Q, where Q ≥ (DQPy[i] + 6) is called the normal reinforcement quantization component coefficient with normal reinforcement QP offset value. In this case, the component... and components These are referred to as the normal quantization component and the enhanced quantization component, respectively.

24. The decoding method according to claim 23, characterized in that, Several sets of coefficients from the seven sets of coefficients are combined with the QP offset value to expand into the multiple sets of coefficients used in the following decoding methods: 1) The I1 set of coefficients among the seven sets of coefficients, combined with the equal QP offset value, becomes the I1 set of equal component coefficients. 2) The I2 set coefficients among the seven sets of coefficients are combined with the normal strengthening QP offset value to form the I2 set of normal strengthening quantification component coefficients. Therefore, the decoding method uses a total of I1 + I2 sets of coefficients to perform the inverse component conversion operation.

25. The decoding method according to claim 24, characterized in that, The coefficients of I1 + I2 are divided into a predetermined K, 2≤K≤6, i.e., K coefficient groups, where the k-th group has J coefficients. k Two sets of coefficients are allowed to have the same set or several sets of coefficients; a compressed block using component conversion can only use coefficients from one set of coefficients: the compressed data bitstream contains some or all of the information needed to indicate which set of coefficients a compressed block uses, called compressed block component conversion selection information.

26. The decoding method according to claim 24, characterized in that, The I1 + I2 sets of coefficients are divided into a predetermined K, 2≤K≤6, that is, K sets of coefficients, each set of coefficients has 3 sets of coefficients, and the 3 sets of coefficients include coefficient #1. A compressed block using component conversion can only use coefficients from one coefficient group: the compressed data bitstream contains information called compressed block component conversion selection information, which indicates which coefficient group of the K coefficient groups a compressed block uses, and some or all of that information.

27. The decoding method according to claim 24, characterized in that, The I1 + I2 sets of coefficients are divided into a predetermined K, 2≤K≤6, that is, K sets of coefficients, each set of coefficients has 4 sets of coefficients, and the 4 sets of coefficients include coefficient #1. A compressed block using component conversion can only use coefficients from one coefficient group: the compressed data bitstream contains information called compressed block component conversion selection information, which indicates which coefficient group of the K coefficient groups a compressed block uses, and some or all of that information.

28. The decoding method according to claim 24, characterized in that, The I1 + I2 sets of coefficients are divided into a predetermined K, 2≤K≤6, that is, K sets of coefficients, each set of coefficients has 5 sets of coefficients, and the 5 sets of coefficients include coefficient #1. A compressed block using component conversion can only use coefficients from one coefficient group: the compressed data bitstream contains information called compressed block component conversion selection information, which indicates which coefficient group of the K coefficient groups a compressed block uses, and some or all of that information.

29. The decoding method according to claim 25, 26, 27 or 28, characterized in that, The compressed data stream also contains information called "component conversion selection information within a compressed block," which indicates which set of coefficients within the coefficient group used by a current compressed unit in the compressed block requires.

30. The decoding method according to claim 25, characterized in that, The K coefficient groups are selected from the following coefficient groups: Coefficient group 1: Coefficient #1, Coefficient #2a combined with the equal QP offset value, Coefficient #3a combined with the equal QP offset value, Coefficient #4a combined with the equal QP offset value; Coefficient group 2: Coefficient #1, Coefficient #2b combined with the equal QP offset value, Coefficient #3b combined with the equal QP offset value, Coefficient #4b combined with the equal QP offset value; Coefficient group 3: Coefficient #1, Coefficient #2a combined with normal reinforcement QP offset value, Coefficient #3a combined with normal reinforcement QP offset value, Coefficient #4a combined with normal reinforcement QP offset value; Coefficient group 4: Coefficient #1, Coefficient #2b combined with normal reinforcement QP offset value, Coefficient #3b combined with normal reinforcement QP offset value, Coefficient #4b combined with normal reinforcement QP offset value; Coefficient group 5: Coefficient #1, Coefficient #2a combined with normal reinforcement QP offset value, Coefficient #2a combined with equal QP offset value, Coefficient #3a combined with normal reinforcement QP offset value; Coefficient group 6: Coefficient #1, Coefficient #2a combined with normal reinforcement QP offset value, Coefficient #2a combined with equal QP offset value, Coefficient #4a combined with normal reinforcement QP offset value; Coefficient group 7: Coefficient #1, Coefficient #2b combined with normal reinforcement QP offset value, Coefficient #2b combined with equal QP offset value, Coefficient #3b combined with normal reinforcement QP offset value; Coefficient group 8: Coefficient #1, Coefficient #2b combined with normal reinforcement QP offset value, Coefficient #2b combined with equal QP offset value, Coefficient #4b combined with normal reinforcement QP offset value; Coefficient group 9: Coefficient #1, Coefficient #2a combined with normal reinforcement QP offset value, Coefficient #2a combined with equal QP offset value, Coefficient #3a combined with normal reinforcement QP offset value, Coefficient #4a combined with normal reinforcement QP offset value; Coefficient group 10: Coefficient #1, Coefficient #2b combined with normal reinforcement QP offset value, Coefficient #2b combined with equal QP offset value, Coefficient #3b combined with normal reinforcement QP offset value, Coefficient #4b combined with normal reinforcement QP offset value; Coefficient group 11: Coefficient #1, Coefficient #2a combined with normal enhanced QP offset value, Coefficient #2a combined with equal QP offset value, Coefficient #3a combined with normal enhanced QP offset value, Coefficient #3a combined with equal QP offset value, Coefficient #4a combined with normal enhanced QP offset value, Coefficient #4a combined with equal QP offset value; Coefficient group 12: Coefficient #1, Coefficient #2b combined with normal reinforcement QP offset value, Coefficient #2b combined with equal QP offset value, Coefficient #3b combined with normal reinforcement QP offset value, Coefficient #3b combined with equal QP offset value, Coefficient #4b combined with normal reinforcement QP offset value, Coefficient #4b combined with equal QP offset value.

31. The decoding method according to claim 27, characterized in that, The K coefficient groups are selected from the following coefficient groups: Coefficient group 1: Coefficient #1, Coefficient #2a combined with the equal QP offset value, Coefficient #3a combined with the equal QP offset value, Coefficient #4a combined with the equal QP offset value; Coefficient group 2: Coefficient #1, Coefficient #2b combined with the equal QP offset value, Coefficient #3b combined with the equal QP offset value, Coefficient #4b combined with the equal QP offset value; Coefficient group 3: Coefficient #1, Coefficient #2a combined with normal reinforcement QP offset value, Coefficient #3a combined with normal reinforcement QP offset value, Coefficient #4a combined with normal reinforcement QP offset value; Coefficient group 4: Coefficient #1, Coefficient #2b combined with normal reinforcement QP offset value, Coefficient #3b combined with normal reinforcement QP offset value, Coefficient #4b combined with normal reinforcement QP offset value; Coefficient group 5: Coefficient #1, Coefficient #2a combined with normal reinforcement QP offset value, Coefficient #2a combined with equal QP offset value, Coefficient #3a combined with normal reinforcement QP offset value; Coefficient group 6: Coefficient #1, Coefficient #2a combined with normal reinforcement QP offset value, Coefficient #2a combined with equal QP offset value, Coefficient #4a combined with normal reinforcement QP offset value; Coefficient group 7: Coefficient #1, Coefficient #2b combined with normal reinforcement QP offset value, Coefficient #2b combined with equal QP offset value, Coefficient #3b combined with normal reinforcement QP offset value; Coefficient group 8: Coefficient #1, Coefficient #2b combined with normal reinforcement QP offset value, Coefficient #2b combined with equal QP offset value, Coefficient #4b combined with normal reinforcement QP offset value.

32. The decoding method according to claim 27, characterized in that, The K coefficient groups are the following two coefficient groups: Coefficient group A: Coefficient #1, Coefficient #2a combined with normal reinforcement QP offset value, Coefficient #3a combined with normal reinforcement QP offset value, Coefficient #4a combined with normal reinforcement QP offset value; Coefficient group B: Coefficient #1, Coefficient #2b combined with normal reinforcement QP offset value, Coefficient #3b combined with normal reinforcement QP offset value, Coefficient #4b combined with normal reinforcement QP offset value.

33. The decoding method according to claim 27, characterized in that, The K coefficient groups are the following four coefficient groups: Coefficient group I: Coefficient #1, Coefficient #2a combined with normal enhanced QP offset value, Coefficient #2a combined with equal QP offset value, Coefficient #3a combined with normal enhanced QP offset value; Coefficient Group II: Coefficient #1, Coefficient #2a combined with normal reinforcement QP offset value, Coefficient #2a combined with equal QP offset value, Coefficient #4a combined with normal reinforcement QP offset value; Coefficient Group III: Coefficient #1, Coefficient #2b combined with normal reinforcement QP offset value, Coefficient #2b combined with equal QP offset value, Coefficient #3b combined with normal reinforcement QP offset value; Coefficient group IV: Coefficient #1, Coefficient #2b combined with normal reinforcement QP offset value, Coefficient #2b combined with equal QP offset value, Coefficient #4b combined with normal reinforcement QP offset value.

34. The decoding method according to any one of claims 7, 8, 9, 11, 13, 14, 15, 18, 20, 22, 23, 24, 25, 26, 27, 28, 30, 31, 32 or 33, characterized in that, The degree of dequantization is represented and controlled by the quantization parameter QP; increasing QP increases the degree of dequantization, while decreasing QP decreases the degree of dequantization. The components generated after the non-identity transformation are divided into normal quantized components and enhanced quantized components. The QP value used for dequantizing the enhanced quantized components is at least 20 greater than the QP value used for dequantizing the normal quantized components. Therefore, all enhanced quantized components are zero after quantization, and the reconstructed values ​​of the residual data obtained after at least dequantization are also all zero. Thus, in the inverse operation of component transformation, the secondary component... The values ​​are all zero, only from the principal components. Calculate the components and components .

35. The decoding method according to claim 9, 14, 15, 22, 23, 24, 25, 26, 27, 28, 30, 31, 32 or 33, characterized in that, Secondary components The QP value used for dequantization is compared with that of the principal components. The QP value used for inverse quantization is at least 20, and therefore, with the subcomponent... The sub-component z in the corresponding encoding process is all zero after quantization. Therefore, the sub-component... The values ​​are all zero. In the inverse operation of component transformation, only the principal component... Calculate the components and components .

36. The decoding method according to claim 35, characterized in that, The calculation formulas for the inverse operation of component transformation in the seven sets of coefficients are as follows: 1) Coefficient #1: Still an identity transformation; 2) Coefficient #2a: = , = ; 3) Coefficient #2b: = , = - ; 4) Coefficient #3a: = , = ( + ε) / 2, where ε = 0, 1, or –1; 5) Coefficient #3b: = , = (- + ε) / 2, where ε = 0, 1, or –1; 6) Coefficient #4a: = ( + ε) / 2, where ε = 0, 1, or –1. = ; 7) Coefficient #4b: = (- + ε) / 2, where ε = 0, 1, or –1. = .

37. The decoding method according to claim 2, characterized in that, The selected information exists in the compressed block header and / or the entire compressed unit header in a direct, indirect, or mixed form. The selected information in the direct form consists of one or more bit strings, i.e., bitstreams, in the compressed data bitstream. The selected information in the indirect form is information derived from other coding parameters and / or decoding variables and / or other syntax elements of the compressed data bitstream. The selected information in the direct-indirect hybrid form is partially direct, i.e., consists of one or more bit strings in the compressed data bitstream, and partially indirect, i.e., is derived from other coding parameters and / or decoding variables and / or other syntax elements of the compressed data bitstream, the hybrid selected information.

38. The decoding method according to claim 37, wherein The compressed block header is a sequence parameter set or a picture parameter set or a sequence header or a picture header or a slice header or a tile header or a brick header or a largest coding unit (LCU) header or a coding tree unit (CTU) header or a coding unit (CU) header.

39. The decoding method according to claim 2, wherein One or more flag bits and / or one or more identification codes and associated syntax elements in the following direct or indirect or direct-indirect hybrid form are obtained from at least the selected information: Component transform selected coefficient flag bit and / or Component transform selected coefficient identification code ; The direct flag bits and / or identification codes consist of one or more bit strings, i.e., bitstreams, in the compressed data bitstream. The indirect flag bits and / or identification codes are flag bits and / or identification codes derived from other coding parameters and / or decoding variables and / or other syntax elements of the compressed data bitstream. The direct-indirect hybrid flag bits and / or identification codes are partially direct, i.e., consist of one or more bit strings in the compressed data bitstream, and partially indirect, i.e., are derived from other coding parameters and / or decoding variables and / or other syntax elements of the compressed data bitstream, the hybrid flag bits and / or identification codes.

40. The decoding method according to claim 39, wherein The multiple sets of coefficients are I sets of coefficients, where I≥3, and are respectively referred to as the i-th set of coefficients, where 0 ≤ i < I. The component transform and / or component transform selected coefficient identification codes take II predetermined values, where II ≥ I, and are respectively referred to as the ii-th values, where 0 ≤ ii < II. Each of the ii-th values corresponds to a predetermined set of coefficients in the I sets of coefficients, which is referred to as the i(ii)-th set of coefficients. Different ii values may correspond to the same i(ii) value. In particular: i(0)=i(1)=i(2)=i(3)=0, i.e., the 0th, 1st, 2nd, and 3rd values of the component transform selected coefficient identification code all correspond to the 0th set of coefficients. At least according to the values of the component transform selected coefficient flag bit and / or the component transform selected coefficient identification code, the following corresponding component transforms are performed: If the value of the component transform selected coefficient flag bit and / or the component transform selected coefficient identification code is equal to the ii-th value, then The component transform forward operation or the component transform inverse operation is performed on the residual using the i(ii)-th set of coefficients.

41. The decoding method according to claim 14, 25, 26, 27 or 28, wherein The selected information for the compressed block component conversion exists in the compressed block header in a direct form, an indirect form, or a combination of both. The direct form of the selected information consists of one or more bit strings in the compressed data bitstream. The indirect form of the selected information is derived from other encoding parameters and / or decoding variables and / or other syntax elements of the compressed data bitstream. The mixed direct and indirect selected information is partially direct, consisting of one or more bit strings in the compressed data bitstream, partially indirect, derived from other encoding parameters and / or decoding variables and / or other syntax elements of the compressed data bitstream, and a combination of both.

42. The decoding method according to claim 41, characterized in that, The compressed block header is a sequence parameter set, an image parameter set, a sequence header, an image header, a strip header, a slice header, a brick header, a maximum coding unit (LCU) header, a coding tree unit (CTU) header, or a coding unit (CU) header.

43. The decoding method according to claim 14, 25, 26, 27 or 28, characterized in that, From the selected information of at least the compressed block component conversion, obtain one or more flag bits and / or one or more identifiers and associated syntax elements, either directly or indirectly or in a combination of both: Compressed block component conversion selected coefficient flag bit and / or Compressed block component conversion selected coefficient identification code ; The direct flag bits and / or identifiers consist of one or more bit strings in the compressed data bitstream. The indirect flag bits and / or identifiers are derived from other encoding parameters and / or decoding variables and / or other syntax elements of the compressed data bitstream. The mixed direct and indirect flag bits and / or identifiers are partially direct, i.e., composed of one or more bit strings in the compressed data bitstream, and partially indirect, i.e. derived from other encoding parameters and / or decoding variables and / or other syntax elements of the compressed data bitstream, and are mixed flag bits and / or identifiers.

44. The decoding method according to claim 43, characterized in that, The K coefficient groups are respectively referred to as the k-th, 1 ≤ k ≤ K coefficient group; the selected coefficient flag bit and / or the selected coefficient identifier code of the compressed block component conversion take K predetermined values, respectively referred to as the k-th, 0 ≤ k < K value; at least based on the values ​​of the selected coefficient flag bit and / or the selected coefficient identifier code of the compressed block component conversion, the following corresponding component conversions are performed: If the value of the selected coefficient flag bit and / or identifier code of the compressed block component conversion is equal to the k-th value, then The residuals are subjected to either a forward component transformation or an inverse component transformation using the coefficients belonging to the k-th coefficient group.

45. The decoding method according to claim 44, characterized in that, The compressed data stream also contains information called "intra-compression unit component conversion selection information," which indicates the compressed block, i.e., the compressed block using the k-th coefficient group, and provides partial or complete information about which set of coefficients in the coefficient group used by a current intra-compression unit within the compressed block. From at least the intra-compression unit component conversion selection information, one or more flag bits and / or one or more identifier codes and associated syntax elements are obtained directly or indirectly or in combination: Selected coefficient flag for whole compression unit component conversion within compression block and / or Selected coefficient identifier for whole compression unit component conversion within the compression block The direct flag bits and / or identifiers consist of one or more bit strings in the compressed data bitstream. The indirect flag bits and / or identifiers are derived from other encoding parameters and / or decoding variables and / or other syntax elements of the compressed data bitstream. The mixed direct and indirect flag bits and / or identifiers are partially direct, i.e., composed of one or more bit strings in the compressed data bitstream, and partially indirect, i.e. derived from other encoding parameters and / or decoding variables and / or other syntax elements of the compressed data bitstream, and are mixed flag bits and / or identifiers.

46. ​​The decoding method according to claim 45, characterized in that, The k-th coefficient group has J k The coefficients are respectively called the j-th, 0 ≤ j < J. k The set coefficient; the selected coefficient flag bit of the whole compression unit component conversion within the compression block and / or the selected coefficient identifier code of the whole compression unit component conversion within the compression block are taken from the predetermined JJ. k JJ k ≥ J k The values ​​are called the j-th, 0 ≤ jj < Jj. k , a value; each of the jj-th values ​​corresponds to the J k A predetermined set of coefficients in the set of coefficients is called the j-th (jj) set of coefficients. Different jj are allowed to correspond to the same j(jj), such as: j(0)=j(1)=j(2)=j(3)=0, that is, the 0th, 1st, 2nd, and 3rd values ​​of the selected coefficient identifier code of the whole compression unit component conversion in the compressed block all correspond to the 0th set of coefficients; at least according to the selected coefficient flag bit of the whole compression unit component conversion in the compressed block and / or the value of the selected coefficient identifier code of the whole compression unit component conversion in the compressed block, the following corresponding component conversions are performed: If the value of the selected coefficient flag and / or identifier code for the whole compression unit component conversion within the compressed block is equal to the jj-th value, then The j-th (jj) set of coefficients is used to perform either a forward or inverse component transformation operation on the residual.

47. The decoding method according to claim 46, characterized in that, The K coefficient groups are the following two coefficient groups: Coefficient group A: Coefficient #1, Coefficient #2a combined with normal reinforcement QP offset value, Coefficient #3a combined with normal reinforcement QP offset value, Coefficient #4a combined with normal reinforcement QP offset value; Coefficient group B: Coefficient #1, Coefficient #2b combined with normal reinforcement QP offset value, Coefficient #3b combined with normal reinforcement QP offset value, Coefficient #4b combined with normal reinforcement QP offset value.

48. The decoding method according to claim 47, characterized in that, The compressed block component conversion selection information is the compressed block component conversion selection coefficient flag bit or the positive / negative sign flag bit; the compressed block component conversion selection coefficient flag bit or the positive / negative sign flag bit exists in the compressed block header in a direct form, an indirect form, or a combination of direct and indirect forms; The direct form of the selected coefficient flag or sign flag for compressed block component conversion is composed of one or more bit strings in the compressed data bitstream. The indirect form of the selected coefficient flag or sign flag for compressed block component conversion is derived from other encoding parameters and / or decoding variables and / or other syntax elements of the compressed data bitstream. The mixed direct and indirect selected coefficient flag or sign flag for compressed block component conversion is partially direct, i.e., composed of one or more bit strings in the compressed data bitstream, and partially indirect, i.e., derived from other encoding parameters and / or decoding variables and / or other syntax elements of the compressed data bitstream, and mixed.

49. The decoding method according to claim 48, characterized in that, The selected coefficient flag bit for the compressed block component conversion or the positive / negative flag bit takes two predetermined values: a first predetermined value and a second predetermined value; at least based on the value of the selected coefficient flag bit for the compressed block component conversion or the positive / negative flag bit, the following corresponding component conversions are performed: If the selected coefficient flag bit or the positive / negative flag bit of the compressed block component conversion is equal to the first predetermined value, then the coefficients belonging to the coefficient group A are used to perform a positive component conversion operation or a negative component conversion operation on the residual. If the selected coefficient flag or the sign flag of the compressed block component conversion is equal to the second predetermined value, then the residual is subjected to a positive component conversion operation or a negative component conversion operation using the coefficients belonging to the coefficient group B.

50. The decoding method according to claim 49, characterized in that, The component conversion selection information of the entire compression unit within the compressed block is the component conversion selection coefficient identifier code or the chroma residual code and component conversion type. The component conversion selection coefficient identifier code or the chroma residual code and component conversion type exist in the entire compression unit header in direct, indirect, or a combination of both forms. The direct form of the component conversion selection coefficient identifier code or the chroma residual code and component conversion type consists of one or more bit strings in the compressed data bitstream. The indirect form of the component conversion selection coefficient identifier code or the chroma residual code... The encoding and component conversion type is a selected coefficient identifier code or chroma residual encoding and component conversion type for integer compression unit conversion within a compressed block, derived from other encoding parameters and / or decoding variables and / or other syntax elements of the compressed data bitstream. The selected coefficient identifier code or chroma residual encoding and component conversion type for integer compression unit conversion within a compressed block is partially direct, i.e. composed of one or more bit strings in the compressed data bitstream, and partially indirect, i.e. derived from other encoding parameters and / or decoding variables and / or other syntax elements of the compressed data bitstream.

51. The decoding method according to claim 50, characterized in that, The component conversion selection coefficient identifier code of the whole compression unit within the compression block or the chroma residual code and component conversion type takes seven predetermined values: predetermined value 1, predetermined value 2, predetermined value 3, predetermined value 4, predetermined value 5, predetermined value 6, and predetermined value 7; at least based on the value of the component conversion selection coefficient identifier code of the whole compression unit within the compression block or the chroma residual code and component conversion type, the following corresponding component conversions are performed: If the selected coefficient identifier code for the whole compression unit component conversion within the compressed block or the chroma residual code and component conversion type are equal to the predetermined value 1, then Use coefficient #1 to perform either a forward or inverse component transformation operation on the residual. and components Since all values ​​are zero, it is not actually necessary to adjust the components. and components Perform residual decoding; If the selected coefficient identifier code for the whole compression unit component conversion within the compressed block or the chroma residual code and component conversion type are equal to the predetermined value 2, then Use coefficient #1 to perform either a forward or inverse component transformation operation on the residual. Zero components Since it is not zero, it is not actually necessary to evaluate the components. Perform residual decoding and only need to process the components Perform residual decoding; If the selected coefficient identifier code for the whole compression unit component conversion within the compressed block or the chroma residual code and component conversion type are equal to the predetermined value 3, then Use coefficient #1 to perform either a forward or inverse component transformation operation on the residual. Non-zero component Since it is zero, it is only necessary to adjust the components. Perform residual decoding without needing to process the components. Perform residual decoding; If the selected coefficient identifier code for the whole compression unit component conversion within the compressed block or the chroma residual code and component conversion type are equal to the predetermined value 4, then Use coefficient #1 to perform either a forward or inverse component transformation operation on the residual. and components None of them are zero, therefore, it is actually necessary to adjust the components. and components Perform residual decoding; If the selected coefficient identifier code for the whole compression unit component conversion within the compressed block or the chroma residual code and component conversion type are equal to the predetermined value 5, then { If the selected coefficient flag or the sign flag of the compressed block component conversion is equal to the first predetermined value, then the component conversion positive operation or component conversion inverse operation is performed on the residual using coefficient #2a combined with the normal reinforcement QP offset value; otherwise, the component conversion positive operation or component conversion inverse operation is performed on the residual using coefficient #2b combined with the normal reinforcement QP offset value. } If the selected coefficient identifier code for the whole compression unit component conversion within the compressed block or the chroma residual code and component conversion type are equal to the predetermined value 6, then { If the selected coefficient flag or the sign flag of the compressed block component conversion is equal to the first predetermined value, then the component conversion positive operation or component conversion inverse operation is performed on the residual using coefficient #3a combined with the normal reinforcement QP offset value; otherwise, the component conversion positive operation or component conversion inverse operation is performed on the residual using coefficient #3b combined with the normal reinforcement QP offset value. } If the selected coefficient identifier code for the whole compression unit component conversion within the compressed block or the chroma residual code and component conversion type are equal to the predetermined value 7, then { If the selected coefficient flag or the sign flag of the compressed block component conversion is equal to the first predetermined value, then the component conversion positive operation or component conversion inverse operation is performed on the residual using coefficient #4a combined with the normal reinforcement QP offset value; otherwise, the component conversion positive operation or component conversion inverse operation is performed on the residual using coefficient #4b combined with the normal reinforcement QP offset value. }。 52. The decoding method according to claim 46, characterized in that, The K coefficient groups are the following four coefficient groups: Coefficient group I: Coefficient #1, Coefficient #2a combined with normal enhanced QP offset value, Coefficient #2a combined with equal QP offset value, Coefficient #3a combined with normal enhanced QP offset value; Coefficient Group II: Coefficient #1, Coefficient #2a combined with normal reinforcement QP offset value, Coefficient #2a combined with equal QP offset value, Coefficient #4a combined with normal reinforcement QP offset value; Coefficient Group III: Coefficient #1, Coefficient #2b combined with normal reinforcement QP offset value, Coefficient #2b combined with equal QP offset value, Coefficient #3b combined with normal reinforcement QP offset value; Coefficient group IV: Coefficient #1, Coefficient #2b combined with normal reinforcement QP offset value, Coefficient #2b combined with equal QP offset value, Coefficient #4b combined with normal reinforcement QP offset value.

53. The decoding method according to claim 52, characterized in that, The compressed block component conversion selection information consists of the compressed block component conversion selection coefficient identifier code or the positive / negative flag bit and the swap flag bit; the compressed block component conversion selection coefficient identifier code or the positive / negative flag bit and the swap flag bit exist in the compressed block header in direct form, indirect form, or a combination of direct and indirect forms; the direct form of the compressed block component conversion selection coefficient identifier code or the positive / negative flag bit and the swap flag bit is composed of one or more bit strings in the compressed data bitstream, i.e., bit strings; the indirect form of the compressed block component conversion selection coefficient identifier code or the positive / negative flag bit and the swap flag bit... The flag bit is a selected coefficient identifier or positive / negative flag bit and a swap flag bit derived from other encoding parameters and / or decoding variables and / or other syntax elements of the compressed data bitstream. The directly and indirectly mixed selected coefficient identifier or positive / negative flag bit and swap flag bit is partially direct, i.e. composed of one or more bit strings in the compressed data bitstream, and partially indirect, i.e. derived from other encoding parameters and / or decoding variables and / or other syntax elements of the compressed data bitstream.

54. The decoding method according to claim 53, characterized in that, The selected coefficient identifier for the compressed block component conversion takes four predetermined values: predetermined value one, predetermined value two, predetermined value three, and predetermined value four; or the positive / negative flag and the swap flag each take two predetermined values ​​independently: a first predetermined value and a second predetermined value; at least based on the selected coefficient identifier for the compressed block component conversion or the values ​​of the positive / negative flag and the swap flag, the following corresponding component conversions are performed: If the selected coefficient identifier code for the compressed block component conversion is equal to the predetermined value, or the positive / negative flag is equal to the first predetermined value and the swap flag is also equal to the first predetermined value, then The residuals are subjected to either a positive or negative component transformation operation using the coefficients belonging to coefficient group I. If the selected coefficient identifier code for the compressed block component conversion is equal to the predetermined value two, or the positive / negative sign flag is equal to the first predetermined value and the swap flag is equal to the second predetermined value, then Use the coefficients belonging to the coefficient group II to perform a component transformation positive operation or a component transformation inverse operation on the residuals; If the selected coefficient identifier code for the compressed block component conversion is equal to the predetermined value three, or the positive / negative sign flag is equal to the second predetermined value and the swap flag is equal to the first predetermined value, then Use the coefficients belonging to the coefficient group III to perform either a positive or negative component transformation operation on the residuals; If the selected coefficient identifier code for the compressed block component conversion is equal to the predetermined value four, or the positive / negative sign flag is equal to the second predetermined value and the swap flag is also equal to the second predetermined value, then The residuals are subjected to either a forward component transformation or an inverse component transformation using the coefficients belonging to coefficient group IV.

55. The decoding method according to claim 54, characterized in that, The component conversion selection information of the entire compression unit within the compressed block is the component conversion selection coefficient identifier code or the chroma residual code and component conversion type. The component conversion selection coefficient identifier code or the chroma residual code and component conversion type exist in the entire compression unit header in direct, indirect, or a combination of both forms. The direct form of the component conversion selection coefficient identifier code or the chroma residual code and component conversion type consists of one or more bit strings in the compressed data bitstream. The indirect form of the component conversion selection coefficient identifier code or the chroma residual code... The encoding and component conversion type is a selected coefficient identifier code or chroma residual encoding and component conversion type for integer compression unit conversion within a compressed block, derived from other encoding parameters and / or decoding variables and / or other syntax elements of the compressed data bitstream. The selected coefficient identifier code or chroma residual encoding and component conversion type for integer compression unit conversion within a compressed block is partially direct, i.e. composed of one or more bit strings in the compressed data bitstream, and partially indirect, i.e. derived from other encoding parameters and / or decoding variables and / or other syntax elements of the compressed data bitstream.

56. The decoding method according to claim 55, characterized in that, The Selected coefficient identifier for whole compression unit component conversion within the compression block or the aforementioned Chromaticity residual coding and component conversion Change type Take seven predetermined values: predetermined value 1, predetermined value 2, predetermined value 3, predetermined value 4, predetermined value 5, predetermined value 6, and predetermined value 7; at least according to the aforementioned Selected coefficient identifier for whole compression unit component conversion within the compression block or the aforementioned Chromaticity residual coding and components Conversion type The value is then subjected to the following corresponding component transformations: If the above Selected coefficient identifier for whole compression unit component conversion within the compression block or the aforementioned Chromaticity residual coding and analysis Quantity conversion type If it equals the predetermined value 1, then Use coefficient #1 to perform either a forward or inverse component transformation operation on the residual. and components Since all values ​​are zero, it is not actually necessary to adjust the components. and components Perform residual decoding; If the above Selected coefficient identifier for whole compression unit component conversion within the compression block or the aforementioned Chromaticity residual coding and analysis Quantity conversion type If it equals the predetermined value 2, then Use coefficient #1 to perform either a forward or inverse component transformation operation on the residual. Zero components Since it is not zero, it is not actually necessary to evaluate the components. Perform residual decoding and only need to process the components Perform residual decoding; If the above Selected coefficient identifier for whole compression unit component conversion within the compression block or the aforementioned Chromaticity residual coding and analysis Quantity conversion type If it equals the predetermined value 3, then Use coefficient #1 to perform either a forward or inverse component transformation operation on the residual. Non-zero component Since it is zero, it is only necessary to adjust the components. Perform residual decoding without needing to process the components. Perform residual decoding; If the above Selected coefficient identifier for whole compression unit component conversion within the compression block or the aforementioned Chromaticity residual coding and analysis Quantity conversion type If it equals the predetermined value 4, then Use coefficient #1 to perform either a forward or inverse component transformation operation on the residual. and components None of them are zero, therefore, it is actually necessary to adjust the components. and components Perform residual decoding; If the above Selected coefficient identifier for whole compression unit component conversion within the compression block or the aforementioned Chromaticity residual coding and analysis Quantity conversion type If it equals the predetermined value of 5, then { If the above Compressed block component conversion selected coefficient identification code Equal to the predetermined value or the plus / minus flag Equal to the first predetermined value and the Swap flags It is also equal to the first predetermined value. Then, the residual is subjected to a component transformation positive operation or a component transformation inverse operation using the coefficient #2a combined with the primary and secondary QP offset values. If the above Compressed block component conversion selected coefficient identification code Equal to the predetermined value two or the plus / minus flag Equal to the first predetermined value and the Swap flags If the value is equal to the second predetermined value, then the residual is subjected to a component transformation positive operation or a component transformation inverse operation using the coefficient #2a combined with the primary and secondary QP offset values. If the above Compressed block component conversion selected coefficient identification code Equal to the predetermined value three or the plus / minus flag Equal to the second predetermined value and the Swap flags If the value is equal to the first predetermined value, then the residual is subjected to a component transformation positive operation or a component transformation inverse operation using the coefficient #2b combined with the primary and secondary QP offset values. If the above Compressed block component conversion selected coefficient identification code Equal to the predetermined value four or the plus / minus flag Equal to the second predetermined value and the Swap flags It is also equal to the second predetermined value. Then, the residual is subjected to a component transformation positive operation or a component transformation inverse operation using the coefficient #2b combined with the primary and secondary QP offset values. } If the above Selected coefficient identifier for whole compression unit component conversion within the compression block or the aforementioned Chromaticity residual coding and analysis Quantity conversion type If it equals the predetermined value of 6, then { If the above Compressed block component conversion selected coefficient identification code Equal to the predetermined value or the plus / minus flag Equal to the first predetermined value and the Swap flags If it is also equal to the first predetermined value, then the residual is subjected to a component transformation positive operation or a component transformation inverse operation using the coefficient #2a combined with the equal QP offset value; If the above Compressed block component conversion selected coefficient identification code Equal to the predetermined value two or the plus / minus flag Equal to the first predetermined value and the Swap flags If the value is equal to the second predetermined value, then the residual is subjected to either a positive component transformation operation or a negative component transformation operation using the coefficient #2a combined with the equal QP offset value. If the above Compressed block component conversion selected coefficient identification code Equal to the predetermined value three or the plus / minus flag Equal to the second predetermined value and the Swap flags If the value is equal to the first predetermined value, then the residual is subjected to either a positive component transformation operation or a negative component transformation operation using the coefficient #2b combined with the equal QP offset value. If the above Compressed block component conversion selected coefficient identification code Equal to the predetermined value four or the plus / minus flag Equal to the second predetermined value and the Swap flags It is also equal to the second predetermined value. Then, the residual is subjected to a component transformation positive operation or a component transformation inverse operation using the coefficient #2b combined with the equal QP offset value. } If the above Selected coefficient identifier for whole compression unit component conversion within the compression block or the aforementioned Chromaticity residual coding and analysis Quantity conversion type If it equals the predetermined value of 7, then { If the above Compressed block component conversion selected coefficient identification code Equal to the predetermined value or the plus / minus flag Equal to the first predetermined value and the Swap flags If it is also equal to the first predetermined value, then the residual is subjected to a component transformation positive operation or a component transformation inverse operation using the coefficient #3a combined with the primary and secondary QP offset values. If the above Compressed block component conversion selected coefficient identification code Equal to the predetermined value two or the plus / minus flag Equal to the first predetermined value and the Swap flags If the value is equal to the second predetermined value, then the residual is subjected to a component transformation positive operation or a component transformation inverse operation using the coefficient #4a combined with the primary and secondary QP offset values. If the above Compressed block component conversion selected coefficient identification code Equal to the predetermined value three or the plus / minus flag Equal to the second predetermined value and the Swap flags If the value is equal to the first predetermined value, then the residual is subjected to a component transformation positive operation or a component transformation inverse operation using the coefficient #3b combined with the primary and secondary QP offset values. If the above Compressed block component conversion selected coefficient identification code Equal to the predetermined value four or the plus / minus flag Equal to the second predetermined value and the Swap flags It is also equal to the second predetermined value. Then, the residual is subjected to a component transformation positive operation or a component transformation inverse operation using the coefficient #4b combined with the primary and secondary QP offset values. }。 57. The decoding method according to claim 49, 51, 54 or 56, characterized in that, The first predetermined value is 0, and the second predetermined value is 1.

58. The decoding method according to claim 51 or 56, characterized in that, The predetermined value 1 is 00. The predetermined value 2 is 010. The predetermined value 3 is 100. The predetermined value 4 is 110. The predetermined value 5 is 011. The predetermined value 6 is 101. The predetermined value 7 is 111; or The predetermined value 1 is 00. The predetermined value 2 is 010. The predetermined value 3 is 011. The predetermined value 4 is 100. The predetermined value 5 is 101. The predetermined value 6 is 110. The predetermined value 7 is 111.

59. The decoding method according to claim 54 or 56, characterized in that, The predetermined value is 00. The predetermined value two is 01. The predetermined value three is 10. The predetermined value four is 11.

60. The decoding method according to any one of claims 5 to 11, 13 to 20, 22 to 28, 30 to 33, 36 to 40, 42, and 44 to 56, characterized in that, The N components are 3 components. After performing the inverse component conversion operation on 2 of the 3 components, the 3 components are subjected to inverse color space transformation.

61. The decoding method according to claim 60, characterized in that, The three components are R, S, and T, and the inverse color space transformation is to... , , Transformed into reconstructed values ​​of R, S, T , , The inverse transform of .

62. The decoding method according to claim 61, characterized in that, The , , Transform into , , The inverse transform is: = + = - - = - + ; or, Another simpler form, the one described , , Transform into , , The inverse transform is: tmp = – ( >> 1) = + tmp = tmp – ( >> 1) = + ; In the above inverse transform, , , Rename them to new ones , , The inverse transform becomes: tmp = – ( >> 1) = + tmp = tmp – ( >> 1) = ( >> 1) + tmp。 63. A component data decoding device for N, N ≥ 3, characterized in that, Includes a module for implementing a component data decoding method for N, N ≥ 3 as described in any one of claims 2-62.

Citation Information

Patent Citations

  • Directional transforms for intra-coding

    CN101658043A