Packed decoding for palette syntax in video decoding

By introducing palette decoding technology, using palette index map and run length method, the problem of inefficiency in traditional video decoding technology when processing screen generation content is solved, and efficient decoding of screen content is achieved, suitable for Applications such as remote desktop and wireless display.

CN113508585BActive Publication Date: 2024-11-19QUALCOMM INC
View PDF 10 Cites 0 Cited by

Patent Information

Application Number
CN202080017573.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Priority Date
2020-03-11
Filing Date
2020-03-12
Publication Date
2024-11-19
Estimated Expiration
2040-03-12

AI Technical Summary

Technical Problem

The traditional continuous tone and smoothing assumptions are not applicable when processing screen-generated content, resulting in inefficient traditional video decoding techniques, especially in applications such as remote desktop, collaborative work and wireless display.

Method used

Introducing palette decoding technology, the repeated pixel values ​​in video data are compressed by looking up tables, and the palette-based decoding mode is adopted, and the compression efficiency is improved by using palette index map and run length method to avoid screen content. Vision quality impairment.

Benefits of technology

It improves the efficiency of screen content decoding, reduces the number of bits required to represent the content generated on the screen, and is suitable for computer-generated screen content, improving the performance of video decoding.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113508585B_ABST
    Figure CN113508585B_ABST
Patent Text Reader

Abstract

An exemplary method includes: dividing a current coding unit (CU) of video data into multiple index groups, the current CU of the video data being decoded using a palette mode; parsing syntax elements for a first index group among the multiple index groups; after parsing the syntax elements for the first index group, parsing syntax elements for a second index group among the multiple index groups; and reconstructing the current CU of the video data based on the syntax elements for the first index group and the syntax elements for the second index group.
Need to check novelty before this filing date? Find Prior Art

Description

[0001] This application claims priority to U.S. Application No. 16 / 815,605, filed on March 11, 2020, which claims the benefit of U.S. Provisional Application No. 62 / 817,946, filed on March 13, 2019, U.S. Provisional Application No. 62 / 818,455, filed on March 14, 2019, and U.S. Provisional Application No. 62 / 888,061, filed on August 16, 2019, the entire contents of each of which are incorporated herein by reference. Technical Field

[0002] The present disclosure relates to video encoding and video decoding. Background Art

[0003] Digital video capabilities may be incorporated into a variety of devices, including digital televisions, digital direct broadcast systems, wireless broadcast systems, personal digital assistants (PDAs), laptop or desktop computers, tablet computers, e-book readers, digital cameras, digital recording devices, digital media players, video game devices, video game consoles, cellular or satellite radio telephones, so-called "smart phones", video teleconferencing devices, video streaming devices, etc. Digital video devices implement video coding techniques, such as those described in the standards defined by MPEG-2, MPEG-4, ITU-T H.263, ITU-T H.264 / MPEG-4, Part 10, Advanced Video Coding (AVC), ITU-T H.265 / High Efficiency Video Coding (HEVC), and extensions of such standards. By implementing such video coding techniques, video devices may more efficiently send, receive, encode, decode, and / or store digital video information.

[0004] Video coding techniques include spatial (intra-frame) prediction and / or temporal (inter-frame) prediction to reduce or eliminate redundancy inherent in video sequences. For block-based video coding, a video segment (e.g., a video picture or a portion of a video picture) may be divided into video blocks, which may also be referred to as coding tree units (CTUs), coding units (CUs), and / or coding nodes. Video blocks in an intra-coded (I) segment of a picture are encoded using spatial prediction relative to reference samples in neighboring blocks in the same picture. Video blocks in an inter-coded (P or B) segment of a picture may use spatial prediction relative to reference samples in neighboring blocks in the same picture, or temporal prediction relative to reference samples in other reference pictures. Pictures may be referred to as frames, and reference pictures may be referred to as reference frames. Summary of the invention

[0005] In general, the present disclosure describes techniques for palette mode decoding of video data with reduced memory requirements. To decode a decoding unit of video data, a video decoder may signal an index value for each sample in the decoding unit and signal a palette for converting between the index values ​​and the sample values. Once the video decoder has decoded all index values ​​for the decoding unit, the video decoder may utilize the palette to reconstruct the samples of the decoding unit. Thus, the video decoder needs to allocate sufficient memory to store all index values ​​for the decoding unit. Therefore, an increase in the size of the decoding unit may require additional memory allocation, which may be undesirable.

[0006] According to one or more techniques of the present disclosure, a video decoder may divide a coding unit into a plurality of coefficient groups and process sample values ​​of each coefficient group separately. For example, a video decoder may divide an 8×8 coding unit into four coefficient groups, each group including 16 samples. The video decoder may process one or more syntax elements that apply to all samples of the coding unit and then process the coefficient groups sequentially. In this way, the video decoder may avoid having to store index values ​​for the entire coding unit at the same time. Also in this way, a video decoder may reconstruct samples of a coding unit from index values ​​of already decoded coefficient groups before all coefficient groups and therefore all index values ​​have been decoded.

[0007] As an example, a method for decoding video data includes: dividing a current decoding unit (CU) of the video data into multiple index groups, the current CU of the video data being decoded using a palette mode; parsing syntax elements for a first index group among the multiple index groups; after parsing the syntax elements for the first index group, parsing syntax elements for a second index group among the multiple index groups; and reconstructing the current CU of the video data based on the syntax elements for the first index group and the syntax elements for the second index group.

[0008] As another example, a device includes: a memory that stores video data; and one or more processors that are implemented in a circuit and configured to: divide a current CU of the video data into multiple index groups, the current CU of the video data being decoded using a palette mode; parse syntax elements for a first index group among the multiple index groups via a decoded video bitstream; after parsing the syntax elements for the first index group, parse syntax elements for a second index group among the multiple index groups via the decoded video bitstream; and reconstruct the current CU of the video data based on the syntax elements for the first index group and the syntax elements for the second index group.

[0009] As another example, a device includes: a unit for dividing a current CU of video data into multiple index groups, the current CU of the video data being decoded using a palette mode; a unit for parsing syntax elements for a first index group among the multiple index groups via a decoded video bitstream; a unit for parsing syntax elements for a second index group among the multiple index groups via the decoded video bitstream after parsing the syntax elements for the first index group; and a unit for reconstructing the current CU of the video data based on the syntax elements for the first index group and the syntax elements for the second index group.

[0010] As another example, a computer-readable storage medium stores instructions that, when executed, cause one or more processors of a video decoder to perform the following operations: divide a current CU of video data into multiple index groups, the current CU of the video data being decoded using a palette mode; parse syntax elements for a first index group among the multiple index groups via a decoded video bitstream; after parsing the syntax elements for the first index group, parse syntax elements for a second index group among the multiple index groups via the decoded video bitstream; and reconstruct the current CU of the video data based on the syntax elements for the first index group and the syntax elements for the second index group.

[0011] The details of one or more aspects of the disclosure are set forth in the accompanying drawings and the description below. Other features, objects, and advantages of the techniques described in the disclosure will be apparent from the description and drawings, and from the claims. BRIEF DESCRIPTION OF THE DRAWINGS

[0012] Figure 1 is a block diagram illustrating an example video encoding and decoding system that may perform the techniques of this disclosure.

[0013] Figure 2A and Figure 2B is a conceptual diagram illustrating an exemplary quadtree binary tree (QTBT) structure and a corresponding coding tree unit (CTU).

[0014] Figure 3 is a block diagram illustrating an example video encoder that may perform the techniques of this disclosure.

[0015] Figure 4 is a block diagram illustrating an example video decoder that may perform the techniques of this disclosure.

[0016] Figure 5 is a conceptual diagram illustrating an example of determining a color palette for encoding video data, consistent with the techniques of this disclosure.

[0017] Figure 6is a conceptual diagram illustrating an example of determining an index of a palette for a pixel block, consistent with the techniques of this disclosure.

[0018] Figure 7 is a conceptual diagram illustrating exemplary decoding of indices using horizontal and vertical traversal scans.

[0019] Figure 8 is a conceptual diagram illustrating sub-block based index map scanning for palette mode coding of video data, in accordance with one or more techniques of this disclosure.

[0020] Fig. 9 is a flow chart illustrating an exemplary method for decoding a current block of video data.

[0021] Fig.10 is a flow chart illustrating an exemplary method for decoding a current block of video data.

[0022] Fig.11 is a flow chart illustrating an example method for encoding a current block of video data using palette mode coding, in accordance with one or more techniques of this disclosure.

[0023] Fig.12 is a flow chart illustrating an example method for decoding a current block of video data using palette mode coding, in accordance with one or more techniques of this disclosure. DETAILED DESCRIPTION

[0024] Figure 1 1 is a block diagram illustrating an exemplary video encoding and decoding system 100 that can perform the techniques of the present disclosure. The techniques of the present disclosure are generally directed to decoding (encoding and / or decoding) video data. In general, video data includes any data used to process video. Thus, video data can include original, undecoded video, encoded video, decoded (e.g., reconstructed) video, and video metadata (such as signaling data).

[0025] like Figure 1As shown, in this example, system 100 includes a source device 102 that provides encoded video data to be decoded and displayed by a destination device 116. In particular, source device 102 provides the video data to destination device 116 via computer-readable medium 110. Source device 102 and destination device 116 may include any of a variety of devices, including desktop computers, notebook (i.e., laptop) computers, tablet computers, set-top boxes, telephone handsets (such as smart phones), televisions, cameras, display devices, digital media players, video game consoles, video streaming devices, etc. In some cases, source device 102 and destination device 116 may be equipped for wireless communication, and thus may be referred to as wireless communication devices.

[0026] exist Figure 1 In the example of , source device 102 includes video source 104, memory 106, video encoder 200 and output interface 108. Destination device 116 includes input interface 122, video decoder 300, memory 120 and display device 118. According to the present disclosure, the video encoder 200 of source device 102 and the video decoder 300 of destination device 116 can be configured to apply the technology for sub-block decoding in palette mode. Therefore, source device 102 represents an example of a video encoding device, and destination device 116 represents an example of a video decoding device. In other examples, the source device and the destination device may include other components or arrangements. For example, source device 102 may receive video data from an external video source such as an external camera. Similarly, destination device 116 may be connected to an external display device instead of including an integrated display device.

[0027] like Figure 1 The system 100 shown is only an example. In general, any digital video encoding and / or decoding device can perform the technology for sub-block decoding in palette mode. The source device 102 and the destination device 116 are only examples of such decoding devices, wherein the source device 102 generates decoded video data for transmission to the destination device 116. The present disclosure refers to a "decoding" device as a device that performs decoding (encoding and / or decoding) of data. Therefore, the video encoder 200 and the video decoder 300 represent examples of decoding devices, specifically video encoders and video decoders, respectively. In some examples, the devices 102, 116 can operate in a substantially symmetrical manner so that each of the devices 102, 116 includes a video encoding and decoding component. Therefore, the system 100 can support one-way or two-way video transmission between video devices 102, 116, for example, for video streaming, video playback, video broadcasting or video telephony.

[0028] In general, the video source 104 represents a source of video data (i.e., original, undecoded video data) and provides a sequence of pictures (also referred to as "frames") of the video data to the video encoder 200, which encodes the data of the pictures. The video source 104 of the source device 102 may include a video capture device, such as a camera, a video archive containing previously captured original video, and / or a video feed interface for receiving video from a video content provider. As another alternative, the video source 104 may generate computer graphics-based data as the source video, or a combination of real-time video, archived video, and computer-generated video. In each case, the video encoder 200 encodes the captured, pre-captured, or computer-generated video data. The video encoder 200 may rearrange the pictures from the order in which they are received (sometimes referred to as "display order") to a decoding order for decoding. The video encoder 200 may generate a bitstream comprising encoded video data. Source device 102 may then output the encoded video data onto computer-readable medium 110 via output interface 108 for receipt and / or retrieval by, for example, input interface 122 of destination device 116 .

[0029] The memory 106 of the source device 102 and the memory 120 of the destination device 116 represent general purpose memory. In some examples, the memory 106, 120 can store raw video data, for example, raw video from the video source 104 and raw decoded video data from the video decoder 300. In addition or alternatively, the memory 106, 120 can store software instructions that can be executed by, for example, the video encoder 200 and the video decoder 300, respectively. Although shown separately from the video encoder 200 and the video decoder 300 in this example, it should be understood that the video encoder 200 and the video decoder 300 can also include internal memory to achieve functionally similar or equivalent purposes. In addition, the memory 106, 120 can store, for example, encoded video data output from the video encoder 200 and input to the video decoder 300. In some examples, portions of the memory 106, 120 can be allocated as one or more video buffers, for example, to store raw, decoded and / or encoded video data.

[0030] The computer-readable medium 110 may represent any type of medium or device capable of transmitting the encoded video data from the source device 102 to the destination device 116. In one example, the computer-readable medium 110 represents a communication medium for enabling the source device 102 to send the encoded video data directly to the destination device 116 in real time, such as via a radio frequency network or a computer-based network. According to a communication standard such as a wireless communication protocol, the output interface 108 may modulate a transmission signal including the encoded video data, and the input interface 122 may demodulate the received transmission signal. The communication medium may include any wireless or wired communication medium, such as a radio frequency (RF) spectrum or one or more physical transmission lines. The communication medium may form a portion of a packet-based network such as a local area network, a wide area network, or a global network such as the Internet. The communication medium may include a router, a switch, a base station, or any other device that can be used to enable communication from the source device 102 to the destination device 116.

[0031] In some examples, computer-readable medium 110 may include storage device 112. Source device 102 may output the encoded data from output interface 108 to storage device 112. Similarly, destination device 116 may access the encoded data from storage device 112 via input interface 122. Storage device 112 may include any of a variety of distributed or locally accessed data storage media, such as a hard drive, Blu-ray disc, DVD, CD-ROM, flash memory, volatile or non-volatile memory, or any other suitable digital storage medium for storing encoded video data.

[0032] In some examples, computer-readable medium 110 may include file server 114 or another intermediate storage device that may store the encoded video data generated by source device 102. Source device 102 may output the encoded video data to file server 114 or another intermediate storage device that may store the encoded video data generated by source device 102. Destination device 116 may access the stored video data from file server 114 via streaming or downloading. File server 114 may be any type of server device capable of storing the encoded video data and sending the encoded video data to destination device 116. File server 114 may represent a network server (e.g., for a website), a file transfer protocol (FTP) server, a content delivery network device, or a network attached storage (NAS) device. Destination device 116 may access the encoded video data from file server 114 through any standard data connection including an Internet connection. This may include a wireless channel (e.g., a Wi-Fi connection), a wired connection (e.g., a digital subscriber line (DSL), a cable modem, etc.), or a combination of both that is suitable for accessing the encoded video data stored on file server 114. The file server 114 and the input interface 122 may be configured to operate according to a streaming transfer protocol, a download transfer protocol, or a combination thereof.

