Method, electronic device, storage medium and program product for encoding video

By deciding whether to enable the palette mode according to the size and type of the coding unit in the video encoding and decoding system, the problem of low encoding and decoding efficiency of high-resolution video data is solved, and efficient processing of small-sized coding units is achieved.

CN117544767BActive Publication Date: 2024-10-18BEIJING DAJIA INTERNET INFORMATION TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202311584936.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-03-29
Publication Date
2024-10-18
Estimated Expiration
2041-03-29

AI Technical Summary

Technical Problem

There is a long-standing challenge in how to encode and decode video data more efficiently while maintaining the image quality of the decoded video data, especially at high resolutions such as 4K×2K or 8K×4K.

Method used

By deciding whether to enable the palette mode based on the size and type of the coding unit in the video codec system, disabling the palette mode for coding units smaller than or equal to a predefined threshold, and processing the luma and chroma components separately, to optimize the encoding and decoding process.

Benefits of technology

It improves the efficiency of video encoding and decoding, reduces the processing complexity and resource requirements for high-resolution video data, and enhances the processing capability of small-size coding units.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117544767B_ABST
    Figure CN117544767B_ABST
Patent Text Reader

Abstract

A method, electronic device, storage medium and program product for encoding a video. The method includes: receiving a plurality of syntax elements associated with a coding unit from a bitstream, wherein the plurality of syntax elements indicate a coding tree type of the coding unit and whether a local dual-tree mode is enabled for the coding unit; and according to the determined coding tree type of the coding unit being a single tree and the local dual-tree mode being enabled for the coding unit: disabling a palette mode for the coding unit when the coding unit has a size equal to or less than a predefined threshold. In some embodiments, disabling a palette mode for a coding unit includes: disabling a palette mode for both a luminance component and a chrominance component of the coding unit, or disabling a palette mode only for a chrominance component of the coding unit.
Need to check novelty before this filing date? Find Prior Art

Description

[0001] This application is a divisional application of the invention application with application number 202180023972.0, application date March 29, 2021, and title “Method and device for video encoding and decoding using palette mode”. Technical Field

[0002] The present application relates generally to video data encoding and compression, and more particularly to methods and systems for video encoding and decoding using palette modes. Background Art

[0003] 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.) support digital video. 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-T H.264 / MPEG-4, Part 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 redundancy inherent in video data. For block-based video coding, a video frame is divided into one or more strips, each strip having multiple video blocks, which may also be referred to as coding tree units (CTUs). 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 (TUs) and each CU also contains one or more prediction units (PUs). Each CU can be coded in intra, inter, or IBC mode. Video blocks in an intra-coded (I) slice of a video frame are coded using spatial predictions about 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 about reference samples in neighboring blocks within the same video frame or temporal predictions about reference samples in other previous reference video frames and / or future reference video frames.

[0004] A prediction block for the current video block to be coded is derived based on spatial prediction or temporal prediction of previously coded reference blocks (e.g., neighboring blocks). The process of finding the reference block can be accomplished by a block matching algorithm. The residual data representing the pixel differences between the current block to be coded and the prediction block is called a residual block or prediction error. Inter-coded blocks are encoded based on the residual block and a motion vector pointing to a reference block in a reference frame that forms the prediction block. The process of determining the motion vector is generally referred to as motion estimation. Intra-coded blocks are encoded based on the intra-frame prediction mode and the residual block. For further compression, the residual block is transformed from the pixel domain to the transform domain (e.g., the 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 generate a one-dimensional vector of transform coefficients, which are then entropy encoded into a video bitstream to achieve even greater compression.

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

[0006] As digital video quality changes from HD to 4K×2K or even 8K×4K, the amount of video data to be encoded / decoded increases exponentially. How to encode / decode video data more efficiently while maintaining the image quality of the decoded video data is a long-standing challenge. Summary of the invention

[0007] The present application describes embodiments related to video data encoding and decoding, and more particularly, describes embodiments related to systems and methods for video encoding and decoding using palette modes.

[0008] According to the first aspect of the present application, a method for decoding video data includes: receiving multiple syntax elements associated with a coding unit from a bitstream, wherein the multiple syntax elements indicate a coding tree type of the coding unit and whether a local dual-tree mode is enabled for the coding unit; and based on the determination that the coding tree type of the coding unit is a single tree and the local dual-tree mode is enabled for the coding unit: when the coding unit has a size equal to or smaller than a predefined threshold, disabling a palette mode for the coding unit.

[0009] In some embodiments, disabling a palette mode for the coding unit comprises disabling a palette mode for both a luma component and a chroma component of the coding unit.

[0010] In some embodiments, disabling the palette mode for the coding unit includes: disabling the palette mode only for the chroma component of the coding unit.

[0011] According to a second 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 third aspect of the present application, a non-volatile 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 embodiments and are incorporated in and constitute a part of the specification, illustrate the described embodiments 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 embodiments of the present disclosure.

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

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

[0017] FIG. 4A to FIG. 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 embodiments of the present disclosure.

[0018] FIG. 5A to FIG. 5D is a block diagram illustrating an example of encoding and decoding video data using a palette table according to some embodiments of the present disclosure.

[0019] Figure 6 is a flow chart illustrating an exemplary process by which a video decoder implements a technique for decoding video data according to some embodiments of the present disclosure.

[0020] Figure 7is a block diagram illustrating an example Context Adaptive Binary Arithmetic Coding and Decoding (CABAC) engine according to some embodiments of the present disclosure. DETAILED DESCRIPTION

[0021] Reference will now be made in detail to specific embodiments, examples of which are shown 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.

[0022] Figure 1 is a block diagram illustrating an exemplary system 10 for encoding and decoding video blocks in parallel according to some embodiments of the present disclosure. Figure 1 As shown in , system 10 includes a source device 12 that generates and encodes video data to be later decoded by a destination device 14. Source device 12 and destination device 14 may include any of a wide 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.

[0023] In some embodiments, the target 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 target device 14. In one example, the link 16 may include a communication medium that enables the source device 12 to send the encoded video data directly to the target device 14 in real time. The encoded video data may be modulated according to a communication standard (such as a wireless communication protocol) and sent to the target 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 (e.g., 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 device that may be useful in facilitating communication from the source device 12 to the target device 14.

[0024] In some other embodiments, the encoded video data may be sent from the output interface 22 to the storage device 32. Subsequently, the encoded video data in the storage device 32 may be accessed by the target device 14 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 hold the encoded video data generated by the source device 12. The target 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 encoded video data and sending the encoded video data to the target device 14. Exemplary file servers include web servers (e.g., for websites), FTP servers, network attached storage (NAS) devices, or local disk drives. The target 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 wireless channels and wired connections. The transmission of the encoded video data from the storage device 32 may be a streaming transmission, a download transmission, or a combination of both streaming transmission and download transmission.

[0025] 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 sources such as or a combination of such sources: a video capture device (e.g., a camera), a video archive containing previously captured video, a video feed interface for receiving video from a video content provider, and / or a computer graphics system for generating computer graphics data as source video. As an example, if video source 18 is a camera of a security monitoring system, source device 12 and target device 14 may form a camera phone or a video phone. However, the embodiments described in this application are generally applicable to video encoding and decoding, and may be applied to wireless and / or wired applications.

[0026] The captured, pre-captured, or computer-generated video may be encoded by the video encoder 20. The encoded video data may be sent directly to the target 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 target device 14 or other devices for decoding and / or playback. The output interface 22 may further include a modem and / or a transmitter.

[0027] Target 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 communicated via link 16 or provided on storage device 32 may include various syntax elements generated by video encoder 20 for use by video decoder 30 in decoding the video data. Such syntax elements may be included in the encoded video data sent over a communication medium, stored on a storage medium, or stored on a file server.

[0028] In some implementations, the target 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 target 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.

[0029] The video encoder 20 and the video decoder 30 may operate according to a proprietary standard or an industry standard (e.g., VVC, HEVC, MPEG-4, Part 10, Advanced Video Codec (AVC)) or an extension of such a standard. It should be understood that the present application is not limited to a specific video encoding / decoding standard and may be applicable to other video encoding / decoding standards. It is generally believed that the video encoder 20 of the source device 12 may be configured to encode video data according to any of these current standards or future standards. Similarly, it is also generally believed that the video decoder 30 of the target device 14 may be configured to decode video data according to any of these current standards or future standards.

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

[0031] Figure 2is a block diagram illustrating an exemplary video encoder 20 according to some embodiments described herein. The video encoder 20 may perform intra-frame prediction coding and inter-frame prediction coding for video blocks within a video frame. Intra-frame prediction coding relies on spatial prediction to reduce or remove spatial redundancy in video data within a given video frame or picture. Inter-frame prediction coding relies on temporal prediction to reduce or remove temporal redundancy in video data within adjacent video frames or pictures of a video sequence.

[0032] like Figure 2 As shown in FIG, the video encoder 20 includes a video data memory 40, a prediction processing unit 41, a decoded picture buffer (DPB) 64, 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 segmentation unit 45, an intra-frame prediction processing unit 46, and an intra-frame block copy (BC) unit 48. In some embodiments, 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) may be located between the adder 62 and the DPB 64 to filter the block boundaries to remove block artifacts from the reconstructed video. In addition to the deblocking filter, an in-loop filter (not shown) may also be used to filter the output of the adder 62. The video encoder 20 may take the form of a fixed or programmable hardware unit, or may be dispersed in one or more of the illustrated fixed or programmable hardware units.

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

[0034] like Figure 2As shown in , after receiving the video data, the segmentation unit 45 within the prediction processing unit 41 segments the video data into video blocks. This segmentation may also include segmenting the video frame into slices, partitions (tiles), or other larger coding units (CUs) according to a predefined splitting structure associated with the video data (such as a quadtree structure). The video frame may be divided into a plurality of video blocks (or a set of video blocks referred to as partitions). The prediction processing unit 41 may select one of a plurality of feasible prediction codec modes for the current video block based on error results (e.g., codec rate and distortion level), such as one of one or more inter-frame prediction coding modes in a plurality of intra-frame prediction codec modes. The prediction processing unit 41 may provide the resulting intra-frame prediction coding block or inter-frame prediction coding block to the adder 50 to generate a residual block, and to the adder 62 to reconstruct the coding 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, segmentation information, and other such syntax information) to the entropy coding unit 56.

