Video encoding, decoding method and apparatus for prediction from multiple cross components

By determining the scaling factor and the reconstructed sample values ​​of the luminance and second chrominance components in the parameter set to predict the value of the first chrominance component, the problem of low efficiency in video encoding and decoding of multiple cross components is solved, and more efficient video data processing is achieved.

CN117528074BActive Publication Date: 2026-11-20ALIBABA (CHINA) CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202311716387.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Priority Date
2021-07-28
Filing Date
2021-07-29
Publication Date
2026-11-20
Estimated Expiration
2041-07-29

AI Technical Summary

Technical Problem

Existing video coding technologies struggle to efficiently predict and decode multiple cross components, resulting in low coding efficiency.

Method used

By determining the scaling factor in the parameter set, the value of the first chromaticity component is predicted based on the reconstructed sample values ​​of the luminance and second chromaticity components, and the relevant index is sent in the bit stream to achieve video encoding and decoding.

Benefits of technology

It improves the efficiency of video encoding and decoding, and reduces the need for storage space and transmission bandwidth.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117528074B_ABST
    Figure CN117528074B_ABST
Patent Text Reader

Abstract

The present disclosure provides methods, devices and non-transitory computer readable media for processing video data. According to certain disclosed embodiments, a method includes determining a parameter set from a plurality of parameter sets, wherein the parameter set includes a scaling factor; determining a predicted sample value of a first chroma component based on the parameter set, a reconstructed sample value of a luma component and a reconstructed sample value of a second chroma component; and signaling an index associated with the parameter set in a bitstream.
Need to check novelty before this filing date? Find Prior Art

Description

[0001] Cross-references to related applications

[0002] This disclosure is a divisional application of the Chinese national phase patent application No. 2021800406244, which was filed on December 5, 2022, after the international application PCT No. PCT / CN2021 / 109408, with an international filing date of July 29, 2021, entitled "Method and System for Predicting from Multiple Cross Components". Technical Field

[0003] This disclosure relates generally to video processing, and more specifically to video encoding, decoding methods and apparatus for predicting from multiple cross components. Background Technology

[0004] Video is a set of still images (or "frames") that capture visual information. To reduce storage memory and transmission bandwidth, video can be compressed before storage or transmission and then decompressed before display. The compression process is usually called encoding, and the decompression process is usually called decoding. Various video coding formats exist that use standardized video coding techniques, the most common being prediction, transform, quantization, entropy coding, and loop filtering. Video coding standards that specify particular video coding formats, such as the High Efficiency Video Coding (HEVC / H.265) standard, the Universal Video Coding (VVC / H.266) standard, and the AVS standard, are developed by standardization organizations. As more and more advanced video coding technologies are adopted in video standards, the coding efficiency of new video coding standards is also increasing. Summary of the Invention

[0005] Embodiments of this disclosure provide a video coding method. The method includes: determining a parameter set from a plurality of parameter sets, wherein the parameter set includes a scaling factor; determining a predicted sample value for a first chroma component based on the parameter set, reconstructed sample values ​​of a luminance component, and reconstructed sample values ​​of a second chroma component; and signaling an index associated with the parameter set in a bit stream.

[0006] Embodiments of this disclosure provide a video decoding method. The method includes: decoding an index from a video bitstream; determining a parameter set from a plurality of parameter sets based on the index, wherein the parameter set includes a scaling factor; and determining a predicted sample value for a first chroma component based on the parameter set, reconstructed sample values ​​of a luminance component, and reconstructed sample values ​​of a second chroma component.

[0007] Embodiments of this disclosure provide an apparatus for performing video data processing, the apparatus comprising: a memory configured to store instructions; and one or more processors configured to execute the instructions to cause the apparatus to: determine a parameter set from a plurality of parameter sets, wherein the parameter set includes a scaling factor; determine a predicted sample value for a first chroma component based on the parameter set, reconstructed sample values ​​of a luminance component, and reconstructed sample values ​​of a second chroma component; and signal an index associated with the parameter set in a bit stream.

[0008] Embodiments of this disclosure provide an apparatus for performing video data processing, the apparatus comprising: a memory configured to store instructions; and one or more processors configured to execute the instructions to cause the apparatus to: decode an index from a video bitstream; determine a parameter set based on the index from a plurality of parameter sets, wherein the parameter set includes a scaling factor; and determine a predicted sample value for a first chroma component based on the parameter set, reconstructed sample values ​​of a luminance component, and reconstructed sample values ​​of a second chroma component.

[0009] Embodiments of this disclosure provide a non-transitory computer-readable storage medium storing an instruction set executable by one or more processors of a device to initiate a method for performing video data processing, the method comprising: determining a parameter set from a plurality of parameter sets, wherein the parameter set includes a scaling factor; determining a predicted sample value for a first chroma component based on the parameter set, reconstructed sample values ​​of a luminance component, and reconstructed sample values ​​of a second chroma component; and signaling an index associated with the parameter set in a bit stream.

[0010] Embodiments of this disclosure provide a non-transitory computer-readable storage medium storing an instruction set executable by one or more processors of a device to initiate a method for performing video data processing, the method comprising: decoding an index from a video bitstream; determining a parameter set based on the index from a plurality of parameter sets, wherein the parameter set includes a scaling factor; and determining a predicted sample value for a first chroma component based on the parameter set, reconstructed sample values ​​of a luminance component, and reconstructed sample values ​​of a second chroma component. Attached Figure Description

[0011] Embodiments and aspects of this disclosure are illustrated in the following detailed description and accompanying drawings. The various features shown in the figures are not drawn to scale.

[0012] Figure 1 This is a schematic diagram illustrating the structure of an exemplary video sequence according to some embodiments of the present disclosure.

[0013] Figure 2A This is a schematic diagram illustrating an exemplary encoding process of a hybrid video encoding system consistent with embodiments of this disclosure.

[0014] Figure 2B This is a schematic diagram illustrating another exemplary encoding process of a hybrid video encoding system consistent with embodiments of this disclosure.

[0015] Figure 3A This is a schematic diagram illustrating an exemplary decoding process of a hybrid video coding system consistent with embodiments of the present disclosure.

[0016] Figure 3B This is a schematic diagram illustrating another exemplary decoding process of a hybrid video coding system consistent with embodiments of the present disclosure.

[0017] Figure 4 This is a block diagram of an exemplary device for encoding or decoding video according to some embodiments of the present disclosure.

[0018] Figure 5A This is a schematic diagram illustrating an exemplary flowchart of prediction from multiple cross components (PMCs) according to some embodiments of the present disclosure.

[0019] Figure 5B This is a schematic diagram illustrating an exemplary flowchart of a two-step cross component prediction mode (TSCPM) according to some embodiments of the present disclosure.

[0020] Figure 6 A flowchart is shown of an exemplary method for video processing in a PMC according to some embodiments of the present disclosure.

[0021] Figure 7 A flowchart of an exemplary method for multi-model processing according to some embodiments of the present disclosure is shown.

[0022] Figure 8 A flowchart is shown of an exemplary method for performing multi-model processing at two levels, according to some embodiments of the present disclosure.

[0023] Figure 9 A flowchart is shown of an exemplary method for video processing in a PMC according to some embodiments of the present disclosure.

[0024] Figure 10 A flowchart is shown of an exemplary method for video processing in a PMC according to some embodiments of the present disclosure.

[0025] Figure 11A flowchart is shown of an exemplary method for video processing in a PMC according to some embodiments of the present disclosure.

[0026] Figure 12 A flowchart is shown of an exemplary method for video processing in a PMC according to some embodiments of the present disclosure.

[0027] Figure 13 A flowchart is shown of an exemplary method for video processing in a PMC according to some embodiments of the present disclosure.

[0028] Figure 14 A flowchart is shown of an exemplary method for video processing in a PMC according to some embodiments of the present disclosure.

[0029] Figure 15 A flowchart is shown of an exemplary method for video processing in a PMC according to some embodiments of the present disclosure. Detailed Implementation

[0030] Reference will now be made in detail to exemplary embodiments, examples of which are illustrated in the accompanying drawings. The following description refers to the accompanying drawings, wherein, unless otherwise stated, the same numerals in different drawings denote the same or similar elements. The implementations set forth in the following description of the exemplary embodiments do not represent all implementations consistent with this disclosure. Rather, they are merely examples of devices and methods consistent with aspects of the invention as recited in the appended claims. Specific aspects of this disclosure are described below in more detail. In the event of any conflict with terms and / or definitions incorporated by reference, the terms and definitions provided herein shall prevail.

[0031] The industry is developing new video coding standards. For example, the Audio Video Coding Standard (“AVS”) working group is developing the third generation of the AVS video standard, AVS3. The working group has selected the High Performance Model (“HPM”) as the new reference software platform for AVS3. The first phase of the AVS3 standard achieves a coding performance gain of over 20% compared to its predecessor, AVS2, while the second phase of the AVS3 standard is still under development.

[0032] Video is a set of still images (or “frames”) arranged chronologically to store visual information. Video capture devices (e.g., cameras) can be used to capture and store these images chronologically, and video playback devices (e.g., televisions, computers, smartphones, tablets, video players, or any end-user terminal with a display capability) can be used to display such images chronologically. Furthermore, in some applications, video capture devices can transmit captured video in real time to video playback devices (e.g., computers with monitors), such as for surveillance, conferencing, or live streaming.

[0033] To reduce the storage space and transmission bandwidth required for such applications, video can be compressed before storage and transmission and decompressed before display. Compression and decompression can be implemented by software executed by a processor (e.g., a processor in a general-purpose computer) or dedicated hardware. The module used for compression is typically called an "encoder," and the module used for decompression is typically called a "decoder." Encoders and decoders can be collectively referred to as "codecs." Encoders and decoders can be implemented as any of a variety of suitable hardware, software, or combinations thereof. For example, hardware implementations of encoders and decoders can include circuit systems such as one or more microprocessors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), discrete logic, or any combination thereof. Software implementations of encoders and decoders can include program code, computer-executable instructions, firmware, or any suitable computer-implemented algorithm or process embedded in a computer-readable medium. Video compression and decompression can be implemented using various algorithms or standards such as MPEG-1, MPEG-2, MPEG-4, H.26x series, etc. In some applications, a codec can decompress video from a first coding standard and recompress the decompressed video using a second coding standard; in this case, the codec may be referred to as a "transcoder".

[0034] Video encoding processes identify and retain useful information that can be used to reconstruct an image, while ignoring information that is not important for reconstruction. If the ignored, unimportant information cannot be fully reconstructed, this encoding process is called "lossy." Otherwise, it is called "lossless." Most encoding processes are lossy, a trade-off made to reduce required storage space and transmission bandwidth.

[0035] Useful information about the image being encoded (referred to as the "current image") includes changes relative to a reference image (e.g., a previously encoded and reconstructed image). These changes can include variations in pixel position, brightness, or color, with positional changes being of most interest. The positional changes of a set of pixels representing an object can reflect the object's movement between the reference and current images.

[0036] An image encoded without referencing another image (i.e., it is its own reference image) is called an "I-image". If some or all of the blocks in an image (e.g., blocks that typically refer to a portion of a video image) are predicted using intra-frame prediction or inter-frame prediction with a reference image (e.g., one-way prediction), the image is called a "P-image". If at least one block in an image is predicted using two reference images (e.g., two-way prediction), the image is called a "B-image".

[0037] Figure 1The structure of an exemplary video sequence 100 according to some embodiments of the present disclosure is shown. The video sequence 100 may be live video or video that has been captured and archived. The video 100 may be real-life video, computer-generated video (e.g., computer game video), or a combination thereof (e.g., real-life video with augmented reality effects). The video sequence 100 may be input from a video capture device (e.g., a camera), a video archive containing previously captured video (e.g., a video file stored in a storage device), or a video feed interface for receiving video from a video content provider (e.g., a video broadcast transceiver).

[0038] like Figure 1 As shown, video sequence 100 may include a series of images arranged chronologically along a timeline, including images 102, 104, 106, and 108. Images 102 to 106 are consecutive, and there are multiple images between images 106 and 108. Figure 1 In this diagram, image 102 is an I-image, and its reference image is image 102 itself. Image 104 is a P-image, and its reference image is image 102, as indicated by the arrow. Image 106 is a B-image, and its reference images are images 104 and 108, as indicated by the arrow. In some embodiments, the reference image of an image (e.g., image 104) may not immediately precede or follow that image. For example, the reference image of image 104 may be an image preceding image 102. It should be noted that the reference images of images 102 to 106 are merely examples, and this disclosure does not limit the embodiments of the reference images to... Figure 1 The example shown.

[0039] Typically, due to the computational complexity of such tasks, video codecs do not encode or decode the entire image at once. Instead, they segment the image into basic segments and encode or decode each segment sequentially. These basic segments are referred to herein as basic processing units (“BPUs”). For example, Figure 1Structure 110 illustrates an exemplary structure of an image (e.g., any one of images 102 to 108) of video sequence 100. In structure 110, the image is divided into 4×4 basic processing units, the boundaries of which are indicated by dashed lines. In some embodiments, the basic processing unit may be referred to as a “macroblock” in some video coding standards (e.g., the MPEG family, H.261, H.263, or H.264 / AVC), or as a “coding tree unit” (“CTU”) in some other video coding standards (e.g., H.265 / HEVC or H.266 / VVC). The basic processing units in the image may have different sizes, such as 128×128, 64×64, 32×32, 16×16, 4×8, 16×32, or pixels of any shape and size. The size and shape of the basic processing units for the image may be selected based on a balance between coding efficiency and the level of detail to be preserved in the basic processing units.

[0040] A basic processing unit can be a logical unit, which may include a set of different types of video data stored in computer memory (e.g., in a video frame buffer). For example, a basic processing unit for a color image may include a luminance component (Y) representing achromatic luminance information, one or more chrominance components (e.g., Cb and Cr) representing color information, and associated syntax elements, wherein the luminance and chrominance components may have basic processing units of the same size. In some video coding standards (e.g., H.265 / HEVC or H.266 / VVC), the luminance and chrominance components may be referred to as “code tree blocks” (“CTBs”). Any operation performed on a basic processing unit may be performed repeatedly on each of its luminance and chrominance components.

[0041] Video coding has multiple operation levels, examples of which are shown in... Figures 2A to 2B and Figures 3A to 3BAs shown in the diagram. For each level, the size of the basic processing unit may still be too large to process, and therefore may be further divided into segments referred to herein as "basic processing subunits". In some embodiments, the basic processing subunit may be referred to as a "block" in some video coding standards (e.g., MPEG family, H.261, H.263, or H.264 / AVC), or as a "coding unit" ("CU") in some other video coding standards (e.g., H.265 / HEVC or H.266 / VVC). The basic processing subunit may have the same or smaller size as the basic processing unit. Similar to the basic processing unit, the basic processing subunit is also a logical unit, which may include a set of different types of video data (e.g., Y, Cb, Cr, and associated syntax elements) stored in computer memory (e.g., in a video frame buffer). Any operation performed on a basic processing subunit may be performed repeatedly on each of its luminance and chrominance components. It should be noted that this division may be performed at other levels depending on processing needs. It should also be noted that different levels may use different schemes to divide the basic processing units.

[0042] For example, at the pattern decision level (examples of which are as follows) Figure 2B As shown, the encoder can decide which prediction mode (e.g., intra-image prediction or inter-image prediction) to use for the basic processing unit, which may be too large to make such a decision. The encoder can divide the basic processing unit into multiple basic processing subunits (e.g., CUs like those in H.265 / HEVC or H.266 / VVC) and determine the prediction type for each individual basic processing subunit.

[0043] For example, at the prediction level (examples are in...) Figures 2A to 2B As shown in the diagram, the encoder can perform prediction operations at the level of a basic processing subunit (e.g., CU). However, in some cases, the basic processing subunit may still be too large to handle. The encoder can further divide the basic processing subunit into smaller segments (e.g., referred to as "prediction blocks" or "PBs" in H.265 / HEVC or H.266 / VVC), at which prediction operations can be performed.

[0044] For example, in the transformation stage (examples of which are in...) Figures 2A to 2BAs shown in the diagram, the encoder can perform transform operations on residual basic processing subunits (e.g., CUs). However, in some cases, the basic processing subunits may still be too large to process. The encoder can further divide the basic processing subunits into smaller segments (e.g., referred to as "transform blocks" or "TBs" in H.265 / HEVC or H.266 / VVC), at which transform operations can be performed. It should be noted that the partitioning scheme of the same basic processing subunit can differ between the prediction and transform levels. For example, in H.265 / HEVC or H.266 / VVC, the prediction blocks and transform blocks of the same CU can have different sizes and numbers.

[0045] exist Figure 1 In structure 110, the basic processing unit 112 is further divided into 3×3 basic processing sub-units, the boundaries of which are indicated by dashed lines. Different basic processing units of the same image can be divided into basic processing sub-units with different schemes.

[0046] In some implementations, to provide parallel processing capabilities and fault tolerance for video encoding and decoding, images can be divided into regions for processing. This allows the encoding or decoding process for a given region of the image to be independent of any information from any other region of the image. In other words, each region of the image can be processed independently. By doing so, the codec can process different regions of the image in parallel, thereby improving encoding efficiency. Furthermore, when data in one region is corrupted during processing or lost during network transmission, the codec can correctly encode or decode other regions of the same image without relying on the corrupted or lost data, thus providing fault tolerance. In some video coding standards, images can be divided into different types of regions. For example, H.265 / HEVC and H.266 / VVC provide two types of regions: "slices" and "tiles." It should also be noted that different images in the video sequence 100 may have different partitioning schemes for dividing the image into regions.

[0047] For example, in Figure 1 In this structure 110, the structure is divided into three zones 114, 116, and 118, whose boundaries are shown with solid lines inside the structure 110. Zone 114 includes four basic processing units. Each of zones 116 and 118 includes six basic processing units. It should be noted that... Figure 1 The basic processing unit, basic processing subunit, and region of structure 110 are merely examples, and this disclosure does not limit its embodiments.

[0048] Figure 2A A schematic diagram of an exemplary encoding process 200A consistent with embodiments of this disclosure is shown. For example, the encoding process 200A may be performed by an encoder. Figure 2AAs shown, the encoder can encode the video sequence 202 into a video bitstream 228 according to process 200A. Similar to... Figure 1 Video sequence 100 and video sequence 202 may include a set of images arranged in chronological order (referred to as "raw images"). Similar to... Figure 1 In structure 110, each raw image of video sequence 202 can be divided by an encoder into basic processing units, basic processing subunits, or regions for processing. In some embodiments, the encoder can perform process 200A at the basic processing unit level for each raw image of video sequence 202. For example, the decoder can perform process 200A iteratively, wherein the encoder can encode the basic processing unit in one iteration of process 200A. In some embodiments, the encoder can perform process 200A in parallel for regions (e.g., regions 114 to 118) of each raw image of video sequence 202.

[0049] exist Figure 2A In this process, the encoder feeds the basic processing unit (referred to as the "raw BPU") of the raw image of video sequence 202 to prediction stage 204 to generate prediction data 206 and prediction BPU 208. The encoder subtracts prediction BPU 208 from the raw BPU to generate residual BPU 210. The encoder feeds residual BPU 210 to transform stage 212 and quantization stage 214 to generate quantized transform coefficients 216. The encoder feeds prediction data 206 and quantized transform coefficients 216 to binary coding stage 226 to generate video bitstream 228. Components 202, 204, 206, 208, 210, 212, 214, 216, 226, and 228 may be referred to as the "forward path". During process 200A, after quantization stage 214, the encoder can feed the quantized transform coefficients 216 to inverse quantization stage 218 and inverse transform stage 220 to generate a reconstructed residual BPU 222. The encoder can add the reconstructed residual BPU 222 to prediction BPU 208 to generate prediction reference 224, which is used in prediction stage 204 for the next iteration of process 200A. Components 218, 220, 222, and 224 of process 200A may be referred to as the "reconstruction path". The reconstruction path can be used to ensure that both the encoder and decoder use the same reference data for prediction.

