Method and apparatus for video coding and decoding in 4: 4: 4 chroma format

By applying adaptive color space transformation, brightness mapping and chroma scaling technology to video data, the problem of low coding efficiency of 4:4:4 chroma format video data is solved, achieving more efficient encoding and decoding, and enhancing the High fidelity support.

CN118573897APending Publication Date: 2024-08-30BEIJING DAJIA INTERNET INFORMATION TECH CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202410697706.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Priority Date
2019-10-18
Filing Date
2020-10-12
Publication Date
2024-08-30

AI Technical Summary

Technical Problem

How to encode and decode video data in 4:4:4 chroma format more efficiently while maintaining the image quality of video data, especially when redundancy exists. It is difficult for existing technology to effectively utilize the correlation between video frames. Make coding improvements.

Method used

Adaptive Color Space Transform (ACT) and Luminance Mapping and Chroma Scaling (LMCS) techniques are used to decode the video data by detecting and applying inverse adaptive color space transform and inverse luminance mapping in the video data, exploiting the correlation in the video frames. Code optimization.

Benefits of technology

It improves the coding efficiency of video data, reduces redundancy, enhances support for high fidelity, and significantly improves coding performance especially in applications where color information needs to be preserved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118573897A_ABST
    Figure CN118573897A_ABST
Patent Text Reader

Abstract

A method in which an electronic device performs video encoding includes: determining whether a luma mapping (LMCS) having chroma scaling has been applied to a coding unit in a slice; determining whether one coding unit in the slice has been coded using adaptive color space transform (ACT); in accordance with a determination that the coding unit has been encoded using ACT, applying inverse ACT to convert a luma residual and a chroma residual of the coding unit from one transformed color space of the video data to an original color space; and after applying the inverse ACT to convert a luma residual and a chroma residual of the coding unit, according to a determination that an LMCS has been applied to the coding unit in the slice, determining that the LMCS has been applied to the coding unit in the slice, intermediate luma samples are derived based on luma residuals of the coding units in the original color space, inverse luma mapping is performed using the intermediate luma samples, and inverse scaling is performed using chroma residuals of the coding units in the original color space.
Need to check novelty before this filing date? Find Prior Art

Description

[0001] This application is a divisional application of the invention patent application with application number 202080083162.X and invention name “Method and device for video encoding and decoding in 4:4:4 chroma format”, which is the Chinese national phase application of the international patent application PCT / US2020 / 055264 filed on October 12, 2020. This international patent application is based on and claims priority to provisional patent application No. 62 / 914,282 filed on October 11, 2019 and is based on and claims priority to provisional patent application No. 62 / 923,390 filed on October 18, 2019. The entire contents of these two patent applications are incorporated herein by reference. Technical Field

[0002] The present application relates generally to video data encoding and compression, and in particular to a method and system for performing adaptive color space transform (ACT) using chroma residual scaling. Background Art

[0003] Digital video is supported by various electronic devices, such as digital televisions, laptop or desktop computers, tablet computers, digital cameras, digital recording devices, digital media players, video game consoles, smart phones, video teleconferencing devices, video streaming devices, etc. Electronic devices transmit, receive, encode, decode and / or store digital video data by implementing video compression / decompression standards defined by MPEG-4, ITU-T H.263, ITU-TH.264 / MPEG-4Part 10, Advanced Video Codec AVC, High Efficiency Video Codec HEVC and General Video Codec VVC standards. Video compression typically includes performing spatial (intra-frame) prediction and / or temporal (inter-frame) prediction to reduce or remove the inherent redundancy in video data. For block-based video coding, a video frame is partitioned into one or more slices, each slice having multiple video blocks, which may also be referred to as coding tree units CTU. Each CTU may contain a coding unit CU, or may be recursively split into smaller CUs until a predefined minimum CU size is reached. Each CU (also called a leaf-CU) contains one or more transform units TU, and each CU also contains one or more prediction units PU. Each CU can be encoded in intra, inter, or IBC mode. Video blocks in an intra-coded (I) slice of a video frame are encoded using spatial predictions of reference samples in neighboring blocks within the same video frame. Video blocks in an inter-coded (P or B) slice of a video frame can use spatial predictions of reference samples in neighboring blocks within the same video frame, or temporal predictions of reference samples in other previous and / or future reference video frames.

[0004] A predictive block for the current video block to be encoded is obtained based on spatial or temporal prediction of a previously encoded reference block (e.g., a neighboring block). The process of finding a reference block can be accomplished by a block matching algorithm. The residual data representing the pixel difference between the current block to be encoded and the predictive block is called a residual block or prediction error. The inter-coded block is encoded based on a motion vector pointing to a reference block in a reference frame forming the predictive block and a residual block. The process of determining a motion vector is generally referred to as motion estimation. The intra-coded block is encoded based on an intra-frame prediction mode and a residual block. For further compression, the residual block is transformed from the pixel domain to a transform domain, such as a frequency domain, to obtain residual transform coefficients, which can then be quantized. The quantized transform coefficients initially arranged in a two-dimensional array can be scanned to produce a one-dimensional vector of transform coefficients, and then entropy encoded into a video bitstream to achieve greater compression.

[0005] The coded video bitstream is then stored in a computer-readable storage medium (e.g., flash memory) for access by another electronic device with digital video capabilities, or is directly transmitted to the electronic device by wire or wireless. The electronic device then performs video decompression (which is the reverse process of the above-mentioned video compression) by, for example, parsing the coded video bitstream to obtain syntax elements from the bitstream, and reconstructing digital video data from the coded video bitstream into its original format based at least in part on the syntax elements obtained from the bitstream, and presents the reconstructed digital video data on a display of the electronic device.

[0006] As digital video quality increases from high definition to 4Kx2K or even 8Kx4K, the amount of video data to be encoded / decoded increases exponentially. It is an ongoing challenge to encode / decode video data more efficiently while maintaining the image quality of the decoded video data.

[0007] Some video content (e.g., screen content video) is encoded in a 4:4:4 chroma format, where all three components (luminance component and two chroma components) have the same resolution. Although the 4:4:4 chroma format includes more redundancy than the 4:2:0 chroma format and the 4:2:2 chroma format (which is not friendly to achieving good compression efficiency), the 4:4:4 chroma format is still the preferred encoding format for many applications as follows, in which high fidelity is required to preserve color information in the decoded video, such as sharp edges. Given the redundancy present in the 4:4:4 chroma format video, there is evidence that significant coding improvements can be achieved by exploiting the correlation between the three color components of the 4:4:4 video (e.g., Y, Cb, and Cr in the YCbCr domain; or G, B, and R in the RGB domain). Due to these correlations, during the development of the HEVC screen content coding SCC extension, the Adaptive Color Space Transform ACT tool was used to exploit the correlation between the three color components. Summary of the invention

[0008] The present application describes implementations related to video data encoding and decoding, and more particularly, to systems and methods for performing adaptive color space transforms ACT using luma mapping and chroma scaling LMCS.

[0009] According to the first aspect of the present application, a method for decoding video data includes: receiving a first syntax element in a slice header of a slice from a bitstream, the first syntax element indicating whether a luma mapping LMCS with chroma scaling is applied to a coding unit in the slice; receiving a second syntax element for the coding unit, the second syntax element indicating whether the coding unit has been encoded using an adaptive color space transform ACT; if the second syntax element has a non-zero value, decoding the coding unit by applying an inverse ACT to convert a luma residual and a chroma residual of the coding unit from a transformed color space of video data to an original color space; and after performing the inverse ACT, if the first syntax element has a non-zero value, decoding the coding unit by performing inverse luma mapping on the luma samples of the coding unit and performing inverse scaling on the chroma residual of the coding unit.

[0010] According to the second aspect of the present application, a method for decoding video data includes: receiving video data corresponding to a coding unit from a bitstream, wherein the coding unit is encoded by an intra-frame prediction mode; receiving a first syntax element from the video data, wherein the first syntax element indicates whether the coding unit has been encoded using an adaptive color space transform ACT; if the first syntax element has a zero value, receiving one or more syntax elements from the video data, wherein the one or more syntax elements indicate whether the chrominance component of the coding unit has been encoded using a block differential pulse code modulation BDPCM; if the first syntax element has a non-zero value, assigning a default value to the one or more syntax elements associated with the BDPCM; and decoding the coding unit from the video data according to the first syntax element associated with the ACT and the one or more syntax elements associated with the BDPCM.

[0011] According to a third aspect of the present application, an electronic device includes one or more processing units, a memory, and a plurality of programs stored in the memory. When the programs are executed by the one or more processing units, the electronic device executes the method for decoding video data as described above.

[0012] According to a fourth aspect of the present application, a non-transitory computer-readable storage medium stores a plurality of programs for execution by an electronic device having one or more processing units. When the programs are executed by the one or more processing units, the electronic device executes the method for decoding video data as described above. BRIEF DESCRIPTION OF THE DRAWINGS