[0035] To select an appropriate intra-prediction codec mode for the current video block, intra-prediction processing unit 46 within prediction processing unit 41 may perform intra-prediction codec of the current video block in relation to one or more neighboring blocks in the same frame as the current block to be encoded to provide spatial prediction. Motion estimation unit 42 and motion compensation unit 44 within prediction processing unit 41 may perform inter-prediction codec of the current video block in relation to one or more prediction blocks in one or more reference frames to provide temporal prediction. Video encoder 20 may perform multiple encoding passes, for example, to select an appropriate codec mode for each block of video data.

[0036] In some embodiments, motion estimation unit 42 determines the inter-prediction mode for a 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 prediction 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 for 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 prediction block (or other coding unit) within a reference frame associated with a current block (or other coding unit) being encoded and decoded within the current frame. The predetermined pattern may designate video frames in a sequence as P frames or B frames. Intra BC unit 48 may determine a vector (e.g., a block vector) for intra BC encoding and decoding in a manner similar to the motion vector determined by motion estimation unit 42 for inter prediction, or may utilize motion estimation unit 42 to determine the block vector.

[0037] A prediction 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 sum of absolute differences (SAD), sum of squared differences (SSD), or other difference metrics. In some embodiments, 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 a reference frame. Thus, motion estimation unit 42 may perform motion searches relative to full pixel positions and fractional pixel positions and output motion vectors with fractional pixel precision.

[0038] Motion estimation unit 42 calculates a motion vector for a PU of a video block in an inter-prediction codec frame by comparing the position of the PU with the position of a prediction 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.

[0039] The motion compensation performed by the motion compensation unit 44 may involve extracting or generating a prediction block based on the motion vector determined by the motion estimation unit 42. After receiving the motion vector for the PU of the current video block, the motion compensation unit 44 may locate the prediction block pointed to by the motion vector in one of the reference frame lists, retrieve the prediction block from the DPB 64, and forward the prediction 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 prediction block provided by the motion compensation unit 44 from the pixel values ​​of the current video block being encoded and decoded. The pixel difference values ​​forming the residual video block may include a luminance difference component or a chrominance 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 a motion vector for identifying a prediction block, any flag indicating a prediction mode, or any other syntax information described herein. It should be noted that the motion estimation unit 42 and the motion compensation unit 44 may be highly integrated, but are described separately for conceptual purposes.

[0040] In some embodiments, the intra BC unit 48 may generate vectors and extract prediction blocks in a manner similar to that described above in conjunction with the motion estimation unit 42 and the motion compensation unit 44, but these prediction blocks are in the same frame as the current block being encoded, and these vectors are referred to as block vectors rather than motion vectors. Specifically, the intra BC unit 48 may determine the intra prediction mode to be used to encode the current block. In some examples, the intra BC unit 48 may encode the current block using various intra prediction modes, for example, during separate encoding passes, and test their performance through rate-distortion analysis. Next, the intra BC unit 48 may select a suitable 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 rate-distortion values ​​for the various tested intra prediction modes using rate-distortion analysis, and select the intra prediction mode with the best rate-distortion characteristics among the tested modes as the suitable intra prediction mode to use. The rate-distortion analysis generally determines the amount of distortion (or error) between a coded block and the original uncoded block that was encoded to generate the coded block, as well as the bit rate (i.e., the number of bits) used to generate the coded block. Intra BC unit 48 may calculate ratios from the distortions and rates for the various coded blocks to determine which intra-prediction mode exhibits the best rate-distortion value for the block.

[0041] In other examples, intra BC unit 48 may use, in whole or in part, motion estimation unit 42 and motion compensation unit 44 to perform such functions for intra BC prediction in accordance with embodiments described herein. In either case, for intra block copying, the prediction 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 sum of absolute differences (SAD), sum of square differences (SSD), or other difference metrics, and identification of the prediction block may include calculating values ​​for sub-integer pixel positions.