[0050] The encoder iteratively executes process 200A to encode each raw BPU of the original image (in the forward path) and generates prediction reference 224 for encoding the next raw BPU of the original image (in the reconstruction path). After all raw BPUs of the original image have been encoded, the encoder may continue to encode the next image in the video sequence 202.

[0051] Referring to process 200A, the encoder may receive a video sequence 202 generated by a video capture device (e.g., a camera). The term "receive" as used herein may refer to any action that receives, inputs, acquires, retrieves, obtains, reads, accesses, or otherwise uses for input data.

[0052] In prediction level 204, during the current iteration, the encoder receives the original BPU and prediction reference 224 and performs prediction operations to generate prediction data 206 and prediction BPU 208. Prediction reference 224 can be generated from the reconstruction path of a previous iteration of process 200A. The purpose of prediction level 204 is to reduce information redundancy by extracting prediction data 206, which can be used to reconstruct the original BPU into prediction BPU 208 from prediction data 206 and prediction reference 224.

[0053] Ideally, the predicted BPU 208 should be identical to the original BPU. However, due to non-ideal prediction and reconstruction operations, the predicted BPU 208 is typically slightly different from the original BPU. To record this difference, after generating the predicted BPU 208, the encoder can subtract it from the original BPU to generate the residual BPU 210. For example, the encoder can subtract the pixel value of the predicted BPU 208 (e.g., grayscale or RGB value) from the value of the corresponding pixel in the original BPU. Each pixel in the residual BPU 210 can have a residual value, which is the result of this subtraction between the corresponding pixel in the original BPU and the predicted BPU 208. The predicted data 206 and the residual BPU 210 may have fewer bits compared to the original BPU, but they can be used to reconstruct the original BPU without significantly degrading quality. Therefore, the original BPU is compressed.

[0054] To further compress the residual BPU 210, in transform stage 212, the encoder can reduce its spatial redundancy by decomposing the residual BPU 210 into a set of two-dimensional “basic patterns,” each basic pattern associated with a “transform coefficient.” The basic patterns may have the same size (e.g., the size of the residual BPU 210). Each basic pattern may represent a frequency component of the residual BPU 210 (e.g., the frequency of brightness variation). A basic pattern cannot be reproduced from any combination of any other basic patterns (e.g., a linear combination). In other words, the decomposition decomposes the variations of the residual BPU 210 into the frequency domain. This decomposition is analogous to the discrete Fourier transform of a function, where the basic patterns are analogous to the fundamental functions of the discrete Fourier transform (e.g., trigonometric functions), and the transform coefficients are analogous to the coefficients associated with the fundamental functions.

[0055] Different transform algorithms can use different base patterns. Various transform algorithms, such as discrete cosine transform and discrete sine transform, can be used in transform stage 212. The transforms in transform stage 212 are invertible. That is, the encoder can recover the residual BPU 210 through the inverse operation of the transform (called the "inverse transform"). For example, to recover the pixels of the residual BPU 210, the inverse transform can be to multiply the values ​​of the corresponding pixels in the base pattern by the corresponding correlation coefficients and sum the products to produce a weighted sum. For video coding standards, both the encoder and decoder can use the same transform algorithm (and therefore the same base pattern). Therefore, the encoder can record only the transform coefficients, and the decoder can reconstruct the residual BPU 210 from the transform coefficients without receiving the base pattern from the encoder. Compared to the residual BPU 210, the transform coefficients can have fewer bits, but they can be used to reconstruct the residual BPU 210 without significantly degrading the quality. Therefore, the residual BPU 210 is further compressed.

[0056] The encoder can further compress the transform coefficients at quantization level 214. During the transform process, different fundamental patterns can represent different frequencies of change (e.g., brightness change frequencies). Since the human eye is generally better at recognizing low-frequency changes, the encoder can ignore information about high-frequency changes without causing a significant degradation in decoding quality. For example, at quantization level 214, the encoder can generate quantized transform coefficients 216 by dividing each transform coefficient by an integer value (called the "quantization scaling factor") and rounding the quotient to its nearest integer. After this operation, some transform coefficients of the high-frequency fundamental patterns can be converted to zero, and the transform coefficients of the low-frequency fundamental patterns can be converted to smaller integers. The encoder can ignore the zero-value quantized transform coefficients 216, thereby further compressing the transform coefficients. The quantization process is also reversible, whereby the quantized transform coefficients 216 can be reconstructed into transform coefficients in the inverse operation of quantization (called "inverse quantization").

[0057] Because the encoder ignores the remainder of such division during the rounding operation, quantization level 214 may be lossy. Typically, quantization level 214 can cause the greatest information loss in process 200A. The greater the information loss, the fewer bits the quantization transform coefficients 216 may require. To obtain different levels of information loss, the encoder can use different quantization parameter values ​​or any other parameters of the quantization process.

[0058] At binary coding level 226, using binary coding techniques such as entropy coding, variable-length coding, arithmetic coding, Huffman coding, context-adaptive binary arithmetic coding, or any other lossless or lossy compression algorithm, the encoder may encode the prediction data 206 and the quantized transform coefficients 216. In some embodiments, in addition to the prediction data 206 and the quantized transform coefficients 216, the encoder may encode other information at binary coding level 226, such as, for example, the prediction mode used in prediction level 204, parameters of the prediction operation, the transform type of transform level 212, parameters of the quantization process (e.g., quantization parameters), encoder control parameters (e.g., bitrate control parameters), etc. The encoder may use the output data of binary coding level 226 to generate video bitstream 228. In some embodiments, video bitstream 228 may be further packaged for network transmission.

[0059] Following the reconstruction path of process 200A, in inverse quantization stage 218, the encoder can perform inverse quantization on the quantized transform coefficients 216 to generate reconstructed transform coefficients. In inverse transform stage 220, the encoder can generate reconstructed residual BPU 222 based on the reconstructed transform coefficients. The encoder can add the reconstructed residual BPU 222 to prediction BPU 208 to generate prediction reference 224 to be used in the next iteration of process 200A.

[0060] It should be noted that other variations of process 200A can be used to encode video sequence 202. In some embodiments, the levels of process 200A may be executed by the encoder in different orders. In some embodiments, one or more levels of process 200A may be combined into a single level. In some embodiments, a single level of process 200A may be divided into multiple levels. For example, transform level 212 and quantization level 214 may be combined into a single level. In some embodiments, process 200A may include additional levels. In some embodiments, process 200A may be omitted. Figure 2A One or more levels.

[0061] Figure 2B A schematic diagram of another exemplary encoding process 200B consistent with embodiments of the present disclosure is shown. Process 200B can be modified from process 200A. For example, process 200B can be used by an encoder conforming to a hybrid video coding standard (e.g., H.26x series). Compared to process 200A, the forward path of process 200B additionally includes a mode decision stage 230 and divides the prediction stage 204 into a spatial prediction stage 2042 and a temporal prediction stage 2044. The reconstruction path of process 200B additionally includes a loop filter stage 232 and a buffer 234.

[0062] Generally, prediction techniques can be categorized into two types: spatial prediction and temporal prediction. Spatial prediction (e.g., intra-image prediction or "intra-frame prediction") uses pixels from one or more encoded neighboring BPUs in the same image to predict the current BPU. That is, the prediction reference 224 in spatial prediction can include neighboring BPUs. Spatial prediction reduces the inherent spatial redundancy of an image. Temporal prediction (e.g., inter-image prediction or "inter-frame prediction") uses regions from one or more encoded images to predict the current BPU. That is, the prediction reference 224 in temporal prediction can include encoded images. Temporal prediction reduces the inherent temporal redundancy of an image.

[0063] In reference process 200B, in the forward path, the encoder performs prediction operations at spatial prediction level 2042 and temporal prediction level 2044. For example, in spatial prediction level 2042, the encoder may perform intra-frame prediction. For the original BPU of the image being encoded, prediction reference 224 may include one or more adjacent BPUs that have already been encoded (in the forward path) and reconstructed (in the reconstruction path) in the same image. The encoder can generate a predicted BPU 208 by extrapolating adjacent BPUs. Extrapolation techniques may include, for example, linear extrapolation or interpolation, polynomial extrapolation or interpolation, etc. In some embodiments, the encoder may perform extrapolation at the pixel level, such as by extrapolating the value of the corresponding pixel for each pixel of BPU 208. The adjacent BPUs used for extrapolation may be positioned relative to the original BPU from various directions (such as in the vertical direction (e.g., at the top of the original BPU), the horizontal direction (e.g., to the left of the original BPU), the diagonal direction (e.g., the lower left, lower right, upper left, or upper right of the original BPU), or any direction defined in the video coding standard used). For intra-frame prediction, prediction data 206 may include, for example, the location (e.g., coordinates) of the neighboring BPUs used, the size of the neighboring BPUs used, the extrapolation parameters, the orientation of the neighboring BPUs used relative to the original BPU, etc.

[0064] For example, at temporal prediction level 2044, the encoder may perform inter-frame prediction. For the original BPU of the current image, prediction reference 224 may include one or more images (referred to as "reference images") that have been encoded (in the forward path) and reconstructed (in the reconstruction path). In some embodiments, the reference images may be encoded and reconstructed according to the BPU. For example, the encoder may add the reconstructed residual BPU 222 to the prediction BPU 208 to generate a reconstructed BPU. When all reconstructed BPUs of the same image are generated, the encoder may generate the reconstructed image as the reference image. The encoder may perform a "motion estimation" operation to search for matching regions within the range of the reference image (referred to as a "search window"). The position of the search window in the reference image may be determined based on the position of the original BPU in the current image. For example, the search window may be centered in the reference image at a position with the same coordinates as the original BPU in the current image and may extend a predetermined distance. When the encoder identifies a region similar to the original BPU in the search window (e.g., by using a pixel recursive algorithm, block matching algorithm, etc.), the encoder may determine such a region as a matching region. The matching region may have a different size than the original BPU (e.g., smaller, equal to, larger, or with a different shape). This is because the reference image and the current image are temporally separated on the timeline (e.g., as shown in the image). Figure 1 As shown in the image, the matching area can be considered to have "moved" to the original BPU position over time. The encoder records the direction and distance of this movement as a "motion vector." When using multiple reference images (e.g., such as...), Figure 1 When working with image 106, the encoder can search for matching regions and determine the associated motion vector for each reference image. In some embodiments, the encoder can assign weights to the pixel values ​​of the matching regions of the corresponding matching reference images.

[0065] Motion estimation can be used to identify various types of motion, such as translation, rotation, scaling, etc. For inter-frame prediction, prediction data 206 may include, for example, the location of the matching region (e.g., coordinates), the motion vector associated with the matching region, the number of reference images, the weights associated with the reference images, etc.

[0066] To generate the predicted BPU 208, the encoder can perform a "motion compensation" operation. Motion compensation can be used to reconstruct the predicted BPU 208 based on the predicted data 206 (e.g., motion vectors) and the predicted reference 224. For example, the encoder can move the matching region of the reference image according to the motion vectors, where the encoder can predict the original BPU of the current image. When using multiple reference images (e.g., such as...), Figure 1When the encoder moves the matching region of the reference image (image 106) according to the corresponding motion vector and average pixel value of the matching region, it can move the matching region of the reference image. In some embodiments, if the encoder has assigned weights to the pixel values ​​of the matching region of the corresponding matching reference image, the encoder can add the weighted sum of the pixel values ​​of the moved matching region.

[0067] In some embodiments, inter-frame prediction can be unidirectional or bidirectional. Unidirectional inter-frame prediction can use one or more reference images in the same temporal direction relative to the current image. For example, Figure 1 Image 104 in the example is a unidirectional inter-frame prediction image, where a reference image (e.g., image 102) precedes image 104. Bidirectional inter-frame prediction can use one or more reference images in two temporal directions with respect to the current image. For example, Figure 1 Image 106 in the image is a bidirectional inter-frame prediction image, wherein the reference image (e.g., images 104 and 108) is relative to image 104 in two temporal directions.

[0068] Still following the forward path of process 200B, after spatial prediction level 2042 and temporal prediction level 2044, at mode decision level 230, the encoder can select a prediction mode (e.g., one of intra-frame prediction or inter-frame prediction) for the current iteration of process 200B. For example, the encoder can perform rate distortion optimization techniques, wherein the encoder can select a prediction mode based on the bit rate of the candidate prediction mode and the distortion of the reconstructed reference image under the candidate prediction mode, in order to minimize the value of the cost function. Depending on the selected prediction mode, the encoder can generate a corresponding prediction BPU 208 and prediction data 206.

[0069] In the reconstruction path of process 200B, if an intra-prediction mode has already been selected in the forward path, the encoder can feed the prediction reference 224 directly to the spatial prediction stage 2042 for later use (e.g., for extrapolating the next BPU of the current image) after generating the prediction reference 224 (e.g., the current BPU that has been encoded and reconstructed in the current image). The encoder can feed the prediction reference 224 to the loop filter stage 232, where the encoder can apply loop filters to the prediction reference 224 to reduce or eliminate distortions (e.g., block artifacts) introduced during the encoding of the prediction reference 224. The encoder can apply various loop filter techniques in the loop filter stage 232, such as, for example, deblocking, sample adaptive offset, adaptive loop filtering, etc. The loop-filtered reference image can be stored in buffer 234 (or "decoded image buffer") for later use (e.g., as an inter-frame prediction reference image for future images of video sequence 202). The encoder can store one or more reference images in buffer 234 for use in the temporal prediction stage 2044. In some embodiments, the encoder may encode the parameters of the loop filter (e.g., the loop filter strength) as well as the quantized transform coefficients 216, prediction data 206 and other information at the binary encoding level 226.