[0013] The accompanying drawings, which are included to provide a further understanding of the implementations and are incorporated in and constitute a part of the specification, illustrate the described implementations and together with the description serve to explain the basic principles. Like reference numerals refer to corresponding parts.

[0014] Figure 1 is a block diagram illustrating an exemplary video encoding and decoding system according to some implementations of the present disclosure.

[0015] Figure 2 is a block diagram illustrating an exemplary video encoder according to some implementations of the present disclosure.

[0016] Figure 3 is a block diagram illustrating an exemplary video decoder according to some implementations of the present disclosure.

[0017] Figures 4A to 4E is a block diagram illustrating how a frame may be recursively partitioned into multiple video blocks of different sizes and shapes according to some implementations of the present disclosure.

[0018] Figure 5A and 5B is a block diagram illustrating an example of applying an adaptive color space conversion (ACT) technique to convert a residual between an RGB color space and a YCgCo color space according to some implementations of the present disclosure.

[0019] Figure 6 is a block diagram of applying a luma mapping LMCS technique with chroma scaling in an exemplary video data decoding process according to some implementations of the present disclosure.

[0020] Figure 7 is a block diagram illustrating an exemplary video decoding process according to some implementations of the present disclosure, by which a video decoder implements an Inverse Adaptive Color Space Transform (ACT) technique.

[0021] Fig. 8A and 8B is a block diagram illustrating an exemplary video decoding process according to some implementations of the present disclosure, by which a video decoder implements the inverse adaptive color space transform ACT and luma mapping with chroma scaling LMCS techniques.

[0022] Fig. 9 is a block diagram illustrating exemplary decoding logic between performing adaptive color space transform ACT and block differential pulse code modulation BDPCM according to some implementations of the present disclosure.

[0023] Fig.10 is a flow chart illustrating an exemplary process by which a video decoder decodes video data by performing an inverse adaptive color space transform with chroma scaling, according to some implementations of the present disclosure. DETAILED DESCRIPTION

[0024] Reference will now be made in detail to specific implementations, examples of which are illustrated in the accompanying drawings. In the following detailed description, numerous non-limiting specific details are set forth to aid in understanding the subject matter presented herein. However, it will be apparent to one of ordinary skill in the art that various alternatives may be used without departing from the scope of the claims, and that the subject matter may be practiced without these specific details. For example, it will be apparent to one of ordinary skill in the art that the subject matter presented herein may be implemented on many types of electronic devices having digital video capabilities.

[0025] Figure 1 is a block diagram illustrating an exemplary system 10 for encoding and decoding video blocks in parallel according to some implementations of the present disclosure. Figure 1As shown in , system 10 includes a source device 12 that generates and encodes video data for later decoding by a destination device 14. Source device 12 and destination device 14 may include any of a variety of electronic devices, including desktop or laptop computers, tablet computers, smart phones, set-top boxes, digital televisions, cameras, display devices, digital media players, video game consoles, video streaming devices, etc. In some implementations, source device 12 and destination device 14 are equipped with wireless communication capabilities.

[0026] In some implementations, the destination device 14 may receive the encoded video data to be decoded via the link 16. The link 16 may include any type of communication medium or device capable of moving the encoded video data from the source device 12 to the destination device 14. In one example, the link 16 may include a communication medium so that the source device 12 can transmit the encoded video data directly to the destination device 14 in real time. The encoded video data may be modulated according to a communication standard (such as a wireless communication protocol) and transmitted to the destination device 14. The communication medium may include any wireless or wired communication medium, such as a radio frequency RF spectrum, or one or more physical transmission lines. The communication medium may form a portion of a packet-based network (such as a local area network, a wide area network, or a global network such as the Internet). The communication medium may include a router, a switch, a base station, or any other equipment that may be used to facilitate communication from the source device 12 to the destination device 14.

[0027] In some other implementations, the encoded video data may be transferred from the output interface 22 to the storage device 32. Subsequently, the destination device 14 may access the encoded video data in the storage device 32 via the input interface 28. The storage device 32 may include any of a variety of distributed or locally accessed data storage media, such as a hard drive, a Blu-ray disc, a DVD, a CD-ROM, a flash memory, a volatile or non-volatile memory, or any other suitable digital storage medium for storing encoded video data. In another example, the storage device 32 may correspond to a file server or another intermediate storage device that can store the encoded video data generated by the source device 12. The destination device 14 may access the stored video data from the storage device 32 via streaming or downloading. The file server may be any type of computer capable of storing the encoded video data and transmitting the encoded video data to the destination device 14. Exemplary file servers include a web server (e.g., for a website), an FTP server, a network attached storage (NAS) device, or a local disk drive. Destination device 14 may access the encoded video data through any standard data connection suitable for accessing encoded video data stored on a file server, including a wireless channel (e.g., a Wi-Fi connection), a wired connection (e.g., DSL, cable modem, etc.), or a combination of both. The transmission of the encoded video data from storage device 32 may be a streaming transmission, a download transmission, or a combination of both.

[0028] like Figure 1 As shown in , source device 12 includes video source 18, video encoder 20 and output interface 22. Video source 18 may include a source such as a video capture device, such as a video camera, a video archive containing previously captured video, a video feed interface receiving video from a video content provider, and / or a computer graphics system for generating computer graphics data as source video, or a combination of such sources. As an example, if video source 18 is a video camera of a security monitoring system, source device 12 and destination device 14 may form a camera phone or a video phone. However, the implementation described in this application may be generally applicable to video encoding and decoding, and may be applicable to wireless and / or wired applications.

[0029] The captured, pre-captured or computer-generated video may be encoded by the video encoder 20. The encoded video data may be transmitted directly to the destination device 14 via the output interface 22 of the source device 12. The encoded video data may also (or alternatively) be stored on a storage device 32 for later access by the destination device 14 or other devices for decoding and / or playback. The output interface 22 may further include a modem and / or a transmitter.

[0030] Destination device 14 includes input interface 28, video decoder 30, and display device 34. Input interface 28 may include a receiver and / or a modem and receives encoded video data via link 16. The encoded video data transmitted via link 16 or provided on storage device 32 may include a variety of syntax elements generated by video encoder 20 for use by video decoder 30 in decoding the video data. Such syntax elements may be included within the encoded video data transmitted over the communication medium, stored on a storage medium, or stored in a file server.

[0031] In some implementations, the destination device 14 may include a display device 34, which may be an integrated display device or an external display device configured to communicate with the destination device 14. The display device 34 displays the decoded video data to a user, and may include any of a variety of display devices, such as a liquid crystal display (LCD), a plasma display, an organic light emitting diode (OLED) display, or another type of display device.

[0032] Video encoder 20 and video decoder 30 can be operated according to proprietary or industry standards, such as VVC, HEVC, MPEG-4 Part 10, advanced video codec AVC or the extension of such standards.It should be understood that the application is not limited to specific video coding / decoding standards, and can be applicable to other video coding / decoding standards.It is generally expected that the video encoder 20 of source device 12 can be configured to encode video data according to any one of these current or future standards.Similarly, it is also generally expected that the video decoder 30 of destination device 14 can be configured to decode video data according to any one of these current or future standards.

[0033] The video encoder 20 and the video decoder 30 can be implemented as any of a variety of suitable encoder circuits, such as one or more microprocessors, digital signal processors DSP, application-specific integrated circuits ASIC, field programmable gate arrays FPGA, discrete logic, software, hardware, firmware, or any combination thereof. When partially implemented in software, the electronic device can store instructions for the software in a suitable non-transitory computer-readable medium and use one or more processors to execute the instructions in hardware to perform the video encoding / decoding operations disclosed in the present disclosure. Each of the video encoder 20 and the video decoder 30 can be included in one or more encoders or decoders, any of which can be integrated as part of a combined encoder / decoder CODEC in a corresponding device.

[0034] Figure 2is a block diagram illustrating an exemplary video encoder 20 according to some implementations described in the present application. Video encoder 20 can perform intra-frame and inter-frame predictive coding on video blocks within video frames. Intra-frame predictive coding relies on spatial prediction to reduce or remove spatial redundancy in video data within a given video frame or picture. Inter-frame predictive coding relies on temporal prediction to reduce or remove temporal redundancy in video data within adjacent video frames or pictures of a video sequence.