[0042] Regardless of whether the prediction 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 pixel difference values ​​by subtracting the pixel values ​​of the prediction block from the pixel values ​​of the current video block being decoded, thereby forming a residual video block. The pixel difference values ​​forming the residual video block may include both luma component differences and chroma component differences.

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

[0044] After prediction processing unit 41 determines a prediction block for the current video block via inter-prediction or intra-prediction, adder 50 forms a residual video block by subtracting the prediction block from the current video block. The residual video data in the residual block may be included in one or more transform units (TUs) and provided to transform processing unit 52. 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.

[0045] Transform processing unit 52 may send the resulting transform coefficients to quantization unit 54. 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 of the coefficients. The degree of quantization may be modified by adjusting a quantization parameter. In some examples, quantization unit 54 may then perform a scan of the matrix including the quantized transform coefficients. Optionally, entropy encoding unit 56 may perform the scan.

[0046] After quantization, entropy encoding 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 partitioning entropy (PIPE) coding, or another entropy coding method or technique. The encoded bitstream may then be sent to video decoder 30, or archived in storage device 32 for later sending to or retrieval by video decoder 30. Entropy encoding unit 56 may also entropy encode motion vectors and other syntax elements for the current video frame being encoded.

[0047] 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 for use in generating reference blocks for predicting other video blocks. As noted above, motion compensation unit 44 may generate a motion compensated prediction 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 prediction block to calculate sub-integer pixel values ​​for use in motion estimation.

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

[0049] Figure 3 30 is a block diagram showing an exemplary video decoder 30 according to some embodiments 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 the above combined Figure 2 The encoding process is substantially the inverse of the decoding 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.

[0050] In some examples, units of the video decoder 30 may be tasked to perform embodiments of the present application. In addition, in some examples, embodiments of the present disclosure may be dispersed in one or more of the multiple units of the video decoder 30. For example, the intra BC unit 85 may perform embodiments of the present application alone or in combination with other units of the video decoder 30 (such as 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).

[0051] 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 the 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. A decoded picture buffer (DPB) 92 of the video decoder 30 stores reference video data for use by the video decoder 30 when decoding the video data (e.g., in an intra-frame or inter-frame prediction codec mode). The video data memory 79 and the DPB 92 may be formed by any of a variety of memory devices, such as dynamic random access memory (DRAM) (including synchronous DRAM (SDRAM)), magnetoresistive RAM (MRAM), resistive RAM (RRAM), or other types of memory devices. For illustrative purposes, the video data memory 79 and the DPB 92 are shown in FIG. Figure 3 92 as two different components of video decoder 30. However, it will be apparent to those skilled in the art that video data memory 79 and DPB 92 may be provided by the same memory device or separate memory devices. In some examples, video data memory 79 may be on-chip with other components of video decoder 30, or off-chip relative to those components.

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

[0053] When a video frame is encoded as an intra-prediction coded (I) frame or for intra-coded prediction blocks in other types of frames, intra-prediction unit 84 of prediction processing unit 81 may 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.

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

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

[0056] The motion compensation unit 82 and / or the intra BC unit 85 determine the prediction information for 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 a prediction block for 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 prediction or inter prediction) for encoding and decoding the video block of the video frame, the inter prediction frame type (e.g., B or P), the construction information for one or more of the reference frame lists for the frame, the motion vector for each inter prediction coded video block of the frame, the inter prediction state for each inter prediction coded video block of the frame, and other information for decoding the video block in the current video frame.

[0057] Similarly, the intra BC unit 85 may use some of the received syntax elements, such as flags, to determine whether the current video block is predicted using 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 for each intra BC predicted video block of the frame, intra BC prediction status for each intra BC predicted video block of the frame, and other information for decoding the video block in the current video frame.

[0058] Motion compensation unit 82 may also perform interpolation using interpolation filters as used during encoding of the video blocks by video encoder 20 to calculate interpolated values ​​for sub-integer pixels of reference blocks. In this case, motion compensation unit 82 may determine the interpolation filters used by video encoder 20 from the received syntax elements and use these interpolation filters to generate the prediction blocks.

[0059] 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.

[0060] After the motion compensation unit 82 or the intra BC unit 85 generates a prediction block for the current video block based on the vector and other syntax elements, the adder 90 reconstructs the decoded video block for the current video block by adding the residual block from the inverse transform processing unit 88 to the corresponding prediction block generated by the motion compensation unit 82 and the intra BC unit 85. An in-loop filter (not shown) may be located between the adder 90 and the DPB 92 to further process the decoded video block. The decoded video block in a given frame is 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 may also store the decoded video for later presentation on a display device (e.g., Figure 1 on a display device 34).

[0061] In a typical video encoding and decoding process, a video sequence usually includes an ordered set of frames or pictures. Each frame may 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 cases, a frame may be monochrome and therefore include only a two-dimensional array of luma samples.

[0062] like Figure 4A As shown in , the video encoder 20 (or more specifically, the segmentation unit 45) generates an encoded representation of a frame by first segmenting the frame into a set of coding tree units (CTUs). A video frame may include an integer number of CTUs ordered consecutively 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, one of 128×128, 64×64, 32×32, and 16×16. It should be noted, however, that the present application is not necessarily limited to a particular size. As Figure 4BAs shown in , each CTU may include one coding tree block (CTB) of luma samples, two corresponding coding tree blocks of chroma samples, and syntax elements for encoding and decoding samples of the coding tree blocks. The syntax elements describe the properties of different types of units of coding pixel blocks and how the video sequence can be reconstructed at the video decoder 30, including inter-frame prediction 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 and decoding samples of the coding tree block. The coding tree block may be an N×N sample block.

[0063] To achieve better performance, video encoder 20 may recursively perform tree partitioning, such as binary tree partitioning, ternary tree partitioning, quadtree partitioning, or a combination of both, on the coding tree blocks of the CTU and divide the CTU into smaller coding units (CUs). Figure 4C As depicted in , the 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 respectively divided into four CUs with a block size of 16×16. The two 16×16 CUs 430 and CU 440 are further divided into four CUs with a block size of 8×8. Figure 4D Depicted is a diagram showing Figure 4C The quadtree data structure of the final result of the partitioning process of the CTU 400 depicted in FIG. 4 corresponds to a CU of each size ranging from 32×32 to 8×8. Figure 4B 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 and decoding the samples of the coding blocks. 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 and decoding the samples of the coding block. It should be noted that Figure 4C and Figure 4D The quadtree partitioning depicted in FIG is for illustrative purposes only, and a CTU may be split into CUs based on quadtree / ternary tree / binary tree partitioning to adapt to varying local characteristics. In a multi-type tree structure, a CTU is partitioned by a quadtree structure, and each quadtree leaf CU may be further partitioned by a binary and ternary tree structure. Figure 4E As shown, there are five types of segmentation, namely, quadruple segmentation, horizontal binary segmentation, vertical binary segmentation, horizontal ternary segmentation, and vertical ternary segmentation.