[0070] Figure 3A A schematic diagram of an exemplary decoding process 300A consistent with embodiments of this disclosure is shown. Process 300A may be corresponding to Figure 2A The compression process 200A in the video stream is followed by the decompression process. In some embodiments, process 300A may be similar to the reconstruction path of process 200A. The decoder may decode the video bitstream 228 into video stream 304 according to process 300A. Video stream 304 may be very similar to video sequence 202. However, due to the compression and decompression processes (e.g., Figures 2A to 2B Information is lost in quantization level 214, and video stream 304 is typically different from video sequence 202. Similar to... Figures 2A to 2B In processes 200A and 200B, the decoder can perform process 300A at the level of a basic processing unit (BPU) for each image encoded in the video bitstream 228. For example, the decoder can perform process 300A iteratively, wherein the decoder can decode the basic processing unit in one iteration of process 300A. In some embodiments, the decoder can perform process 300A in parallel for regions (e.g., regions 114 to 118) of each image encoded in the video bitstream 228.

[0071] exist Figure 3AIn this process, the decoder may feed a portion of the video bitstream 228 associated with a basic processing unit (referred to as an "encoded BPU") of the encoded image to the binary decoding stage 302. In the binary decoding stage 302, the decoder may decode the portion into prediction data 206 and quantized transform coefficients 216. The decoder may feed the quantized transform coefficients 216 to the inverse quantization stage 218 and the inverse transform stage 220 to generate a reconstructed residual BPU 222. The decoder may feed the prediction data 206 to the prediction stage 204 to generate a prediction BPU 208. The decoder may add the reconstructed residual BPU 222 to the prediction BPU 208 to generate a prediction reference 224. In some embodiments, the prediction reference 224 may be stored in a buffer (e.g., a decoded image buffer in computer memory). The decoder may feed the prediction reference 224 to the prediction stage 204 to perform a prediction operation in the next iteration of process 300A.

[0072] The decoder iteratively executes process 300A to decode each encoded BPU of the encoded image and generate a prediction reference 224 for encoding the next encoded BPU of the encoded image. After decoding all encoded BPUs of the encoded image, the decoder can output the image to video stream 304 for display and continue decoding the next encoded image in video bit stream 228.

[0073] At binary decoding stage 302, the decoder can perform the inverse operation of the binary encoding techniques used by the encoder (e.g., entropy coding, variable-length coding, arithmetic coding, Huffman coding, context-adaptive binary arithmetic coding, or any other lossless compression algorithm). In some embodiments, in addition to the prediction data 206 and the quantized transform coefficients 216, the decoder can also decode other information at binary decoding stage 302, such as, for example, the prediction mode, parameters of the prediction operation, transform type, parameters of the quantization process (e.g., quantization parameters), encoder control parameters (e.g., bit rate control parameters), etc. In some embodiments, if the video bitstream 228 is transmitted in packets over a network, the decoder can unpack it before feeding the video bitstream 228 to binary decoding stage 302.

[0074] Figure 3B A schematic diagram of another exemplary decoding process 300B consistent with embodiments of this disclosure is shown. Process 300B can be modified from process 300A. For example, process 300B can be used by a decoder conforming to a hybrid video coding standard (e.g., H.26x series). Compared to process 300A, process 300B additionally divides prediction stage 204 into spatial prediction stage 2042 and temporal prediction stage 2044, and additionally includes loop filter stage 232 and buffer 234.

[0075] In process 300B, for the encoded basic processing unit (referred to as the "current BPU") of the encoded image being decoded (referred to as the "current image"), the prediction data 206 decoded by the decoder from the binary decoding stage 302 may include various types of data depending on the prediction mode used by the encoder to encode the current BPU. For example, if the encoder uses intra-frame prediction to encode the current BPU, the prediction data 206 may include parameters indicating the prediction mode (e.g., a flag value), intra-frame prediction operation, etc. Parameters of the intra-frame prediction operation may include, for example, the positions (e.g., coordinates) of one or more neighboring BPUs used as references, the sizes of neighboring BPUs, extrapolation parameters, the orientation of neighboring BPUs relative to the original BPU, etc. As another example, if the encoder uses inter-frame prediction to encode the current BPU, the prediction data 206 may include a prediction mode indicator (e.g., a flag value), inter-frame prediction operation, etc. The parameters of the inter-frame prediction operation may include, for example, the number of reference images associated with the current BPU, the weights associated with the reference images respectively, the positions (e.g., coordinates) of one or more matching regions in the corresponding reference images, and one or more motion vectors associated with the matching regions respectively.

[0076] Based on the prediction mode indicator, the decoder can determine whether to perform spatial prediction (e.g., intra-frame prediction) at spatial prediction level 2042 or temporal prediction (e.g., inter-frame prediction) at temporal prediction level 2044. The details of performing this spatial or temporal prediction are detailed in... Figure 2B The description is as follows and will not be repeated below. After performing this spatial or temporal prediction, the decoder can generate a prediction BPU 208. The decoder can add the prediction BPU 208 and the reconstructed residual BPU 222 to generate a prediction reference 224, such as... Figure 3A As described in [the text].

[0077] In process 300B, the decoder can feed prediction reference 224 to spatial prediction stage 2042 or temporal prediction stage 2044 for performing prediction operations in the next iteration of process 300B. For example, if the current BPU is decoded using intra-frame prediction in spatial prediction stage 2042, the decoder can feed prediction reference 224 directly to spatial prediction stage 2042 for later use (e.g., for the next BPU to extrapolate the current image) after generating prediction reference 224 (e.g., the decoded current BPU). If the current BPU is decoded using inter-frame prediction in temporal prediction stage 2044, the decoder can feed prediction reference 224 to loop filter stage 232 to reduce or eliminate distortion (e.g., block artifacts) after generating prediction reference 224 (e.g., a reference image where all BPUs have been decoded). Figure 2BThe loop filter is applied to prediction reference 224 in the manner described. The loop-filtered reference image may be stored in buffer 234 (e.g., a decoded image buffer in computer memory) for later use (e.g., as an inter-frame prediction reference image used as a future encoded image of video bitstream 228). The decoder may store one or more reference images in buffer 234 for use in temporal prediction stage 2044. In some embodiments, the prediction data may also include parameters of the loop filter (e.g., loop filter strength). In some embodiments, the prediction data includes parameters of the loop filter when the prediction mode indicator of prediction data 206 indicates that inter-frame prediction is used to encode the current BPU.

[0078] Figure 4 This is a block diagram of an exemplary device 400 for encoding or decoding video, consistent with embodiments of this disclosure. Figure 4 As shown, device 400 may include processor 402. When processor 402 executes the instructions described herein, device 400 may become a dedicated machine for video encoding or decoding. Processor 402 may be any type of circuit system capable of manipulating or processing information. For example, processor 402 may include any number of central processing units (or “CPU”), graphics processing units (or “GPU”), neural processing units (“NPU”), microcontroller units (“MCU”), optical processors, programmable logic controllers, microcontrollers, microprocessors, digital signal processors, intellectual property (IP) cores, programmable logic arrays (PLAs), programmable array logic (PALs), general-purpose array logic (GALs), complex programmable logic devices (CPLDs), field-programmable gate arrays (FPGAs), system-on-a-chip (SoCs), application-specific integrated circuits (ASICs), and any combination thereof. In some embodiments, processor 402 may also be a collection of processors grouped into individual logic components. For example, such as Figure 4 As shown, processor 402 may include multiple processors, including processor 402a, processor 402b and processor 402n.

[0079] Device 400 may also include memory 404 configured to store data (e.g., instruction sets, computer code, intermediate data, etc.). For example, such as Figure 4As shown, the stored data may include program instructions (e.g., program instructions for implementing levels in processes 200A, 200B, 300A, or 300B) and data for processing (e.g., video sequence 202, video bitstream 228, or video stream 304). Processor 402 can access the program instructions and the data for processing (e.g., via bus 410) and execute the program instructions to perform operations or manipulations on the data for processing. Memory 404 may include high-speed random access memory or non-volatile memory. In some embodiments, memory 404 may include any combination of any number of random access memories (RAM), read-only memories (ROM), optical discs, magnetic disks, hard disks, solid-state drives, flash drives, secure digital cards (SD cards), memory sticks, compact flash memory (CF cards), etc. Memory 404 may also be a collection of memories grouped into individual logical components. Figure 4 (Not shown in the image).

[0080] Bus 410 may be a communication device for transmitting data between components within device 400, such as an internal bus (e.g., CPU-memory bus), an external bus (e.g., a Universal Serial Bus port, a Peripheral Component Interconnect Fast Port), etc.

[0081] For ease of explanation and without ambiguity, the processor 402 and other data processing circuitry are collectively referred to as "data processing circuitry" in this disclosure. The data processing circuitry may be implemented entirely in hardware or as a combination of software, hardware, or firmware. Furthermore, the data processing circuitry may be a single, independent module or may be wholly or partially integrated into any other component of the device 400.

[0082] Device 400 may also include a network interface 406 to provide wired or wireless communication with a network (e.g., the Internet, intranet, local area network, mobile communication network, etc.). In some embodiments, network interface 406 may include any combination of any number of network interface controllers (NICs), radio frequency (RF) modules, repeaters, transceivers, modems, routers, gateways, wired network adapters, wireless network adapters, Bluetooth adapters, infrared adapters, near field communication (“NFC”) adapters, cellular network chips, etc.

[0083] In some embodiments, the device 400 may optionally include a peripheral interface 408 to provide connectivity to one or more peripheral devices. Figure 4 As shown, peripheral devices may include, but are not limited to, cursor control devices (e.g., mouse, touchpad, or touchscreen), keyboards, displays (e.g., cathode ray tube displays, liquid crystal displays, or light-emitting diode displays), video input devices (e.g., cameras or input interfaces coupled to video archives), etc.

[0084] It should be noted that the video codec (e.g., the codec for executing processes 200A, 200B, 300A, or 300B) can be implemented as any combination of any software or hardware modules in device 400. For example, some or all of processes 200A, 200B, 300A, or 300B can be implemented as one or more software modules of device 400, such as program instructions that can be loaded into memory 404. As another example, some or all of processes 200A, 200B, 300A, or 300B can be implemented as one or more hardware modules of device 400, such as dedicated data processing circuitry (e.g., FPGA, ASIC, NPU, etc.).

[0085] Cross-component prediction (TSCPM) leverages the correlation between different color components. It removes redundancy between two color components, improving compression ratio. Since the luminance component has more texture information compared to chrominance in natural video, it is typically encoded first, and then the chrominance component is predicted based on the reconstructed luminance component. For example, AVS3 employs a two-step TSCPM model, where reconstructed luminance samples based on the same CU use a linear model to predict chrominance samples, as shown below:

[0086] pred_C(i,j) = α·rec_L'(i,j) + β (Formula 1)

[0087] Where pred_C(i,j) represents the unsampled predicted chroma sample in the current CU, rec L'(i,j) represents the reconstructed luminance sample in the same CU, α is the first parameter, and β is the second parameter. For 4:2:0 color format video, where each of the two chroma components has half the number of luminance samples in both the horizontal and vertical dimensions, pred_C(i,j) is downsampled in both dimensions to produce the predicted chroma sample pred_C'(i,j).

[0088] The parameters α and β are derived from the reconstructed neighboring luma and chroma samples of the current CU. First, a linear model is derived based on the relationship between neighboring reconstructed luma samples and their corresponding neighboring reconstructed chroma samples. Then, the linear model is applied to the reconstructed luma samples of the current CU to predict the chroma sample values ​​of the current CU. To simplify the derivation of α and β, using AVS3 as an example, only four sample pairs consisting of one neighboring reconstructed luma sample and its corresponding neighboring reconstructed chroma sample are used. Typically, there are three different methods to obtain these four sample pairs. In the first method, when both the upper and left neighboring blocks are available, two of the sample pairs come from the aforementioned neighboring reconstructed samples, while the other two come from the left neighboring reconstructed sample. If only the upper neighboring block is available, all four sample pairs come from the upper neighboring reconstructed sample. If only the left neighboring block is available, all four sample pairs come from the left neighboring reconstructed sample. If neither the upper nor left neighboring block is available, α is set to 0 and β is set to 1 << (Bitdepth – 1), and these four sample pairs are not required.

[0089] In the second method, if the upper neighbor block is available, all four sample pairs are derived from the upper neighbor reconstructed sample. If the upper neighbor block is unavailable, α is set to 0 and β is set to 1 << (Bitdepth – 1), and four sample pairs are not required.

[0090] In the third method, if the left neighboring block is available, all four sample pairs are derived from the reconstructed left neighboring sample. If the left neighboring block is unavailable, α is set to 0 and β is set to 1 << (Bitdepth – 1), and four sample pairs are not required.

[0091] When adjacent reconstructed luminance samples are obtained, for a 4:2:0 color format, since the luminance and chrominance values ​​are not equal, adjacent reconstructed luminance samples are downsampled to generate downsampled luminance samples, which correspond to the chrominance samples. After obtaining these four sample pairs, they are sorted according to the values ​​of the luminance samples. Then, the two larger sample pairs and the two smaller sample pairs are averaged to generate two average sample pairs. These two average sample pairs are used to derive the linear model parameters α and β.

[0092] In TSCPM, both chromaticity components Cb and Cr are predicted from the luminance component Y based on a linear model, as shown below:

[0093] pred_Cb = α1·rec_L' + β1 (Equation 2)

[0094] pred_Cr = α2·rec_L' + β2 (Formula 3)

[0095] However, for intra-frame prediction, the reconstruction of samples from the three components within a block is typically performed sequentially. Therefore, while the Cr component is being reconstructed, the Y and Cb components have already been reconstructed. Thus, the prediction of Cr can be based not only on the Y component but also on the Cb component.

[0096] In AVS3, predictions from multiple cross components (PMCs) can leverage information from the Y and Cb components to improve Cr predictions. The Cr prediction is shown below:

[0097] pred_C' = f downsample (pred_C) = f downsample (A × rec_L' + B) (Equation 4)

[0098] pred_Cr' = pred_C' – rec_Cb' (Formula 5)

[0099] Where rec_L' represents the reconstructed sample of the Y component and pred_C is an intermediate sample block with the same dimensions as the luminance coding block (e.g., an intermediate variable in the derivation), pred_C' represents the downsampled sample of pred_C, rec_Cb' is the reconstructed sample of the Cb component, and pred_Cr' is the predicted sample of the Cr component. downsample () is a downsampling filter whose downsampling rate depends on the video's color format. In a video with a 4:2:0 color format, f downsample Perform 2:1 downsampling in both the horizontal and vertical dimensions; in videos with a 4:2:2 color format, f downsample Perform 2:1 downsampling in the horizontal dimension and 1:1 downsampling in the vertical dimension; in a video with a color format of 4:4:4, f downsample 1:1 downsampling is performed in both the horizontal and vertical dimensions. A and B are two parameters derived from the linear model parameters based on TSCPM, as shown below:

[0100] A = α1 + α2 (Equation 6)

[0101] B = β1 + β2 (Equation 7)

[0102] Since there are three methods in TSCPM to obtain adjacent reconstructed samples to derive linear model parameters, there are also three methods in PMC to derive parameters A and B.

[0103] Figure 5A This is a schematic diagram illustrating an exemplary flowchart of prediction from multiple cross components (PMCs) according to some embodiments of the present disclosure. Figure 5AAs shown, in PMC, pred_Cr'505A is obtained by subtracting rec_Cb'504A from pred_C'503A. pred_C'503A is based on pred_C 502A, and pred_C 502A is calculated using rec_L'501A.

[0104] Figure 5B This is a schematic diagram illustrating an exemplary flowchart of a two-step cross-component prediction mode (TSCPM) according to some embodiments of the present disclosure. Figure 5B As shown, in TSCPM, pred_Cr'503B and pred_Cr'505B are obtained from pred_Cb 502B and pred_Cr 504B obtained from rec_L'501B, respectively.

[0105] After prediction, the residual is calculated on the encoder side and then transformed (e.g., Figure 2A and Figure 2B Transformation 212) and quantization (e.g., Figure 2A and Figure 2B After quantization 214), it is transmitted in the bitstream. On the decoder side, the residual parsed from the bitstream is inversely quantized and inversely transformed (e.g., ...). Figure 3A and Figure 3B The inverse quantization (218) and inverse transform (220) in the model are used to generate the reconstruction residuals. The reconstructed sample values ​​can then be generated by adding the reconstruction residuals to the predicted values. After sample reconstruction, the sample values ​​can be further filtered using loop filters such as deblocking filters, adaptive sample offsets, and adaptive loop filters to obtain the final output sample values.

[0106] To encode the residuals of the chroma components, a flag called the coded transform block pattern (CTP) is signaled in the bitstream for each chroma component to indicate whether the current block of the current chroma component has a non-zero residual. If the flag is 0, indicating that the current block of the current chroma component does not have a non-zero residual (i.e., the current block of the current chroma component has no residual), residual encoding is skipped. If the flag is 1, indicating that the current block of the current chroma component has a non-zero residual, the residual information is encoded.

[0107] For Cr blocks, the ctp flag is also signaled when PMC is applied. For the residuals of blocks predicted using PMC, the ctp flag is signaled to indicate whether the current Cr block has a non-zero residual.

[0108] For PMC, such as in AVS3, the predicted value of the Cr sample is derived by combining Equations 4 to 7 as follows:

[0109] pred_Cr' = f downsample[(α1 + α2 )·rec_L' + (β1 + β2)] – rec_Cb' (Equation 8)

[0110] By replacing with Equation 2,

[0111] pred_Cr'=f downsample [(α2·rec_L'+β2)+(α1·rec_L'+β1)]–rec_Cb'

[0112] =f downsample [(α2·rec_L'+β2)]+pred_Cb'–rec_Cb'=f downsample [(α2·rec_L'+β2)]–(rec_Cb'–pred_Cb') = f downsample [(α2·rec_L' + β2)] – resi_Cb' (Equation 9)

[0113] Here, resi_Cb' is the residual of the Cb component, which is equal to the difference between the reconstructed and predicted values ​​of the Cb sample (e.g., rec_Cb' – pred_Cb'), and (α2·rec_L' + β2) is the predicted value of the Cr sample in TSCPM. Therefore, on top of TSCPM, PMC further improves the prediction of the Cr component by subtracting the residual of Cb from the original predicted value of the Cr component. PMC assumes that the residual of the Cr sample is inversely proportional to the residual of the Cb sample.

[0114] However, this assumption does not always apply. Depending on the video content, the color characteristics of the image vary. For some blocks, the residuals of the Cr component are positively correlated with the residuals of the Cb component, while for others, they are negatively correlated. Furthermore, even for blocks where the Cb and Cr residuals are negatively correlated, the average amplitude of the Cr residual may not be equal to the average amplitude of the Cb component. Therefore, PMC may not function in these cases.

[0115] To overcome the shortcomings of the assumptions, multiple models are used for PMC in some embodiments of this disclosure.

[0116] Figure 6 A flowchart is shown of an exemplary method 600 for video processing in a PMC according to some embodiments of the present disclosure. Method 600 may be performed by an encoder (e.g., by...) Figure 2A Process 200A or Figure 2B The process 200B) is performed or is carried out by a device (e.g., Figure 4 The device (400) is executed by one or more software or hardware components. For example, one or more processors (e.g., Figure 4The processor 402) can execute method 600. In some embodiments, method 600 may be a computer program product contained in a computer-readable medium (including a computer (e.g., a processor 402) that executes method 600. Figure 4 The device 400 executes computer-executable instructions, such as program code. (See reference.) Figure 6 Method 600 may include steps 602 and 604.

[0117] At step 602, the model used for prediction from multiple cross components (PMC) is determined by combining the two models with a scaling factor. For example, a scaling factor is introduced into the calculation of the combined model parameters A and B to better fit the correlation between the Cb and Cr components. Therefore, the model used for PMC may vary with different values ​​of the factor, and an appropriate model can be applied.

[0118] In some embodiments, A and B can be derived as follows:

[0119] A = k1 × α1 + k2 × α2 (Equation 10)

[0120] B = k1 × β1 + k2 × β2 (Equation 11)

[0121] Here, k1 and k2 are scaling factors of the model. For example, k1 can be set to 0.75 and k2 can be set to 0.5. k1 and k2 are used to represent the relationship between α1 and α2, and β1 and β2. α1 and β1 can be parameters of the first linear model, while α2 and β2 can be parameters of the second linear model.

[0122] In some embodiments, A and B are further normalized, so k2 can be set to 1. Therefore, A and B can be derived as follows:

[0123] A = k × α1 + α2 (Equation 10a)

[0124] B = k × β1 + β2 (Equation 11a)

[0125] By introducing a scaling factor k, the prediction of Cr is obtained based on the combined linear model as follows:

[0126] pred_Cr' = f downsample (A × rec_L' + B) – k × rec_Cb' (Equation 12)

[0127] To simplify the computational complexity when k is a non-integer (such as 0.5, 0.75, etc.), equations 10a and 11a can be derived as equations 10b and 11b:

[0128] A = (m × α1 + p) / n + α2 (Equation 10b)

[0129] B=(m×β1+p) / n+β2 (Equation 11b)

[0130] Furthermore, Equation 12 can be derived as Equation 13:

[0131] pred_Cr' = f downsample (A × rec_L' + B) – (m × rec_Cb' + p) / n (Equation 13)

[0132] Where m and n are two integers, and the quotient of m divided by n is close to or equal to k. " / " represents integer division, and p is a rounding offset equal to half the value of n. In some embodiments, when n is a power of 2, " / " can be replaced by a right shift operation.

[0133] In some embodiments, to reduce computational complexity, parameters A and B are also derived as integers, thereby allowing for bit shift operations. Equations 12 and 13 can be reformatted as Equations 12a and 13a:

[0134] pred_Cr'=f downsample ((A×rec_L'>>ishift)+B)–k×rec_Cb' (Equation 12a)

[0135] pred_Cr'=f downsample ((A×rec_L'>>ishift)+B)–(m×rec_Cb'+p) / n (Equation 13a)

[0136] Where ishift is the displacement number, and the value of ishift is a non-negative integer.

[0137] In some embodiments, predicted values ​​can be obtained without downsampling. That is, f downsample () can be removed from equations 12, 13, 12a and 13a.

[0138] In one example, k1 equals 0.75 and k2 equals 1. Considering the rounding calculation, A equals ((3α1+2) / 4+α2) and B equals ((3β1+2) / 4+β2). After deriving A and B, pred_C' is generated by using a linear model with parameters A and B, as shown in Equation 4, and then pred_C' is down-filtered. The predicted value pred_Cr' for the Cr sample can be derived from the reconstructed values ​​rec_Cb' and pred_C' for the Cb sample. In this example, pred_Cr' equals pred_C' – (3rec_Cb'+2) / 4.

[0139] In some embodiments, factors k1 and k2 may be set to other values ​​to determine the appropriate model.

[0140] At step 604, the prediction of chromaticity components Cb and Cr is performed based on the determined model.

[0141] Figure 7 A flowchart of an exemplary method 700 for multi-model processing according to some embodiments of the present disclosure is shown. It should be understood that method 700 can be... Figure 6 This is part of step 602 in method 600. In some embodiments, method 700 may further include steps 702 to 706.

[0142] In step 702, multiple models are obtained using factors with different values. For example, a first model is obtained by setting k1 to 1 and k2 to –1; a second model is obtained by setting k1 to 0.5 and k2 to 1; and a third model is obtained by setting k1 to 0.75 and k2 to 2. The number of models is unlimited.

[0143] In step 704, a model to be used for PMC is determined from multiple models. In other words, multiple models (e.g., multiple methods) for PMC can be used to derive PMC parameters A and B. In some embodiments, the model to be used can be determined based on rate-distortion cost to obtain better performance. In other embodiments, the model to be used can also be determined by preset rules. For example, the encoder selects a first model as the model to be used. The model determination method can be based on the encoder's performance.

[0144] In step 706, the model index of the determined model is transmitted as a signal in the bit stream, and the model index indicates the model used, thus corresponding to certain factors of the model used. Therefore, the model used for PMC can be indicated by the index in the bit stream, which will benefit the processing on the decoder side.

[0145] The determined model can then be used on the encoder side to predict Cr samples.

[0146] In some embodiments, each block (or coding unit) has multiple models to derive parameters A and B. The encoder selects one of the models based on rate-distortion cost. For example, A and B can be derived as Equations 10a and 11a:

[0147] A = k × α1 + α2 (Equation 10a)

[0148] B = k × β1 + β2 (Equation 11a)

[0149] Where k is the scaling factor of the model.

[0150] In some embodiments, two models can be applied. In the first example, k can be negative or positive. For example, k can be +1 or –1. That is, A equals (α1+α2) and B equals (β1+β2), or A equals (–α1+α2) and B equals (–β1+β2). Both models are supported in this example. The value of k can be determined by the encoder and sent as a signal in the bitstream and decoded by the decoder. After deriving A and B, pred_C' is generated by calculating with a linear model using parameters A and B, as shown in Equation 4, and then pred_C' is downsampled. The predicted value pred_Cr' of the Cr sample can be derived from the reconstructed value rec_Cb' of the Cb sample and the value of k. When k equals 1, pred_Cr' equals pred_C'–rec_Cb'; and when k equals –1, pred_Cr' equals pred_C'+rec_Cb'.