[0035] like Figure 2 As shown in , the video encoder 20 includes a video data memory 40, a prediction processing unit 41, a decoded picture buffer DPB64, an adder 50, a transform processing unit 52, a quantization unit 54, and an entropy coding unit 56. The prediction processing unit 41 further includes a motion estimation unit 42, a motion compensation unit 44, a partition unit 45, an intra-frame prediction processing unit 46, and an intra-frame block copy BC unit 48. In some implementations, the video encoder 20 also includes an inverse quantization unit 58, an inverse transform processing unit 60, and an adder 62 for video block reconstruction. A deblocking filter (not shown) can be positioned between the adder 62 and the DPB 64 to filter the block boundaries, thereby removing blockiness artifacts from the reconstructed video. In addition to the deblocking filter, an in-loop filter (not shown) can also be used to filter the output of the adder 62. The video encoder 20 can take the form of a fixed or programmable hardware unit, or can be divided between one or more of the illustrated fixed or programmable hardware units.

[0036] The video data memory 40 may store video data to be encoded by the components of the video encoder 20. The video data in the video data memory 40 may be obtained, for example, from the video source 18. The DPB 64 is a buffer for storing reference video data used when encoding the video data by the video encoder 20 (e.g., in an intra-frame or inter-frame predictive coding mode). The video data memory 40 and the DPB 64 may be formed by any of a variety of memory devices. In various examples, the video data memory 40 may be on-chip with other components of the video encoder 20, or off-chip relative to those components.

[0037] like Figure 2As shown in , after receiving the video data, the partition unit 45 within the prediction processing unit 41 partitions the video data into video blocks. The partitioning may also include partitioning the video frame into slices, tiles, or other larger coding units CU according to a predefined partitioning structure (such as a quadtree structure associated with the video data). The video frame may be divided into a plurality of video blocks (or a set of video blocks referred to as tiles). The prediction processing unit 41 may select one of a plurality of possible predictive coding modes for the current video block based on error results (e.g., coding rate and distortion level), such as one of one or more inter-frame predictive coding modes in a plurality of intra-frame predictive coding modes. The prediction processing unit 41 may provide the resulting intra-frame or inter-frame predictive coding block to an adder 50 to generate a residual block, and to an adder 62 to reconstruct the encoded block for subsequent use as part of a reference frame. The prediction processing unit 41 also provides syntax elements such as motion vectors, intra-frame mode indicators, partition information, and other such syntax information to the entropy coding unit 56.

[0038] In order to select an appropriate intra-frame predictive coding mode for the current video block, the intra-frame prediction processing unit 46 within the prediction processing unit 41 can perform intra-frame predictive coding on the current video block relative to one or more neighboring blocks in the same frame as the current block to be encoded to provide spatial prediction. The motion estimation unit 42 and the motion compensation unit 44 within the prediction processing unit 41 perform inter-frame predictive coding on the current video block relative to one or more predictive blocks in one or more reference frames to provide temporal prediction. The video encoder 20 can perform encoding in multiple passes, for example, selecting an appropriate coding mode for each block of video data.

[0039] In some implementations, motion estimation unit 42 determines the inter-prediction mode for the current video frame by generating a motion vector according to a predetermined pattern within a sequence of video frames, the motion vector indicating the displacement of a prediction unit PU of a video block within the current video frame relative to a predictive block within a reference video frame. Motion estimation performed by motion estimation unit 42 is the process of generating a motion vector that estimates the motion of a video block. For example, a motion vector may indicate the displacement of a PU of a video block within a current video frame or picture relative to a predictive block within a reference frame (or other coding unit), relative to a current block being encoded within a current frame (or other coding unit). The predetermined pattern may designate a video frame in a sequence as a P frame or a B frame. Intra BC unit 48 may determine a vector (e.g., a block vector) for intra BC coding in a manner similar to how motion estimation unit 42 determines motion vectors for inter prediction, or may utilize motion estimation unit 42 to determine a block vector.

[0040] A predictive block is a block of a reference frame that is considered to closely match a PU of a video block to be encoded in terms of pixel differences, which may be determined by the sum of absolute differences (SAD), the sum of squared differences (SSD), or other difference metrics. In some implementations, video encoder 20 may calculate values ​​for sub-integer pixel positions of reference frames stored in DPB 64. For example, video encoder 20 may interpolate values ​​for quarter-pixel positions, eighth-pixel positions, or other fractional pixel positions of the reference frame. Thus, motion estimation unit 42 may perform a motion search relative to full pixel positions and fractional pixel positions and output a motion vector with fractional pixel precision.

[0041] Motion estimation unit 42 calculates a motion vector for a PU of a video block in an inter-prediction coded frame by comparing the position of the PU to the position of a predictive block of a reference frame selected from a first reference frame list (list 0) or a second reference frame list (list 1), each of which identifies one or more reference frames stored in DPB 64. Motion estimation unit 42 sends the calculated motion vector to motion compensation unit 44 and then to entropy encoding unit 56.

[0042] The motion compensation performed by the motion compensation unit 44 may involve obtaining or generating a predictive block based on the motion vector determined by the motion estimation unit 42. Upon receiving the motion vector of the PU of the current video block, the motion compensation unit 44 may locate the predictive block pointed to by the motion vector in one of the reference frame lists, retrieve the predictive block from the DPB 64, and forward the predictive block to the adder 50. The adder 50 then forms a residual video block of pixel difference values ​​by subtracting the pixel values ​​of the predictive block provided by the motion compensation unit 44 from the pixel values ​​of the current video block being encoded. The pixel difference values ​​forming the residual video block may include a luma or chroma difference component or both. The motion compensation unit 44 may also generate syntax elements associated with the video block of the video frame for use by the video decoder 30 when decoding the video block of the video frame. The syntax elements may include, for example, syntax elements defining the motion vector for the predictive block, any flag indicating a prediction mode, or any other syntax information described herein. It is noted that motion estimation unit 42 and motion compensation unit 44 may be highly integrated, but are illustrated separately for conceptual purposes.

[0043] In some implementations, the intra BC unit 48 may generate a vector and obtain a predictive block in a manner similar to that described above in conjunction with the motion estimation unit 42 and the motion compensation unit 44, but the predictive block is in the same frame as the current block being encoded, and the vector is referred to as a block vector, not a motion vector. In particular, the intra BC unit 48 may determine an intra prediction mode for encoding the current block. In some examples, the intra BC unit 48 may encode the current block using various intra prediction modes, such as during a separate encoding process, and test its performance through rate-distortion analysis. Next, the intra BC unit 48 may select an appropriate intra prediction mode to use among the various tested intra prediction modes, and generate an intra mode indicator accordingly. For example, the intra BC unit 48 may calculate a rate-distortion value using rate-distortion analysis for the various tested intra prediction modes, and select an intra prediction mode with the best rate-distortion characteristics among the tested modes as the appropriate intra prediction mode to use. The rate-distortion analysis typically determines the amount of distortion (or error) between a coded block and the original uncoded block that was coded to produce the coded block, and the bit rate (i.e., the number of bits) used to produce the coded block. Intra BC unit 48 may calculate ratios based on the distortion and rates for the various coded blocks to determine which intra-prediction mode exhibits the best rate-distortion value for the block.

[0044] In other examples, intra BC unit 48 may perform such functions for intra BC prediction in whole or in part using motion estimation unit 42 and motion compensation unit 44 according to implementations described herein. In either case, for intra block copying, the predictive block may be a block that is considered to closely match the block to be encoded in terms of pixel differences, which may be determined by the sum of absolute differences (SAD), the sum of squared differences (SSD), or other difference metrics, and identification of the predictive block may include calculation of values ​​for sub-integer pixel positions.

[0045] Regardless of whether the predictive block is from the same frame according to intra-frame prediction or from a different frame according to inter-frame prediction, video encoder 20 can form a residual video block by subtracting the pixel values ​​of the predictive block from the pixel values ​​of the current video block being encoded, thereby forming pixel difference values. The pixel difference values ​​forming the residual video block can include both luma and chroma component differences.

[0046] As described above, the intra-prediction processing unit 46 may perform intra-prediction on the current video block as an alternative to the inter-prediction performed by the motion estimation unit 42 and the motion compensation unit 44, or the intra-block copy prediction performed by the intra BC unit 48. In particular, the intra-prediction processing unit 46 may determine an intra-prediction mode for encoding the current block. To this end, the intra-prediction processing unit 46 may encode the current block using various intra-prediction modes, for example, during a separate encoding process, and the intra-prediction processing unit 46 (or a mode selection unit in some examples) may select an appropriate intra-prediction mode to use from the tested intra-prediction modes. The intra-prediction processing unit 46 may provide information indicating the selected intra-prediction mode of the block to the entropy encoding unit 56. The entropy encoding unit 56 may encode information indicating the selected intra-prediction mode in the bitstream.

[0047] After the prediction processing unit 41 determines the predictive block of the current video block via inter-frame prediction or intra-frame prediction, the adder 50 forms a residual video block by subtracting the predictive block from the current video block. The residual video data in the residual block may be included in one or more transform units TU and provided to the transform processing unit 52. The transform processing unit 52 transforms the residual video data into residual transform coefficients using a transform (such as a discrete cosine transform DCT or a conceptually similar transform).