[0033] Output interface 108 and input interface 122 may represent wireless transmitters / receivers, modems, wired networking components (e.g., Ethernet cards), wireless communication components that operate according to any of the various IEEE 802.11 standards, or other physical components. In examples where output interface 108 and input interface 122 include wireless components, output interface 108 and input interface 122 may be configured to communicate data, such as encoded video data, in accordance with cellular communication standards such as 4G, 4G-LTE (Long Term Evolution), LTE Advanced, 5G, etc. In some examples where output interface 108 includes a wireless transmitter, output interface 108 and input interface 122 may be configured to communicate data, such as encoded video data, in accordance with cellular communication standards such as IEEE 802.11 specifications, IEEE802.15 specifications (e.g., ZigBee 5G, etc.). TM ),Bluetooth TM The source device 102 and / or the destination device 116 may include respective system-on-chip (SoC) devices. For example, the source device 102 may include a SoC device to perform the functions attributed to the video encoder 200 and / or the output interface 108, and the destination device 116 may include a SoC device to perform the functions attributed to the video decoder 300 and / or the input interface 122.

[0034] The techniques of the present disclosure may be applied to video decoding to support any of a variety of multimedia applications, such as over-the-air television broadcasts, cable television transmissions, satellite television transmissions, Internet streaming video transmissions (such as Dynamic Adaptive Streaming over HTTP (DASH)), digital video encoded onto a data storage medium, decoding of digital video stored on a data storage medium, or other applications.

[0035] The input interface 122 of the destination device 116 receives an encoded video bitstream from the computer-readable medium 110 (e.g., a communication medium, a storage device 112, a file server 114, etc.). The encoded video bitstream from the computer-readable medium 110 may include signaling information defined by the video encoder 200 (which is also used by the video decoder 300), such as syntax elements with values ​​describing characteristics and / or processing of video blocks or other decoding units (e.g., slices, pictures, groups of pictures, sequences, etc.). The display device 118 displays decoded pictures of the decoded video data to a user. The display device 118 may represent any of a variety of display devices, such as a cathode ray tube (CRT), a liquid crystal display (LCD), a plasma display, an organic light emitting diode (OLED) display, or another type of display device.

[0036] Although not in Figure 1 , but in some examples, the video encoder 200 and the video decoder 300 may each be integrated with an audio encoder and / or an audio decoder and may include appropriate MUX-DEMUX units or other hardware and / or software to process a multiplexed stream including both audio and video in a common data stream. If applicable, the MUX-DEMUX unit may conform to the ITU H.223 multiplexer protocol or other protocols, such as the User Datagram Protocol (UDP).

[0037] The video encoder 200 and the video decoder 300 can each be implemented as any of a variety of suitable encoder and / or decoder 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 the technology is partially implemented in software, the device may store instructions for the software in a suitable non-transitory computer-readable medium and use one or more processors to execute the instructions in hardware to perform the technology of the present disclosure. Each of the video encoder 200 and the video decoder 300 can be included in one or more encoders or decoders, any of which can be integrated as part of a combined encoder / decoder (CODEC) in a corresponding device. The device including the video encoder 200 and / or the video decoder 300 may include an integrated circuit, a microprocessor, and / or a wireless communication device, such as a cellular phone.

[0038] The video encoder 200 and the video decoder 300 may operate in accordance with a video coding standard such as ITU-T H.265, also known as High Efficiency Video Coding (HEVC), or an extension thereof such as a multi-view and / or scalable video coding extension. Alternatively, the video encoder 200 and the video decoder 300 may operate in accordance with other proprietary or industry standards such as the Joint Exploration Test Model (JEM) or ITU-T H.266, also known as Versatile Video Coding (VVC). The following document by Bross et al. describes the latest draft of the VVC standard: “Versatile Video Coding (Draft 4),” 13th Meeting of the Joint Video Experts Group (JVET) of ITU-T SG 16WP 3 and ISO / IEC JTC 1 / SC 29 / WG 11: Marrakech, MA, January 9-18, 2019, JVET-M1001-v6 (hereinafter referred to as “VVC Draft 4”). However, the techniques of the present disclosure are not limited to any particular coding standard.

[0039] Typically, the video encoder 200 and the video decoder 300 can perform block-based decoding of a picture. The term "block" generally refers to a structure that includes data to be processed (e.g., encoded, decoded, or otherwise used in an encoding and / or decoding process). For example, a block may include a two-dimensional matrix of samples of luminance and / or chrominance data. Typically, the video encoder 200 and the video decoder 300 can decode video data represented in a YUV (e.g., Y, Cb, Cr) format. That is, instead of decoding red, green, and blue (RGB) data of samples of a picture, the video encoder 200 and the video decoder 300 can decode luminance and chrominance components, where the chrominance components may include red-toned and blue-toned chrominance components. In some examples, the video encoder 200 converts the received RGB formatted data into a YUV representation before encoding, and the video decoder 300 converts the YUV representation into an RGB format. Alternatively, a pre-processing and post-processing unit (not shown) may perform these conversions.

[0040] The present disclosure may generally relate to the decoding (e.g., encoding and decoding) of a picture to include the process of encoding or decoding the data of a picture. Similarly, the present disclosure may relate to the decoding of a block of a picture to include the process of encoding or decoding the data of the block, for example, prediction and / or residual decoding. The encoded video bitstream typically includes a series of values ​​for syntax elements that represent decoding decisions (e.g., decoding modes) and the partitioning of the picture into blocks. Therefore, references to decoding a picture or a block should generally be understood as decoding the values ​​of the syntax elements used to form the picture or block.

[0041] HEVC defines various blocks, including coding units (CUs), prediction units (PUs), and transform units (TUs). According to HEVC, a video decoder (such as the video encoder 200) divides a coding tree unit (CTU) into CUs according to a quadtree structure. That is, the video decoder divides the CTU and the CU into four equal non-overlapping squares, and each node of the quadtree has zero or four child nodes. A node without child nodes may be referred to as a "leaf node", and the CU of such a leaf node may include one or more PUs and / or one or more TUs. The video decoder may further divide the PU and TU. For example, in HEVC, the residual quadtree (RQT) represents the division of the TU. In HEVC, PU represents inter-frame prediction data, and TU represents residual data. The intra-predicted CU includes intra-frame prediction information, such as an intra-frame mode indication.

[0042] As another example, the video encoder 200 and the video decoder 300 may be configured to operate according to JEM, VVC, or AV1. According to JEM or VVC, a video decoder (such as the video encoder 200) divides a picture into a plurality of coding tree units (CTUs). The video encoder 200 may divide the CTU according to a tree structure such as a quadtree-binary tree (QTBT) structure or a multi-type tree (MTT) structure. The QTBT structure eliminates the concept of multiple partition types, such as the separation between CU, PU, ​​and TU of HEVC. The QTBT structure includes two levels: a first level divided according to quadtree partitioning, and a second level divided according to binary tree partitioning. The root node of the QTBT structure corresponds to the CTU. The leaf nodes of the binary tree correspond to coding units (CUs).

[0043] In the MTT partition structure, blocks can be partitioned using quadtree (QT) partitioning, binary tree (BT) partitioning, and one or more types of ternary tree (TT) partitioning. Ternary tree partitioning is the partitioning of a block into three sub-blocks. In some examples, ternary tree partitioning divides a block into three sub-blocks without dividing the original block by the center. The partition types in MTT (e.g., QT, BT, and TT) can be symmetric or asymmetric.

[0044] In some examples, the video encoder 200 and the video decoder 300 may use a single QTBT or MTT structure to represent each of the luma component and the chroma components, while in other examples, the video encoder 200 and the video decoder 300 may use two or more QTBT or MTT structures, such as one QTBT / MTT structure for the luma component and another QTBT / MTT structure for the two chroma components (or two QTBT / MTT structures for each chroma component).

[0045] The video encoder 200 and the video decoder 300 may be configured to use quadtree partitioning for each HEVC, QTBT partitioning, MTT partitioning, or other partitioning structures. For purposes of illustration, a description of the techniques of the present disclosure is given with respect to QTBT partitioning. However, it should be understood that the techniques of the present disclosure may also be applied to video decoders configured to use quadtree partitioning or other types of partitioning.

[0046] This disclosure may use "N×N" and "N by N" interchangeably to refer to the sample size of a block (such as a CU or other video block) in terms of vertical and horizontal dimensions, for example, 16×16 samples or 16 by 16 samples. Typically, a 16×16 CU has 16 samples in the vertical direction (y=16) and 16 samples in the horizontal direction (x=16). Similarly, an N×N CU typically has N samples in the vertical direction and N samples in the horizontal direction, where N represents a non-negative integer value. The samples in a CU may be arranged in rows and columns. In addition, a CU does not necessarily have the same number of samples in the horizontal direction as in the vertical direction. For example, a CU may include N×M samples, where M is not necessarily equal to N.

[0047] The video encoder 200 encodes the video data of the CU representing the prediction and / or residual information and other information. The prediction information indicates how the CU will be predicted in order to form a prediction block for the CU. The residual information generally represents the sample-by-sample difference between the samples of the CU before encoding and the prediction block.

[0048] In order to predict a CU, the video encoder 200 may generally form a prediction block for the CU by inter-frame prediction or intra-frame prediction. Inter-frame prediction generally refers to predicting a CU based on data of a previously decoded picture, while intra-frame prediction generally refers to predicting a CU based on previously decoded data of the same picture. In order to perform inter-frame prediction, the video encoder 200 may use one or more motion vectors to generate a prediction block. The video encoder 200 may generally perform a motion search to identify a reference block that closely matches the CU, for example, according to the difference between the CU and the reference block. The video encoder 200 may calculate a difference metric using the sum of absolute differences (SAD), the sum of squared differences (SSD), the mean absolute difference (MAD), the mean square difference (MSD), or other such difference calculations to determine whether the reference block closely matches the current CU. In some examples, the video encoder 200 may use unidirectional prediction or bidirectional prediction to predict the current CU.

[0049] Some examples of JEM and VVC also provide an affine motion compensation mode, which can be considered an inter-frame prediction mode. In the affine motion compensation mode, the video encoder 200 can determine two or more motion vectors representing non-translational motion (such as zooming in or out, rotation, perspective motion, or other irregular motion types).

[0050] To perform intra prediction, the video encoder 200 may select an intra prediction mode to generate a prediction block. Some examples of JEM and VVC provide 67 intra prediction modes, including various directional modes, as well as planar modes and DC modes. Typically, the video encoder 200 selects an intra prediction mode that describes neighboring samples for a current block (e.g., a block of a CU) from which samples of the current block are predicted. Assuming that the video encoder 200 decodes CTUs and CUs in a raster scan order (from left to right, from top to bottom), the samples may typically be above, above left, or to the left of the current block in the same picture as the current block).

[0051] The video encoder 200 encodes data representing the prediction mode of the current block. For example, for the inter-frame prediction mode, the video encoder 200 can encode data indicating which of the various available inter-frame prediction modes is used and the motion information of the corresponding mode. For unidirectional or bidirectional inter-frame prediction, for example, the video encoder 200 can encode the motion vector using advanced motion vector prediction (AMVP) or merge mode. The video encoder 200 can use a similar mode to encode the motion vector of the affine motion compensation mode.

[0052] After a prediction, such as intra prediction or inter prediction of a block, the video encoder 200 may calculate residual data for the block. The residual data, such as a residual block, represents the sample-by-sample difference between the block and a prediction block of the block formed using a corresponding prediction mode. The video encoder 200 may apply one or more transforms to the residual block to produce transformed data in a transform domain rather than a sample domain. For example, the video encoder 200 may apply a discrete cosine transform (DCT), an integer transform, a wavelet transform, or a conceptually similar transform to the residual video data. In addition, the video encoder 200 may apply a secondary transform after the first transform, such as a mode-dependent non-separable secondary transform (MDNSST), a signal-dependent transform, a Karhunen-Loeve transform (KLT), etc. The video encoder 200 generates transform coefficients after applying one or more transforms.

[0053] As described above, after any transforms used to produce transform coefficients, the video encoder 200 may perform quantization of the transform coefficients. Quantization generally refers to the process of quantizing transform coefficients to potentially reduce the amount of data used to represent the coefficients, thereby providing further compression. By performing the quantization process, the video encoder 200 may reduce the bit depth associated with some or all coefficients. For example, the video encoder 200 may round an n-bit value to an m-bit value during quantization, where n is greater than m. In some examples, to perform quantization, the video encoder 200 may perform a bitwise right shift of the value to be quantized.

[0054] After quantization, the video encoder 200 may scan the transform coefficients to generate a one-dimensional vector from a two-dimensional matrix including the quantized transform coefficients. The scan may be designed to place coefficients of higher energy (and therefore lower frequency) at the front of the vector and transform coefficients of lower energy (and therefore higher frequency) at the back of the vector. In some examples, the video encoder 200 may scan the quantized transform coefficients using a predefined scan order to generate a serialized vector, and then entropy encode the quantized transform coefficients of the vector. In other examples, the video encoder 200 may perform adaptive scanning. After scanning the quantized transform coefficients to form a one-dimensional vector, the video encoder 200 may entropy encode the one-dimensional vector, for example, according to context adaptive binary arithmetic coding (CABAC). The video encoder 200 may also entropy encode the values ​​of syntax elements that describe metadata associated with the encoded video data for use by the video decoder 300 when decoding the video data.

[0055] To perform CABAC, the video encoder 200 may assign context within a context model to a symbol to be transmitted. The context may relate to, for example, whether neighboring values ​​of the symbol are zero values. The probability determination may be based on the context assigned to the symbol.

[0056] The video encoder 200 may also generate syntax data, such as block-based syntax data, picture-based syntax data, and sequence-based syntax data, such as in a picture header, a block header, a slice header, or generate other syntax data, such as a sequence parameter set (SPS), a picture parameter set (PPS), or a video parameter set (VPS), to the video decoder 300. The video decoder 300 may similarly decode such syntax data to determine how to decode the corresponding video data.

[0057] In this way, the video encoder 200 can generate a bitstream including encoded video data, such as: syntax elements describing the partition of a picture into blocks (e.g., CUs) and prediction and / or residual information for the blocks. Finally, the video decoder 300 can receive the bitstream and decode the encoded video data.

[0058] Typically, the video decoder 300 performs a reciprocal process of the process performed by the video encoder 200 to decode the encoded video data of the bitstream. For example, the video decoder 300 may use CABAC to decode the values ​​of the syntax elements of the bitstream in a manner that is substantially similar to the CABAC encoding process of the video encoder 200, although reciprocal. The syntax elements may define: partition information for partitioning a picture into CTUs, and partitioning of each CTU according to a corresponding partitioning structure (such as a QTBT structure) to define CUs of the CTU. The syntax elements may further define prediction and residual information for a block (e.g., CU) of video data.

[0059] The residual information may be represented by, for example, quantized transform coefficients. The video decoder 300 may inverse quantize and inverse transform the quantized transform coefficients of the block to reproduce a residual block for the block. The video decoder 300 uses the signaled prediction mode (intra-frame prediction or inter-frame prediction) and related prediction information (e.g., motion information for inter-frame prediction) to form a prediction block for the block. The video decoder 300 may then combine the prediction block and the residual block (on a sample-by-sample basis) to reproduce the original block. The video decoder 300 may perform additional processing, such as performing a deblocking process to reduce visual artifacts along the boundaries of the blocks.

[0060] The present disclosure describes techniques for video decoding and compression. Specifically, the present disclosure describes techniques for palette-based decoding of video data. For example, the present disclosure describes techniques for supporting decoding of video content, particularly decoding of screen content using palette decoding, such as techniques for improved palette index binarization, and techniques for signaling of palette decoding.

[0061] In traditional video coding, images are assumed to be continuous-tone and spatially smooth. Based on these assumptions, various tools such as block-based transforms, filtering, etc. have been developed, and these tools show good performance for natural content videos.