[0151] In the second example, k may be less than or greater than 1. For example, k can be 0.5 or 2. That is, A equals ((α1+1) / 2+α2) and B equals ((β1+1) / 2+β2), or A equals (2α1+α2) and B equals (2β1+β2). Both models are supported in this example. The value of k can be determined by the encoder, then sent as a signal in the bitstream and decoded by the decoder. After deriving A and B, pred_C' is generated by using a linear model with parameters A and B, as shown in Equation 4, and pred_C' is downsampled. The predicted value pred_Cr' of the Cr sample can be derived from the reconstructed value rec_Cb' of the Cb sample and the value of k. When k equals 0.5, pred_Cr' equals pred_C'–(rec_Cb'+1) / 2; when k equals 2, pred_Cr' equals pred_C'–2×rec_Cb'.

[0152] In the third example, k can be less than 1. For example, k can be 0.75 or 0.25. That is, A equals ((3α1+2) / 4+α2) and B equals ((3β1+2) / 4+β2), or A equals ((α1+2) / 4+α2) and B equals ((β1+2) / 4+β2). This example supports both models. The value of k can be determined by the encoder, then sent as a signal in the bitstream and decoded by the decoder. After deriving A and B, pred_C' is generated by using a linear model with parameters A and B, as shown in Equation 4, and pred_C' is downsampled. The predicted value pred_Cr' of the Cr sample can be derived from the reconstructed value rec_Cb' of the Cb sample and the value of k. When k equals 0.75, pred_Cr' equals pred_C' – (3·rec_Cb'+2) / 4; when k equals 0.25, pred_Cr' equals pred_C' – (rec_Cb'+2) / 4.

[0153] In the fourth example, k can be less than or equal to 1. For example, k can be 0.5 or 1. That is, A equals ((α1+1) / 2+α2) and B equals ((β1+1) / 2+β2), or A equals (α1+α2) and B equals (β1+β2). Both models are supported in this example. The value of k can be determined by the encoder, then sent as a signal in the bitstream and decoded by the decoder. After deriving A and B, pred_C' is generated by using a linear model with parameters A and B, as shown in Equation 4, and pred_C' is downsampled. The predicted value pred_Cr' of the Cr sample can be derived from the reconstructed value rec_Cb' of the Cb sample and the value of k. When k equals 0.5, pred_Cr' equals pred_C'–(rec_Cb'+1) / 2; and when k equals 1, pred_Cr' equals pred_C'–rec_Cb'.

[0154] In some embodiments, three or more models may be applied, and k may have three or more values. In the fifth example, k can be 0.5, 1, or 2. That is, A equals ((α1+1) / 2+α2) and B equals ((β1+1) / 2+β2), or A equals (α1+α2) and B equals (β1+β2), or A equals (2α1+α2) and B equals (2β1+β2). Three models are supported in this example. The value of k can be determined by the encoder, and the corresponding model index is signaled in the bitstream and decoded by the decoder. After deriving A and B, pred_C' is generated by calculating with a linear model using parameters A and B, as shown in Equation 4, and pred_C' is downsampled. The predicted value pred_Cr' of the Cr sample can be derived from the reconstructed value rec_Cb' of the Cb sample and the value of k. When k equals 0.5, pred_Cr' equals pred_C'–(rec_Cb'+1) / 2; when k equals 1, pred_Cr' equals pred_C'–rec_Cb'; and when k equals 2, pred_Cr' equals pred_C'–2·rec_Cb'.

[0155] In the sixth example, k can be 0.5, 1, or –0.5. That is, A equals ((α1+1) / 2+α2) and B equals ((β1+1) / 2+β2), or A equals (α1+α2) and B equals (β1+β2), or A equals (–(α1+1) / 2+α2) and B equals (–(β1+1) / 2+β2). This example supports three models. The value of k can be determined by the encoder, then sent as a signal in the bitstream and decoded by the decoder. After deriving A and B, pred_C' is generated by calculating with a linear model using parameters A and B, as shown in Equation 4, and pred_C' is downsampled. The predicted value pred_Cr' of the Cr sample can be derived from the reconstructed value rec_Cb of the Cb sample and the value of k. When k equals 0.5, pred_Cr' equals pred_C' – (rec_Cb' + 1) / 2; when k equals 1, pred_Cr' equals pred_C' – rec_Cb'; and when k equals –0.5, pred_Cr' equals pred_C' + (rec_Cb' + 1) / 2.

[0156] In some embodiments, model selection is performed at the block level, which allows the encoder to select the best model to fit the content of the current block, thereby improving coding performance. However, block-level multi-model requests signaling for the model index of each block is a large signaling overhead and can potentially degrade coding performance.

[0157] To reduce signaling overhead, in some embodiments, step 706, which involves signaling the determined model index in the bitstream, can be skipped. In this case, the model index is not explicitly signaled in the bitstream but is implicitly derived by the encoder and decoder. For example, the decoder determines the model index directly based on statistical information of the reconstructed values ​​of the Y and Cb components or the model indices of adjacent coded blocks, without decoding the model information from the bitstream. Therefore, signaling overhead can be reduced.

[0158] In some embodiments of this disclosure, multiple models can be selected at higher levels, such as at the patch, slice, image, or sequence level. The encoder determines the optimal model for the current patch, slice, image, or sequence and signals the model index in the patch header, slice header, image header, or sequence header. The decoder uses the model indicated by the index signaled in the bitstream to decode the Cr sample. All the models and Cr sample predictions described above are applicable herein.

[0159] To further improve the efficiency of multi-model processing, in some embodiments of this disclosure, multi-model processing can be performed at two levels to achieve a good trade-off between the signaling overhead of model localization and model indexing. The supported models are selected and signaled by the encoder at two different levels. Then, on the decoder side, the decoder can deduce the model using the joint indication of the syntax elements at these two different levels.

[0160] Figure 8 A flowchart is shown of an exemplary method 800 for performing multi-model processing at two levels according to some embodiments of the present disclosure. It should be understood that method 800 may be... Figure 7 This is part of step 704 in method 700. In some embodiments, method 800 may further include steps 802 to 810.

[0161] In step 802, the multiple models are grouped into two or more groups. The models can be divided uniformly into multiple groups, with each group having the same number of models. The models can also be divided non-uniformly, with each group having a different number of models. The number of models in each group is unlimited. The division can be based on the value of a factor (e.g., k). For example, one group of models has k greater than a certain value (e.g., 1), and another group has k less than a certain value (e.g., 1). A model may also be in only one group or in multiple groups, but is not limited to this.

[0162] In step 804, a first-level determination is performed to identify the groups to be used. The first-level determination is performed at the group level to identify the groups to be used. For example, if the model to be used is determined when k is greater than 1, then a group of models with k greater than 1 is identified.

[0163] In step 806, a second-level determination is performed to identify the models to be used from the identified groups. This second-level determination is performed at the model level, selecting models from the identified groups. After the first-level determination, fewer models are selected for the second determination. This improves the efficiency of model determination and reduces model indexing signaling overhead. If only one model exists in the identified group, that model is determined as the model to be used. Therefore, the second-level determination can be skipped, and the model indexing signaling can also be skipped.

[0164] In step 808, a flag is signaled at the first level to indicate the identified group. Using the flag, the decoder can easily locate the identified group for processing. The flag can be signaled at the image level, strip level, slice level, or sequence level. For cases where the group is divided into more than two groups, an index can be signaled to indicate which group to select.

[0165] In step 810 (e.g., in step 706), the model index of the determined model is signaled at the second level. The model used for PMC can be indicated by an index in the bitstream, which will benefit processing on the decoder side. The model index can be signaled at the block level.

[0166] By employing a two-level processing approach, the efficiency of model localization is improved, while only one flag / index is sent via signaling.

[0167] In some embodiments, two or more groups are two or more subsets. A model can only be contained in one subset. Each subset contains at least one model. For example, in the first example, there are 6 models, where k equals –0.5, –1, –2, 0.5, 1, and 2. The set of models is divided into 2 subsets. The first subset contains –0.5, –1, and –2, and the second subset contains 0.5, 1, and 2. Subsets are determined and signaled at the image / slice / strip level, and models for each block within a subset are determined and signaled at the block level. Thus, a flag is signaled at the image header / slice header / strip header to indicate whether a positive or negative subset is selected. Then, for each block, a model index is signaled to indicate which of the three models in the determined subset is used for the current block. As described above, the derivation of parameters A and B and the prediction process for Cr samples are based on the value of k.

[0168] In the second example, there are four models, where k equals 0.5, 1, 1.5, and 2. The set of models is divided into two subsets. The first subset contains 0.5 and 1, and the second subset contains 1.5 and 2. Subsets are determined and signaled at the image / slice / strip level, and the model for each block within a subset is determined and signaled at the block level. Therefore, a flag is signaled at the image header / slice header / strip header to indicate whether the first subset with k less than or equal to 1 or the second subset with k greater than 1 is selected. Then, for each block, a model index is signaled to indicate which of the two models in the determined subset is used for the current block. As mentioned above, the derivation of parameters A and B, and the prediction of the Cr samples, are based on the value of k.

[0169] In the third example, there are three models, where k equals 0.25, 0.75, and –0.5. The set of models is divided into two subsets. The first subset contains 0.25 and 0.75, and the second subset contains –0.5. Subsets are determined and signaled at the image / slice / strip level, and models for each block within a subset are determined and signaled at the block level. Therefore, a flag is signaled at the image header / slice header / strip header to indicate whether the first or second subset is selected. Then, for each block, if the first subset is selected, a model index is signaled to indicate which of the two models in the determined subset is used for the current block. If the second subset is selected, step 806, which involves performing the second-level determination to determine the model to use from the determined set, can be skipped. Since there is only one model in the second subset, there is no need to signal the model index. Step 810, which involves signaling the model index at the block level, can also be skipped. As described above, the derivation of parameters A and B and the prediction of the Cr sample are based on the value of k. In this example, the number of models in each subset is not the same.

[0170] In some embodiments, two or more groups can be two or more categories. A model can be divided into multiple categories. For example, in the fourth example, there are 2 models where k equals 0.5 and 1. The models are divided into 2 categories. The first category contains 0.5 and 1, and the second category contains 1. Categories are determined and signaled at the strip, slice, or image level, and if the number of models in the currently determined category is greater than 1, the model for each block within the category is determined and signaled at the block level. Thus, a flag is signaled at the strip header, slice header, or image header to indicate whether the first or second category is selected. If the first category is selected, for each block, the model index is signaled to indicate which of the two models is used for the current block. If the second category is selected, step 806, which involves performing a second-level determination to determine the model to be used from the determined groups, can be skipped. Since there is only one model in the second category, there is no need to signal the model index. Step 810, which involves signaling the model index at the block level, can be skipped. As described above, the derivation of parameters A and B and the prediction process for the Cr samples are based on the value of k. A model may be included in more than one category.

[0171] In some embodiments, two or more groups are determined at the image level based on the image type. For example, in the fifth example, there are four models, where k equals 0.5, 0.75, 1, and –0.25. The set of models is divided into two subsets. The first subset contains 0.75 and –0.25, and the second subset contains 0.5 and 1. Subsets are determined at the image level based on the image type. The first subset is used for I images, and the second subset is used for P and B images. Therefore, in this example, no signaling flag is used in the image header to determine the subset for the current image. Step 808, which uses signaling flags at the image level to indicate the determined groups, can be skipped. Models for each block within the subset are determined and signaled at the block level. As described above, the derivation of parameters A and B, and the prediction of Cr samples, are based on the value of k.

[0172] In some embodiments, other combinations may be used.

[0173] Figure 9 A flowchart of an exemplary method 900 for video processing in a PMC according to some embodiments of the present disclosure is shown. Method 900 may be performed by a decoder (e.g., by...) Figure 3A Process 300A or Figure 3B The process 300B) is performed or is carried out by a device (e.g., Figure 4 The device (400) is executed by one or more software or hardware components. For example, one or more processors (e.g., Figure 4The processor 402) can execute method 900. In some embodiments, method 900 may be a computer program product contained in a computer-readable medium (including one executed by a computer (e.g., a processor 402)). Figure 4 The device 400 executes computer-executable instructions, such as program code. (See reference.) Figure 9 Method 900 may include the steps 902 to 906.

[0174] In step 902, the bit stream encoded in the PMC is received.

[0175] In step 904, a model to be used for the PMC is determined, wherein the model to be used includes factors. For example, factors are introduced into the calculation of PMC parameters A and B to better fit the correlation between the Cb and Cr components. In some embodiments, if the model index is sent as a signal in the bit stream, step 904 may also include the step of determining the model to be used by decoding the model index from the bit stream. After decoding the model index, the values ​​of the factors can be determined, and then the parameters of the model to be used can be derived.

[0176] In some embodiments, the index is not sent by signal in the bitstream, and step 904 may further include determining the model to be used based on statistics of the reconstructed values ​​of the Y and Cb components or model indices of adjacent coded blocks. In this case, factors of the model to be used may be derived from the values ​​of other components or from adjacent coded blocks.

[0177] In some embodiments, step 904 may include determining the model based on the type of slice or image. For example, k values ​​for different types of images may be preset and shared with the encoder and decoder. In some embodiments, k is set to 1 for I-images and to 0.5 for P or B-images. Then, if the current image is an I-image coded only with intra-frame prediction, k equals 1. A equals (α1+α2) and B equals (β1+β2). After deriving A and B, pred_C' is generated using a linear model calculated with parameters A and B, as shown in Equation 4, and pred_C' is downsampled. The predicted value pred_Cr' of the Cr sample equals pred_C'–rec_Cb'. If the current image is a P or B-image coded with both intra-frame and inter-frame prediction, k is 0.5. A equals ((α1+1) / 2+α2) and B equals ((β1+1) / 2+β2). After deriving A and B, pred_C' is generated using a linear model with parameters A and B, as shown in Equation 4, and pred_C' is downsampled. The predicted value pred_Cr' for the Cr sample is equal to pred_C' – (rec_Cb' + 1) / 2. In other embodiments, k can be set to other values ​​for the I image and for the P and B images.

[0178] The parameters of the model can be derived based on the determined model index.

[0179] In some embodiments, the model is selected by the encoder at two different levels and transmitted by signals. Then, step 904 in method 900 further includes determining the model by the joint indication of syntax elements at the two different levels. In this case, the group to be used is determined by first decoding the flags or indices transmitted by signals at the image level. Then, the model to be used is determined by decoding the model index at the block level.

[0180] In step 906, predicted values ​​for the chromaticity components are determined based on the determined model. For example, the Cr sample can be decoded using the model used.

[0181] Because PMC improves the prediction of the Cr component, the residuals of the Cr blocks are reduced. However, in the current AVS3, the CTP flag is still signaled in the bit stream. If most Cr blocks do not have non-zero residuals, signaling the CTP flag for each block itself consumes a non-negligible amount of bits. In some embodiments of this disclosure, methods for reducing signaling volume are proposed.