[0048] The transform processing unit 52 may send the resulting transform coefficients to a quantization unit 54. The quantization unit 54 quantizes the transform coefficients to further reduce the bit rate. The quantization process may also reduce the bit depth associated with some or all coefficients. The degree of quantization may be modified by adjusting a quantization parameter. In some examples, the quantization unit 54 may then perform a scan on the matrix including the quantized transform coefficients. Alternatively, the entropy coding unit 56 may perform the scan.

[0049] After quantization, entropy coding unit 56 entropy encodes the quantized transform coefficients into a video bitstream using, for example, context adaptive variable length coding (CAVLC), context adaptive binary arithmetic coding (CABAC), syntax-based context adaptive binary arithmetic coding (SBAC), probability interval partitioned entropy (PIPE) coding, or another entropy coding method or technique. The encoded bitstream may then be transmitted to video decoder 30, or archived in storage device 32 for later transmission to or retrieval by video decoder 30. Entropy coding unit 56 may also entropy encode motion vectors and other syntax elements for the current video frame being encoded.

[0050] Inverse quantization unit 58 and inverse transform processing unit 60 apply inverse quantization and inverse transform, respectively, to reconstruct the residual video block in the pixel domain in order to generate a reference block for predicting other video blocks. As noted above, motion compensation unit 44 may generate a motion compensated predictive block from one or more reference blocks of a frame stored in DPB 64. Motion compensation unit 44 may also apply one or more interpolation filters to the predictive block to calculate sub-integer pixel values ​​for motion estimation.

[0051] Adder 62 adds the reconstructed residual block to the motion compensated predictive block produced by motion compensation unit 44 to produce a reference block for storage in DPB 64. The reference block may then be used by intra BC unit 48, motion estimation unit 42, and motion compensation unit 44 as a predictive block to inter-predict another video block in a subsequent video frame.

[0052] Figure 3 1 is a block diagram illustrating an exemplary video decoder 30 according to some implementations of the present application. The video decoder 30 includes a video data memory 79, an entropy decoding unit 80, a prediction processing unit 81, an inverse quantization unit 86, an inverse transform processing unit 88, an adder 90, and a DPB 92. The prediction processing unit 81 further includes a motion compensation unit 82, an intra-frame prediction unit 84, and an intra-frame BC unit 85. The video decoder 30 may perform operations generally in conjunction with the above. Figure 2 The decoding process is reciprocal to the encoding process described with respect to video encoder 20. For example, motion compensation unit 82 may generate prediction data based on motion vectors received from entropy decoding unit 80, and intra-prediction unit 84 may generate prediction data based on intra-prediction mode indicators received from entropy decoding unit 80.

[0053] In some examples, the task of the unit of the video decoder 30 may be to perform the implementation of the present application. In addition, in some examples, the implementation of the present disclosure may be divided between one or more units of the video decoder 30. For example, the intra BC unit 85 may perform the implementation of the present application alone or in combination with other units of the video decoder 30 (e.g., the motion compensation unit 82, the intra prediction unit 84, and the entropy decoding unit 80). In some examples, the video decoder 30 may not include the intra BC unit 85, and the functions of the intra BC unit 85 may be performed by other components of the prediction processing unit 81 (such as the motion compensation unit 82).

[0054] The video data memory 79 may store video data, such as an encoded video bitstream, to be decoded by other components of the video decoder 30. The video data stored in the video data memory 79 may be obtained, for example, from a storage device 32, from a local video source such as a camera, via a wired or wireless network communication of video data, or by accessing a physical data storage medium (e.g., a flash drive or hard disk). The video data memory 79 may include a coded picture buffer CPB that stores encoded video data from an encoded video bitstream. The decoded picture buffer DPB 92 of the video decoder 30 stores reference video data for use by the video decoder 30 (e.g., in intra-frame or inter-frame predictive coding modes) when decoding video data. The video data memory 79 and the DPB 92 may be formed by any of a variety of memory devices, such as a dynamic random access memory DRAM, including synchronous DRAM to SDRAM, magnetoresistive RAM to MRAM, resistive RAM to RRAM, or other types of memory devices. For purposes of illustration, the video data memory 79 and the DPB 92 are described in detail in the accompanying drawings. Figure 3 92 are depicted as two distinct components of the video decoder 30. However, it will be apparent to those skilled in the art that the video data memory 79 and the DPB 92 may be provided by the same memory device or by separate memory devices. In some examples, the video data memory 79 may be on-chip with other components of the video decoder 30, or off-chip relative to those components.

[0055] During the decoding process, the video decoder 30 receives an encoded video bitstream, which represents video blocks of an encoded video frame and associated syntax elements. The video decoder 30 may receive syntax elements at the video frame level and / or the video block level. The entropy decoding unit 80 of the video decoder 30 entropy decodes the bitstream to generate quantized coefficients, motion vectors or intra-prediction mode indicators and other syntax elements. The entropy decoding unit 80 then forwards the motion vectors and other syntax elements to the prediction processing unit 81.

[0056] When a video frame is encoded as an intra-prediction coded (I) frame or is encoded for an intra-coded predictive block in other types of frames, the intra-prediction unit 84 of the prediction processing unit 81 can generate prediction data for a video block of the current video frame based on a signaled intra-prediction mode and reference data from a previously decoded block of the current frame.

[0057] When the video frame is encoded as an inter-frame prediction coded (i.e., B or P) frame, the motion compensation unit 82 of the prediction processing unit 81 generates one or more predictive blocks of the video block of the current video frame based on the motion vectors and other syntax elements received from the entropy decoding unit 80. Each predictive block can be generated from a reference frame in one of the reference frame lists. The video decoder 30 can construct the reference frame lists, List 0 and List 1, using a default construction technique based on the reference frames stored in the DPB 92.

[0058] In some examples, when the video block is encoded according to the intra BC mode described herein, intra BC unit 85 of prediction processing unit 81 generates a predictive block for the current video block based on the block vector and other syntax elements received from entropy decoding unit 80. The predictive block may be within a reconstructed region of the same picture as the current video block defined by video encoder 20.

[0059] The motion compensation unit 82 and / or the intra BC unit 85 determine the prediction information of the video block of the current video frame by parsing the motion vector and other syntax elements, and then use the prediction information to generate the predictive block of the current video block being decoded. For example, the motion compensation unit 82 uses some of the received syntax elements to determine the prediction mode (e.g., intra or inter prediction) for encoding the video block of the video frame, the inter prediction frame type (e.g., B or P), the construction information of one or more of the reference frame lists for the frame, the motion vector of each inter prediction encoded video block of the frame, the inter prediction state of each inter prediction encoded video block of the frame, and other information for decoding the video block in the current video frame.

[0060] Similarly, the intra BC unit 85 can use some of the received syntax elements (e.g., flags) to determine whether the current video block is predicted using the intra BC mode, construction information of which video blocks of the frame are within the reconstruction region and should be stored in the DPB 92, block vectors of each intra BC predicted video block of the frame, the intra BC prediction status of each intra BC predicted video block of the frame, and other information for decoding the video blocks in the current video frame.

[0061] Motion compensation unit 82 may also perform interpolation using interpolation filters as used by video encoder 20 during encoding of the video blocks to calculate interpolated values ​​for sub-integer pixels of reference blocks. In such cases, motion compensation unit 82 may determine the interpolation filters used by video encoder 20 based on received syntax elements and use the interpolation filters to produce the predictive blocks.

[0062] Inverse quantization unit 86 inverse quantizes the quantized transform coefficients provided in the bitstream and entropy decoded by entropy decoding unit 80 using the same quantization parameters calculated by video encoder 20 for each video block in the video frame to determine the degree of quantization. Inverse transform processing unit 88 applies an inverse transform (e.g., an inverse DCT, an inverse integer transform, or a conceptually similar inverse transform process) to the transform coefficients to reconstruct the residual block in the pixel domain.

[0063] After the motion compensation unit 82 or the intra BC unit 85 generates a predictive block for the current video block based on the vector and other syntax elements, the adder 90 reconstructs the decoded video block of the current video block by summing the residual block from the inverse transform processing unit 88 with the corresponding predictive block generated by the motion compensation unit 82 and the intra BC unit 85. An in-loop filter (not shown in the figure) can be positioned between the adder 90 and the DPB 92 to further process the decoded video block. The decoded video blocks in a given frame are then stored in the DPB 92, which stores reference frames for subsequent motion compensation of the next video block. The DPB 92 or a memory device separate from the DPB 92 can also store the decoded video for later display on a display device (such as, Figure 1 is presented on a display device 34).

[0064] In a typical video encoding and decoding process, a video sequence usually includes a set of ordered frames or pictures. Each frame can include three sample arrays, denoted as SL, SCb, and SCr. SL is a two-dimensional array of luma samples. SCb is a two-dimensional array of Cb chroma samples. SCr is a two-dimensional array of Cr chroma samples. In other examples, a frame can be monochrome and therefore only include a two-dimensional array of luma samples.