[0062] However, in applications such as remote desktop, collaborative work, and wireless display, computer-generated screen content may be the primary content to be compressed. This type of content often has discrete tones and sharp lines, as well as high-contrast object boundaries. Assumptions of continuous tones and smoothness may no longer apply, and therefore traditional video coding techniques may not be an effective way to compress.

[0063] According to the characteristics of screen content video, palette coding is introduced to improve the efficiency of screen content coding (SCC), which is proposed in the following document by Guo et al.: "Palette Mode for Screen Content Coding", Joint Collaboration Group on Video Coding (JCT-VC) of ITU-T SG16WP 3 and ISO / IEC JTC1 / SC 29 / WG 11, 13th Meeting: Incheon, KR, April 18-26, 2013, Document: JCTVC-M0323, which is available at: http: / / phenix.it-sudparis.eu / jct / doc_end_user / documents / 13_Incheon / wg11 / JCTVC-M0323-v3.zip, (hereinafter referred to as "JCTVC-M0323"). Specifically, palette coding introduces a lookup table, i.e., a palette, to compress repeated pixel values ​​based on the fact that, in SCC, the colors in one CU are usually concentrated on several peaks. Given a palette for a particular CU, pixels within the CU are mapped to palette indices. In the second stage, an efficient run-length copy-from-left method is proposed to effectively compress the repeating pattern of the index block. In some examples, the palette index decoding mode can be generalized to copy-from-left and copy-from-top with run-length decoding. Note that in some examples, no transform process is invoked for palette decoding to avoid blurring sharp edges, which can have a huge adverse impact on the visual quality of screen content.

[0064] As described above, the present disclosure describes palette-based decoding, which may be particularly suitable for decoding of screen-generated content. For example, assume that a particular region of video data has a relatively small number of colors. A video decoder (e.g., video encoder 200 and / or video decoder 300) may decode a so-called "palette" as a color table for representing the video data of the particular region (e.g., a given block). Each pixel may be associated with an entry in the palette that represents the color of the pixel. For example, the video decoder may decode an index that maps a pixel value to an appropriate value in the palette.

[0065] In the above example, the video encoder 200 can encode the video data block by determining a palette for the block, locating entries in the palette to represent the color value of each pixel, and encoding the palette with index values ​​for the pixels that map the pixel values ​​to the palette. The video decoder 300 can obtain the palette of the block and the index values ​​of the pixels of the block from the encoded bitstream. The video decoder 300 can map the index values ​​of the pixels to the entries of the palette to reconstruct the pixel values ​​of brightness and chrominance of the block.

[0066] The above examples are intended to provide a general description of palette-based coding. In various examples, the techniques described in the present disclosure may include techniques for various combinations of one or more of: signaling a palette-based coding mode, sending a palette, predicting a palette, deriving a palette, and sending a palette-based coding map and other syntax elements. Such techniques may improve video coding efficiency, for example, requiring fewer bits to represent the content generated by the screen.

[0067] For example, according to aspects of the present disclosure, a video decoder (video encoder 200 and / or video decoder 300) may decode one or more syntax elements for each block decoded using a palette decoding mode. For example, the video decoder may decode palette_mode_flag to indicate whether a palette-based decoding mode is used to decode a particular block. In this example, the video encoder may encode palette_mode_flag using a value equal to one to specify that the block currently being encoded ("current block") is encoded using a palette mode. In this case, the video decoder may obtain palette_mode_flag from the encoded bitstream and apply a palette-based decoding mode to decode the block. In the case where there are more than one palette-based decoding modes available (e.g., there are more than one palette-based techniques available for decoding), one or more syntax elements may indicate a palette mode for the block from a plurality of different palette modes.

[0068] In some cases, the video encoder 200 may encode palette_mode_flag using a value equal to zero to specify that the current block is not encoded using a palette mode. In this case, the video encoder 200 may encode the block using any of a variety of inter-frame prediction, intra-frame prediction, or other decoding modes. When palette_mode_flag is equal to zero, the video encoder 200 may encode additional information (e.g., syntax elements) to indicate a specific mode for encoding the corresponding block. In some examples, as described below, the mode may be an HEVC decoding mode. The use of palette_mode_flag is described for example purposes. In other examples, other syntax elements such as multi-bit codes may be used to indicate whether a palette-based decoding mode is used for one or more blocks, or to indicate which mode of a plurality of modes is to be used.

[0069] When a palette-based coding mode is used, the video encoder 200 may encode a representation of a palette in the encoded video data bitstream (e.g., for use by the video decoder 300). The video encoder 200 may encode the palette for each block, or may encode a palette to be shared among multiple blocks in a picture or segment. The palette may refer to a primary and / or representative plurality of pixel values ​​for a block, including, for example, a luma value and two chroma values.

[0070] In some examples, the video encoder 200 may encode a syntax element, such as a transpose flag, to indicate whether a transposition process is applied to the palette index of the current palette. If the transpose flag is zero, the palette index of the sample may be decoded in a horizontal traversal scan. Similarly, if the transpose flag is one, the palette index of the sample may be decoded in a vertical traversal scan. It can be thought of as decoding the index value assuming a horizontal traversal scan and then transposing the block (row to column).

[0071] As described above, palette decoding is designed to handle clustered colors of screen content. Palette decoding uses base colors and index maps to represent input image blocks. The video encoder 200 can encode a flag for each decoding unit (CU) that is used to signal whether the palette mode is used in the current CU. If the palette mode is used, the pixel values ​​in the CU are represented by a small set of representative color values. This set is called a palette. For pixels with values ​​close to the palette color, the palette index is signaled. For pixels with values ​​outside the palette, the pixel is represented by an escape symbol and the quantized pixel value is directly signaled.

[0072] In order to decode a palette-encoded block, the video decoder 300 needs to decode the palette colors and indices. The palette colors are described by a palette table and encoded by a palette table decoding tool. The video encoder 200 can signal an escape flag for each CU to indicate whether an escape symbol is present in the current CU. If an escape symbol is present, the video decoder 300 can increase the palette table by one and assign the last index to the escape mode. The palette indices of all pixels in the CU form a palette index map and are encoded by a palette index map decoding tool.

[0073] To decode the palette index map, the video decoder may use horizontal and vertical traversal scans to decode the indexes. Figure 7 is a conceptual diagram illustrating exemplary decoding of indices using horizontal and vertical traversal scans.

[0074] The video encoder 200 and / or the video decoder 300 may use two main palette sample modes: "INDEX" and "COPY_ABOVE" to signal (e.g., the video encoder 200 may encode and the video decoder 300 may decode) a palette index. The video encoder 200 and / or the video decoder 300 may use a flag to signal the mode, except in the following cases: the top row when horizontal scanning is used, the first column when vertical scanning is used, or when the previous mode was "COPY_ABOVE". In the "COPY_ABOVE" mode, the video encoder 200 and / or the video decoder 300 may copy the palette index of the sample in the previous row. In the "INDEX" mode, the video encoder 200 and / or the video decoder 300 may explicitly signal the palette index. For both the "INDEX" and "COPY_ABOVE" modes, the video encoder 200 and / or the video decoder 300 may signal a run value that specifies the number of pixels decoded using the same mode.

[0075] The coding order for the index map may be as follows: First, the video encoder 200 and / or the video decoder 300 may signal the number of index values ​​for the CU. The video encoder 200 and / or the video decoder 300 may then signal the actual index value of the entire CU by using truncated binary decoding. The video encoder 200 and / or the video decoder 300 may decode the number of indexes and the index values ​​in bypass mode. This groups the bypass bins associated with the index together. Then, the video encoder 200 and / or the video decoder 300 may signal the palette mode (INDEX or COPY_ABOVE) and the run value in an interleaved manner. Finally, the video encoder 200 and / or the video decoder 300 may group the component escape values ​​corresponding to the escape samples of the entire CU together and signal these values ​​in bypass mode. The video encoder 200 and / or the video decoder 300 may signal additional syntax elements (e.g., last_run_type_flag) after signaling the index value. Combined with the number of indices, this syntax element may eliminate the need to signal the run value corresponding to the last run in the block.

[0076] Previous palette mode designs may have one or more disadvantages. For example, in the palette mode design of HEVC, the palette index of the entire CU is grouped and parsed before being used to parse the run type and run length information. This means that a buffer of indexes must be maintained. In the worst case, the number of indices that need to be stored is equal to the number of pixels in the CU. The buffer requirement may be a burden on hardware implementation because the maximum CU size may reach 64 and 128 in HEVC and VVC. In addition, in order to reconstruct the pixels of the escape mode, the decoder must first parse the index and run information of the entire CU before parsing the escape mode, which slows down the reconstruction pipeline.

[0077] According to the techniques of the present disclosure, a video decoder (such as video encoder 200 or video decoder 300) may divide a current block of video data into multiple index groups, the current block of video data being decoded using a palette mode; parse syntax elements for a first index group among the multiple index groups; after parsing the syntax elements for the first index group, parse syntax elements for a second index group among the multiple index groups; and decode the current block of video data based on the syntax elements for the first index group and the syntax elements for the second index group.