[0182] Figure 10 A flowchart is shown of an exemplary method 1000 for video processing in a PMC according to some embodiments of the present disclosure. Method 1000 may be performed by an encoder (e.g., by...) Figure 2A Process 200A or Figure 2B The process 200B) is performed or is carried out by a device (e.g., Figure 4 The device (400) is executed by one or more software or hardware components. For example, one or more processors (e.g., Figure 4 The processor 402) can execute method 1000. In some embodiments, method 1000 may be a computer program product contained in a computer-readable medium (including a program executed by a computer (e.g., a processor 402)). Figure 4 The device 400 executes computer-executable instructions, such as program code. (See reference.) Figure 10 Method 1000 may include the following steps 1002 and 1004.

[0183] In step 1002, the Cr block is predicted by prediction from multiple cross component (PMC) modes.

[0184] In step 1004, all residuals of the Cr block are forced to zero. Since the residuals of the Cr components have been reduced, there is not much distortion if all residuals of the Cr block are forced to zero, especially for blocks where the predicted sample values ​​are close to the original sample values. In some embodiments, the Cb block is predicted by prediction from multiple cross-component (PMC) modes, and all residuals of the Cb block are forced to zero.

[0185] Therefore, the step of signaling the CTP flag and residuals for Cr blocks is skipped. Since all residuals are forced to zero, no signaling of the CTP flag and residuals is needed for Cr blocks predicted via PMC mode. This further saves signaling.

[0186] Forcing the residuals of the Cr block to zero saves the CTP flags and residual signaling for the Cr component, but it introduces significant distortion for blocks where the predicted sample values ​​are not close to the original sample values. In some embodiments of this disclosure, a high-level CTP indicator can be used to store the CTP signaling for each block.

[0187] For example, the ctp flag of the Cr block predicted by the PMC mode is sent by signal in the strip header, slice header, or image header. Figure 11 A flowchart is shown of an exemplary method 1100 for signaling CTP flags at two levels according to some embodiments of the present disclosure. Method 1100 may be provided by an encoder (e.g., by...) Figure 2A Process 200A or Figure 2B The process 200B) is performed or is carried out by a device (e.g., Figure 4 The device (400) is executed by one or more software or hardware components. For example, one or more processors (e.g., Figure 4 The processor 402) can execute method 1100. In some embodiments, method 1100 may be a computer program product contained in a computer-readable medium (including a computer (e.g., a processor 402) that executes method 1100. Figure 4 The device 400 executes computer-executable instructions, such as program code. (See reference.) Figure 11 Method 1100 may include the following steps 1102 to 1114.

[0188] In step 1102, the first-level CTP flag of the Cr block predicted by the PMC mode is sent by signal. The CTP flag can be located in the image header, slice header, or strip header and is used to indicate whether there is a non-zero residual in the current image, slice, or strip.

[0189] In step 1104, the value of the first-level (e.g., image-level) CTP flag is determined. If the first-level CTP flag is equal to 0, then each Cr block in the current image / slice / strip predicted by the PMC mode does not have a non-zero residual. Therefore, in step 1106, the second-level (e.g., block-level) CTP flag and residual for each Cr block are not signaled.

[0190] If the first-level CTP flag is equal to 1 according to step 1104, then in step 1108, for each Cr block, a second-level (e.g., block-level) CTP flag is signaled to indicate whether the current Cr block has a non-zero residual. In step 1110, the value of the second-level CTP flag is determined. If the second-level CTP flag is equal to 0 according to step 1110, then in step 1112, the residual of the current Cr block is not signaled. If the second-level CTP flag is equal to 1 according to step 1110, then in step 1114, the residual of the current Cr block is signaled in the bit stream. The second-level CTP flag can be a block-level CTP flag used to indicate whether a non-zero residual exists in the current block.

[0191] By sending CTP flags at both levels using signals, block-level flag signaling and residual signaling can be significantly reduced.

[0192] In some embodiments, method 1100 may be combined with method 700, method 800 or method 900, wherein multiple models with different k values ​​are supported.

[0193] In some embodiments, for cases where no residual exists (i.e., no residual is transmitted using signaling), the reconstructed value of the Cr sample is derived to be equal to the improved predicted value of the Cr sample. Therefore, coding performance can be improved by saving signaling.

[0194] Figure 12 A flowchart of an exemplary method 1200 for video processing in a PMC according to some embodiments of the present disclosure is shown. Method 1200 may be performed by a decoder (e.g., by a decoder). Figure 3A Process 300A or Figure 3B The process 300B) is performed or is carried out by a device (e.g., Figure 4 The device (400) is executed by one or more software or hardware components. For example, one or more processors (e.g., Figure 4 The processor 402) can execute method 1200. In some embodiments, method 1200 may be a computer program product contained in a computer-readable medium (including a computer (e.g., a processor 402) that executes method 1200. Figure 4 The device 400 executes computer-executable instructions, such as program code. (See reference.) Figure 12 Method 1200 may include the steps 1202 and 1204.

[0195] In step 1202, the prediction mode of the Cr block is determined. At the decoder, the prediction mode of the Cr block is determined based on the received bit stream. Therefore, when the prediction mode of the current Cr block is encoded using PMC mode, the decoding of the CTP flag and residual is skipped. Since the prediction of the Cr component is improved according to embodiments of this disclosure, and in some embodiments, the CTP flag and residual are not signaled in the bit stream, the decoding of the CTP flag and residual can be skipped to improve processing performance.

[0196] In step 1204, the reconstructed value of the Cr component is determined to be equal to the improved predicted value of the Cr component. That is, rec_Cr' = pred_Cr'.

[0197] PMC improves the prediction of Cr blocks. However, it sits on top of TSCPM. Therefore, PMC can only be enabled to improve the prediction of Cr blocks when Cb blocks are encoded in TSCPM mode. For other modes, PMC cannot be used.

[0198] In some embodiments of this disclosure, the improvement in Cr prediction based on the reconstructed Cb component is not limited to the TSCPM model, but extends to all models.

[0199] Figure 13 A flowchart of an exemplary method 1300 for video processing according to some embodiments of the present disclosure is shown. Method 1300 may be performed by an encoder (e.g., by...) Figure 2A Process 200A or Figure 2B Process 200B), decoder (e.g., by Figure 3A Process 300A or Figure 3B The process 300B) is executed or is performed by a device (e.g., Figure 4 The device (400) is executed by one or more software or hardware components. For example, one or more processors (e.g., Figure 4 The processor 402) can execute method 1300. In some embodiments, method 1300 may be a computer program product contained in a computer-readable medium (including a program executed by a computer (e.g., a processor 402)). Figure 4 The device 400 executes computer-executable instructions, such as program code. (See reference.) Figure 13 Method 1300 may include the following step 1302.

[0200] In step 1302, the updated predicted value of the Cr component is determined by defining a linear relationship between the initial predicted value of the Cr component and the residual value of the Cb component. The residual value of the Cb component is equal to the difference between the initial predicted value of the Cb component and the reconstructed value of the Cb component. Initial predicted values ​​for the Cr and Cb components are generated using any prediction model. For example, according to Equation 9, the improved predicted value for the Cr sample can be derived as follows:

[0201] pred_Cr'= pred_Cr0' + k × (pred_Cb0' – rec_Cb') = pred_Cr0' + k ×resi_Cb' (Equation 14)

[0202] Where pred_Cr' is the final improved predicted value of the Cr sample, pred_Cr0' is the initial predicted value of the Cr sample, pred_Cb0' is the predicted value of the Cb sample, rec_Cb' is the reconstructed value of the Cb sample, and k is the model factor. The improved predicted value of the Cr component is calculated by defining a linear relationship between pred_Cr0' and resi_Cb0', where resi_Cb' is the residual of the Cb component, and its value is equal to the difference between pred_Cb0' and rec_Cb'.

[0203] In some embodiments, pred_Cr0' and pred_Cb0' can be generated using any prediction mode. For example, pred_Cr0' and pred_Cb0' can be inter-frame prediction values ​​for normal inter-frame mode, skip mode, direct mode, or any other inter-frame mode. Furthermore, pred_Cr0' and pred_Cb0' can be intra-frame prediction values ​​for angular intra-frame mode, bilinear intra-frame mode, DC mode, planar mode, or any other intra-frame mode. If inter-frame prediction filtering or intra-frame prediction filtering is applied, pred_Cr0' and pred_Cb0' can be values ​​before or after filtering.

[0204] After deriving the improved predicted value for the Cr sample, the reconstructed residual value is added to the improved predicted value to obtain the reconstructed value for the Cr sample. In some embodiments, for cases where no residual exists, the reconstructed value for the Cr sample is equal to the improved predicted value for the Cr sample.

[0205] Method 1300 can be combined with embodiments of method 700, method 800, or method 900, wherein multiple models with different k values ​​are supported. Method 1300 can also be combined with embodiments in which the residuals of Cr blocks are not signaled. Method 1300 can also be combined with embodiments of method 1100, wherein a high-level ctp flag is signaled to indicate the presence of residuals of Cr blocks.

[0206] In PMC, the prediction of Cr is improved based on the reconstructed values ​​of the Y and Cb components. However, the Cb component cannot be improved using the reconstructed values ​​of the Y and Cr components. Therefore, the quality of the two chromaticity components is unbalanced.

[0207] In some embodiments of this disclosure, the prediction of Cb can be improved based on the reconstructed value of the Cr component.

[0208] Figure 14 A flowchart is shown of an exemplary method 1400 for video processing in a PMC according to some embodiments of the present disclosure. Method 1400 may be performed by an encoder (e.g., by...) Figure 2A Process 200A or Figure 2B The process 200B) is performed or is carried out by a device (e.g., Figure 4 The device (400) is executed by one or more software or hardware components. For example, one or more processors (e.g., Figure 4 The processor 402) can execute method 1400. In some embodiments, method 1400 may be a computer program product contained in a computer-readable medium (including a program executed by a computer (e.g., a processor 402)). Figure 4 The device 400 executes computer-executable instructions, such as program code. (See reference.) Figure 14 Method 1400 may include the steps 1402 to 1406.

[0209] In step 1402, the improved predicted values ​​for the Cr sample and the Cb sample are determined. For example, the improved predicted value for the Cr sample can be derived from Equation 14, and the improved predicted value for the Cb sample can be derived as follows:

[0210] pred_Cb' = pred_Cb0' + k × (pred_Cr0' – rec_Cr') = pred_Cb0' + k ×res_Cr' (Equation 15)

[0211] Where pred_Cb' is the final improved predicted value of the Cb sample, pred_Cb0' is the initial predicted value of the Cb sample, pred_Cr0' is the predicted value of the Cr sample, rec_Cr' is the reconstructed value of the Cr sample, resi_Cr' is the residual of the Cr component, which is equal to the difference between pred_Cr0' and rec_Cr', and k is the model factor. For example, the improved predicted value of the Cr sample can be derived as Equation 16, and the improved predicted value of the Cb sample can be derived as Equation 17:

[0212] pred_Cr' = f downsample[(kα1 + α2)× rec_L' + (kβ1 + β2)] – k× rec_Cb' (Equation 16)

[0213] pred_Cb' = f downsample [(α1 + kα2)× rec_L' + (β1 + kβ2)] – k× rec_Cr' (Equation 17)

[0214] Where pred_Cr' and pred_Cb' are the improved predicted values ​​of Cr and Cb, rec_Cb' and rec_Cr' are the reconstructed values ​​of Cb and Cr, rec_L' is the reconstructed value of Y, and k is the scaling factor to combine the two linear models. α1 and β1 are the parameters of the linear model used to derive the predicted sample values ​​of Cb based on the luminance samples, and α2 and β2 are the parameters of the linear model used to derive the predicted sample values ​​of Cr based on the luminance samples.

[0215] In step 1404, it is determined whether to improve the Cr prediction based on the reconstructed values ​​of the Cb samples or the Cb prediction based on the reconstructed values ​​of the Cr samples. As shown in Equations 14 to 17, the Cr prediction or Cb prediction can be improved based on other chromaticity components.

[0216] It should be understood that in some embodiments, step 1404 may be performed before step 1402, such that only one of the improved Cr prediction value and the improved Cb prediction value needs to be determined in step 1402. If it is determined in step 1404 that the Cr prediction should be improved based on the reconstructed value of the Cb sample, then the improved prediction value of the Cr sample is determined in step 1402; if it is determined in step 1404 that the Cb prediction should be improved based on the reconstructed value of the Cr sample, then the improved prediction value of the Cb sample is determined in step 1402.

[0217] In step 1406, a flag is sent to indicate whether to improve the Cr prediction or the Cb prediction. If the flag indicates to improve the Cr prediction, refer to Equation 14 or Equation 16; if the flag indicates to improve the Cb prediction, refer to Equation 15 or Equation 17. Thus, either the Cr prediction or the Cb prediction can be improved.

[0218] In some embodiments, improvements are made to switching Cb prediction and Cr prediction at the block level. Furthermore, a flag is sent as a signal in the bitstream for each block.

[0219] In some embodiments, improvements to Cb prediction and Cr prediction are switched at the strip / slice / image level. The determination of the improvement in Cr prediction or Cb prediction is based on the content features of the current strip / slice / image. Content features can be the correlation coefficient between the Cr and Cb components. For some video content, the Cr and Cb components may be positively correlated. For some video content, the Cr and Cb components may be negatively correlated. Since the flag is signaled at a high level (e.g., at the image or slice level), flag signaling is saved.

[0220] In some embodiments, similar to method 1300, an improved predicted value for the Cb component can be determined by defining a linear relationship between the predicted values ​​of the Cb component and the residuals of the Cr component, wherein the predicted values ​​of the Cb component and the predicted values ​​of the Cr component are generated using any prediction model.

[0221] Figure 15 A flowchart is shown of an exemplary method 1500 for video processing in a PMC according to some embodiments of the present disclosure. Method 1500 may be performed by a decoder (e.g., by a decoder). Figure 3A Process 300A or Figure 3B The process 300B) is performed or is carried out by a device (e.g., Figure 4 The device (400) is executed by one or more software or hardware components. For example, one or more processors (e.g., Figure 4 The processor 402) can execute method 1500. In some embodiments, method 1500 may be a computer program product contained in a computer-readable medium (including a program executed by a computer (e.g., a processor 402)). Figure 4 The device 400 executes computer-executable instructions, such as program code. (See reference.) Figure 15 Method 1500 may include the steps 1502 to 1506.

[0222] In step 1502, a bit stream including flags indicating improved Cr prediction or improved Cb prediction is received.

[0223] In step 1504, an improved Cr prediction or an improved Cb prediction is determined based on a flag. For example, a flag equal to 1 indicates an improved Cr prediction, while a flag equal to 0 indicates an improved Cb prediction.

[0224] In step 1506, in response to the flag being equal to 1 in step 1504, the Cr prediction is improved. Then, the Cr prediction is improved, for example, using Equation 14 or Equation 16.

[0225] In step 1508, in response to the flag being equal to 0 in step 1504, the Cb prediction is improved. Then, the Cb prediction is improved, for example, using Equation 15 or Equation 17.

[0226] It is understood that although this disclosure relates to various syntactic elements that provide inference based on a value equal to 0 or 1, these values ​​can be configured in any way (e.g., 1 or 0) to provide appropriate inference.

[0227] The following terms can also be used to describe the embodiments:

[0228] 1. A video encoding method, comprising:

[0229] A parameter set is determined from multiple parameter sets, wherein the parameter set includes a scaling factor;

[0230] Based on the parameter set, the reconstructed sample values ​​of the luminance component, and the reconstructed sample values ​​of the second chrominance component, the predicted sample values ​​of the first chrominance component are determined; and

[0231] The index associated with the parameter set is sent via a signal in the bit stream.

[0232] 2. The method according to item 1, wherein determining the predicted sample value of the first chromaticity component based on the parameter set further includes:

[0233] A combined linear model is determined based on the scaling factor, the first linear model, and the second linear model, wherein the first linear model, the second linear model, and the combined linear model each include a first parameter and a second parameter; and

[0234] The predicted sample value of the first chromaticity component is determined based on the combined linear model.

[0235] 3. The method according to item 2, wherein determining the combined linear model based on the scaling factor, the first linear model, and the second linear model comprises:

[0236] The first parameter of the combined linear model is determined as a linear combination of the first parameter of the first linear model and the first parameter of the second linear model with the scaling factor; and

[0237] The second parameter of the combined linear model is determined to be a linear combination of the second parameter of the first linear model and the second parameter of the second linear model with the scaling factor.

[0238] 4. The method according to clause 3, wherein the first parameter of the combined linear model is determined based on the following formula: A = k × α2 + α1; and the second parameter of the combined linear model is determined based on the following formula: B = k × β2 + β1, wherein A is the first parameter of the combined linear model, B is the second parameter of the combined linear model, α1 and α2 are the first parameters of the first linear model and the first parameters of the second linear model, β1 and β2 are the second parameters of the first linear model and the second parameters of the second linear model, and k is the scaling factor.

[0239] 5. The method according to clause 3, wherein the first parameter of the combined linear model is determined based on the following formula: A = (m × α² + p) / n + α₁; and the second parameter of the combined linear model is determined based on the following formula: B = (m × β² + p) / m + β₁; wherein A is the first parameter of the combined linear model, B is the second parameter of the combined linear model, α₁ and α₂ are the first parameters of the first linear model and the first parameters of the second linear model, β₁ and β₂ are the second parameters of the first linear model and the second parameters of the second linear model, m and 1 / n are two scaling factors, and p is a rounding offset.

[0240] 6. The method according to any one of items 2 to 5, wherein determining the predicted sample value of the first chromaticity component further includes:

[0241] The first intermediate variable is determined by adding the product of the first parameter of the combined linear model and the reconstructed sample value of the luminance component to the second parameter of the combined linear model;

[0242] The second intermediate variable is determined by scaling the reconstructed sample values ​​of the second chromaticity component using the scaling factor; and

[0243] The predicted sample value of the first chromaticity component is determined as a linear combination of the first intermediate variable and the second intermediate variable.

[0244] 7. The method according to item 6 further includes:

[0245] Downsampling is performed on the first intermediate variable; and the predicted sample value of the first chromaticity component is determined as a linear combination of the second intermediate variable and the downsampled first intermediate variable.

[0246] 8. The method according to item 6 or 7, wherein determining the first intermediate variable by adding the product of the first parameter of the combined linear model and the reconstructed sample value of the luminance component to the second parameter of the combined linear model further comprises:

[0247] The product is subjected to a bit-right shift; and the first intermediate variable is determined by adding the result of the bit-right shift to the second parameter of the combined linear model.

[0248] 9. The method according to any one of items 6 to 8, wherein the predicted sample value of the first chromaticity component is determined based on the following formula:

[0249] pred_Cr' = fdownsample((A×rec_L'>>i)+B)–k×rec_Cb'; where pred_Cr' is the predicted sample value of the first chromaticity component, A is the first parameter of the combined linear model, B is the second parameter of the combined linear model, rec_L' is the reconstructed sample value of the luminance component, rec_Cb' is the reconstructed sample value of the second chromaticity component, k is the scaling factor, i is a non-negative integer value indicating the number of right shifts, and fdownsample() indicates that downsampling is performed.

[0250] 10. The method according to any one of items 6 to 8, wherein the predicted sample value of the first chromaticity component is determined based on the following formula:

[0251] pred_Cr' = fdownsample((A×rec_L'>>i)+B)–(m×rec_Cb'+p) / n; where pred_Cr' is the predicted sample value of the first chromaticity component, A is the first parameter of the combined linear model, B is the second parameter of the combined linear model, rec_L' is the reconstructed sample value of the luminance component, rec_Cb' is the reconstructed sample value of the second chromaticity component, m and 1 / n are two scaling factors, p is the rounding offset, i is a non-negative integer value indicating the number of right shifts, and fdownsample() indicates that downsampling is performed.

[0252] 11. The method according to clause 3 or 4, wherein the scaling factor is equal to 1, 0.5 or 2.

[0253] 12. The method according to any one of items 1 to 11, wherein signaling the index associated with the parameter set in the bit stream further comprises:

[0254] The first index in the first level and the second index in the second level are sent by signaling, wherein the parameter set is jointly indicated by the first index and the second index.

[0255] 13. The method according to item 12, wherein the first level is an image level and the second level is a coding unit (CU) level.

[0256] 14. The method according to clause 12 or 13 further comprises:

[0257] A subset of the plurality of parameter sets is indicated from the plurality of parameter sets by the first index; and

[0258] The parameter set is indicated from the subset of the plurality of parameter sets by the second index.

[0259] 15. The method according to any one of clauses 1 to 14, further comprising:

[0260] The reconstructed sample value of the first chromaticity component is determined to be equal to the predicted sample value of the first chromaticity component, without signaling the prediction residual and the coded transform block mode (CTP) flag of the first chromaticity component.

[0261] 16. The method according to any one of clauses 1 to 15, further comprising:

[0262] A flag is sent in the bit stream, the flag indicating whether the reconstructed sample value of the first chromaticity component is equal to the predicted sample value of the first chromaticity component;

[0263] In response to the flag indicating that the reconstructed sample value of the first chromaticity component is equal to the predicted sample value of the first chromaticity component,

[0264] Determine that the reconstructed sample value of the first chroma component is equal to the predicted sample value of the first chroma component, without signaling the prediction residual and the Coded Transform Block Mode (CTP) flag of the first chroma component; and

[0265] In response to the flag indicating that the reconstructed sample value of the first chromaticity component is not equal to the predicted sample value of the first chromaticity component,

[0266] Determine whether the prediction residuals of the first chromaticity component of the current block are all zero.

[0267] In response to the prediction residuals of the first chromaticity component of the current block being all zero,

[0268] Determine that the reconstructed sample value of the first chromaticity component is equal to the predicted sample value of the first chromaticity component of the current block; and

[0269] The Coded Transform Block Mode (CTP) flag of the first chromaticity component of the current block is transmitted by signaling, and the value of the first value of the CTP flag indicates that the prediction residuals of the first chromaticity component of the current block are all zero.

[0270] In response to the fact that the prediction residuals of the first chromaticity component of the current block are not all zero,

[0271] The reconstructed sample value of the first chromaticity component is determined to be equal to the predicted sample value of the first chromaticity component plus the reconstruction residual of the first chromaticity component of the current block;

[0272] The Coded Transform Block Pattern (CTP) flag of the first chroma component of the current block is transmitted by signaling, wherein the second value of the CTP flag indicates that the prediction residuals of the first chroma component of the current block are not all zero; and

[0273] The predicted residual of the first chromaticity component of the current block is transmitted by signal.

[0274] 17. The method according to any one of clauses 1 to 16, further comprising:

[0275] A signal is sent to indicate whether the predicted sample value of the first chromaticity component is determined based on the parameter set, the reconstructed sample value of the luminance component, and the reconstructed sample value of the second chromaticity component, or the predicted sample value of the second chromaticity component is determined based on the parameter set, the reconstructed sample value of the luminance component, and the reconstructed sample value of the first chromaticity component.

[0276] In response to the flag indicating that the predicted sample value of the first chromaticity component is determined based on the parameter set, the reconstructed sample value of the luminance component, and the reconstructed sample value of the second chromaticity component,

[0277] First, determine the reconstructed sample values ​​of the luminance component and the reconstructed sample values ​​of the second chromaticity component; and

[0278] Next, the predicted sample value of the first chromaticity component is determined;

[0279] In response to the flag indicating that the predicted sample value of the second chromaticity component is determined based on the parameter set, the reconstructed sample value of the luminance component, and the reconstructed sample value of the first chromaticity component,

[0280] First, determine the reconstructed sample values ​​of the luminance component and the reconstructed sample values ​​of the first chromaticity component; and

[0281] Next, the predicted sample value of the second chromaticity component is determined.

[0282] 18. A video decoding method, comprising:

[0283] Decode the index from the video bitstream;

[0284] A parameter set is determined from multiple parameter sets based on the index, wherein the parameter set includes a scaling factor; and

[0285] The predicted sample value of the first chromaticity component is determined based on the parameter set, the reconstructed sample value of the luminance component, and the reconstructed sample value of the second chromaticity component.

[0286] 19. The method according to item 18, wherein determining the predicted sample value of the first chromaticity component based on the parameter set further comprises:

[0287] A combined linear model is determined based on the scaling factor, the first linear model, and the second linear model, wherein the first linear model, the second linear model, and the combined linear model each include a first parameter and a second parameter; and

[0288] The predicted sample value of the first chromaticity component is determined based on the combined linear model.

[0289] 20. The method according to clause 19, wherein determining the combined linear model based on the scaling factor, the first linear model, and the second linear model comprises:

[0290] The first parameter of the combined linear model is determined as a linear combination of the first parameter of the first linear model and the first parameter of the second linear model with the scaling factor; and

[0291] The second parameter of the combined linear model is determined to be a linear combination of the second parameter of the first linear model and the second parameter of the second linear model with the scaling factor.

[0292] 21. The method according to clause 20, wherein a first parameter of the combined linear model is determined based on the following formula: A = k × α² + α₁; and a second parameter of the combined linear model is determined based on the following formula: B = k × β² + β₁; wherein A is the first parameter of the combined linear model, B is the second parameter of the combined linear model, α₁ and α₂ are the first parameters of the first linear model and the first parameters of the second linear model, β₁ and β₂ are the second parameters of the first linear model and the second parameters of the second linear model, and k is the scaling factor.

[0293] 22. The method according to clause 20, wherein the first parameter of the combined linear model is determined based on the following formula: A = (m × α² + p) / n + α₁; and the second parameter of the combined linear model is determined based on the following formula: B = (m × β² + p) / m + β₁; wherein A is the first parameter of the combined linear model, B is the second parameter of the combined linear model, α₁ and α₂ are the first parameters of the first linear model and the first parameters of the second linear model, β₁ and β₂ are the second parameters of the first linear model and the second parameters of the second linear model, m and 1 / n are scaling factors, and p is a rounding offset.

[0294] 23. The method according to any one of items 19 to 22, wherein determining the predicted sample value of the first chromaticity component further comprises:

[0295] The first intermediate variable is determined by adding the product of the first parameter of the combined linear model and the reconstructed sample value of the luminance component to the second parameter of the combined linear model;

[0296] The second intermediate variable is determined by scaling the reconstructed sample values ​​of the second chromaticity component with the scaling factor.

[0297] The predicted sample value of the first chromaticity component is determined as a linear combination of the first intermediate variable and the second intermediate variable.

[0298] 24. The method according to clause 23 further includes:

[0299] Downsampling is performed on the first intermediate variable; and the predicted sample value of the first chromaticity component is determined as a linear combination of the second intermediate variable and the downsampled first intermediate variable.

[0300] 25. The method according to clause 23 or 24, wherein determining the first intermediate variable by adding the product of the first parameter of the combined linear model and the reconstructed sample value of the luminance component to the second parameter of the combined linear model further comprises:

[0301] The product is subjected to a bit-right shift; and the first intermediate variable is determined by adding the result of the bit-right shift to the second parameter of the combined linear model.

[0302] 26. The method according to any one of clauses 23 to 25, wherein the predicted sample value of the first chromaticity component is determined based on the following formula:

[0303] pred_Cr' = fdownsample((A×rec_L'>>i)+B)–k×rec_Cb'; where pred_Cr' is the predicted sample value of the first chromaticity component, A is the first parameter of the combined linear model, B is the second parameter of the combined linear model, rec_L' is the reconstructed sample value of the luminance component, rec_Cb' is the reconstructed sample value of the second chromaticity component, k is the scaling factor, i is a non-negative integer value indicating the number of right shifts, and fdownsample() indicates that downsampling is performed.