[0065] like Figure 4A As shown in , the video encoder 20 (or more specifically, the partition unit 45) generates an encoded representation of the frame by first partitioning the frame into a set of coding tree units CTUs. A video frame may include an integer number of CTUs, which are sequentially ordered from left to right and from top to bottom in a raster scan order. Each CTU is the largest logical coding unit, and the width and height of the CTU are signaled by the video encoder 20 in a sequence parameter set, so that all CTUs in a video sequence have the same size, which is one of 128×128, 64×64, 32×32, and 16×16. However, it should be noted that the present application is not necessarily limited to a specific size. As Figure 4BAs shown in , each CTU may include one coding tree block CTB for luma samples, two corresponding coding tree blocks for chroma samples, and syntax elements for encoding samples of these coding tree blocks. The syntax elements describe the properties of different types of units of the encoded pixel blocks and how to reconstruct the video sequence at the video decoder 30, including inter-frame or intra-frame prediction, intra-frame prediction mode, motion vectors and other parameters. In a monochrome picture or a picture with three separate color planes, a CTU may include a single coding tree block and syntax elements for encoding samples of the coding tree block. The coding tree block may be an N×N block of samples.

[0066] To achieve better performance, the video encoder 20 may recursively perform tree partitioning on the coding tree block of the CTU, such as binary tree partitioning, ternary tree partitioning, quadtree partitioning, or a combination of the two, and divide the CTU into smaller coding units CU. Figure 4C As depicted in , a 64×64 CTU 400 is first divided into four smaller CUs, each CU having a block size of 32×32. Among the four smaller CUs, CU 410 and CU 420 are each divided into four 16×16 CUs according to the block size. Two 16×16 CUs 430 and 440 are each further divided into four 8×8 CUs according to the block size. Figure 4D Describes a quadtree data structure that illustrates Figure 4C The final result of the partitioning process of CTU 400 depicted in FIG. 4 is that each leaf node of the quadtree corresponds to a CU, and the CU has a corresponding size ranging from 32×32 to 8×8. Figure 4B In the CTU depicted in FIG, each CU may include a coding block CB of luma samples and two corresponding coding blocks of chroma samples of the same size frame, and syntax elements for encoding the samples of the coding block. In a monochrome picture or a picture with three separate color planes, a CU may include a single coding block and syntax structures for encoding the samples of the coding block. It should be noted that Figure 4C and 4D The quadtree partitioning depicted in FIG is for illustration purposes only, and a CTU can be divided into CUs based on quadtree / ternary / binary tree partitioning to adapt to varying local characteristics. In a multi-type tree structure, a CTU is partitioned by a quadtree structure, and the leaf CUs of each quadtree can be further partitioned by binary and ternary tree structures. Figure 4E As shown in , there are five types of partitions, namely, quadruple partitions, horizontal binary partitions, vertical binary partitions, horizontal ternary partitions, and vertical ternary partitions.

[0067] In some implementations, the video encoder 20 may further partition the coding block of the CU into one or more MxN prediction blocks PB. A prediction block is a rectangular (square or non-square) block of samples on which the same prediction (inter or intra) is applied. The prediction unit PU of the CU may include a prediction block of luma samples, two corresponding prediction blocks of chroma samples, and syntax elements for predicting the prediction blocks. In a monochrome picture or a picture with three separate color planes, a PU may include a single prediction block and a syntax structure for predicting the prediction block. The video encoder 20 may generate predictive luma, Cb, and Cr blocks for the luma, Cb, and Cr prediction blocks of each PU of the CU.

[0068] Video encoder 20 may use intra prediction or inter prediction to generate the predictive blocks of a PU. If video encoder 20 uses intra prediction to generate the predictive blocks of a PU, video encoder 20 may generate the predictive blocks of the PU based on decoded samples of a frame associated with the PU. If video encoder 20 uses inter prediction to generate the predictive blocks of a PU, video encoder 20 may generate the predictive blocks of the PU based on decoded samples of one or more frames other than the frame associated with the PU.

[0069] After the video encoder 20 generates the predictive luma, Cb, and Cr blocks of one or more PUs of a CU, the video encoder 20 may generate a luma residual block of the CU by subtracting the predictive luma block of the CU from the original luma coding block of the CU, so that each sample in the luma residual block of the CU indicates the difference between a luma sample in one of the predictive luma blocks of the CU and a corresponding sample in the original luma coding block of the CU. Similarly, the video encoder 20 may generate a Cb residual block and a Cr residual block of the CU, respectively, so that each sample in the Cb residual block of the CU indicates the difference between a Cb sample in one of the predictive Cb blocks of the CU and a corresponding sample in the original Cb coding block of the CU, and each sample in the Cr residual block of the CU may indicate the difference between a Cr sample in one of the predictive Cr blocks of the CU and a corresponding sample in the original Cr coding block of the CU.

[0070] In addition, if Figure 4CAs illustrated in , the video encoder 20 can use quadtree partitioning to decompose the luma, Cb, and Cr residual blocks of a CU into one or more luma, Cb, and Cr transform blocks. A transform block is a rectangular (square or non-square) sample block on which the same transform is applied. The transform unit TU of a CU may include a transform block of luma samples, two corresponding transform blocks of chroma samples, and syntax elements for transforming the samples of the transform block. Therefore, each TU of a CU may be associated with a luma transform block, a Cb transform block, and a Cr transform block. In some examples, the luma transform block associated with a TU may be a sub-block of the luma residual block of the CU. The Cb transform block may be a sub-block of the Cb residual block of the CU. The Cr transform block may be a sub-block of the Cr residual block of the CU. In a monochrome picture or a picture with three separate color planes, a TU may include a single transform block and a syntax structure for transforming the samples of the transform block.

[0071] The video encoder 20 may apply one or more transforms to the luma transform block of the TU to generate a luma coefficient block of the TU. The coefficient block may be a two-dimensional array of transform coefficients. The transform coefficient may be a scalar. The video encoder 20 may apply one or more transforms to the Cb transform block of the TU to generate a Cb coefficient block of the TU. The video encoder 20 may apply one or more transforms to the Cr transform block of the TU to generate a Cr coefficient block of the TU.

[0072] After generating a coefficient block (e.g., a luma coefficient block, a Cb coefficient block, or a Cr coefficient block), the video encoder 20 may quantize the coefficient block. Quantization generally refers to a process in which transform coefficients are quantized to minimize the amount of data used to represent the transform coefficients, thereby providing further compression. After the video encoder 20 quantizes the coefficient block, the video encoder 20 may entropy encode a syntax element indicating the quantized transform coefficients. For example, the video encoder 20 may perform context adaptive binary arithmetic coding (CABAC) on the syntax element indicating the quantized transform coefficients. Finally, the video encoder 20 may output a bitstream including a sequence of bits forming a representation of an encoded frame and associated data, which is either stored in a storage device 32 or transmitted to a destination device 14.

[0073] After receiving the bitstream generated by the video encoder 20, the video decoder 30 may parse the bitstream to obtain syntax elements from the bitstream. The video decoder 30 may reconstruct a frame of video data based at least in part on the syntax elements obtained from the bitstream. The process of reconstructing video data is generally inverse to the encoding process performed by the video encoder 20. For example, the video decoder 30 may perform an inverse transform on a coefficient block associated with a TU of the current CU to reconstruct a residual block associated with the TU of the current CU. The video decoder 30 also reconstructs the coding block of the current CU by adding samples of the predictive block of the PU of the current CU to corresponding samples of the transform block of the TU of the current CU. After reconstructing the coding block of each CU of the frame, the video decoder 30 may reconstruct the frame.

[0074] As noted above, video codecs primarily use two modes to achieve video compression, namely, prediction within a frame (or intra-frame prediction) and prediction between frames (or inter-frame prediction). Palette-based coding is another coding scheme that has been adopted by many video codec standards. In palette-based coding, which may be particularly suitable for encoding content generated by screens, a video codec (e.g., video encoder 20 or video decoder 30) forms a palette table representing the color of video data for a given block. The palette table includes the most dominant (e.g., frequently used) pixel values ​​in a given block. Pixel values ​​that are not frequently represented in the video data of a given block are either not included in the palette table or are included in the palette table as escape colors.

[0075] Each entry in the palette table includes an index to a corresponding pixel value in the palette table. The palette index of a sample in the block may be encoded to indicate which entry from the palette table will be used to predict or reconstruct which sample. The palette mode begins with a process of generating a palette predictor for the first block of a picture, slice, tile, or other such video block grouping. As will be explained below, a palette predictor for a subsequent video block is typically generated by updating a previously used palette predictor. For purposes of illustration, it is assumed that the palette predictor is defined at the picture level. In other words, a picture may include multiple coding blocks, each with its own palette table, but there is one palette predictor for the entire picture.