[0064] In some embodiments, the video encoder 20 may further partition the coding block of the CU into one or more M×N prediction blocks (PBs). A prediction block is a rectangular (square or non-square) block of samples to 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 a predicted luma block, a predicted Cb block, and a predicted Cr block for the luma prediction block, the Cb prediction block, and the Cr prediction block of each PU of the CU.

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

[0066] After the video encoder 20 generates the predicted luma block, the predicted Cb block, and the predicted Cr block for one or more PUs of a CU, the video encoder 20 may generate a luma residual block for the CU by subtracting the predicted 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 predicted 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 for 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 predicted 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 predicted Cr blocks of the CU and a corresponding sample in the original Cr coding block of the CU.

[0067] In addition, if Figure 4CAs shown in , the video encoder 20 may decompose the luma residual block, Cb residual block, and Cr residual block of a CU into one or more luma transform blocks, Cb transform blocks, and Cr transform blocks using quadtree partitioning. A transform block is a rectangular (square or non-square) sample block to which the same transform is applied. A 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 transform block samples. 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.

[0068] The video encoder 20 may apply one or more transforms to the luma transform block of the TU to generate a luma coefficient block for 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 for 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 for the TU.

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

[0070] 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 the video data is generally the inverse of 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 prediction block for 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 for each CU of the frame, the video decoder 30 may reconstruct the frame.