[0078] Figure 8 is a conceptual diagram illustrating sub-block based index map scanning for palette mode coding of video data, in accordance with one or more techniques of this disclosure. Figure 8 Two examples of sub-block partitioning for palette index map scanning based on the following scanning modes are included: a horizontal traversal scanning example 800H and a vertical traversal scanning example 800V. Figure 8 As shown, m pixels are grouped into an index group (IG) (e.g., IG 802H or IG 802V). The video decoder may perform parsing of the palette syntax necessary for the construction of pixels in one IG before parsing the next IG. For example, the video decoder may perform parsing of the palette syntax necessary for the construction of pixels in IG 802H before performing parsing of the palette syntax necessary for the construction of pixels in IG 804H. Similarly, the video decoder may perform parsing of the palette syntax necessary for the construction of pixels in IG 802V before performing parsing of the palette syntax necessary for the construction of pixels in IG804V. From Figure 8 As can be seen in the example, the scanning order (for example, Figure 7 The grouping of pixels into indexed groups is performed by scanning rows / columns as shown in . In some examples, the video coder may handle parsing of palette indexes, run types / lengths, and escaped quantization colors in a different manner (e.g., due to sub-block partitioning and compared to palette operations of HEVC).

[0079] For example, for each IG, the video decoder may parse the number of palette indices and the index values ​​of all pixels in the group at the beginning. Then, for each pixel, the video decoder may parse a bin index_copy_flag, which indicates whether the index value of the pixel is the same as the previous index, that is, whether the previously scanned pixel and the current pixel are both of the run type COPY_ABOVE or the previously scanned pixel and the current pixel are both of the run type INDEX and the index value is the same. If the index is different from the previous index, the video decoder may parse a bin run_type_flag to indicate which run type the current pixel corresponds to, that is, INDEX or COPY_ABOVE. The video decoder may use a context to contextually decode the run_type_flag, or the context may be different depending on the previous run type. The video decoder may parse the run_type_flag immediately after parsing the index_copy_flag of the current pixel, or may parse the run_type_flag together after parsing the index_copy_flag of all pixels in the IG. The video coder may code index_copy_flag as a box of context coding.

[0080] As an example, the video decoder may determine the context based on the run type (e.g., the last parsed run type). For example, different run types may use their own separate contexts. In another case, different run types may share the same context.

[0081] As another example, the video decoder may determine the context based on the index value. For example, when a total of k indexes (e.g., a total of k indexes) are parsed at the beginning and m INDEX run types are parsed before the current pixel, if the last parsed run type is INDEX, the context may be determined based on its associated index value (the mth index value) or the average of the mth index value and the (m+1)th index value. If the last parsed run type is COPY_ABOVE, the context may be based on the (m+1)th index value. The video decoder may determine the context as follows: as an example, context A is assigned to index values ​​less than a threshold T1, context B is assigned to index values ​​greater than T1 and less than a threshold T2, and context C is assigned to the remaining index values. As another example, for index values ​​less than a threshold T1, each index value has its own context; for example, for index values ​​greater than or equal to T1, one context is shared.

[0082] As another example, the video decoder may determine the context based on the distance of the pixel from the last pixel with index_copy_flag=0 (if the index is different from the previous index, index_copy_flag=0 is assumed, otherwise index_copy_flag=1). In one case, if the distance is 1, context A is assigned; if the distance is 2, context B is assigned; if the distance is 3, context C is assigned, and so on. For pixels with a distance greater than S, one context is shared. In another case, for pixels with a distance less than S, context A is used, and for pixels with a distance greater than S, context B is used.

[0083] As another example, the video coder may determine the context based on the size of the palette in the current CU and the number of pixels in the CU. For example, if the palette size is greater than L, context A is used; and if the palette size is less than L, context B is used.

[0084] As another example, the video coder may determine the context based on a combination of run type, index value, pixel position, and palette size, or a subset of run type, index value, pixel position, and palette size.

[0085] In some examples, the video decoder may group the parsing of the quantized colors of the escape mode pixels in the IG after parsing the run type and index_copy_flag. For example, for each IG, the index values ​​of the pixels in the group may be parsed together at the end (i.e., after run-length decoding), or the index values ​​may be interleaved with the run-length decoding, i.e., after parsing the run information of the corresponding pixel. For the run-length decoding of each pixel, a box index_copy_flag may be parsed, which indicates whether the index value of the pixel is the same as the previous index, i.e., whether the previously scanned pixel and the current pixel are both of the run type COPY_ABOVE or whether the previously scanned pixel and the current pixel are both of the run type INDEX and the index value is the same. If the index is different from the previous index, the video decoder may parse a box run_type_flag to indicate which run type the current pixel corresponds to, i.e., INDEX or COPY_ABOVE. The video decoder may use a context to contextually decode the run_type_flag, or the context may be different depending on the previous run type. run_type_flag may be parsed immediately after parsing the index_copy_flag of the current pixel, or it may be parsed together after parsing the index_copy_flag of all pixels in the IG. The video coder may code the bin index_copy_flag as a bin for context coding.

[0086] As an example, the video decoder can determine the context based on the run type. In one case, different run types can use their own separate contexts. In another case, different run types can share the same context.

[0087] In another example, the video decoder can determine the context based on the distance of the pixel from the last pixel with index_copy_flag=0 (if the index is different from the previous index, index_copy_flag=0 is assumed, otherwise index_copy_flag=1). In one case, if the distance is 1, context A is assigned; if the distance is 2, context B is assigned; if the distance is 3, context C is assigned, and so on. For pixels with a distance greater than S, one context is shared. In another case, for pixels with a distance less than S, context A is used, and for pixels with a distance greater than S, context B is used.

[0088] As another example, the video coder may determine the context based on the size of the palette in the current CU and the number of pixels in the CU. For example, if the palette size is greater than L, context A is used; and if the palette size is less than L, context B is used.

[0089] As another example, the video coder may determine the context based on a combination or a subset of run type, pixel position, and palette size.

[0090] In some examples, after run decoding, the index value of the run using INDEX mode can be resolved. Binarization can be based on the associated run length, the previously resolved index value, the palette size, or the number of pixels in the CU. In one example, if the run length is less than L, binarization method B1 is used; and if the run length is greater than L, binarization method B2 is used. In another example, if the run length is greater than L and if the palette size is less than P, binarization method B1 is used; if the run length is greater than L and the palette size is greater than P, binarization method B2 is used; and if the run length is less than L, binarization method B3 is used.

[0091] The binarization can be a truncated binary code, a unary code, an exponential Golomb code, a Golombrice code, a combination of these, or a flag plus any of these binarization code words.

[0092] As an example, if the run length is greater than L and if the palette size is greater than P, the video decoder may determine the binarization based on a unary code up to a certain value and use a Golomb rice code with parameter 1 for the rest; if the run length is greater than L and if the palette size is less than P, the binarization is based on a unary code up to a certain value and use a Golomb rice code with parameter 0 for the rest; if the run length is less than L, the binarization may be based on a Golomb rice code with parameter 3.

[0093] As another example, if the run length is greater than L, the video decoder may signal a flag indicating whether the index value is 0. If the index is greater than 0, a Golomb rice code of parameter 1 is used for binarization of (index-1). If the run length is less than L, the binarization may be based on a Golomb rice code of parameter 3.

[0094] In some examples, the video decoder may first resolve the run type for the first pixel in the first IG. The video decoder may then binarize the run length using a unary codeword, i.e., for run length = 6, the codeword would be 5 zeros followed by a 1. Each bin in the codeword may be decoded as a context-coded bin.

[0095] As an example, the video decoder can determine the context based on the run type. For example, different run types can use their own separate contexts. In another example, different run types can share the same context.

[0096] As another example, if the index value is parsed before run decoding and if the associated run type is INDEX, the video decoder can determine the context based on the index value. In one case, context A is assigned to index values ​​less than a threshold T1, context B is assigned to index values ​​greater than T1 and less than a threshold T2, and context C is assigned to the remaining index values. In another case, for index values ​​less than the threshold T1, each index value has its own context; for index values ​​greater than or equal to T1, one context is shared.

[0097] As another example, the video decoder may determine the context based on the order of the bins in the codeword. For example, if the order is 1, context A is assigned; if the order is 2, context B is assigned; if the order is 3, context C is assigned, and so on. For pixels with an order greater than S, one context may be shared.

[0098] As another example, the video coder may determine the context based on the size of the palette in the current CU and the number of pixels in the CU. For example, if the palette size is greater than L, context A is used; if the palette size is less than L, context B is used.

[0099] As another example, the video coder may determine the context based on a combination or a subset of the run type, the index value, the pixel / bin order in the codeword, and the palette size.

[0100] In some examples, the video decoder may parse an index group (IG) flag (e.g., sigIG_flag or other types of syntax elements) before parsing the palette index of an index group (IG), which indicates whether there is at least one pixel in the IG with a different index from the previous pixel, that is, whether the run types of the previously scanned pixel and the current pixel are different, or whether the run types of the previously scanned pixel and the current pixel are both INDEX but with different index values. If there are no pixels with an index different from the previous index, there is no need to process the parsing for the IG if no pixels are decoded using the escape mode. For example, if no pixels are decoded using the escape mode, the signaling / parsing of the run_type_flag and index_copy_flag, index values, and quantized escape colors can be omitted. If there are no pixels with an index different from the previous index, but pixels with an escape mode appear (e.g., exist), only those quantized colors need to be parsed. If the context box limit is reached, sigIG_flag can be decoded using the context-coded box or the bypass box (currently in VVC, the limit on the number of context-coded boxes per sample is set to 1.75 for decoding transform coefficients. Once this limit is reached, all syntax elements used for coefficient decoding can be bypass-coded). For context modeling of sigIG_flag, in one example, one context can be assigned to all sigIG_flags (except other contexts in the palette syntax). In another example, context modeling for sigIG_flag can depend on the previously decoded sigIG_flag within the same decoding unit (CU), for example, two contexts are assigned for the case where the previously decoded IG has sigIG_flag=0 or 1. In another example, context modeling for sigIG_flag can depend on the sigIG_flag of the adjacent IG (e.g., the left IG and the upper IG) in the same CU, for example, three contexts are allocated for the cases where neither the upper IG nor the left IG has sigIG_flag=1, one of the upper IG and the left IG has sigIG_flag=1, and both the upper IG and the left IG have sigIG_flag=1.

[0101] The present disclosure may generally refer to "signaling" certain information, such as syntax elements. The term "signaling" may generally refer to the communication of values ​​for syntax elements and / or other data used to decode the encoded video data. That is, the video encoder 200 may signal the values ​​of syntax elements in the bitstream. Generally, signaling refers to generating values ​​in the bitstream. As described above, the source device 102 may transmit the bitstream to the destination device 116 in substantially real time or in non-real time (such as may occur when storing syntax elements to the storage device 112 for later retrieval by the destination device 116).

[0102] Figure 2A and Figure 2B is a conceptual diagram showing an exemplary quadtree binary tree (QTBT) structure 130 and a corresponding coding tree unit (CTU) 132. Solid lines represent quadtree splits, while dashed lines represent binary tree splits. In each split (i.e., non-leaf) node of the binary tree, a flag is signaled to indicate which split type (i.e., horizontal or vertical) is used, in which, in this example, 0 indicates horizontal splitting and 1 indicates vertical splitting. For quadtree splitting, since the quadtree node splits a block horizontally and vertically into 4 sub-blocks of equal size, there is no need to indicate the split type. Therefore, the video encoder 200 can encode and the video decoder 300 can decode: syntax elements (e.g., split information) of the regional tree level (i.e., first level) (i.e., solid line) of the QTBT structure 130, and syntax elements (e.g., split information) of the prediction tree level (i.e., second level) (e.g., dashed line) of the QTBT structure 130. The video encoder 200 may encode, and the video decoder 300 may decode, video data, such as prediction data and transform data, for a CU represented by a terminal leaf node of the QTBT structure 130 .

[0103] Generally speaking, Figure 2B The CTU 132 may be associated with parameters defining the size of blocks corresponding to nodes at the first and second levels of the QTBT structure 130. These parameters may include a CTU size (indicating the size of the CTU 132 in samples), a minimum quadtree size (MinQTSize, indicating the minimum allowed quadtree leaf node size), a maximum binary tree size (MaxBTSize, indicating the maximum allowed binary tree root node size), a maximum binary tree depth (MaxBTDepth, indicating the maximum allowed binary tree depth), and a minimum binary tree size (MinBTSize, indicating the minimum allowed binary tree leaf node size).

[0104] The root node of the QTBT structure corresponding to the CTU may have four child nodes at the first level of the QTBT structure, each of which may be divided according to a quadtree partition. That is, the nodes of the first level are either leaf nodes (without child nodes) or have four child nodes. The example of the QTBT structure 130 represents such a node as a parent node and a child node including a solid line for branching. If the node of the first level is not larger than the maximum allowed binary tree root node size (MaxBTSize), it may be further divided by the corresponding binary tree. The binary tree splitting of a node may be iterated until the node generated by the split reaches the minimum allowed binary tree leaf node size (MinBTSize) or the maximum allowed binary tree depth (MaxBTDepth). The example of the QTBT structure 130 represents such a node as having a dotted line for branching. The binary tree leaf node is referred to as a coding unit (CU), which is used for prediction (e.g., intra-picture prediction or inter-picture prediction) and transformation without any further partitioning. As described above, a CU may also be referred to as a "video block" or "block".

[0105] In one example of a QTBT partitioning structure, the CTU size is set to 128×128 (luminance sample and two corresponding 64×64 chrominance samples), MinQTSize is set to 16×16, MaxBTSize is set to 64×64, MinBTSize (for width and height) is set to 4, and MaxBTDepth is set to 4. Quadtree partitioning is first applied to the CTU to generate quadtree leaf nodes. The size of the quadtree leaf node can range from 16×16 (i.e., MinQTSize) to 128×128 (i.e., the CTU size). If the quadtree leaf node is 128×128, it will not be further split by the binary tree because its size exceeds MaxBTSize (64×64 in this example). Otherwise, the quadtree leaf node will be further split by the binary tree. Therefore, the quadtree leaf node is also the root node of the binary tree, and the depth of the binary tree is 0. When the depth of the binary tree reaches MaxBTDepth (4 in this example), further splitting is not allowed. When the width of the binary tree node is equal to MinBTSize (4 in this example), it means that no further horizontal splitting is allowed. Similarly, a binary tree node with a height equal to MinBTSize means that no further vertical splitting is allowed for the binary tree node. As described above, the leaf nodes of the binary tree are called CUs, and they are further processed according to prediction and transformation without further division.

[0106] Figure 3 is a block diagram illustrating an example video encoder 200 that may perform the techniques of this disclosure. Figure 3For purposes of illustration, and should not be considered limiting of the techniques broadly illustrated and described in this disclosure. For purposes of illustration, this disclosure describes the video encoder 200 in the context of video coding standards such as the HEVC video coding standard and the developing H.266 video coding standard. However, the techniques of this disclosure are not limited to these video coding standards, but can be generally applied to video encoding and decoding.

[0107] exist Figure 3 In the example of , the video encoder 200 includes a video data memory 230, a mode selection unit 202, a residual generation unit 204, a transform processing unit 206, a quantization unit 208, an inverse quantization unit 210, an inverse transform processing unit 212, a reconstruction unit 214, a filter unit 216, a decoded picture buffer (DPB) 218, and an entropy coding unit 220. Any one or all of the video data memory 230, the mode selection unit 202, the residual generation unit 204, the transform processing unit 206, the quantization unit 208, the inverse quantization unit 210, the inverse transform processing unit 212, the reconstruction unit 214, the filter unit 216, the DPB 218, and the entropy coding unit 220 may be implemented in one or more processors or in processing circuits. In addition, the video encoder 200 may include additional or alternative processors or processing circuits to perform these and other functions.

[0108] The video data memory 230 may store video data to be encoded by the components of the video encoder 200. The video encoder 200 may receive video data from, for example, the video source 104 ( Figure 1 ) receives video data stored in video data memory 230. DPB218 can be used as a reference picture memory that stores reference video data for use by video encoder 200 when predicting subsequent video data. Video data memory 230 and DPB 218 can be formed by any of a variety of storage devices, such as dynamic random access memory (DRAM), including synchronous DRAM (SDRAM), magnetoresistive RAM (MRAM), resistive RAM (RRAM) or other types of storage devices. Video data memory 230 and DPB 218 can be provided by the same storage device or a separate storage device. In various examples, video data memory 230 can be on-chip with other components of video encoder 200, as shown, or off-chip relative to those components.

[0109] In the present disclosure, references to the video data memory 230 should not be interpreted as limited to memory internal to the video encoder 200, unless specifically described as such, or to memory external to the video encoder 200, unless specifically described as such. Rather, references to the video data memory 230 should be understood as reference memory for storing video data received by the video encoder 200 for encoding (e.g., video data of a current block to be encoded). Figure 1 The memory 106 may also provide temporary storage for the outputs of the various units of the video encoder 200 .

[0110] Show Figure 3 The various units of the video encoder 200 are provided to help understand the operations performed by the video encoder 200. These units can be implemented as fixed-function circuits, programmable circuits, or a combination thereof. Fixed-function circuits refer to circuits that provide specific functions and are pre-set to the operations that can be performed. Programmable circuits refer to circuits that can be programmed to perform various tasks and provide flexible functions in the operations that can be performed. For example, a programmable circuit can execute software or firmware that causes the programmable circuit to operate in a manner defined by the instructions of the software or firmware. Fixed-function circuits can execute software instructions (e.g., to receive parameters or output parameters), but the type of operation performed by the fixed-function circuit is generally immutable. In some examples, one or more of the units may be different circuit blocks (fixed-function or programmable), and in some examples, one or more of the units may be integrated circuits.

[0111] The video encoder 200 may include an arithmetic logic unit (ALU), an elementary function unit (EFU), a digital circuit, an analog circuit, and / or a programmable core formed by a programmable circuit. In an example where the operation of the video encoder 200 is performed using software executed by a programmable circuit, the memory 106 ( Figure 1 ) may store object code for software received and executed by the video encoder 200, or another memory (not shown) within the video encoder 200 may store such instructions.

[0112] The video data memory 230 is configured to store received video data. The video encoder 200 may extract a picture of video data from the video data memory 230 and provide the video data to the residual generation unit 204 and the mode selection unit 202. The video data in the video data memory 230 may be original video data to be encoded.

[0113] The mode selection unit 202 includes a motion estimation unit 222, a motion compensation unit 224, and an intra prediction unit 226. The mode selection unit 202 may include other functional units to perform video prediction according to other prediction modes. As an example, the mode selection unit 202 may include a palette unit, an intra-block copy unit (which may be part of the motion estimation unit 222 and / or the motion compensation unit 224), an affine unit, a linear model (LM) unit, etc.

[0114] The mode selection unit 202 generally coordinates multiple encoding passes to test combinations of encoding parameters and the resulting rate-distortion values ​​for these combinations. The encoding parameters may include the division of a CTU into CUs, a prediction mode for a CU, a transform type for residual data of a CU, a quantization parameter for residual data of a CU, etc. The mode selection unit 202 may ultimately select a combination of encoding parameters that has a better rate-distortion value than the other tested combinations.

[0115] The video encoder 200 may divide the picture extracted from the video data memory 230 into a series of CTUs and encapsulate one or more CTUs in a fragment. The mode selection unit 202 may divide the CTUs of the picture according to a tree structure, such as the QTBT structure or quadtree structure of HEVC described above. As described above, the video encoder 200 may form one or more CUs by dividing the CTUs according to the tree structure. Such CUs are also generally referred to as "video blocks" or "blocks".

[0116] Typically, the mode selection unit 202 also controls its components (e.g., the motion estimation unit 222, the motion compensation unit 224, and the intra prediction unit 226) to generate a prediction block for the current block (e.g., the current CU, or in HEVC, the overlapping portion of the PU and TU). In order to inter-predict the current block, the motion estimation unit 222 may perform a motion search to identify one or more closely matching reference blocks in one or more reference pictures (e.g., one or more previously decoded pictures stored in the DPB 218). In particular, the motion estimation unit 222 may calculate values ​​representing the degree of similarity of the potential reference blocks to the current block, for example, based on the sum of absolute differences (SAD), the sum of squared differences (SSD), the mean absolute difference (MAD), the mean squared difference (MSD), etc. The motion estimation unit 222 may generally perform these calculations using the sample-by-sample difference between the current block and the reference block under consideration. The motion estimation unit 222 may identify the reference block having the lowest value resulting from these calculations, which indicates the reference block that most closely matches the current block.

[0117] The motion estimation unit 222 may form one or more motion vectors (MVs) that define the position of the reference block in the reference picture relative to the position of the current block in the current picture. The motion estimation unit 222 may then provide the motion vectors to the motion compensation unit 224. For example, for unidirectional inter prediction, the motion estimation unit 222 may provide a single motion vector, while for bidirectional inter prediction, the motion estimation unit 222 may provide two motion vectors. The motion compensation unit 224 may then use the motion vectors to generate a prediction block. For example, the motion compensation unit 224 may use the motion vectors to extract data for the reference block. As another example, if the motion vectors have fractional sample precision, the motion compensation unit 224 may interpolate the values ​​of the prediction block according to one or more interpolation filters. In addition, for bidirectional inter prediction, the motion compensation unit 224 may extract data for two reference blocks identified by the corresponding motion vectors and combine the extracted data, for example, by sample-by-sample averaging or weighted averaging.

[0118] As another example, for intra prediction or intra prediction decoding, the intra prediction unit 226 can generate a prediction block based on samples adjacent to the current block. For example, for directional mode, the intra prediction unit 226 can generally mathematically combine the values ​​of adjacent samples and fill these calculated values ​​across the current block in a defined direction to produce a prediction block. As another example, for DC mode, the intra prediction unit 226 can calculate the average of adjacent samples of the current block and generate a prediction block to include the resulting average for each sample of the prediction block.

[0119] The mode selection unit 202 provides the prediction block to the residual generation unit 204. The residual generation unit 204 receives the original undecoded version of the current block from the video data memory 230 and receives the prediction block from the mode selection unit 202. The residual generation unit 204 calculates the sample-by-sample difference between the current block and the prediction block. The resulting sample-by-sample difference defines a residual block for the current block. In some examples, the residual generation unit 204 may also determine the difference between the sample values ​​in the residual block to generate the residual block using residual differential pulse code modulation (RDPCM). In some examples, the residual generation unit 204 may be formed using one or more subtractor circuits that perform binary subtraction.

[0120] In the example where the mode selection unit 202 divides the CU into PUs, each PU may be associated with a luma prediction unit and a corresponding chroma prediction unit. The video encoder 200 and the video decoder 300 may support PUs of various sizes. As described above, the size of the CU may refer to the size of the luma coding block of the CU, and the size of the PU may refer to the size of the luma prediction unit of the PU. Assuming that the size of a particular CU is 2N×2N, the video encoder 200 may support PU sizes of 2N×2N or N×N for intra-frame prediction, and symmetrical PU sizes of 2N×2N, 2N×N, N×2N, N×N or the like for inter-frame prediction. The video encoder 200 and the video decoder 300 may also support asymmetric partitioning of PU sizes of 2N×nU, 2N×nD, nL×2N, and nR×2N for inter-frame prediction.

[0121] In an example where the mode selection unit does not further divide the CU into PUs, each CU may be associated with a luma coding block and a corresponding chroma coding block. As described above, the size of a CU may refer to the size of the luma coding block of the CU. The video encoder 200 and the video decoder 300 may support a CU size of 2N×2N, 2N×N, or N×2N.

[0122] For other video coding techniques (such as intra-block copy mode coding, affine mode coding, and linear model (LM) mode coding as a few examples), the mode selection unit 202 generates a prediction block for the current block being encoded through the corresponding unit associated with the coding technique. In some examples such as palette mode coding, the mode selection unit 202 may not generate a prediction block, but instead generate a syntax element indicating a way to reconstruct the block based on the selected palette. In such a mode, the mode selection unit 202 may provide these syntax elements to the entropy coding unit 220 for encoding.

[0123] As described above, the residual generation unit 204 receives video data of a current block and a corresponding prediction block. The residual generation unit 204 then generates a residual block for the current block. To generate the residual block, the residual generation unit 204 calculates the sample-by-sample difference between the prediction block and the current block.

[0124] Transform processing unit 206 applies one or more transforms to the residual block to generate a block of transform coefficients (referred to herein as a "transform coefficient block"). Transform processing unit 206 may apply various transforms to the residual block to form a transform coefficient block. For example, transform processing unit 206 may apply a discrete cosine transform (DCT), a directional transform, a Karhunen-Loeve transform (KLT), or a conceptually similar transform to the residual block. In some examples, transform processing unit 206 may perform multiple transforms on the residual block, such as a primary transform and a secondary transform, such as a rotation transform. In some examples, transform processing unit 206 does not apply a transform to the residual block.

[0125] The quantization unit 208 may quantize the transform coefficients in the transform coefficient block to produce a quantized transform coefficient block. The quantization unit 208 may quantize the transform coefficients of the transform coefficient block according to a quantization parameter (QP) value associated with the current block. The video encoder 200 (e.g., via the mode selection unit 202) may adjust the degree of quantization applied to the coefficient block associated with the current block by adjusting the QP value associated with the CU. Quantization may introduce information loss, and therefore, the quantized transform coefficients may have lower precision than the original transform coefficients produced by the transform processing unit 206.

[0126] The inverse quantization unit 210 and the inverse transform processing unit 212 may apply inverse quantization and inverse transform to the quantized transform coefficient block, respectively, to reconstruct a residual block from the transform coefficient block. The reconstruction unit 214 may generate a reconstructed block corresponding to the current block (although possibly with some degree of distortion) based on the reconstructed residual block and the prediction block generated by the mode selection unit 202. For example, the reconstruction unit 214 may add samples of the reconstructed residual block to corresponding samples of the prediction block generated by the mode selection unit 202 to generate a reconstructed block.

[0127] Filter unit 216 may perform one or more filter operations on the reconstructed block. For example, filter unit 216 may perform a deblocking operation to reduce blocking artifacts along the edge of the CU. In some examples, the operation of filter unit 216 may be skipped.

[0128] The video encoder 200 stores the reconstructed blocks in the DPB 218. For example, in an example where the operation of the filter unit 216 is not required, the reconstruction unit 214 can store the reconstructed blocks to the DPB 218. In an example where the operation of the filter unit 216 is required, the filter unit 216 can store the filtered reconstructed blocks to the DPB 218. The motion estimation unit 222 and the motion compensation unit 224 can extract a reference picture from the DPB 218, which is formed from the reconstructed (and possibly filtered) blocks to perform inter-frame prediction on the blocks of the subsequent coded pictures. In addition, the intra-frame prediction unit 226 can use the reconstructed blocks in the DPB 218 of the current picture to perform intra-frame prediction on other blocks in the current picture.

[0129] In general, the entropy coding unit 220 may entropy encode syntax elements received from other functional components of the video encoder 200. For example, the entropy coding unit 220 may entropy encode the quantized transform coefficient blocks from the quantization unit 208. As another example, the entropy coding unit 220 may entropy encode the prediction syntax elements (e.g., motion information for inter prediction or intra mode information for intra prediction) from the mode selection unit 202. The entropy coding unit 220 may perform one or more entropy coding operations on the syntax elements (which is another example of video data) to generate entropy encoded data. For example, the entropy coding unit 220 may perform a context adaptive variable length coding (CAVLC) operation, a CABAC operation, a variable to variable (V2V) length coding operation, a syntax-based context adaptive binary arithmetic coding (SBAC) operation, a probability interval partitioning entropy (PIPE) coding operation, an exponential Golomb coding operation, or another entropy coding operation on the data. In some examples, the entropy coding unit 220 may operate in a bypass mode where the syntax elements are not entropy encoded.

[0130] The video encoder 200 may output a bitstream including entropy-coded syntax elements required to reconstruct blocks of a slice or picture. In particular, the entropy coding unit 220 may output a bitstream.

[0131] The above operations are described for blocks. Such description should be understood as operations for luma coding blocks and / or chroma coding blocks. As described above, in some examples, the luma coding blocks and chroma coding blocks are the luma components and chroma components of a CU. In some examples, the luma coding blocks and chroma coding blocks are the luma components and chroma components of a PU.

[0132] In some examples, operations performed for luma coding blocks need not be repeated for chroma coding blocks. As an example, operations for identifying motion vectors (MVs) and reference pictures for luma coding blocks need not be repeated in order to identify MVs and reference pictures for chroma blocks. Instead, the MVs for luma coding blocks may be scaled to determine the MVs for chroma blocks, and the reference pictures may be the same. As another example, the intra prediction process may be the same for luma coding blocks and chroma coding blocks.

[0133] Video encoder 200 represents an example of a device configured to encode video data, comprising: a memory configured to store video data; and one or more processing units implemented in a circuit and configured to divide a current block of video data into multiple index groups, the current block of video data being decoded using a palette mode; parse syntax elements for a first index group among the multiple index groups; after parsing the syntax elements for the first index group, parse syntax elements for a second index group among the multiple index groups; and decode the current block of video data based on the syntax elements for the first index group and the syntax elements for the second index group.

[0134] Figure 4 is a block diagram illustrating an example video decoder 300 that can perform the techniques of this disclosure. Figure 4 This is for illustrative purposes only and is not intended to limit the techniques extensively illustrated and described in this disclosure. For illustrative purposes, the video decoder 300 is described based on the techniques of JEM, VVC, and HEVC. However, the techniques of this disclosure may be performed by video decoding devices configured for other video decoding standards.

[0135] exist Figure 4 In the example of , the video decoder 300 includes a coded picture buffer (CPB) memory 320, an entropy decoding unit 302, a prediction processing unit 304, an inverse quantization unit 306, an inverse transform processing unit 308, a reconstruction unit 310, a filter unit 312, and a decoded picture buffer (DPB) 314. Any or all of the CPB memory 320, the entropy decoding unit 302, the prediction processing unit 304, the inverse quantization unit 306, the inverse transform processing unit 308, the reconstruction unit 310, the filter unit 312, and the DPB 314 may be implemented in one or more processors or in processing circuits. In addition, the video decoder 300 may include additional or alternative processors or processing circuits to perform these and other functions.

[0136] The prediction processing unit 304 includes a motion compensation unit 316 and an intra prediction unit 318. The prediction processing unit 304 may include additional units for performing predictions according to other prediction modes. As an example, the prediction processing unit 304 may include a palette unit, an intra-block copy unit (which may form part of the motion compensation unit 316), an affine unit, a linear model (LM) unit, etc. In other examples, the video decoder 300 may include more, fewer, or different functional components.

[0137] The CPB memory 320 may store video data, such as an encoded video bitstream, to be decoded by components of the video decoder 300. The video data stored in the CPB memory 320 may be, for example, received from the computer-readable medium 110 ( Figure 1 ). The CPB memory 320 may include a CPB that stores encoded video data (e.g., syntax elements) from an encoded video bitstream. Moreover, the CPB memory 320 may store video data other than syntax elements of decoded pictures, such as temporary data representing outputs from various units of the video decoder 300. The DPB 314 typically stores decoded pictures, which the video decoder 300 may output and / or use as reference video data when decoding subsequent data or pictures of the encoded video bitstream. The CPB memory 320 and the DPB 314 may be formed by any of a variety of storage devices, such as dynamic random access memory (DRAM), including synchronous DRAM (SDRAM), magnetoresistive RAM (MRAM), resistive RAM (RRAM), or other types of storage devices. The CPB memory 320 and the DPB 314 may be provided by the same storage device or a separate storage device. In various examples, the CPB memory 320 may be on-chip with other components of the video decoder 300, or off-chip relative to those components.

[0138] Additionally or alternatively, in some examples, video decoder 300 may retrieve the video from memory 120 ( Figure 1 ) to extract the decoded video data. That is, the memory 120 may store data together with the CPB memory 320 as described above. Similarly, when some or all of the functions of the video decoder 300 are implemented in software executed by the processing circuits of the video decoder 300, the memory 120 may store instructions to be executed by the video decoder 300.

[0139] Show Figure 4 The various units shown in FIG. 1 and FIG. 2 are provided to help understand the operations performed by the video decoder 300. These units may be implemented as fixed function circuits, programmable circuits, or a combination thereof. Figure 3, a fixed-function circuit refers to a circuit that provides a specific function and is pre-set to the operations that can be performed. A programmable circuit refers to a circuit that can be programmed to perform various tasks and provide flexible functions in the operations that can be performed. For example, a programmable circuit can execute software or firmware that causes the programmable circuit to operate in a manner defined by the instructions of the software or firmware. A fixed-function circuit can execute software instructions (for example, to receive parameters or output parameters), but the type of operation performed by the fixed-function circuit is generally immutable. In some examples, one or more of the units may be different circuit blocks (fixed-function or programmable), and in some examples, one or more of the units may be integrated circuits.

[0140] The video decoder 300 may include an ALU, an EFU, a digital circuit, an analog circuit, and / or a programmable core formed by a programmable circuit. In an example where the operation of the video decoder 300 is performed by software executed on the programmable circuit, an on-chip or off-chip memory may store instructions (e.g., object code) of the software received and executed by the video decoder 300.

[0141] The entropy decoding unit 302 may receive the encoded video data from the CPB and entropy decode the video data to reproduce the syntax elements. The prediction processing unit 304, the inverse quantization unit 306, the inverse transform processing unit 308, the reconstruction unit 310, and the filter unit 312 may generate decoded video data based on the syntax elements extracted from the bitstream.

[0142] Typically, the video decoder 300 reconstructs a picture on a block-by-block basis. The video decoder 300 may perform a reconstruction operation on each block individually (where a block currently being reconstructed (ie, decoded) may be referred to as a "current block").

[0143] The entropy decoding unit 302 may entropy decode the following: syntax elements defining the quantized transform coefficients of the quantized transform coefficient block, and transform information such as a quantization parameter (QP) and / or a transform mode indication. The inverse quantization unit 306 may use the QP associated with the quantized transform coefficient block to determine a quantization degree, and likewise, determine an inverse quantization degree to be applied by the inverse quantization unit 306. The inverse quantization unit 306 may, for example, perform a bitwise left shift operation to inverse quantize the quantized transform coefficients. The inverse quantization unit 306 may thereby form a transform coefficient block including the transform coefficients.

[0144] After the inverse quantization unit 306 forms the transform coefficient block, the inverse transform processing unit 308 may apply one or more inverse transforms to the transform coefficient block to generate a residual block associated with the current block. For example, the inverse transform processing unit 308 may apply an inverse DCT, an inverse integer transform, an inverse Karhunen-Loeve transform (KLT), an inverse rotational transform, an inverse directional transform, or another inverse transform to the coefficient block.

[0145] In addition, prediction processing unit 304 generates a prediction block based on the prediction information syntax elements entropy decoded by entropy decoding unit 302. For example, if the prediction information syntax elements indicate that the current block is inter-predicted, motion compensation unit 316 can generate the prediction block. In this case, the prediction information syntax elements can indicate a reference picture in DPB 314 from which the reference block is extracted, and a motion vector that identifies the position of the reference block in the reference picture relative to the position of the current block in the current picture. Motion compensation unit 316 can generally generate a prediction block in the same manner as for motion compensation unit 224 ( Figure 3 ) is performed in a manner substantially similar to that described herein.

[0146] As another example, if the prediction information syntax element indicates that the current block is intra-predicted, the intra-prediction unit 318 can generate a prediction block according to the intra-prediction mode indicated by the prediction information syntax element. Similarly, the intra-prediction unit 318 can generally generate a prediction block in the same manner as for the intra-prediction unit 226 ( Figure 3 ) The intra prediction unit 318 may extract data of neighboring samples of the current block from the DPB 314.

[0147] The reconstruction unit 310 may reconstruct the current block using the prediction block and the residual block. For example, the reconstruction unit 310 may add samples of the residual block to corresponding samples of the prediction block to reconstruct the current block.

[0148] The filter unit 312 may perform one or more filter operations on the reconstructed block. For example, the filter unit 312 may perform a deblocking operation to reduce blocking artifacts along the edges of the reconstructed block. The operations of the filter unit 312 may not necessarily be performed in all examples.

[0149] The video decoder 300 may store the reconstructed block in the DPB 314. For example, in an example where the operation of the filter unit 312 is not performed, the reconstruction unit 310 may store the reconstructed block in the DPB 314. In an example where the operation of the filter unit 312 is performed, the filter unit 312 may store the filtered reconstructed block in the DPB 314. As described above, the DPB 314 may provide reference information to the prediction processing unit 304, such as samples of the current picture for intra-frame prediction and previously decoded pictures for subsequent motion compensation. In addition, the video decoder 300 may output the decoded picture from the DPB for subsequent display on a display device (such as, Figure 1 The image is presented on a display device 118).

[0150] In this way, the video decoder 300 represents an example of a video decoding device, which includes: a memory configured to store video data; and one or more processing units implemented in a circuit and configured to divide a current block of video data into multiple index groups, the current block of video data being decoded using a palette mode; parsing syntax elements for a first index group among the multiple index groups; after parsing the syntax elements of the first index group, parsing syntax elements for a second index group among the multiple index groups; and decoding the current block of video data based on the syntax elements for the first index group and the syntax elements for the second index group.

[0151] Figure 5 is a conceptual diagram illustrating an example of determining a color palette for encoding video data, consistent with the techniques of this disclosure. Figure 5 The example includes a picture 1780 having a first coding unit (CU) 1800 associated with a first palette 1840 and a second CU 1880 associated with a second palette 1920. As described in more detail below and in accordance with the techniques of the present disclosure, the second palette 1920 is based on the first palette 1840. The picture 1780 also includes a block 1960 coded in an intra-prediction coding mode and a block 2000 coded in an inter-prediction coding mode.

[0152] For the purpose of illustration, in the video encoder 200 ( Figure 1 and Figure 3 ) and video decoder 300( Figure 1 and Figure 4 ) and describes for the HEVC standard Figure 5 However, it should be understood that the technology of the present disclosure is not limited in this manner and can be applied by other video decoding processors and / or devices in other video decoding processes and / or standards (e.g., VVC).

[0153] Typically, a palette refers to a color palette for a CU that is currently being decoded (such as Figure 5 CU 1880 in the example of ) is a primary and / or representative plurality of pixel values. The first palette 1840 and the second palette 1920 are shown as including a plurality of palettes. In some examples, a video decoder (such as, video encoder 200 or video decoder 300) may decode the palettes for each color component of the CU respectively. For example, the video encoder 200 may encode: a palette for the luminance (Y) component of the CU, another palette for the chrominance (U) component of the CU, and yet another palette for the chrominance (V) component of the CU. In this example, the entries of the Y palette may represent the Y values ​​of the pixels of the CU, the entries of the U palette may represent the U values ​​of the pixels of the CU, and the entries of the V palette may represent the V values ​​of the pixels of the CU. In another example, the video encoder 200 may encode: a palette for the luminance (Y) component of the CU, and another palette for the two components (U, V) of the CU. In this example, entries of the Y palette may represent Y values ​​for pixels of the CU, and entries of the UV palette may represent UV value pairs for pixels of the CU.

[0154] In other examples, the video encoder 200 may encode a single palette for all color components of the CU. In this example, the video encoder 200 may encode a palette having an i-th entry, where the i-th entry is a ternary value including Yi, Ui, and Vi. In this case, the palette includes a value for each component of the pixel. Therefore, representing palettes 1840 and 1920 as a palette set having multiple separate palettes is only an example and is not intended to be limiting.

[0155] exist Figure 5In the example of , the first palette 1840 includes three entries 2020-2060, having entry index values ​​1, entry index value 2, and entry index value 3, respectively. Entries 2020-2060 associate index values ​​with pixel values ​​including pixel value A, pixel value B, and pixel value C, respectively. As described herein, instead of decoding the actual pixel values ​​of the first CU 1800, a video decoder (such as the video encoder 200 or the video decoder 300) can use palette-based decoding to decode the pixels of the block using indexes 1-3. That is, for each pixel position of the first CU 1800, the video encoder 200 may encode an index value of the pixel, where the index value is associated with the pixel value in one or more first palettes 1840. The video decoder 300 can obtain the index value from the bitstream and reconstruct the pixel value using the index value and the one or more first palettes 1840. Therefore, the video encoder 200 sends the first palette 1840 in the encoded video data bitstream for use in palette-based decoding by the video decoder 300. In general, one or more palettes may be sent for each CU, or may be shared between different CUs.

[0156] The video encoder 200 and the video decoder 300 may determine the second palette 1920 based on the first palette 1840. For example, the video encoder 200 may encode a pred_palette_flag for each CU (e.g., including the second CU 1880) to indicate whether the palette for the CU is predicted from one or more palettes associated with one or more other CUs, such as neighboring CUs (spatially or based on scan order) or the most frequent samples of causal neighbors. For example, when the value of such a flag is equal to one, the video decoder 300 may determine that the second palette 1920 for the second CU 1880 is predicted from one or more decoded palettes, and thus a new palette for the second CU 1880 is not included in the bitstream containing the pred_palette_flag. When such a flag is equal to zero, the video decoder 300 may determine that the palette 1920 for the second CU 1880 is included in the bitstream as a new palette. In some examples, pred_palette_flag may be coded separately for each different color component of a CU (e.g., for a CU in YUV video, there are three flags, one for Y, one for U, and one for V). In other examples, a single pred_palette_flag may be coded for all color components of a CU.

[0157] In the above example, pred_palette_flag is signaled for each CU to indicate whether any entry of the palette of the current block is predicted. In some examples, one or more syntax elements may be signaled on a per-entry basis. That is, a flag may be signaled for each entry of the palette predictor to indicate whether the entry is present in the current palette. As described above, if a palette entry is not predicted, the palette entry may be signaled explicitly.

[0158] When the second palette 1920 is determined relative to the first palette 1840 (e.g., pred_palette_flag is equal to one), the video encoder 200 and / or the video decoder 300 may locate one or more blocks from which the predictive palette (in this example, the first palette 1840) is determined. The predictive palette may be associated with one or more neighboring CUs (e.g., such as neighboring CUs (spatial or based on scan order) or the most frequent samples of causal neighbors) of the CU currently being decoded, i.e., the second CU 1880. The palettes of the one or more neighboring CUs may be associated with the predictor palette. In some examples, such as in Figure 5 In the example shown in , the video encoder 200 and / or the video decoder 300 may locate the left neighboring CU (first CU 1800) when determining the predictive palette of the second CU 1880. In other examples, the video encoder 200 and / or the video decoder 300 may locate one or more CUs in other positions relative to the second CU 1880, such as the upper CU (CU 1960).

[0159] The video encoder 200 and / or the video decoder 300 may determine a CU for palette prediction based on a hierarchy. For example, the video encoder 200 and / or the video decoder 300 may initially identify a left-neighboring CU (first CU 1800) for palette prediction. If the left-neighboring CU is not available for prediction (e.g., the left-neighboring CU is decoded in a mode other than a palette-based decoding mode (such as an intra-prediction mode or an inter-prediction mode), or is located at the leftmost edge of a picture or a fragment), the video encoder 200 and / or the video decoder 300 may identify an upper-neighboring CU (CU 1960). The video encoder 200 and / or the video decoder 300 may continue searching for available CUs according to a predetermined position order until a CU with a palette that can be used for palette prediction is found. In some examples, the video encoder 200 and / or the video decoder 300 may determine a predictive palette based on reconstructed samples of multiple blocks and / or adjacent blocks.

[0160] Although Figure 5The example of 1840 shows the first palette 1840 as a predictive palette from a single CU (first CU 1800), but in other examples, the video encoder 200 and / or the video decoder 300 may locate a palette for prediction based on a combination of neighboring CUs. For example, the video encoder 200 and / or the video decoder 300 may apply one or more formulas, functions, rules, etc. to generate a palette based on the palette of one or a combination of multiple neighboring CUs.

[0161] In yet other examples, the video encoder 200 and / or the video decoder 300 may construct a candidate list that includes multiple potential candidates for palette prediction. A pruning process may be applied at both the video encoder 200 and the video decoder 300 to remove duplicate candidates in the list. In such examples, the video encoder 200 may encode an index to the candidate list to indicate a candidate CU in the list from which the current CU is selected for palette prediction (e.g., the palette is copied). The video decoder 300 may construct the candidate list in the same manner, decode the index, and use the decoded index to select the palette of the corresponding CU for use with the current CU.

[0162] In an example for illustrative purposes, the video encoder 200 and the video decoder 300 may construct a candidate list that includes: a CU located above the CU currently being decoded and a CU located to the left of the CU currently being decoded. In this example, the video encoder 200 may encode one or more syntax elements to indicate candidate selection. For example, the video encoder 200 may encode a flag with a value of zero to indicate that the palette for the current CU is copied from the CU located to the left of the current CU. The video encoder 200 may encode the flag with a value of one to indicate that the palette for the current CU is copied from the CU located above the current CU. The video decoder 300 decodes the flag and selects the appropriate CU for palette prediction.

[0163] In yet other examples, the video encoder 200 and / or the video decoder 300 determine a palette for the CU currently being decoded based on the frequency with which sample values ​​included in one or more other palettes appear in one or more neighboring CUs. For example, the video encoder 200 and / or the video decoder 300 may track the colors associated with the most frequently used index values ​​during the decoding of a predetermined number of CUs. The video encoder 200 and / or the video decoder 300 may include the most frequently used colors in the palette for the CU currently being decoded.

[0164] In some examples, the video encoder 200 and / or the video decoder 300 may perform per-entry based palette prediction. For example, the video encoder 200 may encode one or more syntax elements, such as one or more flags, for each entry of a predictive palette to indicate whether the corresponding predictive palette entry is reused in the current palette (e.g., whether the current palette reuses pixel values ​​in the palette of another CU). In this example, when a given entry is a predicted value from a predictive palette (e.g., a corresponding entry of a palette associated with an adjacent CU), the video encoder 200 may encode a flag with a value equal to one for the entry. The video encoder 200 may encode a flag with a value equal to zero for a particular entry to indicate that the particular entry is not predicted from the palette of another CU. In this example, the video encoder 200 may also encode additional data to indicate the value of a palette entry that is not predicted.

[0165] exist Figure 5 In the example of , the second palette 1920 includes four entries 2080-2140, respectively having entry index values ​​1, entry index value 2, entry index value 3, and entry index value 4. Entries 2080-2140 associate index values ​​with pixel values ​​including pixel value A, pixel value B, pixel value C, and pixel value D, respectively. The video encoder 200 and / or the video decoder 300 may use any of the above techniques to locate the first CU 1800 for palette prediction, and copy entries 1-3 of the first palette 1840 to entries 1-3 of the second palette 1920 for decoding the second CU 1880. In this way, the video encoder 200 and / or the video decoder 300 may determine the second palette 1920 based on the first palette 1840. In addition, the video encoder 200 and / or the video decoder 300 may decode data of entry 4 to be included in the second palette 1920. Such information may include the number of palette entries that are not predicted from the predictor palette and the pixel values ​​corresponding to those palette entries.

[0166] In some examples, according to aspects of the present disclosure, one or more syntax elements may indicate whether a palette, such as second palette 1920, is completely derived from a predictive palette (in Figure 5 The first palette 1840 is shown in FIG. 1 , but the predictive palette may also be composed of entries from one or more blocks) or whether specific entries of the second palette 1920 are predicted. For example, the initial syntax element may indicate whether all entries are predicted. If the initial syntax element indicates that not all entries are predicted (e.g., a flag with a value of 0), one or more additional syntax elements may indicate which entries of the second palette 1920 are predicted from the predictive palette.

[0167] According to some aspects of the present disclosure, certain information associated with palette prediction may be inferred from one or more characteristics of the data being coded. That is, rather than video encoder 200 encoding syntax elements (and video decoder 300 decoding such syntax elements), video encoder 200 and video decoder 300 may perform palette prediction based on one or more features of the data being coded.

[0168] Figure 6 is a conceptual diagram illustrating an example of determining an index for a palette for a pixel block consistent with the techniques of the present disclosure. Figure 6 A diagram 2400 includes index values ​​(values ​​1, 2, and 3) that associate the corresponding position of the pixel associated with the index value with an entry of a palette 2440. Figure 5 Palette 2440 is determined in a manner similar to first palette 1840 and second palette 1920 described.

[0169] Again, for illustration purposes, in the video encoder 200 ( Figure 1 and Figure 3 ) and video decoder 300( Figure 1 and Figure 4 ) and describes for the HEVC video coding standard Figure 6 However, it should be understood that the technology of the present disclosure is not limited in this manner and can be applied by other video decoding processors and / or devices in other video decoding processes and / or standards (e.g., VVC).

[0170] Despite Figure 6 2400 is shown in the example of FIG2400 as including an index value for each pixel position, but it should be understood that in other examples, not all pixel positions may be associated with an index value that associates a pixel value with an entry of palette 2440. That is, as described above, in some examples, if the actual pixel value of a position in graph 2400 is not included in palette 2440, then video encoder 200 may encode an indication of the actual pixel value (or a quantized version thereof) (and video decoder 300 may obtain the indication of the actual pixel value (or a quantized version thereof) from the encoded bitstream).

[0171] In some examples, the video encoder 200 and the video decoder 300 may be configured to decode an additional map that indicates which pixel positions are associated with index values. For example, assume that the (i, j) entry in the map corresponds to the (i, j) position of the CU. The video encoder 200 may encode one or more syntax elements for each entry of the map (i.e., each pixel position) to indicate whether the entry has an associated index value. For example, the video encoder 200 may encode a flag with a value of one to indicate that the pixel value at the (i, j) position in the CU is one of the values ​​in the palette 2440. In such an example, the video encoder 200 may also encode the palette index (in Figure 6 2440) to indicate the pixel value in the palette and allow the video decoder 300 to reconstruct the pixel value. In the case where the palette 2440 includes a single entry and an associated pixel value, the video encoder 200 can skip signaling the index value. The video encoder 200 can encode the flag as a value of zero to indicate that the pixel value at the (i, j) position in the CU is not one of the values ​​in the palette 2440. In this example, the video encoder 200 can also encode an indication of the pixel value for use by the video decoder 300 in reconstructing the pixel value. In some cases, the pixel values ​​can be decoded in a lossy manner.

[0172] The value of a pixel in one position of a CU may provide an indication of the values ​​of one or more other pixels in other positions of the CU. For example, there is a relatively high probability that adjacent pixel positions of a CU will have the same pixel value or may be mapped to the same index value (in the case of lossy coding, where more than one pixel value may be mapped to a single index value).

[0173] Thus, the video encoder 200 may encode one or more syntax elements to indicate the number of consecutive pixels or index values ​​having the same pixel value or index value in a given scan order. As described above, a string of pixels or index values ​​with similar values ​​may be referred to herein as a run. In an example for illustrative purposes, if two consecutive pixels or indexes in a given scan order have different values, the run is equal to zero. If two consecutive pixels or indexes in a given scan order have the same value, but the third pixel or index in the scan order has a different value, the run is equal to 1. For three consecutive indexes or pixels with the same value, the run is two, and so on. The video decoder 300 may obtain a syntax element indicating a run from the encoded bitstream and use this data to determine the number of consecutive positions having the same pixel or index value.

[0174] The number of indices that may be included in a run may be affected by the scan order. For example, consider a raster scan of rows 2660, 2680, and 2700 of FIG. 2400. Assuming a horizontal left-to-right scan direction (such as a raster scan order), row 2660 includes three index values ​​"1", two index values ​​"2", and three index values ​​"3". Row 2680 includes five index values ​​"1" and three index values ​​"3". In this example, for row 2660, the video encoder 200 may encode a syntax element to indicate that the first value of row 2660 (the leftmost value of the row) is 1, the run is 2, followed by index value 2, the run is 1, followed by index value 3, the run is 2. After the raster scan, the video encoder 200 may then begin decoding row 2680 with the leftmost value. For example, the video encoder 200 may encode a syntax element to indicate that the first value of row 2680 is 1, the run is 4, followed by index value 3, the run is 2. Video encoder 200 may continue processing row 2700 in the same manner.

[0175] Therefore, in raster scan order, the first index of the current row can be scanned directly after the last index of the previous row. However, in some examples, it may not be desirable to scan the indexes in raster scan order. For example, it may not be desirable to scan the indexes in raster scan order in the following cases: the first row of the video data block (e.g., row 2660) includes the first pixel adjacent to the first edge of the video data block (e.g., the leftmost pixel of row 2660, whose index value is 1) and the last pixel adjacent to the second edge of the video data block (e.g., the rightmost pixel of row 2660, whose index value is 3), the second row of the video data block (e.g., row 2680) includes the first pixel adjacent to the first edge of the video data block (e.g., the leftmost pixel of row 2680, whose index value is 1) and the last pixel adjacent to the second edge of the video data block (e.g., the rightmost pixel of row 2680, whose index value is 3), the last pixel of the first row is adjacent to the last pixel of the second row, the first edge is parallel to the second edge, and the index value of the last pixel in the first row is the same as the index value of the last pixel in the second row, but different from the index value of the first pixel in the second row. This situation (i.e., the index value of the last pixel in the first row is the same as the last pixel in the second row, but different from the first pixel in the second row) occurs more frequently in computer-generated screen content than in other types of video content.

[0176] In some examples, video encoder 200 can utilize a serpentine scan order (e.g., a traversal scan order) when encoding the index of the graph. For example, video encoder 200 can scan the last pixel of the second row directly after the last pixel of the first row. In this way, video encoder 200 can improve the efficiency of run-length coding.

[0177] For example, as opposed to using a raster scan order, the video encoder 200 may use a serpentine scan order to decode the values ​​of the diagram 2400. In an example for illustrative purposes, consider rows 2660, 2680, and 2700 of the diagram 2400. Using a serpentine scan order, such as a serpentine scan order, the video encoder 200 may decode the values ​​of the diagram 2400, starting at the left position of row 2660, proceeding to the rightmost position of row 2660, then moving down to the rightmost position of row 2680, proceeding to the leftmost position of row 2680, and then moving down to the leftmost position of row 2700. For example, the video encoder 200 may encode one or more syntax elements to indicate that the first position of row 2660 is 1, and that the next run of two consecutive entries in the scan direction is the same as the first position of row 2660.

[0178] The video encoder 200 may encode one or more syntax elements to indicate that the next position of the line 2660 (i.e., the fourth position from left to right) is 2, and the next consecutive entry in the scan direction is the same as the fourth position of the line 2660. The video encoder 200 may encode one or more syntax elements to indicate that the next position of the line 2660 (i.e., the sixth position) is 3, and the next run of five consecutive entries in the scan direction is the same as the sixth position of the line 2660. The video encoder 200 may encode one or more syntax elements to indicate that the next position of the line 2680 in the scan direction (i.e., the fourth position from right to left of the line 2680) is 1, and the next run of nine consecutive entries in the scan direction is the same as the fourth position of the line 2680.

[0179] In this way, by using a serpentine scan order, the video encoder 200 can encode longer runs, which can improve decoding efficiency. For example, using a raster scan, the last run of line 2660 (for index value 3) is equal to 2. Using a serpentine scan, the last run of line 2660 extends to line 2680 and is equal to 5.

[0180] The video decoder 300 may receive the above syntax elements and reconstruct the lines 2660, 2680, and 2700. For example, the video decoder 300 may obtain data indicating the index value of the position in the currently decoded picture 2400 from the encoded bitstream. The video decoder 300 may also obtain data indicating the number of consecutive positions having the same index value in the scanning order.

[0181] Fig. 9 2 is a flowchart showing an exemplary method for encoding a current block. The current block may include a current CU. Although for the video encoder 200 ( Figure 1 and 3), but it should be understood that other devices can be configured to perform the same Fig. 9 A similar approach to the one used in this paper.

[0182] In this example, the video encoder 200 initially predicts the current block (350). For example, the video encoder 200 may form a prediction block for the current block. The video encoder 200 may then calculate a residual block for the current block (352). To calculate the residual block, the video encoder 200 may calculate the difference between the original uncoded block and the prediction block for the current block. The video encoder 200 may then transform and quantize the coefficients of the residual block (354). Next, the video encoder 200 may scan the quantized transform coefficients of the residual block (356). During or after the scan, the video encoder 200 may entropy encode the coefficients (358). For example, the video encoder 200 may encode the coefficients using CAVLC or CABAC. The video encoder 200 may then output entropy coded data for the block (360). For example and in accordance with one or more techniques of the present disclosure, the video encoder 200 may encode the syntax elements of the current block using the index groups described herein.

[0183] Fig.10 is a flowchart illustrating an exemplary method for decoding a current block of video data. The current block may include a current CU. Although for the video decoder 300 ( Figure 1 and 4 ), but it should be understood that other devices can be configured to perform the same Fig.10 A similar approach to the one used in this paper.

[0184] The video decoder 300 may receive entropy coded data of a current block, such as entropy coded prediction information and entropy coded data of coefficients of a residual block corresponding to the current block (370). The video decoder 300 may entropy decode the entropy coded data to determine the prediction information of the current block and reproduce the coefficients of the residual block (372). For example and in accordance with one or more techniques of the present disclosure, the video decoder 300 may decode the syntax elements of the current block using the index groups described herein. The video decoder 300 may predict the current block (374), for example, using an intra-prediction mode or an inter-prediction mode as indicated by the prediction information of the current block to calculate a prediction block for the current block. The video decoder 300 may then inverse scan the reproduced coefficients (376) to create a block of quantized transform coefficients. The video decoder 300 may then inverse quantize and inverse transform the coefficients to produce a residual block (378). The video decoder 300 may ultimately decode the current block (380) by combining the prediction block and the residual block.

[0185] Fig.111 is a flowchart illustrating an exemplary method for encoding a current block of video data using palette mode coding according to one or more techniques of the present disclosure. The current block may include a current CU. Although for video encoder 200 ( Figure 1 and 3 ), but it should be understood that other devices can be configured to perform the same Fig.11 A similar approach to the one used in this paper.

[0186] The video encoder 200 may determine to use palette mode coding to decode a current coding unit (CU) (1102). For example, the mode selection unit 202 of the video encoder 200 may use various rate-distortion techniques to analyze samples of the current CU, and based on the analysis, determine to use palette mode coding to decode the current CU. In some examples, the video encoder 200 may encode in the decoded video bitstream an indication that the current CU is decoded using palette mode. For example, the entropy coding unit 220 may encode a syntax element (e.g., a flag such as pred_mode_plt_flag) to indicate that the current CU is decoded using palette mode.

[0187] The video encoder 200 may divide the current CU into M index groups 1104. For example, where the current CU is an 8-sample by 8-sample block of video data, the intra prediction unit 226 may divide the current CU into four index groups, each with sixteen samples.

[0188] Each index group may include a set of sequential samples in a scan order. As described above, the scan order may be a raster, a serpentine, or any other suitable scan order. In some examples, all samples of an index group may be in a single row (or column) of a CU. In other examples, samples in a single index group may span multiple rows (or columns).

[0189] The video encoder 200 may sequentially parse (e.g., encode) syntax elements for each of the M index groups in the video bitstream (1106). For example, when there are four index groups (i.e., M=4), the intra prediction unit 226 may cause the entropy coding unit 220 to first encode syntax elements necessary for constructing samples of the first index group, then cause the entropy coding unit 220 to encode syntax elements necessary for constructing samples of the second index group, then cause the entropy coding unit 220 to encode syntax elements necessary for constructing samples of the third index group, and then cause the entropy coding unit 220 to encode syntax elements necessary for constructing samples of the fourth index group.

[0190] The intra-prediction unit 226 may sequentially reconstruct (e.g., as part of a reconstruction loop) samples of the index groups based at least on the respective syntax elements of the index groups. For example, the intra-prediction unit 226 may utilize a common palette for all index groups, reconstruct samples of the first index group based on the common palette and syntax elements for the first index group, ..., and reconstruct samples of the Nth index group based on the common palette and syntax elements for the Nth index group. The intra-prediction unit 226 may encode one or more syntax elements representing the common palette for the current CU.

[0191] The syntax elements necessary to construct pixels in a particular index group may include one or more of the following: one or more syntax elements indicating an index in the current palette entry array (e.g., palette_idx_idc), one or more syntax elements representing the value of an escape sample in a particular index group (e.g., palette_escape_val), and / or one or more syntax elements specifying whether the index of the corresponding sample is the same as the index of a previously scanned sample (e.g., index_copy_flag).

[0192] In some examples, the video encoder 200 may encode syntax elements for reconstruction of all index groups before encoding syntax elements for any particular index group. For example, before encoding syntax elements necessary to construct pixels in a first index group, the entropy coding unit 220 may encode syntax elements commonly used (e.g., shared) by all index groups. Some examples of syntax elements commonly used by all index groups include: a syntax element indicating whether to apply a transposition process to a palette index of a palette for a current block of video data (e.g., palette_transpose_flag); one or more syntax elements related to a delta quantization parameter (QP) and / or chroma QP offset for a current block of video data (e.g., one or both of the following: a syntax element indicating an absolute value of the difference between the QP of the current block and a predictor of the QP of the current block, and a syntax element indicating a sign of the difference between the QP of the current block and a predictor of the QP of the current block); a syntax element indicating whether to reuse a value from a predictor in the current palette. One or more syntax elements indicating the number of zeros preceding nonzero entries in an array of entries of a palette (e.g., palette_predictor_run); a syntax element indicating the number of entries in the current palette that are explicitly signaled (e.g., num_signalled_palette_entries); one or more syntax elements that each indicate a value of a component in an entry in the current palette (e.g., palette_entry); and a syntax element indicating whether a current block of video data includes at least one escaped decoding sample (e.g., palette_escape_val_present_flag).

[0193] In some examples, intra-prediction unit 226 can cause entropy encoding unit 220 to use context-based coding (e.g., context-adaptive binary arithmetic coding (CABAC)) to code a syntax element for specifying whether an index of a corresponding sample is the same as an index of a previously scanned sample using a context determined based on one or more parameters. As an example, intra-prediction unit 226 and / or entropy encoding unit 220 can determine the context based on a run type, such as a last parsed run type.

[0194] Fig.12 1 is a flowchart illustrating an exemplary method for decoding a current block of video data using palette mode coding according to one or more techniques of the present disclosure. The current block may include a current CU. Although for video decoder 300 ( Figure 1 and 4 ), but it should be understood that other devices can be configured to perform the same Fig.12 A similar approach to the one used in this paper.

[0195] The video decoder 300 may determine to use palette mode coding to decode a current coding unit (CU) (1202). For example, the entropy decoding unit 302 of the video decoder 300 may decode an indication that the current CU is coded using the palette mode from the decoded video bitstream. For example, the entropy decoding unit 302 may decode a syntax element (e.g., a flag such as pred_mode_plt_flag) indicating that the current CU is coded using the palette mode.

[0196] The video decoder 300 may divide the current CU into M index groups (1204). For example, where the current CU is an 8-sample by 8-sample block of video data, the intra prediction unit 318 may divide the current CU into four index groups, each with sixteen samples.

[0197] Each index group may include a set of sequential samples in a scan order. As described above, the scan order may be a raster, a serpentine, or any other suitable scan order. In some examples, all samples of an index group may be in a single row (or column) of a CU. In other examples, samples in a single index group may span multiple rows (or columns).

[0198] The video decoder 300 may sequentially parse (e.g., decode) syntax elements for each of the M index groups from the video bitstream, and sequentially decode / reconstruct samples of the index groups (1206). For example, in the case where there are four index groups (i.e., M=4), the intra prediction unit 318 may first receive syntax elements necessary to construct samples of the first index group from the entropy decoding unit 302, then receive syntax elements necessary to construct samples of the second index group, then receive syntax elements necessary to construct samples of the third index group, and then receive syntax elements necessary to construct samples of the fourth index group.

[0199] The intra prediction unit 318 may sequentially reconstruct the samples of the index groups based at least on the syntax elements of the respective index groups. For example, the intra prediction unit 318 may utilize a common palette for all index groups, reconstruct the samples of the first index group based on the common palette and the syntax elements for the first index group, ..., and reconstruct the samples of the Nth index group based on the common palette and the syntax elements of the Nth index group. The intra prediction unit 318 may construct a common palette based on the syntax elements signaled for the current CU.

[0200] The syntax elements necessary to construct pixels in a particular index group may include one or more of the following: one or more syntax elements indicating an index in an array of current palette entries (e.g., palette_idx_idc), one or more syntax elements representing the value of an escape sample in a particular index group (e.g., palette_escape_val), and / or one or more syntax elements specifying whether the index of the corresponding sample is the same as the index of a previously scanned sample (e.g., index_copy_flag).

[0201] In some examples, the video decoder 300 may decode (e.g., parse) syntax elements for reconstruction of all index groups before decoding (e.g., parse) syntax elements for any particular index group. For example, before decoding syntax elements necessary to construct pixels in a first index group, the entropy decoding unit 302 may decode syntax elements commonly used (e.g., shared) by all index groups. Some examples of syntax elements commonly used by all index groups include: a syntax element indicating whether to apply a transposition process to a palette index of a palette for a current block of video data (e.g., palette_transpose_flag); one or more syntax elements related to a delta quantization parameter (QP) and / or chroma QP offset for a current block of video data (e.g., one or both of: a syntax element indicating an absolute value of a difference between a QP of a current block and a predictor of a QP of the current block, and a syntax element indicating a sign of a difference between a QP of a current block and a predictor of a QP of the current block); a syntax element indicating whether to reuse a value from a predictor in the current palette. One or more syntax elements indicating the number of zeros preceding nonzero entries in an array of entries of a palette (e.g., palette_predictor_run); a syntax element indicating the number of entries in the current palette that are explicitly signaled (e.g., num_signalled_palette_entries); one or more syntax elements that each indicate a value of a component in an entry in the current palette (e.g., palette_entry); and a syntax element indicating whether a current block of video data includes at least one escaped decoding sample (e.g., palette_escape_val_present_flag).

[0202] By first decoding the syntax elements used by all index groups (e.g., syntax elements used to construct a palette), and then grouping the decoding of the syntax elements of the index groups respectively, the video decoder 300 can start the construction process of some samples of the current CU without having to wait for the completion of the decoding of all syntax elements of the current CU. In this way, the technology of the present disclosure can reduce the amount of time required for the decoding process and / or the delay introduced by the decoding process.

[0203] In some examples, entropy decoding unit 302 may use context-based coding (e.g., context-adaptive binary arithmetic coding (CABAC)) to decode a syntax element that specifies whether an index of a corresponding sample is the same as an index of a previously scanned sample using a context determined based on one or more parameters. As an example, entropy decoding unit 302 may determine the context based on a run type, such as a last parsed run type.

[0204] The following numbered examples may illustrate one or more aspects of the present disclosure:

[0205] Example 1. A method for decoding video data, the method comprising: dividing a current block of video data into multiple index groups, the current block of video data being decoded using a palette mode; parsing syntax elements for a first index group among the multiple index groups; after parsing the syntax elements for the first index group, parsing syntax elements for a second index group among the multiple index groups; and decoding the current block of video data based on the syntax elements for the first index group and the syntax elements for the second index group.

[0206] Example 2. The method of Example 1, wherein the current block of video data is a current coding unit (CU) of the video data.

[0207] Example 3. The method of any combination of Example 1 or Example 2, wherein parsing syntax elements for the first index group comprises parsing syntax elements for the first index group necessary to construct pixels in the first index group.

[0208] Example 4. The method of any combination of Examples 1-3, wherein parsing syntax elements for the second index group comprises parsing syntax elements for the second index group necessary to construct pixels in the second index group.

[0209] Example 5. A method of any combination of Examples 1-4, wherein the syntax elements necessary to construct the pixels in the index group include one or more of the following: a syntax element indicating whether a transposition process is applied to a palette index of a palette for a current block of video data; one or more syntax elements related to a delta quantization parameter (QP) and / or a chroma QP offset for the current block of video data; one or more syntax elements indicating the number of zeros preceding non-zero entries in an array used to indicate whether entries from a predictor palette are reused in the current palette; a syntax element indicating the number of entries in the current palette that are explicitly signaled; one or more syntax elements that each indicate a value of a component in an entry in the current palette; a syntax element indicating whether the current block of video data includes at least one escape decoding sample; a syntax element indicating the number of indices in the current palette that are explicitly signaled or inferred; and one or more syntax elements indicating an index in an array of current palette entries.

[0210] Example 6. The method of Example 5, wherein one or more of the following: a syntax element indicating whether to apply a transposition process to a palette index of a current block of video data comprises a palette_transpose_flag syntax element; one or more syntax elements related to delta QP comprise one or both of the following: a syntax element for indicating an absolute value of a difference between a QP of the current block and a predictor of the QP of the current block, and a syntax element for indicating a sign of a difference between the QP of the current block and the predictor of the QP of the current block; one or more syntax elements indicating a number of zeros preceding a non-zero entry in an array for indicating whether entries from a predictor palette are reused in the current palette comprise one or more palette_predictor_run syntax elements; indicating whether a value in the current palette is explicitly signaled The syntax element for notifying the number of entries includes a num_signalled_palette_entries syntax element; one or more syntax elements each indicating a value of a component in an entry in the current palette includes one or more palette_entry syntax elements; the syntax element indicating whether the current block of video data includes at least one escape decoding sample includes palette_escape_val_present_flag; the syntax element indicating the number of indices in the current palette that are explicitly signaled or inferred includes a num_palette_indices_idc syntax element; and one or more syntax elements indicating an index in an array of current palette entries includes one or more palette_index_idc syntax elements.

[0211] Example 7. A method of any combination of Examples 1-6, wherein the syntax elements required to construct the pixels in the index group include one or more syntax elements included in the palette syntax of Section 7.3.8.13 of ITU-T H.265 / High Efficiency Video Coding (HEVC) (02 / 2018).

[0212] Example 8. A method of any combination of Examples 1-7, wherein parsing syntax elements for a specific index group among the multiple index groups includes: parsing syntax elements indicating the number of palette indices and values ​​of all pixels in the specific index group; after parsing the syntax elements indicating the number of palette indices and values ​​of all pixels in the specific index group, parsing, for each pixel in the specific index group, a corresponding syntax element indicating whether the index value of the corresponding pixel is the same as a previous index; in response to determining that the index value of the corresponding pixel is different from the previous index, after parsing the syntax element indicating whether the index value of the pixel is the same as the previous index, parsing a syntax element indicating a run type.

[0213] Example 9. The method of Example 8, wherein: the corresponding syntax element indicating whether the index value of the corresponding pixel is the same as the previous index includes an index_copy_flag; and the syntax element indicating the run type includes a run_type_flag syntax element.

[0214] Example 10. The method of any combination of Examples 1-9, wherein parsing the syntax elements for the first index group comprises: for a first pixel in the first index group, parsing a syntax element indicating a run type; and parsing one or more syntax elements indicating a run length.

[0215] Example 11. The method of Example 10, wherein the run length is binarized using a unary codeword.

[0216] Example 12. The method of any of Examples 1-11, wherein encoding comprises decoding.

[0217] Example 13. The method of any of Examples 1-12, wherein decoding comprises encoding.

[0218] Example 14. An apparatus for decoding video data, the apparatus comprising one or more units for performing the method of any of Examples 1-13.

[0219] Example 15. The device of Example 14, wherein the one or more units include one or more processors implemented in circuits.

[0220] Example 16. The apparatus of any of Examples 14 and 15, further comprising a memory for storing video data.

[0221] Example 17. The device of any of Examples 14-16, further comprising a display configured to display the decoded video data.

[0222] Example 18. The device of any of Examples 14-17, wherein the device comprises one or more of a camera, a computer, a mobile device, a broadcast receiver device, or a set-top box.

[0223] Example 19. The apparatus of any of Examples 14-18, wherein the apparatus comprises a video decoder.

[0224] Example 20. The apparatus of any of Examples 14-19, wherein the apparatus comprises a video encoder.

[0225] Example 21. A computer-readable storage medium having instructions stored thereon, which when executed cause one or more processors to perform the method of any of Examples 1-13.

[0226] It should be appreciated that, according to examples, certain operations or events of any of the techniques described herein may be performed in a different order, may be added, combined, or omitted entirely (e.g., not all described operations or events are required to implement the techniques). In addition, in some examples, operations or events may be performed concurrently rather than sequentially, such as through multithreading, interrupt handling, or multiple processors.

[0227] In one or more exemplary designs, the described functions may be implemented in hardware, software, firmware, or any combination thereof. If implemented in software, the functions may be stored or sent as one or more instructions or codes on a computer-readable medium and executed by a hardware-based processing unit. Computer-readable media may include computer-readable storage media, which corresponds to tangible media such as data storage media, or communication media, including, for example, any media that facilitates the transfer of a computer program from one place to another according to a communication protocol. In this manner, computer-readable media may generally correspond to (1) non-temporary tangible computer-readable storage media, or (2) communication media such as signals or carrier waves. Data storage media may be any available media that can be accessed by one or more computers or one or more processors to extract instructions, codes, and / or data structures to implement the techniques described in the present disclosure. A computer program product may include a computer-readable medium.

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

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

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

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

Claims

1. A method for decoding video data, the method include: Dividing a current decoding unit CU of video data into a plurality of index groups, wherein the current CU of video data is decoded using a palette mode; Parsing one or more syntax elements for reconstructing a common palette for the current CU, wherein the common palette is used at least in part to reconstruct samples of each index group in the plurality of index groups; generating the common palette based on the one or more syntax elements for reconstructing the common palette for the current CU; After parsing the one or more syntax elements for reconstructing the common palette, parsing syntax elements for a first index group among the multiple index groups, wherein the syntax elements for the first index group include: one or more syntax elements indicating an index in the common palette, and one or more syntax elements representing a value of an escape sample in the first index group relative to the common palette; After parsing the syntax elements for the first index group, parsing syntax elements for a second index group among the plurality of index groups, wherein the syntax elements for the second index group include: one or more syntax elements indicating an index in the common palette; and Reconstructing the current CU of video data based on syntax elements for the first index group and syntax elements for the second index group, wherein the reconstruction comprises: reconstructing samples of the first index group using entries in the common palette for the current CU indicated by indices indicated by syntax elements specific to the first index group and using values ​​of escape samples indicated by syntax elements specific to the first index group; and Samples of the second index group are reconstructed using entries in the common palette for the current CU indicated by indices indicated by syntax elements specific to the second index group.

2. The method according to claim 1, in, Parsing the syntax elements for the second index group includes: For each respective sample included in the second index group, a syntax element is coded that specifies whether an index of the respective sample is the same as an index of a previously scanned sample.

3. The method according to claim 2, in, Coding the syntax element specifying whether the index of the corresponding sample is the same as the index of the previously scanned sample comprises: The syntax element specifying whether an index of the corresponding sample is the same as an index of the previously scanned sample is coded using a context determined based on a run type.

4. The method according to claim 1, in, The syntax elements for the first index group also include: One or more syntax elements that specify whether the index of the corresponding sample is the same as the index of a previously scanned sample.

5. The method according to claim 1, in, The syntax elements for the second index group also include: One or more syntax elements that specify whether the index of the corresponding sample is the same as the index of a previously scanned sample.

6. The method according to claim 1, further comprising: include: After parsing the syntax elements for the second index group, parsing the syntax elements for a third index group among the plurality of index groups; as well as After parsing the syntax elements for the third index group, parsing the syntax elements for a fourth index group among the plurality of index groups.

7. The method according to claim 1, in, Parsing the one or more syntax elements for reconstructing the common palette for the current CU, parsing the syntax elements for the first index group, and parsing the syntax elements for the second index group includes encoding respective syntax elements.

8. The method according to claim 1, in, Parsing the one or more syntax elements for reconstructing the common palette for the current CU, parsing the syntax elements for the first index group, and parsing the syntax elements for the second index group includes: decoding each syntax element.

9. A device for decoding video data, the device include: a memory configured to store at least a portion of the decoded video bitstream; as well as One or more processors implemented in circuitry and configured to: Dividing a current decoding unit CU of video data into a plurality of index groups, wherein the current CU of video data is decoded using a palette mode; Parsing, via the decoded video bitstream, one or more syntax elements for reconstructing a common palette for the current CU, wherein the common palette is at least partially used to reconstruct samples of each index group in the plurality of index groups; generating the common palette based on the one or more syntax elements for reconstructing the common palette for the current CU; After parsing the one or more syntax elements for reconstructing the common palette, parsing syntax elements for a first index group among the multiple index groups, wherein the syntax elements for the first index group include: one or more syntax elements indicating an index in the common palette, and one or more syntax elements representing a value of an escape sample in the first index group relative to the common palette; After parsing the syntax elements for the first index group, parsing, via the decoded video bitstream, syntax elements for a second index group among the plurality of index groups, wherein the syntax elements for the second index group include: one or more syntax elements indicating an index in the common palette; and Reconstructing the current CU of video data based on syntax elements for the first index group and syntax elements for the second index group, wherein, to reconstruct the current CU, the one or more processors are configured to: reconstructing samples of the first index group using entries in the common palette for the current CU indicated by indices indicated by syntax elements specific to the first index group and using values ​​of escape samples indicated by syntax elements specific to the first index group; and Samples of the second index group are reconstructed using entries in the common palette for the current CU indicated by indices indicated by syntax elements specific to the second index group.

10. The device according to claim 9, in, To parse the syntax element for the second index group, the one or more processors are configured to: For each corresponding sample included in the second index group, a syntax element is coded that specifies whether an index of the corresponding sample is the same as an index of a previously scanned sample.

11. The device according to claim 10, in, To decode the syntax element specifying whether the index of the corresponding sample is the same as the index of the previously scanned sample, the one or more processors are configured to: The syntax element specifying whether an index of the corresponding sample is the same as an index of the previously scanned sample is coded using a context determined based on a run type.

12. The device according to claim 9, in, The syntax elements for the first index group also include: One or more syntax elements that specify whether the index of the corresponding sample is the same as the index of a previously scanned sample.

13. The device according to claim 9, in, The syntax elements for the second index group also include: One or more syntax elements that specify whether the index of the corresponding sample is the same as the index of a previously scanned sample.

14. The device according to claim 9, in, The one or more processors are further configured to: After parsing the syntax elements for the second index group, parsing the syntax elements for a third index group among the plurality of index groups; and After parsing the syntax elements for the third index group, parsing the syntax elements for a fourth index group among the plurality of index groups.

15. The device according to claim 9, in, In order to parse the one or more syntax elements for reconstructing the common palette for the current CU, parse the syntax elements for the first index group, and parse the syntax elements for the second index group, the one or more processors are configured to encode the respective syntax elements.

16. The device according to claim 9, in, In order to parse the one or more syntax elements for reconstructing the common palette for the current CU, parse the syntax elements for the first index group, and parse the syntax elements for the second index group, the one or more processors are configured to decode the respective syntax elements.

17. A computer-readable storage medium storing instructions that, when executed, cause one or more processors of a video decoder to perform the following operations: Dividing a current decoding unit CU of video data into a plurality of index groups, wherein the current CU of video data is decoded using a palette mode; parsing, via the decoded video bitstream, one or more syntax elements for reconstructing a common palette for the current CU, in, The common palette is used at least in part to reconstruct samples of each index group in the plurality of index groups; generating the common palette based on the one or more syntax elements for reconstructing the common palette for the current CU; After parsing the one or more syntax elements for reconstructing the common palette, parsing syntax elements for a first index group among the multiple index groups, wherein the syntax elements for the first index group include: one or more syntax elements indicating an index in the common palette, and one or more syntax elements representing a value of an escape sample in the first index group relative to the common palette; After parsing the syntax elements for the first index group, parsing, via the decoded video bitstream, syntax elements for a second index group among the plurality of index groups, wherein the syntax elements for the second index group include one or more syntax elements indicating an index in the common palette; and Reconstructing the current CU of video data based on syntax elements for the first index group and syntax elements for the second index group, wherein the instructions for causing the one or more processors to reconstruct the current CU include instructions for causing the one or more processors to perform the following operations: reconstructing samples of the first index group using entries in the common palette for the current CU indicated by indices indicated by syntax elements specific to the first index group and using values ​​of escape samples indicated by syntax elements specific to the first index group; and Samples of the second index group are reconstructed using entries in the common palette for the current CU indicated by indices indicated by syntax elements specific to the second index group.

18. A video decoding device, include: for dividing a current decoding unit CU of video data into a plurality of index groups, wherein the current CU of video data is decoded using a palette mode; means for parsing, via a decoded video bitstream, one or more syntax elements for reconstructing a common palette for the current CU, wherein the common palette is used at least in part to reconstruct samples of each of the plurality of index groups; means for generating the common palette based on the one or more syntax elements for reconstructing the common palette of the current CU; means for parsing syntax elements for a first index group of the plurality of index groups after parsing the one or more syntax elements for reconstructing the common palette, wherein the syntax elements for the first index group include: one or more syntax elements indicating an index into the common palette, and one or more syntax elements representing values ​​of escape samples in the first index group relative to the common palette; means for parsing, via the decoded video bitstream, syntax elements for a second index group of the plurality of index groups after parsing the syntax elements for the first index group, wherein the syntax elements for the second index group include one or more syntax elements indicating an index into the common palette; and A unit for reconstructing the current CU of video data based on syntax elements for the first index group and syntax elements for the second index group, wherein the unit for reconstructing comprises: means for reconstructing samples of the first index group using entries in the common palette for the current CU indicated by indices indicated by syntax elements specific to the first index group and using values ​​of escape samples indicated by syntax elements specific to the first index group; and Means for reconstructing samples of the second index group using entries in the common palette for the current CU indicated by indices indicated by syntax elements specific to the second index group.

Citation Information

Patent Citations

  • Grouped coding for palette syntax in video coding

    US20200296423A1

  • Palette prediction in palette-based video coding

    CN105556974A

  • Method for sub-block based palette coding

    CN106797478A

  • Palette index grouping for high throughput cabac coding

    CN107211138A

  • Grouping palette bypass bins for video coding

    CN107710765A