[0076] In order to reduce the bits required to signal palette entries in the video bitstream, a video decoder can utilize a palette predictor for determining new palette entries in a palette table for reconstructing a video block. For example, the palette predictor can include palette entries from a previously used palette table, or even be initialized with a recently used palette table by including all entries of the recently used palette table. In some implementations, the palette predictor can include less than all entries from the most recently used palette table, and then incorporate some entries from other previously used palette tables. The palette predictor can have the same size as a palette table used to encode a different block, or can be larger or smaller than a palette table used to encode a different block. In one example, the palette predictor is implemented as a first-in, first-out FIFO table including 64 palette entries.

[0077] To generate a palette table for a block of video data from a palette predictor, a video decoder may receive a one-bit flag for each entry of the palette predictor from an encoded video bitstream. The one-bit flag may have a first value (e.g., binary one) indicating that an associated entry of the palette predictor is to be included in the palette table, or a second value (e.g., binary zero) indicating that an associated entry of the palette predictor is not to be included in the palette table. If the size of the palette predictor is larger than the palette table for the block of video data, the video decoder may stop receiving more flags once the maximum size of the palette table is reached.

[0078] In some implementations, some entries in a palette table may be signaled directly in the encoded video bitstream, rather than being determined using a palette predictor. For such entries, a video decoder may receive three separate m-bit values ​​from the encoded video bitstream indicating the pixel values ​​of the luminance and two chrominance components associated with the entry, where m represents the bit depth of the video data. Those palette entries derived from the palette predictor require only a one-bit flag, compared to the multiple m-bit values ​​required for directly signaled palette entries. Therefore, using a palette predictor to signal some or all palette entries can significantly reduce the number of bits required to signal new palette table entries, thereby improving the overall coding efficiency of palette mode encoding.

[0079] In many instances, a palette predictor for a block is determined based on a palette table used to encode one or more previously encoded blocks. However, when encoding the first coding tree unit in a picture, slice, or tile, the palette table for the previously encoded block may not be available. Therefore, the palette predictor cannot be generated using the entries of the previously used palette table. In this case, a sequence of palette predictor initializers can be signaled in a sequence parameter set SPS and / or a picture parameter set PPS, which are values ​​used to generate a palette predictor when the previously used palette table is not available. SPS generally refers to the syntax structure of syntax elements applied to a series of consecutive encoded video pictures called a coded video sequence CVS, as determined by the contents of the syntax elements found in the PPS, which is referred to by the syntax elements found in each slice segment header. PPS generally refers to the syntax structure of syntax elements applied to one or more individual pictures within a CVS, as determined by the syntax elements found in the slice segment header. Therefore, the SPS is generally considered to be a higher-level syntax structure than the PPS, which means that the syntax elements contained in the SPS generally change less frequently and apply to a larger portion of the video data than the syntax elements contained in the PPS.

[0080] Figures 5A to 5B is a block diagram illustrating an example of applying an adaptive color space conversion (ACT) technique to convert a residual between an RGB color space and a YCgCo color space according to some implementations of the present disclosure.

[0081] In the HEVC screen content coding extension, ACT is applied to adaptively transform the residual from one color space (e.g., RGB) to another color space (e.g., YCgCo) so that the correlation (e.g., redundancy) between the three color components (e.g., R, G, and B) is significantly reduced in the YCgCo color space. In addition, in the existing ACT design, the adaptation of different color spaces is performed at the transform unit TU level by signaling a flag tu_act_enabled_flag for each TU. When the flag tu_act_enabled_flag is equal to 1, it indicates that the residual of the current TU is encoded in the YCgCo space; otherwise (i.e., the flag is equal to 0), it indicates that the residual of the current TU is encoded in the original color space (i.e., there is no color space conversion). In addition, different color space transformation formulas are applied depending on whether the current TU is encoded in lossless mode or lossy mode. Specifically, in Figure 5A The forward and inverse color space transformation formulas between RGB color space and YCgCo color space for lossy mode are defined in .

[0082] For lossless mode, a reversible version of the RGB-YCgCo transform (also called YCgCo-LS) is used. The reversible version of the RGB-YCgCo transform is based on Figure 5B This is achieved by the lifting operations depicted in and related descriptions.

[0083] like Figure 5A As shown in , the forward and inverse color transform matrices used in lossy mode are not normalized. Therefore, after applying the color transform, the amplitude of the YCgCo signal is smaller than that of the original signal. In order to compensate for the magnitude reduction caused by the forward color transform, an adjusted quantization parameter is applied to the residual in the YCgCo domain. Specifically, when applying the color space transform, the QP value QP used to quantize the YCgCo domain residual is Y , QP Cg and QP Co They are set to QP-5, QP-5, and QP-3 respectively, where QP is the quantization parameter used in the original color space.

[0084] Figure 6 is a block diagram of applying a luma mapping LMCS technique with chroma scaling in an exemplary video data decoding process according to some implementations of the present disclosure.

[0085] In VVC, LMCS is used as a new codec tool applied before in-loop filters (e.g., deblocking filter, SAO, and ALF). In general, LMCS has two main modules: 1) in-loop mapping of luma components based on an adaptive piecewise linear model; 2) luma-dependent chroma residual scaling. Figure 6 A modified decoding process in which LMCS is applied is shown. Figure 6 In the LMCS, the decoding modules performed in the mapped domain include an entropy decoding module, an inverse quantization module, an inverse transform module, a luma intra prediction module, and a luma sample reconstruction module (i.e., the addition of luma prediction samples and luma residual samples). The decoding modules performed in the original (i.e., non-mapped) domain include a motion compensation prediction module, a chroma intra prediction module, a chroma sample reconstruction module (i.e., the addition of chroma prediction samples and chroma residual samples), and all in-loop filter modules, such as a deblocking module, an SAO module, and an ALF module. The new operation modules introduced by LMCS include a luma sample forward mapping module 610, a luma sample inverse mapping module 620, and a chroma residual scaling module 630.

[0086] The in-loop mapping of LMCS can adjust the dynamic range of the input signal to improve coding efficiency. The in-loop mapping of luminance samples in existing LMCS designs is based on two mapping functions: a forward mapping function FwdMap and a corresponding inverse mapping function InvMap. The forward mapping function is signaled from the encoder to the decoder using a piecewise linear model with 16 segments of equal size. The inverse mapping function can be derived directly from the forward mapping function and therefore does not need to be signaled.

[0087] The parameters of the luminance mapping model are signaled at the slice level. First, a presence flag is signaled to indicate whether the luminance mapping model is to be signaled for the current slice. If the luminance mapping model is present in the current slice, the corresponding piecewise linear model parameters are further signaled. In addition, at the slice level, another LMCS control flag is signaled to enable / disable LMCS for the slice.

[0088] The chroma residual scaling module 630 is designed to compensate for the interaction of quantization precision between the luma signal and its corresponding chroma signal when in-loop mapping is applied to the luma signal. It is also signaled in the slice header whether chroma residual scaling is enabled or disabled for the current slice. If luma mapping is enabled, an additional flag is signaled to indicate whether luma-dependent chroma residual scaling is applied. When luma mapping is not used, luma-dependent chroma residual scaling is always disabled and no additional flag is required. In addition, chroma residual scaling is always disabled for CUs containing less than or equal to four chroma samples.

[0089] Figure 7 is a block diagram illustrating an exemplary video decoding process according to some implementations of the present disclosure, by which a video decoder implements the technique of Inverse Adaptive Color Space Transform (ACT).

[0090] Similar to the ACT design in HEVC SCC, ACT in VVC converts the intra / inter prediction residual of a CU in 4:4:4 chroma format from the original color space (e.g., RGB color space) to the YCgCo color space. As a result, the redundancy between the three color components can be reduced for better coding efficiency. Figure 7 7 depicts a decoding flow chart in which inverse ACT is applied in the VVC framework by adding an inverse ACT module 710. When processing a CU encoded with ACT enabled, entropy decoding, inverse quantization, and an inverse DCT / DST-based transform are first applied to the CU. Thereafter, as Figure 7As depicted in , the inverse ACT is called to convert the decoded residual from the YCgCo color space to the original color space (e.g., RGB and YCbCr). In addition, because the ACT in the lossy mode is not normalized, a QP adjustment of (-5, -5, -3) is applied to the Y, Cg, and Co components to compensate for the changed magnitude of the transformed residual.

[0091] In some embodiments, the ACT method reuses the same ACT core transform of HEVC to perform color conversion between different color spaces. Specifically, depending on whether the current CU is coded in a lossy or lossless manner, two different versions of the color transform are applied. The forward and inverse color transforms for the lossy case use Figure 5A The irreversible YCgCo transformation matrix depicted in . For the lossless case, apply Figure 5B In addition, unlike the existing ACT design, the following changes are introduced to the proposed ACT scheme to deal with its interaction with other codec tools in the VVC standard.