[0304] 27. The method according to any one of clauses 23 to 25, wherein the predicted sample value of the first chromaticity component is determined based on the following formula:

[0305] pred_Cr' = fdownsample((A×rec_L'>>i)+B)–(m×rec_Cb'+p) / n; where pred_Cr' is the predicted sample value of the first chromaticity component, A is the first parameter of the combined linear model, B is the second parameter of the combined linear model, rec_L' is the reconstructed sample value of the luminance component, rec_Cb' is the reconstructed sample value of the second chromaticity component, m and 1 / n are two scaling factors, p is the rounding offset, i is a non-negative integer value indicating the number of right shifts, and fdownsample() indicates that downsampling is performed.

[0306] 28. The method according to clause 20 or 21, wherein the scaling factor is equal to 1, 0.5 or 2.

[0307] 29. The method according to any one of items 18 to 28, wherein decoding the index from the video bitstream further comprises:

[0308] Decode the first index in the first level and the second index in the second level; and

[0309] The parameter set is determined from the plurality of parameter sets based on the first index and the second index.

[0310] 30. The method according to item 29, wherein the first level is an image level and the second level is a coding unit (CU) level.

[0311] 31. The method according to clause 29 or 30 further comprises:

[0312] A subset of the plurality of parameter sets is determined from the plurality of parameter sets based on the first index; and

[0313] The parameter set is determined from the subset of the plurality of parameter sets based on the second index.

[0314] 32. The method according to any one of clauses 18 to 31 further comprises:

[0315] For the current block, the reconstructed sample value of the first chroma component is determined to be equal to the predicted sample value of the first chroma component, without decoding the prediction residual and the Coded Transform Block Mode (CTP) flag of the first chroma component.

[0316] 33. The method according to any one of clauses 18 to 32 further comprises:

[0317] Decode the bitstream flag, wherein the flag indicates whether the reconstructed sample value of the first chroma component is equal to the predicted sample value of the first chroma component;

[0318] In response to the flag indicating that the reconstructed sample value of the first chromaticity component is equal to the predicted sample value of the first chromaticity component,

[0319] Determine that the reconstructed sample value of the first chroma component is equal to the predicted sample value of the first chroma component, without decoding the prediction residual and the Coded Transform Block Mode (CTP) flag of the first chroma component; and

[0320] In response to the flag indicating that the reconstructed sample value of the first chromaticity component is not equal to the predicted sample value of the first chromaticity component,

[0321] Decode the CTP flag of the first chroma component of the current block; and

[0322] Based on the CTP flag, it is determined whether the prediction residuals of the first chromaticity component of the current block are all zero. In response to the CTP flag indicating that the prediction residuals of the first chromaticity component of the current block are all zero...

[0323] For the current block, the reconstructed sample value of the first chromaticity component is determined to be equal to the predicted sample value of the first chromaticity component, and the predicted residual of the first chromaticity component of the current block is not decoded;

[0324] In response to the fact that the prediction residuals of the first chromaticity component of the current block are not all zero,

[0325] Decode the prediction residual of the first chromaticity component of the current block; and determine that the reconstructed sample value of the first chromaticity component is equal to the prediction sample value of the first chromaticity component plus the reconstructed residual of the first chromaticity component of the current block.

[0326] 34. The method according to any one of clauses 18 to 33 further comprises:

[0327] From the bitstream decoding flag, wherein the flag indicates whether the predicted sample value of the first chroma component is determined based on the parameter set, the reconstructed sample value of the luminance component, and the reconstructed sample value of the second chroma component, or the predicted sample value of the second chroma component is determined based on the parameter set, the reconstructed sample value of the luminance component, and the reconstructed sample value of the first chroma component;

[0328] In response to the flag indicating that the predicted sample value of the first chromaticity component is determined based on the parameter set, the reconstructed sample value of the luminance component, and the reconstructed sample value of the second chromaticity component,

[0329] First, determine the reconstructed sample values ​​of the luminance component and the reconstructed sample values ​​of the second chromaticity component; and

[0330] Next, the predicted sample value of the first chromaticity component is determined; and

[0331] In response to the flag indicating that the predicted sample value of the second chromaticity component is determined based on the parameter set, the reconstructed sample value of the luminance component, and the reconstructed sample value of the first chromaticity component,

[0332] First, determine the reconstructed sample values ​​of the luminance component and the reconstructed sample values ​​of the first chromaticity component; and

[0333] Next, the predicted sample value of the second chromaticity component is determined.

[0334] 35. An apparatus for performing video data processing, the apparatus comprising:

[0335] Memory, the memory being configured to store instructions; and

[0336] One or more processors, said one or more processors being configured to execute the instructions to cause the device to perform:

[0337] A parameter set is determined from multiple parameter sets, wherein the parameter set includes a scaling factor;

[0338] Based on the parameter set, the reconstructed sample values ​​of the luminance component, and the reconstructed sample values ​​of the second chrominance component, the predicted sample values ​​of the first chrominance component are determined; and

[0339] The index associated with the parameter set is sent via a signal in the bit stream.

[0340] 36. The apparatus according to clause 35, wherein determining the predicted sample value of the first chromaticity component based on the parameter set further comprises:

[0341] A combined linear model is determined based on the scaling factor, the first linear model, and the second linear model, wherein the first linear model, the second linear model, and the combined linear model each include a first parameter and a second parameter; and

[0342] The predicted sample value of the first chromaticity component is determined based on the combined linear model.

[0343] 37. The device according to clause 36, wherein the one or more processors are further configured to execute the instructions to cause the device to perform:

[0344] The first parameter of the combined linear model is determined as a linear combination of the first parameter of the first linear model and the first parameter of the second linear model with the scaling factor; and

[0345] The second parameter of the combined linear model is determined to be a linear combination of the second parameter of the first linear model and the second parameter of the second linear model with the scaling factor.

[0346] 38. The device according to clause 36, wherein a first parameter of the combined linear model is determined based on the following formula: A = k × α2 + α1; and a second parameter of the combined linear model is determined based on the following formula: B = k × β2 + β1, wherein A is the first parameter of the combined linear model, B is the second parameter of the combined linear model, α1 and α2 are the first parameters of the first linear model and the first parameters of the second linear model, β1 and β2 are the second parameters of the first linear model and the second parameters of the second linear model, and k is the scaling factor.

[0347] 39. The device according to clause 36, wherein a first parameter of the combined linear model is determined based on the following formula: A = (m × α² + p) / n + α₁; and a second parameter of the combined linear model is determined based on the following formula: B = (m × β² + p) / m + β₁; wherein A is the first parameter of the combined linear model, B is the second parameter of the combined linear model, α₁ and α₂ are the first parameters of the first linear model and the first parameters of the second linear model, β₁ and β₂ are the second parameters of the first linear model and the second parameters of the second linear model, m and 1 / n are two scaling factors, and p is a rounding offset.

[0348] 40. The device according to any one of clauses 36 to 39, wherein the one or more processors are further configured to execute the instructions to cause the device to perform:

[0349] The first intermediate variable is determined by adding the product of the first parameter of the combined linear model and the reconstructed sample value of the luminance component to the second parameter of the combined linear model;

[0350] The second intermediate variable is determined by scaling the reconstructed sample values ​​of the second chromaticity component using the scaling factor; and

[0351] The predicted sample value of the first chromaticity component is determined as a linear combination of the first intermediate variable and the second intermediate variable.

[0352] 41. The device according to clause 36, wherein the one or more processors are further configured to execute the instructions to cause the device to perform:

[0353] Downsampling is performed on the first intermediate variable; and the predicted sample value of the first chromaticity component is determined as a linear combination of the second intermediate variable and the downsampled first intermediate variable.

[0354] 42. The device according to clause 40 or 41, wherein the one or more processors are further configured to execute the instructions to cause the device to perform:

[0355] The product is subjected to a bit-right shift; and the first intermediate variable is determined by adding the result of the bit-right shift to the second parameter of the combined linear model.

[0356] 43. The device according to any one of clauses 40 to 42, wherein the predicted sample value of the first chromaticity component is determined based on the following formula:

[0357] pred_Cr' = fdownsample((A×rec_L'>>i)+B)–k×rec_Cb'; where pred_Cr' is the predicted sample value of the first chromaticity component, A is the first parameter of the combined linear model, B is the second parameter of the combined linear model, rec_L' is the reconstructed sample value of the luminance component, rec_Cb' is the reconstructed sample value of the second chromaticity component, k is the scaling factor, i is a non-negative integer value indicating the number of right shifts, and fdownsample() indicates that downsampling is performed.

[0358] 44. The device according to any one of clauses 40 to 42, wherein the predicted sample value of the first chromaticity component is determined based on the following formula:

[0359] pred_Cr' = fdownsample((A×rec_L'>>i)+B)–(m×rec_Cb'+p) / n; where pred_Cr' is the predicted sample value of the first chromaticity component, A is the first parameter of the combined linear model, B is the second parameter of the combined linear model, rec_L' is the reconstructed sample value of the luminance component, rec_Cb' is the reconstructed sample value of the second chromaticity component, m and 1 / n are two scaling factors, p is the rounding offset, i is a non-negative integer value indicating the number of right shifts, and fdownsample() indicates that downsampling is performed.

[0360] 45. The device according to clause 37 or 38, wherein the scaling factor is equal to 1, 0.5 or 2.

[0361] 46. ​​The device according to any one of clauses 35 to 45, wherein the one or more processors are further configured to execute the instructions to cause the device to perform:

[0362] The first index in the first level and the second index in the second level are sent by signaling, wherein the parameter set is jointly indicated by the first index and the second index.

[0363] 47. The device according to clause 46, wherein the first level is an image level and the second level is a coding unit (CU) level.

[0364] 48. The device according to clause 46 or 47, wherein the one or more processors are further configured to execute the instructions to cause the device to perform:

[0365] A subset of the plurality of parameter sets is indicated from the plurality of parameter sets by the first index; and

[0366] The parameter set is indicated from the subset of the plurality of parameter sets by the second index.

[0367] 49. The device according to any one of clauses 35 to 48, wherein the one or more processors are further configured to execute the instructions to cause the device to perform:

[0368] The reconstructed sample value of the first chromaticity component is determined to be equal to the predicted sample value of the first chromaticity component, without signaling the prediction residual and the coded transform block mode (CTP) flag of the first chromaticity component.

[0369] 50. The device according to any one of clauses 35 to 49, wherein the one or more processors are further configured to execute the instructions to cause the device to perform:

[0370] A flag is sent in the bit stream, the flag indicating whether the reconstructed sample value of the first chromaticity component is equal to the predicted sample value of the first chromaticity component;

[0371] In response to the flag indicating that the reconstructed sample value of the first chromaticity component is equal to the predicted sample value of the first chromaticity component,

[0372] Determine that the reconstructed sample value of the first chroma component is equal to the predicted sample value of the first chroma component, without signaling the prediction residual and the Coded Transform Block Mode (CTP) flag of the first chroma component; and

[0373] In response to the flag indicating that the reconstructed sample value of the first chromaticity component is not equal to the predicted sample value of the first chromaticity component,

[0374] Determine whether the prediction residuals of the first chromaticity component of the current block are all zero.

[0375] In response to the prediction residuals of the first chromaticity component of the current block being all zero,

[0376] Determine that the reconstructed sample value of the first chromaticity component is equal to the predicted sample value of the first chromaticity component of the current block; and

[0377] The Coded Transform Block Mode (CTP) flag of the first chromaticity component of the current block is transmitted by signaling, and the value of the first value of the CTP flag indicates that the prediction residuals of the first chromaticity component of the current block are all zero.

[0378] In response to the fact that the prediction residuals of the first chromaticity component of the current block are not all zero,

[0379] The reconstructed sample value of the first chromaticity component is determined to be equal to the predicted sample value of the first chromaticity component plus the reconstruction residual of the first chromaticity component of the current block;

[0380] The Coded Transform Block Pattern (CTP) flag of the first chroma component of the current block is transmitted by signaling, wherein the second value of the CTP flag indicates that the prediction residuals of the first chroma component of the current block are not all zero; and

[0381] The predicted residual of the first chromaticity component of the current block is transmitted by signal.

[0382] 51. The device according to any one of clauses 35 to 50, wherein the one or more processors are further configured to execute the instructions to cause the device to perform:

[0383] A signal is sent to indicate whether the predicted sample value of the first chromaticity component is determined based on the parameter set, the reconstructed sample value of the luminance component, and the reconstructed sample value of the second chromaticity component, or the predicted sample value of the second chromaticity component is determined based on the parameter set, the reconstructed sample value of the luminance component, and the reconstructed sample value of the first chromaticity component.

[0384] In response to the flag indicating that the predicted sample value of the first chromaticity component is determined based on the parameter set, the reconstructed sample value of the luminance component, and the reconstructed sample value of the second chromaticity component,

[0385] First, determine the reconstructed sample values ​​of the luminance component and the reconstructed sample values ​​of the second chromaticity component; and

[0386] Next, the predicted sample value of the first chromaticity component is determined;

[0387] In response to the flag indicating that the predicted sample value of the second chromaticity component is determined based on the parameter set, the reconstructed sample value of the luminance component, and the reconstructed sample value of the first chromaticity component,

[0388] First, determine the reconstructed sample values ​​of the luminance component and the reconstructed sample values ​​of the first chromaticity component; and

[0389] Next, the predicted sample value of the second chromaticity component is determined.

[0390] 52. An apparatus for performing video data processing, the apparatus comprising:

[0391] Memory, the memory being configured to store instructions; and

[0392] One or more processors, said one or more processors being configured to execute the instructions to cause the device to perform:

[0393] Decode the index from the video bitstream;

[0394] A parameter set is determined from multiple parameter sets based on the index, wherein the parameter set includes a scaling factor; and a predicted sample value for the first chromaticity component is determined based on the parameter set, the reconstructed sample value of the luminance component, and the reconstructed sample value of the second chromaticity component.

[0395] 53. The device according to clause 52, wherein the one or more processors are further configured to execute the instructions to cause the device to perform:

[0396] A combined linear model is determined based on the scaling factor, the first linear model, and the second linear model, wherein the first linear model, the second linear model, and the combined linear model each include a first parameter and a second parameter; and

[0397] The predicted sample value of the first chromaticity component is determined based on the combined linear model.

[0398] 54. The device according to clause 53, wherein the one or more processors are further configured to execute the instructions to cause the device to perform:

[0399] The first parameter of the combined linear model is determined as a linear combination of the first parameter of the first linear model and the first parameter of the second linear model with the scaling factor; and

[0400] The second parameter of the combined linear model is determined to be a linear combination of the second parameter of the first linear model and the second parameter of the second linear model with the scaling factor.

[0401] 55. The device according to clause 54, wherein a first parameter of the combined linear model is determined based on the following formula: A = k × α2 + α1; and a second parameter of the combined linear model is determined based on the following formula: B = k × β2 + β1, wherein A is the first parameter of the combined linear model, B is the second parameter of the combined linear model, α1 and α2 are the first parameters of the first linear model and the first parameters of the second linear model, β1 and β2 are the second parameters of the first linear model and the second parameters of the second linear model, and k is the scaling factor.

[0402] 56. The device according to clause 54, wherein a first parameter of the combined linear model is determined based on the following formula: A = (m × α² + p) / n + α₁; and a second parameter of the combined linear model is determined based on the following formula: B = (m × β² + p) / m + β₁; wherein A is the first parameter of the combined linear model, B is the second parameter of the combined linear model, α₁ and α₂ are the first parameters of the first linear model and the first parameters of the second linear model, β₁ and β₂ are the second parameters of the first linear model and the second linear model, m and 1 / n are scaling factors, and p is a rounding offset.

[0403] 57. The device according to any one of clauses 53 to 56, wherein the one or more processors are further configured to execute the instructions to cause the device to perform:

[0404] The first intermediate variable is determined by adding the product of the first parameter of the combined linear model and the reconstructed sample value of the luminance component to the second parameter of the combined linear model;

[0405] The second intermediate variable is determined by scaling the reconstructed sample values ​​of the second chromaticity component with the scaling factor.

[0406] The predicted sample value of the first chromaticity component is determined as a linear combination of the first intermediate variable and the second intermediate variable.

[0407] 58. The device according to clause 57, wherein the one or more processors are further configured to execute the instructions to cause the device to perform:

[0408] Downsampling is performed on the first intermediate variable; and the predicted sample value of the first chromaticity component is determined as a linear combination of the second intermediate variable and the downsampled first intermediate variable.

[0409] 59. The device according to clause 57 or 58, wherein the one or more processors are further configured to execute the instructions to cause the device to perform:

[0410] The product is subjected to a bit-right shift; and the first intermediate variable is determined by adding the result of the bit-right shift to the second parameter of the combined linear model.

[0411] 60. The apparatus according to any one of clauses 57 to 59, wherein the predicted sample value of the first chromaticity component is determined based on the following formula:

[0412] pred_Cr' = fdownsample((A×rec_L'>>i)+B)–k×rec_Cb'; where pred_Cr' is the predicted sample value of the first chromaticity component, A is the first parameter of the combined linear model, B is the second parameter of the combined linear model, rec_L' is the reconstructed sample value of the luminance component, rec_Cb' is the reconstructed sample value of the second chromaticity component, k is the scaling factor, i is a non-negative integer value indicating the number of right shifts, and fdownsample() indicates that downsampling is performed.