[0071] As described above, video codecs mainly use two modes, namely, intra-frame prediction (or intra-frame prediction) and inter-frame prediction (or inter-frame prediction) to achieve video compression. Palette-based codec is another codec scheme that has been adopted by many video codec standards. In palette-based codecs (which may be particularly suitable for screen-generated content codecs), a video codec (e.g., video encoder 20 or video decoder 30) forms a palette table representing the colors of video data for a given block. The palette table includes the most important (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 not included in the palette table or are included in the palette table as escape colors.

[0072] Each entry in the palette table includes an index to a corresponding pixel value in the palette table. The palette index for a sample in a block can be encoded to indicate which entry from the palette table will be used to predict or reconstruct which sample. This palette mode begins with a process of generating a palette predictor for the first block of a picture, strip, tile, or other such grouping of video blocks. As will be explained below, the palette predictor for subsequent video blocks is typically generated by updating the 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.

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

[0074] To generate a palette table for a block of video data from the 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 the associated entry of the palette predictor is to be included in the palette table or a second value (e.g., binary zero) indicating that the 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 a maximum size for the palette table is reached.

[0075] In some embodiments, some entries in the palette table may be directly signaled in the encoded video bitstream without being determined using a palette predictor. For such entries, the video decoder may receive three separate m-bit values ​​from the encoded video bitstream indicating pixel values ​​for the luma component and two chroma components associated with the entry, where m represents the bit depth of the video data. Compared to the multiple m-bit values ​​required for palette entries that are directly signaled, those palette entries derived from the palette predictor require only a one-bit flag. Therefore, signaling some or all palette entries using a palette predictor can significantly reduce the number of bits required to signal new palette table entries, thereby improving the overall codec efficiency of palette mode codecs.

[0076] In many cases, the palette predictor for a block is determined based on the palette table used to encode one or more previously encoded blocks. However, when encoding and decoding the first coding tree unit in a picture, slice, or tile, the palette table of the previously encoded block may not be available. Therefore, the entries of the previously used palette table cannot be used to generate the palette predictor. In this case, a sequence of palette predictor initialization values ​​can be signaled in a sequence parameter set (SPS) and / or a picture parameter set (PPS), and the palette predictor initialization values ​​are values ​​used to generate the palette predictor when the previously used palette table is not available. SPS generally refers to a syntax structure of syntax elements applied to a series of consecutive coded video pictures called a coded video sequence (CVS), where the CVS is determined by the contents of the syntax elements found in the PPS referred to by the syntax elements found in each slice segment header. PPS generally refers to a syntax structure of syntax elements applied to one or more individual pictures within a CVS, where the CVS is determined by the syntax elements found in each 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 included in the SPS generally change less frequently and apply to a larger portion of the video data than the syntax elements included in the PPS.

[0077] FIG. 5A to FIG. 5B is a block diagram illustrating an example of encoding and decoding video data using a palette table according to some embodiments of the present disclosure.

[0078] For palette (PLT) mode signaling, the palette mode is encoded as a prediction mode for a coding unit, that is, the prediction mode for a coding unit can be MODE_INTRA, MODE_INTER, MODE_IBC, and MODE_PLT. If the palette mode is used, the pixel values ​​in the CU are represented by a small set of representative colors. This set is called a palette. For pixels with values ​​close to the palette colors, the palette index is sent with a signal. For pixels with values ​​outside the palette, the pixels are represented with escape symbols, and the quantized pixel values ​​are sent directly with a signal. The syntax and associated semantics of the palette mode in the current VVC draft specification are shown in Tables 1 and 2 below, respectively.

[0079] In order to decode a block encoded by a palette mode, the decoder needs to decode the palette colors and indices from the bitstream. The palette colors are defined by the palette table and encoded by the palette table encoding syntax (e.g., palette_predictor_run, num_signaled_palette_entries, new_palette_entries). The escape flag palette_escape_val_present_flag is signaled for each CU to indicate whether there is an escape symbol in the current CU. If there is an escape symbol, the palette table adds one more entry and the last index is assigned to the escape mode. The palette indices of all pixels in the CU form a palette index map and are encoded through the palette index map coding syntax (e.g., num_palette_indices_minus1, palette_idx_idc, copy_above_indices_for_final_run_flag, palette_transpose_flag, copy_above_palette_indices_flag, palette_run_prefix, palette_run_suffix). Figure 5A An example of a palette-mode coded CU is shown in , where the palette size is 4. The first 3 samples in the CU are reconstructed using palette entries 2, 0, and 3, respectively. The "x" samples in the CU represent escape symbols. The CU-level flag palette_escape_val_present_flag indicates whether there are any escape symbols in the CU. If there are escape symbols, the palette size is increased by 1 and the last index is used to indicate the escape symbol. Therefore, in Figure 5A , index 4 is assigned to the escape symbol.

[0080] If the palette index (for example, Figure 5A If index 4) in corresponds to an escape symbol, additional overhead is signaled to indicate the corresponding color of the sample.

[0081] In some embodiments, on the encoder side, it is necessary to derive a suitable palette for use with a CU. In order to derive a palette for lossy coding, an improved k-means clustering algorithm is used. The first sample of the block is added to the palette. Then, for each subsequent sample from the block, the sum of absolute differences (SAD) between the sample and each current palette color is calculated. If the distortion for each of the components is less than the threshold for the palette entry corresponding to the minimum SAD, the sample is added to the cluster belonging to the palette entry. Otherwise, the sample is added as a new palette entry. When the number of samples mapped to a cluster exceeds a threshold, the centroid of the cluster is updated and becomes the palette entry for the cluster.

[0082] In the next step, the clusters are sorted in descending order of usage. Then, the palette entry corresponding to each entry is updated. Typically, the cluster centroid is used as the palette entry. However, when considering the cost of encoding the palette entry, a rate-distortion analysis is performed to analyze whether any entry from the palette predictor may be more suitable for use as an updated palette entry rather than the centroid. This process continues until all clusters are processed or the maximum palette size is reached. Finally, if a cluster has only a single sample point and the corresponding palette entry is not in the palette predictor, the sample point is converted to an escape symbol. In addition, duplicate palette entries are removed and their clusters are merged.

[0083] After palette derivation, each sample in the block is assigned (in the SAD) the index of the nearest palette entry. The sample is then assigned to either the "INDEX" or "COPY_ABOVE" mode. For each sample that can be either the "INDEX" or "COPY_ABOVE" mode, the run length for each mode is determined. The cost of encoding the mode is then calculated. The mode with the lower cost is chosen.

[0084] To encode the palette table, a palette predictor is maintained. Both the maximum size of the palette and the maximum size of the palette predictor can be signaled in the SPS (or other encoding level, such as PPS, slice header, etc.). The palette predictor is initialized at the beginning of each slice where the palette predictor is reset to 0. For each entry in the palette predictor, a reuse flag is signaled to indicate whether the entry is part of the current palette. Figure 5BAs shown, the reuse flag palette_predictor_run is sent. After that, the number of new palette entries is signaled using the 0th order Exponential Golomb code through the syntax num_signaled_palette_entries. Finally, the component values ​​for the new palette entries new_palette_entries[] are signaled. After encoding the current CU, the palette predictor is updated using the current palette, and entries from the previous palette predictor that are not reused in the current palette are added to the end of the new palette predictor until the maximum size allowed is reached.

[0085] To encode the palette index map, the index is encoded using a horizontal traversal scan or a vertical traversal scan, such as Figure 5C Use palette_transpose_flag to explicitly signal the scan order in the bitstream.

[0086] There are two main palette sample modes used: "INDEX" and "COPY_ABOVE" to encode the palette index. In "INDEX" mode, the palette index is explicitly signaled. In "COPY_ABOVE" mode, the palette index of the samples in the row above is copied. For both "INDEX" and "COPY_ABOVE" modes, a run value is signaled that specifies the number of pixels encoded using the same mode. The mode is signaled using a flag, except for the top row when horizontal scanning is used, or the first column when vertical scanning is used, or when the previous mode was "COPY_ABOVE".

[0087] In some embodiments, the encoding order of index_map is as follows: first, the number of index values ​​for the CU is signaled using the syntax num_palette_indices_minus1, followed by the actual index value for the entire CU being signaled using the syntax palette_idx_idc. Both the number of indexes and the index values ​​are encoded in bypass mode. This groups the index-related bypass-coded bits together. Then, the palette mode (INDEX or COPY_ABOVE) and run are signaled in an interleaved manner using the syntax copy_above_palette_indices_flag, palette_run_prefix, and palette_run_suffix. copy_above_palette_indices_flag is a context-coded flag (only one bit), the codeword of palette_run_prefix is ​​determined by the process described in Table 3 below, and the first 5 bits are context-coded. palette_run_suffix is ​​encoded as a bypass bit. Finally, the component escape values ​​corresponding to the escape samples for the entire CU are grouped together and coded in bypass mode. An additional syntax element copy_above_indices_for_final_run_flag is signaled after the index value is signaled. This syntax element, combined with the number of indices, eliminates the need to signal the run value corresponding to the last run in the block.

[0088] In VVC (VTM), dual tree is enabled for I slices, which separates the coding unit partitions for luma and chroma components. As a result, the palette is applied to luma (Y component) and chroma (Cb and Cr components) separately. If dual tree is disabled, the palette will be applied jointly to Y, Cb, Cr components.

[0089] Table 1 Syntax of palette encoding

[0090]

[0091]

[0092]

[0093]

[0094]

[0095]

[0096]

[0097]

[0098] Table 2 Semantics of palette encoding

[0099]

[0100]

[0101]

[0102]

[0103]

[0104]

[0105] Table 3 Binary codewords and CABAC context selection for grammar palette_run_prefix

[0106]

[0107]

[0108]

[0109] As coefficient groups (CGs) used in transform coefficient encoding, a CU is divided into multiple line-based coefficient groups, each of which consists of m samples, where for each CG, index runs, palette index values, and quantization colors regarding escape modes are sequentially encoded / parsed. Therefore, pixels in line-based CGs can be reconstructed after parsing syntax elements (such as index runs, palette index values, and escape quantization colors regarding CGs), which greatly reduces the buffer requirements in VTM6.0 palette mode, where syntax elements for the entire CU must be parsed (and stored) before reconstruction.

[0110] In this application, each CU in the palette mode is divided into multiple fragments of m samples (m=8 in this test) based on the traversal scan mode, such as Figure 5D shown.

[0111] The coding order for the palette run-length coding in each fragment is as follows: For each pixel, a context-coded binary bit run_copy_flag=0 is signaled, indicating that the pixel has the same mode as the previous pixel, that is, the previously scanned pixel and the current pixel are both of run-length type COPY_ABOVE or the previously scanned pixel and the current pixel are both of run-length type INDEX and have the same index value. Otherwise, run_copy_flag=1 is signaled.

[0112] If the current pixel and the previous pixel have different modes, a context-coded binary bit copy_above_palette_indices_flag is signaled to indicate the run type of the pixel, either INDEX or COPY_ABOVE. In this case, the decoder does not have to resolve the run type if the sample is in the first row (horizontal traversal scan) or the first column (vertical traversal scan) because the INDEX mode is used by default. The decoder also does not have to resolve the run type if the previously resolved run type was COPY_ABOVE.

[0113] After palette run-length encoding of pixels in a fragment, index values ​​(for INDEX mode) and quantized escape colors are encoded as bypass bins and grouped separately from the encoding / parsing of context-coded bins to improve throughput within each line-based CG. Since the index values ​​are now encoded / parsed after run-length encoding, the encoder does not have to signal the number of index values ​​num_palette_indices_minus1 and the last run type copy_above_indices_for_final_run_flag. The syntax of the CG palette mode is shown in Table 4.

[0114] Table 4 Syntax of palette encoding

[0115]

[0116]

[0117]

[0118]

[0119]

[0120]

[0121]

[0122] Figure 6 is a flowchart 600 illustrating an exemplary process for a video decoder (eg, video decoder 30 ) to implement a technique for decoding video data in accordance with some embodiments of the present disclosure.

[0123] For the palette mode in VVC, the palette mode is applicable to CUs equal to or less than 64×64 pixels. In some embodiments, the minimum palette mode block size is used to reduce complexity, so that the palette mode is disabled for coding units whose size is less than or equal to the minimum palette mode block size. For example, the palette mode is disabled for all blocks whose size is less than a certain threshold (e.g., 16 samples). Because there are different chroma formats (e.g., 4:4:4, 4:2:2, 4:2:0) and different coding tree types (e.g., SINGLE_TREE, DUAL_TREE_LUMA, and DUAL_TREE_CHROMA), the threshold can vary. "SINGLE_TREE" indicates that the luminance component and the chroma component of the image are segmented in the same way, so that the two components share the same palette table and palette prediction factors in the palette mode. In contrast, "DUAL_TREE" indicates that the luminance component and the chroma component of the image are segmented separately, so that the two components have different palette tables and palette prediction factors in the palette mode. For example, for the "DUAL_TREE" type case, that is, considering the chroma component alone, the palette mode should be disabled for the chroma component of the CU with less than or equal to 16 samples to reduce complexity. The following Table 5 gives an example of the designed syntax.

[0124] Table 5 Palette mode enable flags for different coding tree types and chroma formats

[0125]

[0126] In Table 5, pred_mode_plt_flag specifies whether the palette mode is enabled (e.g., value 1) or disabled (e.g., value 0) for the coding unit. Parameters such as SubWidthC and SubHeightC are associated with the chroma format of the coding unit as follows:

[0127] Chroma Format SubWidthC SubHeightC monochrome 1 1 4:4:4 1 1 4:2:2 2 1 4:2:0 2 2

[0128] In monochrome sampling, there is only one sample array, which is nominally considered to be the luma array. In 4:2:0 sampling, each of the two chroma arrays has half the height and half the width of the luma array. In 4:2:2 sampling, each of the two chroma arrays has the same height and half the width of the luma array. In 4:4:4 sampling, each of the two chroma arrays has the same height and the same width as the luma array.

[0129] In another embodiment, for the single tree case, palette mode is disabled for CUs with small luma blocks. In one example, palette mode is disabled for CUs with luma blocks less than or equal to 16 pixels in the single tree case. In one specific example, palette mode may be enabled for an 8×4 CU containing 8×4 luma samples and two 4×2 chroma samples, because palette enabling is conditional on the size of luma samples without considering the chroma size.

[0130] In some embodiments, in a single tree case, the luma component (e.g., Y) and chroma components (e.g., Cb and Cr) of a CU are partitioned in the same manner. In a dual tree case, the luma component and the chroma component have different partition trees. In a local dual tree case, the luma component and the chroma component have different palette tables in a single tree case. In a local dual tree case, palette codec is applied separately for the luma component and the chroma component within a CU.

[0131] In another embodiment, for the local dual-tree case, the palette mode is disabled for small-sized blocks. In one example, for the local dual-tree case, the palette mode is disabled for CUs less than or equal to 32 pixels.

[0132] In some embodiments, the palette mode is applied excluding the local dual-tree case. In VVC, in the single-tree case, the palette mode applies to CUs with luma blocks equal to or less than 64×64 pixels and greater than 4×4 pixels. In the dual-tree case, the palette mode applies to CUs equal to or less than 64×64 pixels and greater than 4×4 pixels for both luma and chroma components. In another embodiment, in order to reduce complexity, the palette mode is disabled for the local dual-tree case. Table 6 below gives an example of the syntax in the VVC design. In VVC, when the modeType of a CU is equal to MODE_TYPE_INTRA, it means that the CU is in a local dual-tree case. The changes to VVC are shown below.

[0133] Table 6 Example syntax for excluding palette mode in the local dual tree case

[0134]

[0135] In another embodiment, for the local dual-tree case, the palette mode is disabled only for the chroma component. In other words, in the local dual-tree case, the palette mode applies to the luma CU but not to the chroma CU. Table 7 below gives an example of the syntax in the VVC design. In the VVC design, when the modeType of the CU is equal to MODE_TYPE_INTRA and the treeType of the CU is equal to DUAL_TREE_CHROMA, this means that the CU is a chroma component and is in a local dual-tree case. The changes to VVC are shown in Table 7 below.

[0136] Table 7 Example syntax for disabling palette mode for chroma components only in the local dual tree case

[0137]

[0138] In some embodiments, for the local dual-tree case, the palette prediction is updated for both the luma component and the chroma component. According to the current VVC specification, in the local dual-tree case, the update process of the palette prediction is performed only for the chroma component. More specifically, under the local dual-tree, the palette prediction may not be updated when each luma CU is encoded and decoded in palette mode. Under the local dual-tree, the palette prediction may be updated after the last chroma component of each palette mode chroma CU is encoded and decoded.

[0139] The update process of the palette prediction defined in VVC as described above is not efficient for codec performance. In some embodiments disclosed herein, in order to improve codec efficiency, in the case of a local dual tree, the update process of the palette prediction is performed for both the luma CU and the chroma CU. More specifically, the palette prediction can be updated first when encoding and decoding each luma CU under the local dual tree, and then the palette prediction can be updated when encoding and decoding each chroma CU under the same local dual tree. Table 8 below gives an example of the syntax in the VVC design. In the VVC design, the variable cIdx specifies the color / video component of the current CU, 0 for the luma component, 1 for the Cb component, and 2 for the Cr component. The changes to VVC are shown below.

[0140] Table 8 Exemplary syntax for updating the palette prediction process performed for both luma and chroma components in the local dual tree case

[0141]

[0142] In some embodiments, the palette prediction is partially updated in the local dual tree case. As described above, in the local dual tree case, the update process of the palette prediction is performed for both the luma CU and the chroma CU. More specifically, the palette prediction may be updated first when encoding and decoding each luma CU under the local dual tree, and then encoding and decoding each chroma CU under the same local dual tree.

[0143] Considering that the CUs under the local dual tree are all small-sized CUs, performing palette prediction updates on these CUs in a sequential manner requires a large number of computation cycles. According to some embodiments, to reduce complexity, in the local dual tree case, a shared palette table is used for some or all CUs without table updates.

[0144] In one example, for the local dual tree case, the update process of the palette prediction is disabled in the palette mode. Table 9 below gives an example of the syntax in the VVC design, where the code lines from 450 to 456 in Table 8 are also removed. In the VVC design, the variable cIdx specifies the color component of the current CU, 0 for the luma component, 1 for the Cb component, and 2 for the Cr component. The changes to VVC are as follows.

[0145] Table 9 Exemplary syntax for the update process of palette prediction disabled for both luma and chroma components in the local dual tree case

[0146]

[0147] In some embodiments, in the local dual tree case, the update process of palette prediction in palette mode is disabled for CUs with luma block size less than or equal to 32 pixels. In this case, the update process of palette prediction in palette mode can be enabled for 8×8 CUs or larger CUs containing at least 8×8 luma samples.

[0148] In yet another embodiment, for the local dual-tree case, the update process of palette prediction is disabled only for the chroma CU. Table 10 below gives an example of the syntax in the VVC design. In the VVC design, the variable cIdx specifies the color component of the current CU, 0 for luma component, 1 for Cb component, and 2 for Cr component. The changes to VVC are as follows.

[0149] Table 10 Example syntax for disabling update processing of palette prediction only for chroma components in the case of local dual trees

[0150]

[0151] In some embodiments, in the local dual-tree case, the update process of the palette prediction in the palette mode is updated independently for different video components.

[0152] As mentioned above, in the case of local dual trees, the update process of palette prediction is performed sequentially. This also means that in local dual trees, the decoding of chroma CUs in palette mode can only start after all luma CUs in the same local dual tree are decoded. This may cause undesirable delays in hardware codec implementations.

[0153] In order to solve the above problem, according to some embodiments, the palette prediction update process is performed independently for different video components (e.g., luminance and chrominance) under the local dual tree, so that the palette mode encoding and decoding of the chrominance component can be performed in parallel with the luminance component. In one example of the embodiment, under the local dual tree, the palette at the beginning of the local dual tree is used as the starting palette for both the luminance CU and the chrominance CU.

[0154] In some embodiments, an improvement in the update process of the palette prediction in the local dual tree case is implemented. In the local dual tree case, the update process of the palette prediction is performed separately for the luma component and the chroma component. More specifically, the palette prediction may be updated first when encoding and decoding each luma CU under the local dual tree, and then the palette prediction may be updated when encoding and decoding each chroma CU under the same local dual tree. Therefore, when updating the palette prediction when encoding and decoding the luma CU under the local dual tree, the chroma information of the same-position pixel may not be available, and vice versa.

[0155] In some embodiments, in order to improve the coding efficiency, when updating the palette prediction when coding and decoding the CU of a video component (e.g., luminance and / or chrominance) under a local dual tree, another video component (e.g., chrominance and / or luminance) value of the previously available candidate in the palette can be used. In an example for the local dual tree case, during the update process of the palette prediction for the luminance component, the chrominance component of the first available candidate can be used as the chrominance component of the newly added palette entry. Table 11 below gives an example of the syntax in the VVC design. The changes to VVC are as follows.

[0156] Table 11 Example syntax for the update process of the palette prediction of the chroma components using the first available candidate

[0157]

[0158] like Figure 6 As shown in , in some embodiments, the video decoder 30 receives a plurality of syntax elements associated with a coding unit from a bitstream, and the plurality of syntax elements indicates a coding tree type of the coding unit and whether a local dual-tree mode is enabled for the coding unit ( 610 ).

[0159] Based on the determination that the coding tree type of the coding unit is a single tree and that a local dual-tree mode is enabled for the coding unit (620), the video decoder 30 disables a palette mode for the coding unit when the coding unit has a size equal to or smaller than a predefined threshold (630).

[0160] In some embodiments, disabling the palette mode for the coding unit (630) includes disabling the palette mode for both the luma component and the chroma components of the coding unit (640).

[0161] In some embodiments, disabling the palette mode for the coding unit (630) includes disabling the palette mode for only the chroma components of the coding unit (650).

[0162] In some embodiments, disabling the palette mode only for the chroma component of the coding unit includes: determining from multiple syntax elements further indicating whether the video component of the coding unit is a chroma component or a luminance component; and based on the determined video component of the coding unit being a chroma component: disabling the palette mode for the chroma component of the coding unit.

[0163] In some embodiments, disabling the palette mode only for the chroma component of the coding unit includes: determining from multiple syntax elements further indicating whether the video component of the coding unit is a chroma component or a luminance component; based on the determined video component of the coding unit being a luminance component: receiving a palette mode enable flag associated with the luminance component of the coding unit from a bitstream; and decoding the coding unit according to the palette mode enable flag.

[0164] In some embodiments, video decoder 30 receives palette prediction enable syntax from a bitstream; and updates a palette prediction for a luma component of a coding unit according to the palette prediction enable syntax.

[0165] In some embodiments, video decoder 30 disables updates to the palette prediction for the luma component of the coding unit.

[0166] In some embodiments, the video decoder 30 determines a minimum palette mode luma block size; and based on the determined size of the luma component of the coding unit being less than or equal to the minimum palette mode luma block size: disabling updates to the palette prediction for the luma component of the coding unit.

[0167] In some embodiments, the minimum palette mode luma block size is 32x32 luma samples.

[0168] In some embodiments, the minimum palette mode luma block size is 8x8 luma samples.

[0169] In some embodiments, the syntax element included in the plurality of syntax elements indicating whether the local dual-tree mode is enabled for the coding unit is MODE_TYPE_INTRA.

[0170] In some embodiments, the syntax element included in the plurality of syntax elements that indicates whether the video component of the coding unit is a chroma component or a luma component is DUAL_TREE_CHROMA.

[0171] In some embodiments, the predefined threshold in step 630 is 32×32 samples.

[0172] In some embodiments, the predefined threshold in step 630 is 16×16 samples.

[0173] Figure 7 is a block diagram illustrating an exemplary context-adaptive binary arithmetic coding and decoding (CABAC) engine according to some embodiments of the present disclosure.

[0174] Context-Adaptive Binary Arithmetic Coding (CABAC) is a form of entropy coding used in many video codec standards (e.g., H.264 / MPEG-4 AVC, High Efficiency Video Codec (HEVC), and VVC. CABAC is based on arithmetic coding with some innovations and changes to adapt it to the needs of video codec standards. For example, CABAC encodes and decodes binary symbols, which keeps complexity low and allows probabilistic modeling of more frequently used bits of any symbol. Because coding modes are often locally well correlated, the probability model is adaptively selected based on the local context, allowing better modeling of the probabilities. Finally, CABAC uses multiplication-free range division by using quantized probability ranges and probability states.

[0175] CABAC has multiple probability modes for different contexts. It first converts all non-binary symbols to binary. Then, for each binary digit (or bit), the codec chooses which probability model to use and then uses information from nearby elements to optimize the probability estimate. Finally, arithmetic coding and decoding is applied to compress the data.

[0176] Context modeling provides an estimate of the conditional probability of the coded and decoded symbols. With a suitable context model, a given inter-symbol redundancy can be exploited for encoding by switching between different probability models based on the coded and decoded symbols in the vicinity of the current symbol. Encoding and decoding a data symbol involves the following stages.

[0177] Binarization: CABAC uses binary arithmetic coding, which means that only binary decisions (1 or 0) are coded. Non-binary valued symbols (such as transform coefficients or motion vectors) are "binarized" or converted to binary codes before arithmetic coding. This process is similar to the process of converting data symbols to variable length codes, but the binary codes are further encoded (by the arithmetic encoder) before transmission. These stages are repeated for each binary position (or "bit") of the binarized symbol.

[0178] Context model selection: A "context model" is a probability model for one or more bits of a binarized symbol. The model can be selected from a selection of available models based on the statistics of recently encoded and decoded data symbols. The context model stores the probability of each bit being "1" or "0".

[0179] Arithmetic Coding: The arithmetic coder encodes each binary bit according to the chosen probability model. Note that there are only two sub-ranges for each binary bit (corresponding to "0" and "1").

[0180] Probability update: Update the selected context model based on the actual decoded value (e.g., if the binary bit value is "1", increase the frequency count "1").

[0181] By decomposing each non-binary syntax element value into a sequence of bins, the further processing of each bin value in CABAC depends on the associated codec mode decision, which can be selected as a normal mode or a bypass mode. The latter is selected for bins that are assumed to be uniformly distributed, so that for these bins, the entire normal binary arithmetic coding (and decoding) process is simply bypassed. In the normal codec mode, each bin value is encoded using a normal binary arithmetic codec engine, where the associated probability model is determined by a fixed selection based on the type of syntax element and the bin position or bin index (binIdx) in the binary representation of the syntax element, or the associated probability model is adaptively selected from two or more probability models based on relevant side information (e.g., spatial neighbors, components, depth or size of CU / PU / TU, or position within TU). The choice of probability model is called context modeling. As an important design decision, the latter case is usually only applied to the most frequently observed bins, while other bins that are usually less frequently observed will be processed using a joint, typically zero-order probability model. In this way, CABAC is able to perform selective adaptive probability modeling at the sub-symbol level, thus providing an effective tool for exploiting inter-symbol redundancy, significantly reducing the overall modeling or learning cost. Note that for both the fixed and adaptive cases, in principle, the switch from one probability model to another can occur between any two consecutive conventionally coded bins. In general, the design of the context model in CABAC reflects the goal of finding a good compromise between avoiding unnecessary modeling cost overhead and the conflicting goal of exploiting statistical correlations to the greatest extent possible.

[0182] The parameters of the probability models in CABAC are adaptive, which means that the adaptation of the model probabilities to the statistical variations of the source of the bits is performed in the encoder and decoder on a bit-by-bit basis in a backward adaptive and synchronized manner; this process is called probability estimation. To this end, each probability model in CABAC can take one of 126 different states using an associated model probability value p, which ranges from the interval [0:01875; 0:98125]. The two parameters of each probability model are stored in the context memory in the form of 7-bit entries: 6 bits for each of the 63 probability states of the model probability pLPS representing the least-probable symbol (LPS), and 1 bit for nMPS, the value of the most-probable symbol (MPS).

[0183] In one or more examples, the functions described may be implemented in hardware, software, firmware, or any combination thereof. If implemented in software, the functions may be stored on or transmitted through 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, which corresponds to a tangible medium such as a data storage medium, or to a communication medium including any medium that facilitates the transfer of a computer program from one place to another (e.g., according to a communication protocol). In this way, a computer-readable medium may generally correspond to (1) a non-volatile tangible 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 the present application. A computer program product may include a computer-readable medium.

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

[0185] It will also be understood that although the terms first, second, etc. may be used herein to describe various elements, 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 embodiment, the first electrode may be referred to as the second electrode, and similarly, the second electrode may be referred to as the first electrode. The first electrode and the second electrode are both electrodes, but they are not the same electrode.

[0186] The description of the present application has been presented for the purpose of illustration and description, and is not intended to be exhaustive or limited to the invention in the disclosed form. With the benefit of the teachings presented in the foregoing description and the associated drawings, many modifications, variations and alternative embodiments 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, the practical application, and to enable other persons skilled in the art to understand the various embodiments of the invention, and to best utilize the basic principles and various embodiments with various modifications suitable for the intended specific use. Therefore, it will be understood that the scope of the claims is not limited to the specific examples of the disclosed embodiments, and modifications and other embodiments are intended to be included within the scope of the appended claims.

Claims

1. A method for encoding a video, comprising: Determining a coding tree type of a coding unit and whether a local dual-tree mode is enabled for the coding unit; signaling a plurality of syntax elements associated with the coding unit, wherein the plurality of syntax elements are used to derive a plurality of variables indicating a coding tree type of the coding unit and whether a local dual tree mode is enabled for the coding unit; Wherein, according to the determined coding tree type of the coding unit being a single tree and enabling a local dual-tree mode for the coding unit: When the size of the coding unit is equal to or smaller than a first threshold, disabling the palette mode for the coding unit, wherein the first threshold is a predefined threshold; When the size of the coding unit is greater than a second threshold, a palette mode is disabled only for a chroma component of the coding unit, wherein the second threshold is determined based on a chroma format of the coding unit and the first threshold.

2. The method of claim 1 , wherein disabling a palette mode for the encoding unit comprises: The palette mode is disabled for both the luma component and the chroma components of the coding unit.

3. The method of claim 1 , wherein disabling a palette mode only for chroma components of the coding unit comprises: Determining whether a video component of the coding unit is a chrominance component or a luminance component; and According to the determination that the video component of the coding unit is a chrominance component: A palette mode is disabled for chroma components of the coding unit.

4. The method of claim 1 , wherein disabling a palette mode only for chroma components of the coding unit comprises: Determining whether a video component of the coding unit is a chrominance component or a luminance component; At least based on the determination that the video component of the coding unit is a luminance component: signaling a palette mode enable flag associated with a luma component of the coding unit; Wherein, the encoding unit is decoded according to the palette mode enabling flag.

5. The method according to claim 4, further comprising: signaling a syntax element for deriving a local dual tree flag; In response to the local dual-tree flag being derived as 1 according to the syntax element, the palette prediction for the luminance component of the coding unit is updated, wherein the local dual-tree flag being 1 indicates that the local dual-tree mode is enabled. 6 . The method of claim 5 , wherein in response to the local dual tree flag being derived as 1 according to the syntax element, updating of palette prediction for chroma components of the coding unit is disabled.

7. The method according to claim 4, further comprising: Determine the palette mode brightness block size threshold; and According to the determined size of the luminance component of the coding unit being less than or equal to the palette mode luminance block size threshold: Disable updating of the palette prediction for the luma component of the coding unit.

8. The method of claim 7, wherein the palette mode luma block size threshold is 32×32 luma samples.

9. The method of claim 7, wherein the palette mode luma block size threshold is 8×8 luma samples.

10. The method according to claim 1, wherein whether the local dual-tree mode is enabled for the coding unit is determined based on whether a variable included in the plurality of variables is MODE_TYPE_INTRA, wherein: The MODE_TYPE_INTRA indicates that the local dual-tree mode is enabled for the coding unit.

11. The method of claim 3, wherein whether the video component of the coding unit is a chroma component or a luma component is determined based on whether a variable included in the plurality of variables is DUAL_TREE_CHROMA, wherein: The DUAL_TREE_CHROMA indicates that the video component of the coding unit is a chrominance component. The method according to claim 1 , wherein the first threshold is 16.

13. An electronic device comprising: one or more processing units; a memory coupled to the one or more processing units and storing a plurality of programs; When the plurality of programs are executed by the one or more processing units, the electronic device executes the method as claimed in any one of claims 1 to 12.

14. A non-volatile computer-readable storage medium storing a plurality of programs for execution by an electronic device having one or more processing units, wherein the plurality of programs, when executed by the one or more processing units, causes the electronic device to execute the method of any one of claims 1 to 12.

15. A computer program product comprising computer instructions, characterized in that When the computer instructions are executed by a processor, the method according to any one of claims 1 to 12 is implemented.

16. A method for generating a bitstream, comprising: A bitstream is generated according to the method as claimed in any one of claims 1 to 12.

Citation Information

Patent Citations

  • Method and apparatus of palette mode coding for colour video data

    CN109479137A

  • Methods and apparatus for palette coding

    CN110248196A