[0092] For example, because the residual of a CU in HEVC can be partitioned into multiple TUs, an ACT control flag is signaled separately for each TU to indicate whether color space conversion needs to be applied. Figure 4E As described, a quadtree nested with binary and ternary partition structures is applied in VVC to replace the concept of multiple partition types, thereby removing the separate CU, PU and TU partitions in HEVC. This means that in most cases, a CU leaf node is also used as a unit of prediction and transform processing without further partitioning, unless the maximum supported transform size is less than the width or height of a component of the CU. Based on this partition structure, it is proposed in the present disclosure to adaptively enable and disable ACT at the CU level. Specifically, a flag cu_act_enabled_flag is signaled for each CU to select between the original color space and the YCgCo color space for encoding the residual of the CU. If the flag is equal to 1, it indicates that the residuals of all UTs within the CU are encoded in the YCgCo color space. Otherwise, if the flag cu_act_enabled_flag is equal to 0, all residuals of the CU are encoded in the original color space.

[0093] In some embodiments, a syntax element (e.g., sps_act_enabled_flag) is added to a sequence parameter set (SPS) to indicate whether ACT is enabled at the sequence level. In addition, when color space conversion is applied to video content whose luma and chroma components have the same resolution (e.g., 4:4:4 chroma format 4:4:4), a bitstream conformance requirement needs to be added so that ACT can only be enabled for the 4:4:4 chroma format. Table 1 illustrates a modified SPS syntax table with the above syntax added.

[0094]

[0095] Table 1 Modified SPS syntax table.

[0096] Specifically, sps_act_enabled_flag equal to 1 indicates that ACT is enabled, and sps_act_enabled_flag equal to 0 indicates that ACT is disabled, so for a CU, the flag cu_act_enabled_flag is not signaled, it refers to SPS but is inferred to be 0. When ChromaArrayType is not equal to 3, a bitstream conformance requirement is that the value of sps_act_enabled_flag shall be equal to 0.

[0097] In another embodiment, instead of always signaling sps_act_enabled_flag, the signaling of the flag is conditional on the chroma type of the input signal. Specifically, given that ACT can only be applied when luma and chroma components are at the same resolution, the flag sps_act_enabled_flag is signaled only when the input video is captured in 4:4:4 chroma format. In this changed case, the modified SPS syntax table is:

[0098]

[0099] Table 2 Modified SPS syntax table with signaling conditions.

[0100] In some embodiments, syntax design specifications for decoding video data using ACT are described in the following table.

[0101]

[0102]

[0103]

[0104]

[0105]

[0106]

[0107]

[0108]

[0109] Table 3 provides the specifications for signaling ACT mode.

[0110] The flag cu_act_enabled_flag equal to 1 indicates that the residual of the coding unit is encoded in the YCgCo color space, and the flag cu_act_enabled_flag equal to 0 indicates that the residual of the coding unit is encoded in the original color space (e.g., RGB or YCbCr). When the flag cu_act_enabled_flag is not present, it is inferred to be equal to 0.