[0413] 61. The apparatus according to any one of clauses 57 to 59, wherein the predicted sample value of the first chromaticity component is determined based on the following formula:

[0414] pred_Cr' = fdownsample((A×rec_L'>>i)+B)–(m×rec_Cb'+p) / n; where pred_Cr' is the predicted sample value of the first chromaticity component, A is the first parameter of the combined linear model, B is the second parameter of the combined linear model, rec_L' is the reconstructed sample value of the luminance component, rec_Cb' is the reconstructed sample value of the second chromaticity component, m and 1 / n are two scaling factors, p is the rounding offset, i is a non-negative integer value indicating the number of right shifts, and fdownsample() indicates that downsampling is performed.

[0415] 62. The device according to clause 54 or 55, wherein the scaling factor is equal to 1, 0.5 or 2.

[0416] 63. The device according to any one of clauses 52 to 62, wherein the one or more processors are further configured to execute the instructions to cause the device to perform:

[0417] Decode the first index in the first level and the second index in the second level; and

[0418] The parameter set is determined from the plurality of parameter sets based on the first index and the second index.

[0419] 64. The device according to clause 63, wherein the first level is an image level and the second level is a coding unit (CU) level.

[0420] 65. The device according to clause 63 or 64, wherein the one or more processors are further configured to execute the instructions to cause the device to perform:

[0421] A subset of the plurality of parameter sets is determined from the plurality of parameter sets based on the first index; and

[0422] The parameter set is determined from the subset of the plurality of parameter sets based on the second index.

[0423] 66. The device according to any one of clauses 52 to 65, wherein the one or more processors are further configured to execute the instructions to cause the device to perform:

[0424] For the current block, the reconstructed sample value of the first chroma component is determined to be equal to the predicted sample value of the first chroma component, without decoding the prediction residual and the Coded Transform Block Mode (CTP) flag of the first chroma component.

[0425] 67. The device according to any one of clauses 52 to 66, wherein the one or more processors are further configured to execute the instructions to cause the device to perform:

[0426] Decode the bitstream flag, wherein the flag indicates whether the reconstructed sample value of the first chroma component is equal to the predicted sample value of the first chroma component;

[0427] In response to the flag indicating that the reconstructed sample value of the first chromaticity component is equal to the predicted sample value of the first chromaticity component,

[0428] Determine that the reconstructed sample value of the first chroma component is equal to the predicted sample value of the first chroma component, without decoding the prediction residual and the Coded Transform Block Mode (CTP) flag of the first chroma component; and

[0429] In response to the flag indicating that the reconstructed sample value of the first chromaticity component is not equal to the predicted sample value of the first chromaticity component,

[0430] Decode the CTP flag of the first chroma component of the current block; and

[0431] Based on the CTP flag, determine whether the prediction residual of the first chroma component of the current block is all zero. In response to the CTP flag indicating that the prediction residual of the first chroma component of the current block is all zero, determine that the reconstructed sample value of the first chroma component is equal to the prediction sample value of the first chroma component of the current block, and do not decode the prediction residual of the first chroma component of the current block.

[0432] In response to the fact that the prediction residuals of the first chromaticity component of the current block are not all zero,

[0433] Decode the prediction residual of the first chromaticity component of the current block; and

[0434] The reconstructed sample value of the first chromaticity component is determined to be equal to the predicted sample value of the first chromaticity component plus the reconstruction residual of the first chromaticity component of the current block.

[0435] 68. The device according to any one of clauses 52 to 67, wherein the one or more processors are further configured to execute the instructions to cause the device to perform:

[0436] From the bitstream decoding flag, wherein the flag indicates whether the predicted sample value of the first chroma component is determined based on the parameter set, the reconstructed sample value of the luminance component, and the reconstructed sample value of the second chroma component, or the predicted sample value of the second chroma component is determined based on the parameter set, the reconstructed sample value of the luminance component, and the reconstructed sample value of the first chroma component;

[0437] In response to the flag indicating that the predicted sample value of the first chromaticity component is determined based on the parameter set, the reconstructed sample value of the luminance component, and the reconstructed sample value of the second chromaticity component,

[0438] First, determine the reconstructed sample values ​​of the luminance component and the reconstructed sample values ​​of the second chromaticity component; and

[0439] Next, the predicted sample value of the first chromaticity component is determined;

[0440] In response to the flag indicating that the predicted sample value of the second chromaticity component is determined based on the parameter set, the reconstructed sample value of the luminance component, and the reconstructed sample value of the first chromaticity component,

[0441] First, determine the reconstructed sample values ​​of the luminance component and the reconstructed sample values ​​of the first chromaticity component; and

[0442] Next, the predicted sample value of the second chromaticity component is determined.

[0443] 69. A non-transitory computer-readable medium storing a set of instructions executable by one or more processors of a device to initiate a method for performing video data processing, the method comprising:

[0444] A parameter set is determined from multiple parameter sets, wherein the parameter set includes a scaling factor;

[0445] Based on the parameter set, the reconstructed sample values ​​of the luminance component, and the reconstructed sample values ​​of the second chrominance component, the predicted sample values ​​of the first chrominance component are determined; and

[0446] The index associated with the parameter set is sent via a signal in the bit stream.

[0447] 70. The non-transitory computer-readable medium according to clause 69, wherein determining the predicted sample value of the first chromaticity component based on the parameter set further comprises:

[0448] A combined linear model is determined based on the scaling factor, the first linear model, and the second linear model, wherein the first linear model, the second linear model, and the combined linear model each include a first parameter and a second parameter; and

[0449] The predicted sample value of the first chromaticity component is determined based on the combined linear model.

[0450] 71. The non-transitory computer-readable medium according to clause 70, wherein determining the combined linear model based on the scaling factor, the first linear model, and the second linear model comprises:

[0451] The first parameter of the combined linear model is determined as a linear combination of the first parameter of the first linear model and the first parameter of the second linear model with the scaling factor; and

[0452] The second parameter of the combined linear model is determined to be a linear combination of the second parameter of the first linear model and the second parameter of the second linear model with the scaling factor.

[0453] 72. The non-transitory computer-readable medium according to clause 71, wherein a first parameter of the combined linear model is determined based on the following formula: A = k × α² + α₁; and a second parameter of the combined linear model is determined based on the following formula: B = k × β² + β₁, wherein A is the first parameter of the combined linear model, B is the second parameter of the combined linear model, α₁ and α₂ are the first parameters of the first linear model and the first parameters of the second linear model, β₁ and β₂ are the second parameters of the first linear model and the second parameters of the second linear model, and k is the scaling factor.

[0454] 73. The non-transitory computer-readable medium according to clause 72, wherein a first parameter of the combined linear model is determined based on the following formula: A = (m × α² + p) / n + α₁; and a second parameter of the combined linear model is determined based on the following formula: B = (m × β² + p) / m + β₁; wherein A is the first parameter of the combined linear model, B is the second parameter of the combined linear model, α₁ and α₂ are the first parameters of the first linear model and the first parameters of the second linear model, β₁ and β₂ are the second parameters of the first linear model and the second linear model, m and 1 / n are two scaling factors, and p is a rounding offset.

[0455] 74. The non-transitory computer-readable medium according to any one of clauses 70 to 73, wherein determining the predicted sample value of the first chromaticity component further comprises:

[0456] The first intermediate variable is determined by adding the product of the first parameter of the combined linear model and the reconstructed sample value of the luminance component to the second parameter of the combined linear model;

[0457] The second intermediate variable is determined by scaling the reconstructed sample values ​​of the second chromaticity component using the scaling factor; and

[0458] The predicted sample value of the first chromaticity component is determined as a linear combination of the first intermediate variable and the second intermediate variable.

[0459] 75. The method further comprising: the non-transitory computer-readable medium according to clause 74;

[0460] Downsampling is performed on the first intermediate variable; and the predicted sample value of the first chromaticity component is determined as a linear combination of the second intermediate variable and the downsampled first intermediate variable.

[0461] 76. The non-transitory computer-readable medium according to clause 74 or 75, wherein determining the first intermediate variable by adding the product of the first parameter of the combined linear model and the reconstructed sample value of the luminance component to the second parameter of the combined linear model further comprises:

[0462] The product is subjected to a bit-right shift; and the first intermediate variable is determined by adding the result of the bit-right shift to the second parameter of the combined linear model.

[0463] 77. A non-transitory computer-readable medium according to any one of clauses 74 to 76, wherein the predicted sample value of the first chromaticity component is determined based on the following formula:

[0464] pred_Cr' = fdownsample((A×rec_L'>>i)+B)–k×rec_Cb'; where pred_Cr' is the predicted sample value of the first chromaticity component, A is the first parameter of the combined linear model, B is the second parameter of the combined linear model, rec_L' is the reconstructed sample value of the luminance component, rec_Cb' is the reconstructed sample value of the second chromaticity component, k is the scaling factor, i is a non-negative integer value indicating the number of right shifts, and fdownsample() indicates that downsampling is performed.

[0465] 78. A non-transitory computer-readable medium according to any one of clauses 74 to 76, wherein the predicted sample value of the first chromaticity component is determined based on the following formula:

[0466] pred_Cr' = fdownsample((A×rec_L'>>i)+B)–(m×rec_Cb'+p) / n; where pred_Cr' is the predicted sample value of the first chromaticity component, A is the first parameter of the combined linear model, B is the second parameter of the combined linear model, rec_L' is the reconstructed sample value of the luminance component, rec_Cb' is the reconstructed sample value of the second chromaticity component, m and 1 / n are two scaling factors, p is the rounding offset, i is a non-negative integer value indicating the number of right shifts, and fdownsample() indicates that downsampling is performed.

[0467] 79. The non-transitory computer-readable medium according to clause 71 or 72, wherein the scaling factor is equal to 1, 0.5 or 2.

[0468] 80. A non-transitory computer-readable medium according to any one of items 69 to 79, wherein signaling the index associated with the parameter set in the bit stream further comprises:

[0469] The first index in the first level and the second index in the second level are sent by signaling, wherein the parameter set is jointly indicated by the first index and the second index.

[0470] 81. The non-transitory computer-readable medium according to clause 80, wherein the first level is an image level and the second level is a coding unit (CU) level.

[0471] 82. The non-transitory computer-readable medium according to clause 80 or 81, wherein the method further comprises:

[0472] A subset of the plurality of parameter sets is indicated from the plurality of parameter sets by the first index; and

[0473] The parameter set is indicated from the subset of the plurality of parameter sets by the second index.

[0474] 83. The non-transitory computer-readable medium according to any one of clauses 69 to 82, wherein the method further comprises:

[0475] The reconstructed sample value of the first chromaticity component is determined to be equal to the predicted sample value of the first chromaticity component, without signaling the prediction residual and the coded transform block mode (CTP) flag of the first chromaticity component.

[0476] 84. The non-transitory computer-readable medium according to any one of clauses 69 to 83, wherein the method further comprises:

[0477] A flag is sent in the bit stream, the flag indicating whether the reconstructed sample value of the first chromaticity component is equal to the predicted sample value of the first chromaticity component;

[0478] In response to the flag indicating that the reconstructed sample value of the first chromaticity component is equal to the predicted sample value of the first chromaticity component,

[0479] Determine that the reconstructed sample value of the first chroma component is equal to the predicted sample value of the first chroma component, without signaling the prediction residual and the Coded Transform Block Mode (CTP) flag of the first chroma component; and

[0480] In response to the flag indicating that the reconstructed sample value of the first chromaticity component is not equal to the predicted sample value of the first chromaticity component,

[0481] Determine whether the prediction residuals of the first chromaticity component of the current block are all zero.

[0482] In response to the prediction residuals of the first chromaticity component of the current block being all zero,

[0483] Determine that the reconstructed sample value of the first chromaticity component is equal to the predicted sample value of the first chromaticity component of the current block; and

[0484] The Coded Transform Block Mode (CTP) flag of the first chromaticity component of the current block is transmitted by signaling, and the value of the first value of the CTP flag indicates that the prediction residuals of the first chromaticity component of the current block are all zero.

[0485] In response to the fact that the prediction residuals of the first chromaticity component of the current block are not all zero,

[0486] The reconstructed sample value of the first chromaticity component is determined to be equal to the predicted sample value of the first chromaticity component plus the reconstruction residual of the first chromaticity component of the current block;

[0487] The Coded Transform Block Pattern (CTP) flag of the first chroma component of the current block is transmitted by signaling, wherein the second value of the CTP flag indicates that the prediction residuals of the first chroma component of the current block are not all zero; and

[0488] The predicted residual of the first chromaticity component of the current block is transmitted by signal.

[0489] 85. The non-transitory computer-readable medium according to any one of clauses 69 to 84, wherein the method further comprises:

[0490] A signal is sent to indicate whether the predicted sample value of the first chromaticity component is determined based on the parameter set, the reconstructed sample value of the luminance component, and the reconstructed sample value of the second chromaticity component, or the predicted sample value of the second chromaticity component is determined based on the parameter set, the reconstructed sample value of the luminance component, and the reconstructed sample value of the first chromaticity component.

[0491] In response to the flag indicating that the predicted sample value of the first chromaticity component is determined based on the parameter set, the reconstructed sample value of the luminance component, and the reconstructed sample value of the second chromaticity component,

[0492] First, determine the reconstructed sample values ​​of the luminance component and the reconstructed sample values ​​of the second chromaticity component; and

[0493] Next, the predicted sample value of the first chromaticity component is determined;

[0494] In response to the flag indicating that the predicted sample value of the second chromaticity component is determined based on the parameter set, the reconstructed sample value of the luminance component, and the reconstructed sample value of the first chromaticity component,

[0495] First, determine the reconstructed sample values ​​of the luminance component and the reconstructed sample values ​​of the first chromaticity component; and

[0496] Next, the predicted sample value of the second chromaticity component is determined.

[0497] 86. A non-transitory computer-readable medium storing a set of instructions executable by one or more processors of a device to initiate a method for performing video data processing, the method comprising:

[0498] Decode the index from the video bitstream;

[0499] A parameter set is determined from multiple parameter sets based on the index, wherein the parameter set includes a scaling factor; and

[0500] The predicted sample value of the first chromaticity component is determined based on the parameter set, the reconstructed sample value of the luminance component, and the reconstructed sample value of the second chromaticity component.

[0501] 87. The non-transitory computer-readable medium according to clause 86, wherein determining the predicted sample value of the first chromaticity component based on the parameter set further comprises:

[0502] A combined linear model is determined based on the scaling factor, the first linear model, and the second linear model, wherein the first linear model, the second linear model, and the combined linear model each include a first parameter and a second parameter; and

[0503] The predicted sample value of the first chromaticity component is determined based on the combined linear model.

[0504] 88. The non-transitory computer-readable medium according to clause 87, wherein determining the combined linear model based on the scaling factor, the first linear model, and the second linear model comprises:

[0505] The first parameter of the combined linear model is determined as a linear combination of the first parameter of the first linear model and the first parameter of the second linear model with the scaling factor; and

[0506] The second parameter of the combined linear model is determined as a linear combination of the second parameter of the first linear model and the second parameter of the second linear model with the scaling factor.

[0507] 89. The non-transitory computer-readable medium according to clause 88, wherein a first parameter of the combined linear model is determined based on the following formula: A = k × α² + α₁; and a second parameter of the combined linear model is determined based on the following formula: B = k × β² + β₁; wherein A is the first parameter of the combined linear model, B is the second parameter of the combined linear model, α₁ and α₂ are the first parameters of the first linear model and the first parameters of the second linear model, β₁ and β₂ are the second parameters of the first linear model and the second parameters of the second linear model, and k is the scaling factor.

[0508] 90. The non-transitory computer-readable medium according to clause 88, wherein a first parameter of the combined linear model is determined based on the following formula: A = (m × α² + p) / n + α₁; and a second parameter of the combined linear model is determined based on the following formula: B = (m × β² + p) / m + β₁; wherein A is the first parameter of the combined linear model, B is the second parameter of the combined linear model, α₁ and α₂ are the first parameters of the first linear model and the first parameters of the second linear model, β₁ and β₂ are the second parameters of the first linear model and the second linear model, m and 1 / n are scaling factors, and p is a rounding offset.

[0509] 91. The non-transitory computer-readable medium according to any one of clauses 87 to 90, wherein determining the predicted sample value of the first chromaticity component further comprises:

[0510] The first intermediate variable is determined by adding the product of the first parameter of the combined linear model and the reconstructed sample value of the luminance component to the second parameter of the combined linear model;

[0511] The second intermediate variable is determined by scaling the reconstructed sample values ​​of the second chromaticity component with the scaling factor.

[0512] The predicted sample value of the first chromaticity component is determined as a linear combination of the first intermediate variable and the second intermediate variable.

[0513] 92. The non-transitory computer-readable medium according to clause 91, wherein the method further comprises:

[0514] Downsampling is performed on the first intermediate variable; and the predicted sample value of the first chromaticity component is determined as a linear combination of the second intermediate variable and the downsampled first intermediate variable.

[0515] 93. The non-transitory computer-readable medium according to clause 91 or 92, wherein determining the first intermediate variable by adding the product of the first parameter of the combined linear model and the reconstructed sample value of the luminance component to the second parameter of the combined linear model further comprises:

[0516] The product is subjected to a bit-right shift; and the first intermediate variable is determined by adding the result of the bit-right shift to the second parameter of the combined linear model.

[0517] 94. A non-transitory computer-readable medium according to any one of clauses 91 to 93, wherein the predicted sample value of the first chromaticity component is determined based on the following formula:

[0518] pred_Cr' = fdownsample((A×rec_L'>>i)+B)–k×rec_Cb'; where pred_Cr' is the predicted sample value of the first chromaticity component, A is the first parameter of the combined linear model, B is the second parameter of the combined linear model, rec_L' is the reconstructed sample value of the luminance component, rec_Cb' is the reconstructed sample value of the second chromaticity component, k is the scaling factor, i is a non-negative integer value indicating the number of right shifts, and fdownsample() indicates that downsampling is performed.

[0519] 95. A non-transitory computer-readable medium according to any one of clauses 91 to 93, wherein the predicted sample value of the first chromaticity component is determined based on the following formula:

[0520] pred_Cr' = fdownsample((A×rec_L'>>i)+B)–(m×rec_Cb'+p) / n; where pred_Cr' is the predicted sample value of the first chromaticity component, A is the first parameter of the combined linear model, B is the second parameter of the combined linear model, rec_L' is the reconstructed sample value of the luminance component, rec_Cb' is the reconstructed sample value of the second chromaticity component, m and 1 / n are two scaling factors, p is the rounding offset, i is a non-negative integer value indicating the number of right shifts, and fdownsample() indicates that downsampling is performed.

[0521] 96. The non-transitory computer-readable medium according to clause 88 or 89, wherein the scaling factor is equal to 1, 0.5 or 2.

[0522] 97. The non-transitory computer-readable medium according to any one of clauses 86 to 96, wherein decoding the index from the video bitstream further comprises:

[0523] Decode the first index in the first level and the second index in the second level; and

[0524] The parameter set is determined from the plurality of parameter sets based on the first index and the second index.

[0525] 98. The non-transitory computer-readable medium according to clause 97, wherein the first level is an image level and the second level is a coding unit (CU) level.

[0526] 99. The non-transitory computer-readable medium according to clause 97 or 98, wherein the method further comprises:

[0527] A subset of the plurality of parameter sets is determined from the plurality of parameter sets based on the first index; and

[0528] The parameter set is determined from the subset of the plurality of parameter sets based on the second index.

[0529] 100. The non-transitory computer-readable medium according to any one of clauses 86 to 99, wherein the method further comprises:

[0530] For the current block, the reconstructed sample value of the first chroma component is determined to be equal to the predicted sample value of the first chroma component, without decoding the prediction residual and the Coded Transform Block Mode (CTP) flag of the first chroma component.

[0531] 101. The non-transitory computer-readable medium according to any one of clauses 86 to 100, wherein the method further comprises:

[0532] Decode the bitstream flag, wherein the flag indicates whether the reconstructed sample value of the first chroma component is equal to the predicted sample value of the first chroma component;

[0533] In response to the flag indicating that the reconstructed sample value of the first chromaticity component is equal to the predicted sample value of the first chromaticity component,

[0534] Determine that the reconstructed sample value of the first chroma component is equal to the predicted sample value of the first chroma component, without decoding the prediction residual and the Coded Transform Block Mode (CTP) flag of the first chroma component; and

[0535] In response to the flag indicating that the reconstructed sample value of the first chromaticity component is not equal to the predicted sample value of the first chromaticity component,

[0536] Decode the CTP flag of the first chroma component of the current block; and

[0537] Based on the CTP flag, it is determined whether the prediction residuals of the first chromaticity component of the current block are all zero. In response to the CTP flag indicating that the prediction residuals of the first chromaticity component of the current block are all zero...

[0538] For the current block, the reconstructed sample value of the first chromaticity component is determined to be equal to the predicted sample value of the first chromaticity component, and the predicted residual of the first chromaticity component of the current block is not decoded;

[0539] In response to the fact that the prediction residuals of the first chromaticity component of the current block are not all zero,

[0540] Decode the prediction residual of the first chromaticity component of the current block; and determine that the reconstructed sample value of the first chromaticity component is equal to the prediction sample value of the first chromaticity component plus the reconstructed residual of the first chromaticity component of the current block.

[0541] 102. The non-transitory computer-readable medium according to any one of clauses 86 to 101, wherein the method further comprises:

[0542] From the bitstream decoding flag, wherein the flag indicates whether the predicted sample value of the first chroma component is determined based on the parameter set, the reconstructed sample value of the luminance component, and the reconstructed sample value of the second chroma component, or the predicted sample value of the second chroma component is determined based on the parameter set, the reconstructed sample value of the luminance component, and the reconstructed sample value of the first chroma component;

[0543] In response to the flag indicating that the predicted sample value of the first chromaticity component is determined based on the parameter set, the reconstructed sample value of the luminance component, and the reconstructed sample value of the second chromaticity component,

[0544] First, determine the reconstructed sample values ​​of the luminance component and the reconstructed sample values ​​of the second chromaticity component; and

[0545] Next, the predicted sample value of the first chromaticity component is determined; and

[0546] In response to the flag indicating that the predicted sample value of the second chromaticity component is determined based on the parameter set, the reconstructed sample value of the luminance component, and the reconstructed sample value of the first chromaticity component,

[0547] First, determine the reconstructed sample values ​​of the luminance component and the reconstructed sample values ​​of the first chromaticity component; and

[0548] Next, the predicted sample value of the second chromaticity component is determined.

[0549] In some embodiments, a non-transitory computer-readable storage medium containing instructions that can be executed by means of an apparatus (such as the disclosed encoder and decoder) to perform the methods described above. Common forms of non-transitory media include, for example, floppy disks, flexible disks, hard disks, solid-state drives, magnetic tape or any other magnetic data storage media, CD-ROMs, any other optical data storage media, any physical media with a perforated pattern, RAM, PROM, EPROM, FLASH-EPROM or any other flash memory, NVRAM, cache, registers, any other memory chips or cassette memories, and their network versions. The apparatus may include one or more processors (CPUs), input / output interfaces, network interfaces, and / or memory.

[0550] It should be noted that relational terms such as “first” and “second” in this document are used only to distinguish one entity or operation from another, and do not require or imply any actual relationship or order between these entities or operations. Furthermore, words such as “including,” “having,” and “contains,” as well as other similar forms, are intended to have the same meaning and are open-ended, as one or more items following any of these words are not intended to exhaustively list such items or be limited to those listed.

[0551] As used herein, unless otherwise expressly stated, the term "or" covers all possible combinations unless impractical. For example, if it is specified that a database may include A or B, then unless otherwise expressly stated or impractical, the database may include A, or B, or A and B. As a second example, if it is specified that a database may include A, B, or C, then unless otherwise expressly stated or impractical, the database may include A, or B, or C, or A and B, or A and C, or B and C, or A and B and C.

[0552] It should be understood that the above embodiments can be implemented by hardware, software (program code), or a combination of hardware and software. If implemented by software, it can be stored in the above-described computer-readable medium. The software, when executed by a processor, can perform the disclosed methods. The computing units and other functional units described in this disclosure can be implemented by hardware, or software, or a combination of hardware and software. Those skilled in the art will also understand that multiple modules / units in the above modules / units can be combined into one module / unit, and each module / unit in the above modules / units can be further divided into multiple sub-modules / sub-units.

[0553] In the foregoing specification, embodiments have been described with reference to numerous specific details, which may vary depending on the implementation. Certain adjustments and modifications may be made to the described embodiments. Other embodiments will be apparent to those skilled in the art in consideration of the specification and practice of the invention disclosed herein. It is intended that the specification and embodiments be considered exemplary only, and the true scope and spirit of the invention are indicated by the appended claims. The order of steps shown in the figures is also intended for illustrative purposes only and is not intended to limit to any particular order of steps. Thus, those skilled in the art will understand that these steps may be performed in different orders while achieving the same method.

[0554] Exemplary embodiments have been disclosed in the accompanying drawings and description. However, many variations and modifications can be made to these embodiments. Therefore, although specific terminology is used, it is used in a general and descriptive sense only and not for limiting purposes.

Claims

1. A video encoding method, comprising: Determine the parameter set from multiple parameter sets; The predicted sample value of the first chromaticity component is determined based on the parameter set, the reconstructed sample value of the luminance component, and the reconstructed sample value of the second chromaticity component. as well as The index associated with the parameter set is sent via signal in the bit stream; The predicted sample value of the first chromaticity component is calculated based on a combined linear model. The combined linear model is determined based on a defined parameter set, a first linear model, and a second linear model. The first linear model includes a first parameter and a second parameter of the first linear model; the second linear model includes a first parameter and a second parameter of the second linear model; the first coefficient of the combined linear model is determined based on a linear combination of the first coefficient of the first linear model, the first coefficient of the second linear model, and the parameters in the defined parameter set; the second coefficient of the combined linear model is determined based on a linear combination of the second coefficient of the first linear model, the second coefficient of the second linear model, and the parameters in the defined parameter set. The predicted sample value of the first chromaticity component is determined based on the following formula: pred_Cr' = f downsample ((A × rec_L' >> i) + B) – (m × rec_Cb' + p) / n; Where, pred_Cr' is the predicted sample value of the first chromaticity component, A is the first coefficient of the combined linear model, B is the second coefficient of the combined linear model, rec_L' is the reconstructed sample value of the luminance component, rec_Cb' is the reconstructed sample value of the second chromaticity component, m, n, and p are three parameters in the determined parameter set, and i is a non-negative integer value indicating the bit right shift. f downsample () indicates that downsampling is performed.

2. The method according to claim 1, wherein, The first coefficient of the combined linear model is determined based on the following formula: A = (m × α² + p) / n + α1; and the second coefficient of the combined linear model is determined based on the following formula: B = (m × β² + p) / n + β1; where A is the first coefficient of the combined linear model, B is the second coefficient of the combined linear model, α1 and α2 are the first coefficients of the first linear model and the first coefficients of the second linear model, β1 and β2 are the second coefficients of the first linear model and the second linear model, and m, n and p are three parameters in the determined parameter set.

3. The method according to claim 2, wherein, The values ​​of m, n, and p in the determined parameter set satisfy: m=1, n=2, and p=1; Or, m=1, n=1 and p=0; Alternatively, m=2, n=1, and p=0.

4. The method according to claim 1, wherein, Sending the index associated with the parameter set via a signal in the bit stream further includes: The first index in the first level and the second index in the second level are sent by signaling, wherein the parameter set is jointly indicated by the first index and the second index.

5. The method according to claim 4, wherein, The first level is the image level, and the second level is the coding unit (CU) level.

6. The method according to claim 4, further comprising: A subset of the plurality of parameter sets is indicated from the plurality of parameter sets by the first index; as well as The parameter set is indicated from the subset of the plurality of parameter sets by the second index.

7. A video decoding method, comprising: Decode the index from the video bitstream; The parameter set is determined from multiple parameter sets based on the index; as well as The predicted sample value of the first chromaticity component is determined based on the parameter set, the reconstructed sample value of the luminance component, and the reconstructed sample value of the second chromaticity component. The predicted sample value of the first chromaticity component is calculated using a combined linear model, which is determined based on a defined parameter set, a first linear model, and a second linear model. The first linear model includes a first parameter and a second parameter of the first linear model; the second linear model includes a first parameter and a second parameter of the second linear model; the first coefficient of the combined linear model is determined based on a linear combination of the first coefficient of the first linear model, the first coefficient of the second linear model, and the parameters in the defined parameter set; the second coefficient of the combined linear model is determined based on a linear combination of the second coefficient of the first linear model, the second coefficient of the second linear model, and the parameters in the defined parameter set. The predicted sample value of the first chromaticity component is determined based on the following formula, including: pred_Cr' = f downsample ((A × rec_L' >> i) + B) – k × rec_Cb'; where pred_Cr' is the predicted sample value of the first chromaticity component, A is the first coefficient of the combined linear model, B is the second coefficient of the combined linear model, rec_L' is the reconstructed sample value of the luminance component, rec_Cb' is the reconstructed sample value of the second chromaticity component, k is a parameter in the determined parameter set, and i is a non-negative integer value indicating the bit right shift. f downsample () indicates that downsampling is performed.

8. The method according to claim 7, wherein, The first coefficient of the combined linear model is determined based on the following formula: A = k × α2 + α1; and the second coefficient of the combined linear model is determined based on the following formula: B = k × β2 + β1; where A is the first coefficient of the combined linear model, B is the second coefficient of the combined linear model, α1 and α2 are the first coefficients of the first linear model and the first coefficients of the second linear model, β1 and β2 are the second coefficients of the first linear model and the second linear model, and k is a parameter in the determined parameter set.

9. The method according to claim 7, wherein, The first coefficient of the combined linear model is determined based on the following formula: A = (m × α² + p) / n + α1; and the second coefficient of the combined linear model is determined based on the following formula: B = (m × β² + p) / n + β1; where A is the first coefficient of the combined linear model, B is the second coefficient of the combined linear model, α1 and α2 are the first coefficients of the first linear model and the first coefficients of the second linear model, β1 and β2 are the second coefficients of the first linear model and the second linear model, and m, n and p are three parameters in the determined parameter set.

10. The method according to claim 7, wherein, The predicted sample value of the first chromaticity component is determined based on the following formula: pred_Cr' = f downsample ((A × rec_L' >> i) + B) – (m × rec_Cb' + p) / n; where pred_Cr' is the predicted sample value of the first chromaticity component, A is the first coefficient of the combined linear model, B is the second coefficient of the combined linear model, rec_L' is the reconstructed sample value of the luminance component, rec_Cb' is the reconstructed sample value of the second chromaticity component, m, n, and p are three parameters in the determined parameter set, and i is a non-negative integer value indicating the bit right shift. f downsample () indicates that downsampling is performed.

11. The method according to claim 9, wherein, The values ​​of m, n, and p in the determined parameter set satisfy: m=1, n=2, and p=1; Or, m=1, n=1 and p=0; Alternatively, m=2, n=1, and p=0.

12. The method according to claim 7, wherein, Decoding the index from the video bitstream further includes: Decode the first index in the first level and the second index in the second level; and The parameter set is determined from the plurality of parameter sets based on the first index and the second index.

13. The method according to claim 12, wherein, The first level is the image level, and the second level is the coding unit (CU) level.

14. The method of claim 12, further comprising: A subset of the plurality of parameter sets is determined from the plurality of parameter sets based on the first index; as well as The parameter set is determined from the subset of the plurality of parameter sets based on the second index.

15. The method of claim 7, further comprising: For the current block, the reconstructed sample value of the first chroma component is determined to be equal to the predicted sample value of the first chroma component, without decoding the prediction residual of the first chroma component and the coded transform block mode (CTP) flag.

16. The method of claim 7, further comprising: Decode the bitstream flag, wherein the flag indicates whether the reconstructed sample value of the first chroma component is equal to the predicted sample value of the first chroma component; In response to the flag indicating that the reconstructed sample value of the first chromaticity component is equal to the predicted sample value of the first chromaticity component, Determine that the reconstructed sample value of the first chroma component is equal to the predicted sample value of the first chroma component, without decoding the prediction residual and the coded transform block mode (CTP) flag of the first chroma component; and In response to the flag indicating that the reconstructed sample value of the first chromaticity component is not equal to the predicted sample value of the first chromaticity component, Decode the CTP flag of the first chroma component of the current block; and Based on the CTP flag, determine whether the prediction residuals of the first chromaticity component of the current block are all zero. In response to the CTP flag indicating that the prediction residuals of the first chromaticity component of the current block are all zero, The reconstructed sample value of the first chromaticity component is determined to be equal to the predicted sample value of the first chromaticity component of the current block, without decoding the predicted residual of the first chromaticity component of the current block; In response to the fact that the prediction residuals of the first chromaticity component of the current block are not all zero, Decode the prediction residual of the first chromaticity component of the current block; and The reconstructed sample value of the first chromaticity component is determined to be equal to the predicted sample value of the first chromaticity component plus the reconstruction residual of the first chromaticity component of the current block.

17. The method of claim 7, further comprising: From the bitstream decoding flag, wherein the flag indicates whether the predicted sample value of the first chroma component is determined based on the parameter set, the reconstructed sample value of the luminance component, and the reconstructed sample value of the second chroma component, or the predicted sample value of the second chroma component is determined based on the parameter set, the reconstructed sample value of the luminance component, and the reconstructed sample value of the first chroma component; In response to the flag indicating that the predicted sample value of the first chromaticity component is determined based on the parameter set, the reconstructed sample value of the luminance component, and the reconstructed sample value of the second chromaticity component, First, determine the reconstructed sample values ​​of the luminance component and the reconstructed sample values ​​of the second chromaticity component; and Next, the predicted sample value of the first chromaticity component is determined; and In response to the flag indicating that the predicted sample value of the second chromaticity component is determined based on the parameter set, the reconstructed sample value of the luminance component, and the reconstructed sample value of the first chromaticity component, First, determine the reconstructed sample values ​​of the luminance component and the reconstructed sample values ​​of the first chromaticity component; and Next, the predicted sample value of the second chromaticity component is determined.

18. An apparatus for performing video data processing, the apparatus comprising: A memory configured to store instructions; as well as One or more processors, said one or more processors being configured to execute the instructions to cause the device to perform: Decode the index from the video bitstream; A parameter set is determined from multiple parameter sets based on the index; and The predicted sample value of the first chromaticity component is determined based on the parameter set, the reconstructed sample value of the luminance component, and the reconstructed sample value of the second chromaticity component. The predicted sample value of the first chromaticity component is calculated using a combined linear model, which is determined based on a defined parameter set, a first linear model, and a second linear model. The first linear model includes a first parameter and a second parameter of the first linear model; the second linear model includes a first parameter and a second parameter of the second linear model; the first coefficient of the combined linear model is determined based on a linear combination of the first coefficient of the first linear model, the first coefficient of the second linear model, and the parameters in the defined parameter set; the second coefficient of the combined linear model is determined based on a linear combination of the second coefficient of the first linear model, the second coefficient of the second linear model, and the parameters in the defined parameter set. The predicted sample value of the first chromaticity component is determined based on the following formula: pred_Cr' = f downsample ((A × rec_L' >> i) + B) – (m × rec_Cb' + p) / n; Where, pred_Cr' is the predicted sample value of the first chromaticity component, A is the first coefficient of the combined linear model, B is the second coefficient of the combined linear model, rec_L' is the reconstructed sample value of the luminance component, rec_Cb' is the reconstructed sample value of the second chromaticity component, m, n, and p are three parameters in the determined parameter set, and i is a non-negative integer value indicating the bit right shift. f downsample () indicates that downsampling is performed.

19. The device according to claim 18, wherein, The one or more processors are also configured to execute the instructions to cause the device to perform: Decode the first index in the first level and the second index in the second level; as well as The parameter set is determined from the plurality of parameter sets based on the first index and the second index.

20. The device according to claim 18, wherein, The one or more processors are also configured to execute the instructions to cause the device to perform: For the current block, the reconstructed sample value of the first chroma component is determined to be equal to the predicted sample value of the first chroma component, without decoding the prediction residual of the first chroma component and the coded transform block mode (CTP) flag.

21. A computer-readable storage medium storing an instruction set and a video bitstream, the instruction set being executable by one or more processors to generate the video bitstream, the method comprising: Decode the index from the video bitstream; The parameter set is determined from multiple parameter sets based on the index; as well as The predicted sample value of the first chromaticity component is determined based on the parameter set, the reconstructed sample value of the luminance component, and the reconstructed sample value of the second chromaticity component. The predicted sample value of the first chromaticity component is calculated using a combined linear model, which is determined based on a defined parameter set, a first linear model, and a second linear model. The first linear model includes a first parameter and a second parameter of the first linear model; the second linear model includes a first parameter and a second parameter of the second linear model; the first coefficient of the combined linear model is determined based on a linear combination of the first coefficient of the first linear model, the first coefficient of the second linear model, and the parameters in the defined parameter set; the second coefficient of the combined linear model is determined based on a linear combination of the second coefficient of the first linear model, the second coefficient of the second linear model, and the parameters in the defined parameter set. The predicted sample value of the first chromaticity component is determined based on the following formula: pred_Cr' = f downsample ((A × rec_L' >> i) + B) – (m × rec_Cb' + p) / n; Where, pred_Cr' is the predicted sample value of the first chromaticity component, A is the first coefficient of the combined linear model, B is the second coefficient of the combined linear model, rec_L' is the reconstructed sample value of the luminance component, rec_Cb' is the reconstructed sample value of the second chromaticity component, m, n, and p are three parameters in the determined parameter set, and i is a non-negative integer value indicating the bit right shift. f downsample () indicates that downsampling is performed.

22. The computer-readable storage medium according to claim 21, wherein, Decoding the index from the video bitstream further includes: Decode the first index in the first level and the second index in the second level; and The parameter set is determined from the plurality of parameter sets based on the first index and the second index.

23. The computer-readable storage medium according to claim 21, wherein, The instruction set can be executed by one or more processors of the device to enable the device to also perform: For the current block, the reconstructed sample value of the first chroma component is determined to be equal to the predicted sample value of the first chroma component, without decoding the prediction residual of the first chroma component and the coded transform block mode (CTP) flag.

Citation Information

Patent Citations

  • Linear model chroma intra prediction for video coding

    US20180077426A1

  • Parameter derivation for intra prediction

    WO2020108591A1