[0111] Fig. 8A and 8B 1 is a block diagram illustrating an exemplary video decoding process according to some implementations of the present disclosure, by which a video decoder implements techniques for inverse adaptive color space transform ACT and luma mapping with chroma scaling. In some embodiments, two ACTs (e.g., Figure 7 inverse ACT) and chroma residual scaling (e.g., Figure 6 In some other embodiments, the video bitstream is encoded using chroma residual scaling but without using two ACTs, so that an inverse ACT is not required.

[0112] More specifically, Fig. 8A An embodiment is depicted in which the video codec performs chroma residual scaling prior to inverse ACT. As a result, the video codec performs luma mapping in the color space transform domain using chroma residual scaling. For example, assuming the input video is captured in RGB format and transformed into the YCgCo color space, the video codec performs chroma residual scaling on the chroma residuals Cg and Co according to the luma residual Y in the YCgCo color space.

[0113] Figure 8B An alternative embodiment is depicted in which the video codec performs chroma residual scaling after inverse ACT. As a result, the video codec performs luma mapping in the original color space domain using chroma residual scaling. For example, assuming the input video is captured in RGB format, the video codec applies chroma residual scaling to the B and R components.

[0114] Fig. 9is a block diagram illustrating exemplary decoding logic between performing adaptive color space transform ACT and block differential pulse code modulation BDPCM according to some implementations of the present disclosure.

[0115] BDPCM is a codec tool for screen content coding. In some embodiments, at the sequence level, the BDPCM enable flag is signaled in the SPS. The BDPCM enable flag is signaled only when the transform skip mode is enabled in the SPS.

[0116] When BDPCM is enabled, if the CU size is less than or equal to MaxTsSize×MaxTsSize in terms of luma samples and if the CU is intra-coded, a flag is signaled at the CU level, where MaxTsSize is the maximum block size allowed for transform skip mode. The flag indicates whether conventional intra-coding or BDPCM is used. If BDPCM is used, another BDPCM prediction direction flag is further transmitted to indicate whether the prediction is horizontal or vertical. The block is then predicted using a conventional horizontal or vertical intra prediction process using unfiltered reference samples. The residual is quantized, and the difference between each quantized residual and its predictor, that is, the previously encoded residual of a neighboring position horizontally or vertically (depending on the BDPCM prediction direction), is encoded.

[0117] For a block of size M (height) × N (width), let r i,j (0≤i≤M-1, 0≤j≤N-1) is the prediction residual. Let Q(r i,j )(0≤i≤M-1,0≤j≤N-1) represents the residual r i,j BDPCM is applied to the quantized residual values, resulting in a quantized version of The modified M×N array of in is predicted from its neighboring quantized residual values. For vertical BDPCM prediction mode, for 0≤j≤(N-1), the following is used to derive

[0118]

[0119] For the horizontal BDPCM prediction mode, for 0≤i≤(M-1), the following is used to derive

[0120]

[0121] At the decoder side, the above process is reversed to calculate Q(r i,j ), 0≤i≤M-1, 0≤j≤N-1, as follows:

[0122] If vertical BDPCM is used, then

[0123] If horizontal BDPCM is used, then

[0124] The inverse quantized residual Q -1 (Q(r i,j )) is added to the intra block prediction value to produce the reconstructed sample value.

[0125] The predicted quantized residual value is converted to Sent to the decoder. In terms of the MPM mode for future intra-frame mode encoding, if the BDPCM prediction direction is horizontal or vertical, respectively, the horizontal or vertical prediction mode is stored for the BDPCM-encoded CU. For deblocking, if two blocks on the side of the block boundary are encoded using BDPCM, the specific block boundary will not be deblocked. According to the latest VVC working draft, when the input video is in 4:4:4 chroma format, BDPCM can be applied to both luminance and chroma components by signaling two separate flags (i.e., intra_bdpcm_luma_flag and intra_bdpcm_chroma_flag) for luminance and chroma channels at the CU level.

[0126] In some embodiments, the video codec implements different logic to better handle the interaction between ACT and BDPCM. For example, when ACT is applied to an intra CU, BDPCM is enabled for the luma component, but BDPCM is disabled for the chroma components (910). The corresponding modified syntax table of the coding unit is illustrated as follows:

[0127]

[0128]

[0129]

[0130] Table 4 BDPCM enabled only for the luma component.

[0131] In some embodiments, when ACT is applied to an intra CU, BDPCM is enabled for both luma and chroma components (920). The corresponding modified syntax table of the coding unit is illustrated as follows:

[0132]

[0133]

[0134]

[0135] Table 5 BDPCM enabled for both luma and chroma components.

[0136] In some embodiments, when ACT is applied to an intra CU, BDPCM is disabled for both luma and chroma components (930). In this case, no BDPCM-related syntax elements need to be signaled. The corresponding modified syntax table for the coding unit is illustrated as follows:

[0137]

[0138]

[0139]

[0140] Table 6 disables BDPCM for both luma and chroma components.

[0141] Fig.10 is a flowchart 1000 illustrating an exemplary process according to some implementations of the present disclosure by which a video codec decodes video data by conditionally performing an ACT technique based on the interaction between the Inverse Adaptive Color Space Transform ACT and other codec tools (e.g., LMCS and BDPCM).

[0142] As a first step, a video decoder receives a first syntax element in a slice header of a slice from a bitstream, the first syntax element indicating whether a luma map LMCS with chroma scaling is applied to coding units in the slice (1010).

[0143] Then, the video decoder receives a second syntax element (eg, cu_act_enabled_flag) for the coding unit in the slice from the bitstream (1020). The second syntax element indicates whether the coding unit has been encoded using adaptive color space transform ACT.

[0144] If the second syntax element has a non-zero value (e.g., indicating that the coding unit has been encoded using the ACT), the video decoder decodes the video data by applying an inverse ACT to convert the luma residual and chroma residual of the coding unit from the transformed color space of the video data corresponding to the coding unit to the original color space (1030).

[0145] After applying the inverse ACT to convert the luma residual and the chroma residual of the coding unit, if the first syntax element has a non-zero value (for example, indicating that the coding unit has been encoded using LMCS), the video decoder decodes the video data corresponding to the coding unit by performing inverse luma mapping on the luma samples of the coding unit and performing inverse scaling on the chroma residual of the coding unit (1040).

[0146] In some embodiments, before receiving the second syntax element, the video decoder receives a third syntax element (e.g., chroma_format_idc) from the bitstream, wherein the third syntax element indicates whether the video data has a predefined chroma format. As noted above, ACT is enabled only for certain predefined chroma formats (e.g., 4:4:4 chroma formats).

[0147] In some embodiments, the second syntax element (eg, cu_act_enabled_flag) is present in the bitstream only when the video data has the predefined chroma format (eg, ACT is disabled when the video data is not in 4:4:4 chroma format).

[0148] In some embodiments, the transformed color space is a YCgCo color space, and the original color space may be an RGB color space or a YCbCr color space.

[0149] In some embodiments, after performing inverse ACT to convert the luma residual and chroma residual of the coding unit, the video decoder performs inverse luma mapping on the luma samples of the coding unit and inverse scaling on the chroma residual of the coding unit in the following manner: generating intermediate luma samples in a mapping domain of the coding unit by adding the luma residual in the original color space to the predicted luma samples; converting the intermediate luma samples in the mapping domain into reconstructed luma components in a pre-mapped domain using one or more adaptive piecewise linear models; inverse scaling the chroma residual according to the corresponding intermediate luma samples in the mapping domain; and reconstructing the chroma components of the coding unit using the scaled chroma residual and the predicted chroma samples.

[0150] In some embodiments, a video decoder receives video data corresponding to a coding unit from a bitstream, wherein the coding unit is encoded by an intra-frame prediction mode. The video codec receives a first syntax element (e.g., cu_act_enabled_flag) from the video data, wherein the first syntax element indicates whether the coding unit has been encoded using an adaptive color space transform ACT. If the first syntax element has a zero value, the video codec receives one or more syntax elements (e.g., intra_bdpcm_chroma_flag, intra_bdpcm_chroma_dir_flag) from the video data, wherein the one or more syntax elements indicate whether the chroma component of the coding unit has been encoded using block differential pulse code modulation BDPCM. If the first syntax element has a non-zero value, the video codec assigns a default value to the one or more syntax elements associated with BDPCM. The default value may indicate that the chroma component of the coding unit is decoded using inverse BDPCM or in other ways. Then, the video codec decodes the coding unit from the video data according to the first syntax element associated with ACT and the one or more syntax elements associated with the BDPCM.

[0151] In some embodiments, before receiving the first syntax element, the video decoder receives a second syntax element from the video data, wherein the second syntax element indicates whether the video data has a predefined chroma format. As noted above, ACT is enabled only for certain predefined chroma formats (e.g., 4:4:4 chroma formats).

[0152] In some embodiments, the first syntax element is present in the bitstream only if the video data has the predefined chroma format.

[0153] In some embodiments, when the coding unit is encoded without applying a color space transform, the coding unit is decoded using inverse BDPCM.

[0154] In one or more examples, the functions described may be implemented in hardware, software, firmware, or any combination thereof. If implemented in software, these functions may be stored or transmitted on a computer-readable medium as one or more instructions or codes, and executed by a hardware-based processing unit. A computer-readable medium may include a computer-readable storage medium, the medium corresponding to a tangible medium such as a data storage medium, or a communication medium, the communication medium including, for example, any medium that facilitates the transfer of a computer program from one place to another according to a communication protocol. In this manner, a computer-readable medium may generally correspond to (1) a tangible, non-temporary computer-readable storage medium, or (2) a communication medium such as a signal or carrier wave. A data storage medium may be any available medium that can be accessed by one or more computers or one or more processors to retrieve instructions, codes, and / or data structures for implementing the implementation described in this application. A computer program product may include a computer-readable medium.

[0155] The terms used in the description of the implementation in this article are only for the purpose of describing a specific implementation, and are not intended to limit the scope of the claims. As used in the description of the implementation and the appended claims, the singular forms "a, and", and "said" are also intended to include plural forms, unless the context clearly indicates otherwise. It will also be understood that the term "and / or" used in this article refers to and covers any and all possible combinations of one or more associated listed items. It will be further understood that the terms "include" and / or "comprising" specify the presence of declared features, elements and / or components when used in this specification, but do not exclude the presence or addition of one or more other features, elements, components and / or groups thereof.

[0156] It will also be understood that, although the terms first, second, etc. may be used to describe various elements in this article, these elements should not be limited by these terms. These terms are only used to distinguish one element from another element. For example, without departing from the scope of the implementation, the first electrode may be referred to as the second electrode, and similarly, the second electrode may be referred to as the first electrode. Both the first electrode and the second electrode are electrodes, but they are not the same electrode.

[0157] The description of the present application is given for the purpose of illustration and description, and is not intended to be exhaustive or to limit the invention to the disclosed form. With the benefit of the teachings presented in the foregoing description and the associated drawings, many modifications, variations and alternative implementations will be apparent to those of ordinary skill in the art. The embodiments are selected and described in order to best explain the principles of the invention, practical applications, and to enable other persons of ordinary skill in the art to understand the invention for various implementations, and to best utilize the underlying principles and various implementations with various modifications when suitable for the intended specific use. Therefore, it is to be understood that the scope of the claims is not limited to the specific examples of the disclosed implementations, and modifications and other implementations are intended to be included within the scope of the appended claims.

Claims

1. A video encoding method, comprising: determining whether a luma map LMCS with chroma scaling has been applied to coding units in a slice; Determining whether a coding unit in the slice has been encoded using an adaptive color space transform ACT; Based on a determination that the coding unit has been encoded using the ACT, applying an inverse ACT to convert luma residual and chroma residual of the coding unit from a transformed color space of the video data to an original color space; as well as After applying the inverse ACT to convert the luma residual and chroma residual of the coding unit, according to the determination that LMCS has been applied to the coding units in the slice, intermediate luma samples are derived based on the luma residual of the coding unit in the original color space, inverse luma mapping is performed using the intermediate luma samples, and inverse scaling is performed using the chroma residual of the coding unit in the original color space.

2. The method according to claim 1, further comprising: signaling a first syntax element, wherein the first syntax element indicates whether LMCS is applied to coding units in the slice; as well as A second syntax element is selectively signaled, wherein the second syntax element indicates whether the coding unit has been encoded using an ACT.

3. The method according to claim 2, further comprising: Prior to selectively signaling the second syntax element, a third syntax element is signaled, wherein the third syntax element indicates whether the video data has a predefined chroma format. The method of claim 3 , wherein the predefined chroma format is a 4:4:4 chroma format.

5. The method of claim 3, wherein the second syntax element is signaled only when the video data has the predefined chroma format. The method of claim 1 , wherein the transformed color space is a YCgCo color space. The method according to claim 1 , wherein the original color space is an RGB color space.

8. The method of claim 1, wherein the steps of deriving intermediate luma samples based on the luma residual of the coding unit in the original color space, performing inverse luma mapping using the intermediate luma samples, and performing inverse scaling using the chroma residual of the coding unit in the original color space comprises: generating the intermediate luma samples in a mapped domain of the coding unit by adding the luma residual in the original color space to predicted luma samples of the coding unit; converting the intermediate luma samples in the mapped domain into reconstructed luma components in a pre-mapped domain using one or more adaptive piecewise linear models; inversely scaling the chrominance residual in the original color space according to corresponding intermediate luminance samples in the mapped domain; as well as A chroma component of the coding unit is reconstructed using the scaled chroma residual and the predicted chroma samples of the coding unit.

9. An electronic device comprising: one or more processing units; a memory coupled to the one or more processing units; as well as A plurality of programs stored in the memory, which, when executed by the one or more processing units, cause the electronic device to perform the method according to any one of claims 1-8.

10. A non-transitory computer-readable storage medium storing a bit stream generated by the method according to any one of claims 1 to 8.

11. A method for storing a bit stream, wherein the bit stream is generated by the method according to any one of claims 1-8.

12. A computer program product, comprising a plurality of program codes for execution by an electronic device having one or more processing units, wherein the plurality of program codes, when executed by the one or more processing units, causes the electronic device to perform the method according to any one of claims 1-8.

Citation Information

Patent Citations

  • Tooling Device And Method For Producing A Planar Structural Component For An Aircraft

    US20200055264A1