Signaling a coding scheme for residual values ​​in transform skips for video coding - Patents.com

JP7637675B2Active Publication Date: 2025-02-28QUALCOMM INC
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
JP2022520791
Authority / Receiving Office
JP · JP
Patent Type
Patents
Current Assignee / Owner
Priority Date
2020-10-08
Filing Date
2020-10-09
Publication Date
2025-02-28
Estimated Expiration
2040-10-09

Smart Images

  • Figure 0007637675000001
    Figure 0007637675000001
  • Figure 0007637675000002
    Figure 0007637675000002
  • Figure 0007637675000003
    Figure 0007637675000003
Patent Text Reader

Abstract

1. An exemplary method for decoding video data, comprising receiving one or more syntax elements of the video data indicating whether a first type of coding scheme or a second type of coding scheme is applied to residual values ​​of a block of the video data coded with transform skip, where the residual values ​​indicate differences between the block and a predictive block, and where in the transform skip the residual values ​​are not transformed from the sample domain to the frequency domain. The method includes determining, based on the one or more syntax elements, a type of coding scheme to apply to the residual values, determining the residual values ​​based on the determined type of coding scheme, and reconstructing the block based on the determined residual values ​​and the predictive block.
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001]

[0001] This application claims priority to U.S. Application No. 17 / 066,308, filed October 8, 2020, which claims the benefit of U.S. Provisional Application No. 62 / 914,315, filed October 11, 2019, both of which are incorporated by reference in their entireties herein.

[0002] This disclosure relates to video encoding and decoding. [Background technology]

[0003] Digital video capabilities may be incorporated into a wide range 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 "smartphones," video teleconferencing devices, video streaming devices, and the like. Digital video devices implement video coding techniques, such as those described in 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 to such standards. By implementing such video coding techniques, video devices may more efficiently transmit, receive, encode, decode, and / or store digital video information.

[0004]

[0004] Video coding techniques include spatial (intra-picture) prediction and / or temporal (inter-picture) prediction to reduce or remove redundancy inherent in video sequences. In block-based video coding, a video slice (e.g., a video picture or a portion of a video picture) may be partitioned 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) slice of a picture are encoded using spatial prediction with respect to reference samples in neighboring blocks in the same picture. Video blocks in an inter-coded (P or B) slice of a picture may use spatial prediction with respect to reference samples in neighboring blocks in the same picture or temporal prediction with respect to reference samples in other reference pictures. A picture may be referred to as a frame, and a reference picture may be referred to as a reference frame. Summary of the Invention

[0005]

[0005] Generally, this disclosure describes techniques for lossless coding schemes and signaling for video coding. There may be at least two coding schemes used to code (e.g., encode or decode) residual values ​​of video data. A first coding scheme is transform coefficient coding (TRCC) and a second coding scheme is transform skip residual coding (TSRC). In some cases, TSRC may be available only for blocks of video data coded with transform skip (e.g., the residual values ​​of a block are not transformed from the sample domain to the frequency domain ()). However, there may be benefits to using TRCC even for transform skipped blocks. This disclosure describes example techniques for utilizing TRCC even for transform skipped blocks, thereby improving the overall coding process.

[0006]

[0006] In one example, this disclosure describes a method for decoding video data, the method including receiving from a video bitstream one or more syntax elements of the video data indicating whether a first type of coding scheme or a second type of coding scheme is applied to a residual value of a block of the video data coded with transform skip, where the residual value indicates a difference between the block and a prediction block, and where in the transform skip, the residual value is not transformed from a sample domain to a frequency domain, determining a type of coding scheme to apply to the residual value based on the one or more syntax elements, determining a residual value based on the determined type of coding scheme, and reconstructing the block based on the determined residual value and the prediction block.

[0007]

[0007] In another example, this disclosure describes a method for encoding video data, the method including determining a residual value based on a difference between a block of the video data to be coded with a transform skip and a predictive block, where in the transform skip, the residual value is not transformed from a sample domain to a frequency domain, determining a type of coding scheme between a first type of coding scheme and a second type of coding scheme to apply to the residual value, encoding the residual value based on the determined type of coding scheme, and signaling in the video bitstream one or more syntax elements of the video data indicating whether the first type of coding scheme or the second type of coding scheme is applied to the residual value.

[0008]

[0008] In another example, the disclosure describes a device for decoding video data, the device including a memory configured to store the video data and a processing circuitry coupled to the memory, the processing circuitry configured to: receive from a video bitstream one or more syntax elements of the video data indicating whether a first type of coding scheme or a second type of coding scheme is applied to a residual value of a block of the video data coded with transform skip, where the residual value indicates a difference between the block and a predictive block, and where in the transform skip, the residual value is not transformed from the sample domain to the frequency domain; determine a type of coding scheme to apply to the residual value based on the one or more syntax elements; determine the residual value based on the determined type of coding scheme; and reconstruct the block based on the determined residual value and the predictive block.

[0009]

[0009] In another example, the disclosure describes a computer-readable storage medium having stored thereon instructions that, when executed, cause one or more processors to receive from a video bitstream one or more syntax elements of video data indicating whether a first type of coding scheme or a second type of coding scheme is applied to a residual value of a block of video data coded with transform skip, where the residual value indicates a difference between the block and a predictive block, and where, in the transform skip, the residual value is not transformed from the sample domain to the frequency domain, determine a type of coding scheme to apply to the residual value based on the one or more syntax elements, determine the residual value based on the determined type of coding scheme, and reconstruct the block based on the determined residual value and the predictive block.

[0010]

[0010] In another example, this disclosure describes a device for decoding video data, the device including means for receiving from a video bitstream one or more syntax elements of the video data indicating whether a first type of coding scheme or a second type of coding scheme is applied to a residual value of a block coded with transform skip, means for determining a type of coding scheme to apply to the residual value based on the one or more syntax elements, where the residual value indicates a difference between the block and a predictive block, and where in the transform skip, the residual value is not transformed from the sample domain to the frequency domain, means for determining the residual value based on the determined type of coding scheme, and means for reconstructing the block based on the determined residual value and the predictive block.

[0011]

[0011] The details of one or more examples are set forth in the accompanying drawings and the description below. Other features, objects, and advantages will become apparent from the description, drawings, and claims. [Brief description of the drawings]

[0012] [Figure 1]

[0012] A block diagram illustrating an example video encoding and decoding system in which the techniques of this disclosure may be implemented. [Figure 2A]

[0013] 1 is a conceptual diagram illustrating an exemplary Quad Tree Binary Tree (QTBT) structure. [Figure 2B] A conceptual diagram showing a corresponding coding tree unit (CTU). [Diagram 3]

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

[0015] 1 is a block diagram illustrating an example video decoder that may implement the techniques of this disclosure. [Diagram 5]

[0016] 1 is a flowchart illustrating an example method for encoding a current block. [Figure 6]

[0017] 4 is a flowchart illustrating an example method for decoding a current block of video data. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0013]

[0018] In video coding techniques, a video encoder determines residual information (e.g., residual values) that indicate differences between samples of a current block and samples of a predictive block. In some cases, the video encoder transforms sample values ​​of the residual information (e.g., residual values) in the sample domain (also called the pixel domain) into coefficient values ​​in the frequency domain. In some examples, the coefficient values ​​are then quantized and entropy coded into a bitstream. A video decoder receives the quantized coefficient values ​​from the bitstream. The video decoder dequantizes the coefficient values ​​and inverse transforms the dequantized coefficient values ​​to generate residual values. The video decoder adds the residual values ​​to the predictive block to reconstruct the current block.

[0014]

[0019] In some cases, the transform and / or quantization may be lossy. For example, some of the residual values ​​may be lost in the transform and / or quantization steps. Thus, the residual values ​​that the video decoder generates may not be equivalent to the residual values ​​that the video encoder generates. Thus, in some cases, the current block reconstructed by the video decoder may not be equivalent to the original current block that the video encoder encoded.

[0015]

[0020] Although there may be some loss in the encoding process, the current block reconstructed by a video decoder tends to be similar enough to the original current block that there is little to no reduction in visual quality. However, in some cases it may be desirable to include lossless video coding tools so that there is little to no loss in residual values ​​(e.g., so that the residual values ​​at the video encoder are more similar to the residual values ​​at the video decoder compared to lossy video coding techniques).

[0016]

[0021] In some cases, in lossless video coding, a video encoder may skip a transform step for a particular block. The video encoder may signal information indicating that the transform is skipped for a particular block. The video decoder may determine that the transform is skipped based on the signaled information. In some examples, the video decoder may implicitly determine whether the transform for a block is skipped without the video encoder signaling information indicating that the transform is skipped.

[0017]

[0022] The residual values ​​may be coded regardless of whether the transform is skipped. There are two exemplary schemes in which the residual values ​​may be coded: transform coefficient coding (TRCC) and transform skip (TS) residual coding (TSRC). In TRCC, the video encoder may determine coefficient values ​​from the residual values ​​(e.g., via a transform) and entropy code the information used to determine the coefficient values. For example, the video encoder may determine information such as the last significant coefficient value position, a significance map (e.g., information indicating which coefficient values ​​are not 0), coefficient levels (e.g., information indicating which coefficient values ​​have absolute values ​​greater than 1, greater than 2, etc.), and sign data (e.g., whether the coefficient value is negative or positive).

[0018]

[0023] TSRC may differ from TRCC. In TSRC, there may be no signaling of the position of the last significant coefficient. In TSRC, information such as significance map, coefficient level, and sign data may be similar to TRCC. However, context modeling and binarization, as well as the limit of the number of context coding bins per sample, may be different in TSRC compared to TRCC. The above are a few non-limiting examples of differences and similarities between TSRC and TRCC. There may be other differences and other similarities. Also, what is identified as a difference between TSRC and TRCC may be the same in some cases, and what is identified as a similarity between TSRC and TRCC may be different in some cases.

[0019]

[0024] In some cases, TSRC may be used exclusively for residual coding of transform-skipped blocks. However, there may be benefits to using TRCC for transform-skipped blocks. This disclosure describes exemplary techniques for how TSRC or TRCC may be used when a lossless coding technique (e.g., transform skip) is implemented. In this manner, the exemplary techniques may enable TRCC or TSRC to be applied to residual values, which in turn may result in better video coding, thereby improving the operation of video encoders and video decoders.

[0020]

[0025] As an example, a video decoder may receive from a video bitstream one or more syntax elements of video data indicating whether a first type of coding scheme (e.g., TRCC) or a second type of coding scheme (e.g., TSRC) is applied to residual values ​​of a block coded with transform skip. As described, the residual values ​​indicate a difference between a block and a predictive block, and in transform skip, the residual values ​​are not transformed from the sample domain to the frequency domain (also referred to as the transform domain). In some examples, to receive the one or more syntax elements, the video decoder may receive a flag in a slice header indicating whether a first type of coding scheme or a second type of coding scheme is applied to residual values ​​of a block in a slice coded with transform skip.

[0021]

[0026] The video decoder may determine a type of coding scheme to apply to the residual value based on the one or more syntax elements (e.g., determine whether to use TRCC or TSRC) and determine the residual value based on the determined type of coding scheme. For example, the video decoder may parse values ​​such as a last significant value position, a significance map (e.g., information indicating which values ​​are not 0), coefficient levels (e.g., information indicating which values ​​have absolute values ​​greater than 1, greater than 2, etc.), sign data (e.g., whether a value is negative or positive), etc. based on whether TRCC or TSRC is utilized to determine the residual value. The video decoder may reconstruct a block based on the determined residual value and a predictive block (e.g., may add the residual value to the predictive block to reconstruct the block).

[0022]

[0027] The video encoder may determine a residual value based on a difference between the block to be coded and the predictive block with transform skip, in which the residual value is not transformed from the sample domain to the frequency domain (e.g., a transform domain).

[0023]

[0028] The video encoder may determine a type of coding scheme between a first type of coding scheme (e.g., TRCC) and a second type of coding scheme (e.g., TSRC) to apply to the residual value and encode the residual value based on the determined type of coding scheme. For example, the video encoder may signal values ​​such as the last significant value position, the significance map (e.g., information indicating which values ​​are not 0), the coefficient level (e.g., information indicating which values ​​have absolute values ​​greater than 1, greater than 2, etc.), sign data (e.g., whether the value is negative or positive), etc. based on whether TRCC or TSRC is utilized to determine the residual value.

[0024]

[0029] The video encoder may signal, in the video bitstream, one or more syntax elements of the video data that indicate whether a first type of coding scheme or a second type of coding scheme is applied to the residual values. In some examples, to signal the one or more syntax elements, the video encoder may signal a flag in a slice header that indicates whether a first type of coding scheme or a second type of coding scheme is applied to the residual values ​​of a transform skip coded block.

[0025]

[0030] 1 is a block diagram illustrating an example video encoding and decoding system 100 that may implement the techniques of this disclosure. The techniques of this disclosure are generally directed to coding (encoding and / or decoding) video data. Generally, video data includes any data for processing video. Thus, video data may include raw uncoded video, coded video, decoded (e.g., reconstructed) video, and video metadata, such as signaling data.

[0026]

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

[0027]

[0032] In the example of FIG. 1, source device 102 includes a video source 104, memory 106, video encoder 200, and output interface 108. Destination device 116 includes an input interface 122, a video decoder 300, memory 120, and a display device 118. According to this disclosure, the video encoder 200 of source device 102 and the video decoder 300 of destination device 116 may be configured to apply techniques for lossless coding and signaling. Thus, 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 and destination devices 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 interface with an external display device rather than including an integrated display device.

[0028]

[0033] The system 100 shown in FIG. 1 is only an example. In general, any digital video encoding and / or decoding device may implement the techniques for lossless coding and signaling. The source device 102 and the destination device 116 are only examples of coding devices, such that the source device 102 generates coded video data for transmission to the destination device 116. In this disclosure, a "coding" device is referred to as a device that performs coding (encoding and / or decoding) of data. Thus, the video encoder 200 and the video decoder 300 represent examples of coding devices, in particular, video encoders and video decoders, respectively. In some examples, the source device 102 and the destination device 116 may operate substantially symmetrically, such that each of the source device 102 and the destination device 116 includes video encoding and decoding components. Thus, the system 100 may support one-way or two-way video transmission between the source device 102 and the destination device 116, for example, video streaming, video playback, video broadcasting, or video telephony.

[0029]

[0034] Generally, video source 104 represents a source of video data (i.e., raw, unencoded video data) and provides a continuous series of pictures (also called “frames”) of the video data to video encoder 200, which encodes the data for the pictures. Video source 104 of source device 102 may include a video capture device, such as a video camera, a video archive containing previously captured raw video, and / or a video feed interface for receiving video from a video content provider. As a further alternative, video source 104 may generate computer graphics-based data or a combination of live, archival, and computer-generated video as the source video. In each case, video encoder 200 encodes the captured, pre-captured, or computer-generated video data. Video encoder 200 may reorder the pictures from a received order (sometimes called a “display order”) into a coding order for coding. Video encoder 200 may generate a bitstream including the encoded video data. The source device 102 may then output the encoded video data via the output interface 108 onto a computer-readable medium 110, for receipt and / or retrieval by, for example, an input interface 122 of the destination device 116.

[0030]

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

[0031]

[0036] The computer-readable medium 110 may represent any type of medium or device capable of transporting 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 transmit encoded video data directly to the destination device 116 in real time, for example, via a radio frequency network or a computer-based network. The output interface 108 may modulate a transmission signal including the encoded video data, and the input interface 122 may demodulate a received transmission signal according to a communication standard such as a wireless communication protocol. The communication medium may comprise 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 part 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 routers, switches, base stations, or any other equipment that may be useful to facilitate communication from the source device 102 to the destination device 116.

[0032]

[0037] In some examples, source device 102 may output the encoded video data to a file server 114 or another intermediate storage device, which 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 download.

[0033]

[0038] The file server 114 may be any type of server device capable of storing encoded video data and transmitting the encoded video data to the destination device 116. The file server 114 may represent a web server (e.g., for a website), a server configured to provide file transfer protocol services (such as File Transfer Protocol (FTP) or File Delivery over Unidirectional Transport (FLUTE) protocol), a content delivery network (CDN) device, a HyperText Transfer Protocol (HTTP) server, a Multimedia Broadcast Multicast Service (MBMS) or enhanced MBMS (eMBMS) server, and / or a network attached storage (NAS) device. The file server 114 may additionally or alternatively implement one or more HTTP streaming protocols, such as Dynamic Adaptive Streaming over HTTP (DASH), HTTP Live Streaming (HLS), Real Time Streaming Protocol (RTSP), HTTP Dynamic Streaming, etc.

[0034]

[0039] 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. Input interface 122 may be configured to operate according to one or more of the various protocols discussed above for retrieving or receiving media data from file server 114, or other such protocols for retrieving media data.

[0035]

[0040] The output interface 108 and the input interface 122 may represent a wireless transmitter / receiver, a modem, a wired networking component (e.g., an Ethernet card), a wireless communication component operating according to any of the various IEEE 802.11 standards, or other physical components. In examples in which the output interface 108 and the input interface 122 comprise wireless components, the output interface 108 and the input interface 122 may be configured to transfer data, such as encoded video data, according to a cellular communication standard, such as 4G, 4G-LTE (Long Term Evolution), LTE Advanced, 5G, etc. In some examples in which the output interface 108 comprises a wireless transmitter, the output interface 108 and the input interface 122 may be configured to transfer data, such as encoded video data, according to other wireless standards, such as the IEEE 802.11 specification, the IEEE 802.15 specification (e.g., ZigBee), the Bluetooth standard, etc. In some examples, 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 for performing functions attributable to the video encoder 200 and / or the output interface 108, and the destination device 116 may include a SoC device for performing functions attributable to the video decoder 300 and / or the input interface 122.

[0036]

[0041] The techniques of this disclosure may be applied to video coding supporting any of a variety of multimedia applications, such as over-the-air television broadcast, cable television transmission, satellite television transmission, Internet streaming video transmission such as Dynamic Adaptive Streaming over HTTP (DASH), digital video encoded on a data storage medium, decoding of digital video stored on a data storage medium, or other applications.

[0037]

[0042] The input interface 122 of the destination device 116 receives the 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 may include signaling information defined by the video encoder 200 that is also used by the video decoder 300, such as syntax elements having values ​​that describe characteristics and / or processing of video blocks or other coded units (e.g., slices, pictures, groups of pictures, sequences, etc.) in the video bitstream. 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.

[0038]

[0043] 1, 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 a suitable MUX-DEMUX unit, or other hardware and / or software, to process a multiplexed stream that includes both audio and video in a common data stream. Where applicable, the MUX-DEMUX unit may conform to the ITU H.223 multiplexer protocol or other protocols, such as the User Datagram Protocol (UDP).

[0039]

[0044] The video encoder 200 and the video decoder 300 may each be implemented as any of a variety of suitable encoder and / or decoder circuits, or any combination thereof, 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, etc. When the techniques are implemented partially in software, the device may store the software's instructions on a suitable non-transitory computer-readable medium and execute the instructions in hardware using one or more processors to implement the techniques of this disclosure. Each of the video encoder 200 and the video decoder 300 may be included in one or more encoders or decoders, any of which may be incorporated as part of a composite encoder / decoder (CODEC) in the respective device. The device including the video encoder 200 and / or the video decoder 300 may comprise an integrated circuit, a microprocessor, and / or a wireless communication device such as a cellular phone.

[0040]

[0045] Video encoder 200 and video decoder 300 may operate according to a video coding standard, such as ITU-T H.265, also known as High Efficiency Video Coding (HEVC), or an extension thereof, such as multiview and / or scalable video coding extensions. Alternatively, video encoder 200 and video decoder 300 may operate according to other proprietary or industry standards, such as ITU-T H.266, also known as Versatile Video Coding (VVC). A draft of the VVC standard is set forth in Bross et al., "Versatile Video Coding (Draft 6)," Joint Video Experts Team (JVET) of ITU-T SG 16 WP 3 and ISO / IEC JTC 1 / SC 29 / WG 11, 15th Meeting: Gothenburg, SE, July 3-12, 2019, JVET-O2001-vE (hereinafter, "VVC Draft 6"). A more recent draft of the VVC standard is described in Bross et al., "Versatile Video Coding (Draft 10)," Joint Video Experts Team (JVET) of ITU-T SG 16 WP 3 and ISO / IEC JTC 1 / SC 29 / WG 11, 18th Meeting: Teleconference, June 22-July 1, 2020, JVET-S2001-vA (hereinafter, "VVC Draft 10"). However, the techniques of this disclosure are not limited to any particular coding standard.

[0041]

[0046] Generally, the video encoder 200 and the video decoder 300 may perform block-based coding of pictures. 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. Generally, the video encoder 200 and the video decoder 300 may code video data represented in a YUV (e.g., Y, Cb, Cr) format. That is, rather than coding red, green, and blue (RGB) data for a sample of a picture, the video encoder 200 and the video decoder 300 may code a luminance component and a chrominance component, where the chrominance component may include both red and blue hues of chrominance components. In some examples, the video encoder 200 converts received RGB formatted data to a YUV representation prior to encoding, and the video decoder 300 converts the YUV representation to an RGB format. Alternatively, pre-processing and post-processing units (not shown) may perform these conversions.

[0042]

[0047] This disclosure may generally refer to coding (e.g., encoding and decoding) a picture to include a process of encoding or decoding data of a picture. Similarly, this disclosure may refer to coding a block of a picture to include a process of encoding or decoding data of the block, e.g., predictive and / or residual coding. A coded video bitstream generally includes a series of values ​​of syntax elements that represent coding decisions (e.g., coding modes) and partitioning of a picture into blocks. Thus, references to coding a picture or a block should be understood generally as coding the values ​​of the syntax elements forming the picture or block.

[0043]

[0048] HEVC defines various blocks, including coding units (CUs), prediction units (PUs), and transform units (TUs). According to HEVC, a video coder (such as video encoder 200) partitions coding tree units (CTUs) into CUs according to a quadtree structure. That is, the video coder partitions CTUs and CUs into four equal non-overlapping squares, and each node of the quadtree has either zero or four child nodes. A node without children may be called a "leaf node", and a CU of such a leaf node may include one or more PUs and / or one or more TUs. A video coder may further partition PUs and TUs. For example, in HEVC, a residual quadtree (RQT) represents the partition of TUs. In HEVC, a PU represents inter-predicted data, while a TU represents residual data. An intra-predicted CU includes intra-prediction information, such as an intra-mode indication.

[0044]

[0049] As another example, the video encoder 200 and the video decoder 300 may be configured to operate according to VVC. According to VVC, a video coder (such as the video encoder 200) partitions a picture into multiple coding tree units (CTUs). The video encoder 200 may partition the CTUs according to a tree structure, such as a quad-tree 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 CUs, PUs, and TUs in HEVC. The QTBT structure includes two levels: a first level partitioned according to a quad-tree partition, and a second level partitioned according to a binary tree partition. The root node of the QTBT structure corresponds to a CTU. The leaf nodes of the binary tree correspond to coding units (CUs).

[0045]

[0050] In the MTT partitioning structure, blocks may be partitioned using quad tree (QT) partitioning, binary tree (BT) partitioning, and one or more types of triple tree (TT) (also called ternary tree (TT)) partitioning. A triple or ternary tree partitioning is a partitioning in which a block is divided into three sub-blocks. In some examples, a triple or ternary tree partitioning divides a block into three sub-blocks without splitting the original block through the center. The partition types in MTT (e.g., QT, BT, and TT) may be symmetric or asymmetric.

[0046]

[0051] 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 luminance and chrominance components, and 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 luminance component and another QTBT / MTT structure for both chrominance components (or two QTBT / MTT structures for each chrominance component).

[0047]

[0052] Video encoder 200 and video decoder 300 may be configured to use quadtree partitioning, QTBT partitioning, MTT partitioning, or other partition structures in accordance with HEVC. For purposes of illustration, the description of the techniques of this disclosure is presented with respect to QTBT partitioning. However, it should be understood that the techniques of this disclosure may also be applied to video coders configured to use quadtree partitioning, or other types of partitioning as well.

[0048]

[0053] Blocks (e.g., CTUs or CUs) may be grouped in various ways in a picture. As an example, a brick may refer to a rectangular region of a CTU row in a particular tile in a picture. A tile may be a rectangular region of a CTU within a particular tile column and a particular tile row in a picture. A tile column refers to a rectangular region of a CTU having a height equal to the height of the picture and a width specified by a syntax element (e.g., in a picture parameter set). A tile row refers to a rectangular region of a CTU having a height specified by a syntax element (e.g., in a picture parameter set) and a width equal to the width of the picture.

[0049]

[0054] In some examples, a tile may be partitioned into multiple bricks, each of which may include one or more CTU rows within the tile. A tile that is not partitioned into multiple bricks may also be referred to as a brick. However, a brick that is a true subset of a tile may not be referred to as a tile.

[0050]

[0055] The bricks in a picture may also be arranged into slices. A slice may be an integer number of bricks of a picture that may be contained entirely in a single Network Abstraction Layer (NAL) unit. In some examples, a slice includes either several complete tiles or only a continuous sequence of complete bricks of one tile.

[0051]

[0056] In this disclosure, "NxN" and "N by N" may be used interchangeably to refer to the sample dimensions of a block (such as a CU or other video block) in terms of vertical and horizontal dimensions, e.g., 16x16 samples or 16 by 16 samples. Generally, a 16x16 CU has 16 samples in the vertical direction (y=16) and 16 samples in the horizontal direction (x=16). Similarly, an NxN CU generally has N samples in the vertical direction and N samples in the horizontal direction, where N represents a non-negative integer value. Samples in a CU may be arranged in rows and columns. Furthermore, a CU does not necessarily have to have the same number of samples in the horizontal direction as in the vertical direction. For example, a CU may comprise NxM samples, where M is not necessarily equal to N.

[0052]

[0057] The video encoder 200 encodes video data for a CU that represents prediction and / or residual information (e.g., residual values) as well as other information. The prediction information indicates how the CU should be predicted to form a predictive block for the CU. The residual information (i.e., residual values) generally represents sample-by-sample differences between samples of the CU prior to encoding and the predictive block.

[0053]

[0058] To predict a CU, the video encoder 200 may generally form a predictive block for the CU through inter-prediction or intra-prediction. Inter-prediction generally refers to predicting a CU from data of a previously coded picture, while intra-prediction generally refers to predicting a CU from previously coded data of the same picture. To perform inter-prediction, the video encoder 200 may generate a predictive block using one or more motion vectors. The video encoder 200 may generally perform a motion search to identify a reference block that closely matches the CU, for example, with respect to the difference between the CU and the reference block. The video encoder 200 may calculate a difference metric using a sum of absolute differences (SAD), sum of squared differences (SSD), mean absolute difference (MAD), mean squared difference (MSD), or other such difference calculation to determine whether the reference block closely matches the current CU. In some examples, the video encoder 200 may predict the current CU using unidirectional or bidirectional prediction.

[0054]

[0059] In some examples, VVC also provides an affine motion compensation mode, which may be considered an inter-prediction mode. In an affine motion compensation mode, video encoder 200 may determine two or more motion vectors that represent non-translational motion, such as zooming in or out, rotation, perspective motion, or other irregular motion types.

[0055]

[0060] To perform intra prediction, the video encoder 200 may select an intra prediction mode to generate a predictive block. In some examples, VVC provides 67 intra prediction modes, including various directional modes, as well as planar and DC modes. In general, the video encoder 200 selects an intra prediction mode that describes neighboring samples relative to a current block (e.g., a block of a CU) from which samples of the current block should be predicted. Such samples may generally be above, above and to the left, or to the left of the current block in the same picture as the current block, assuming that the video encoder 200 codes the CTUs and CUs in raster scan order (left to right, top to bottom).

[0056]

[0061] Video encoder 200 encodes data representing a prediction mode for the current block. For example, in an inter prediction mode, video encoder 200 may encode data representing which of various available inter prediction modes is used, as well as motion information of the corresponding mode. For example, in unidirectional or bidirectional inter prediction, video encoder 200 may encode motion vectors using advanced motion vector prediction (AMVP) or merge mode. Video encoder 200 may use similar modes to encode motion vectors for affine motion compensation mode.

[0057]

[0062] Following prediction, such as intra- 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 sample-by-sample differences between the block and a predictive block for the block formed using a corresponding prediction mode. The video encoder 200 may apply one or more transforms to the residual block to generate transform data in a transform domain rather than the 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. Additionally, the video encoder 200 may apply a secondary transform following the first transform, such as a mode-dependent non-separable quadratic transform (MDNSST), a signal-dependent transform, a Karhunen-Loeve transform (KLT), etc. The video encoder 200 generates transform coefficients following application of the one or more transforms.

[0058]

[0063] In some examples, the transform of the residual data (e.g., residual values) may be skipped. For example, the transform may be skipped when lossless video coding techniques are applied. In such examples, the block being coded may be referred to as a transform-skipped block, a transform skip block, or a transform skip coded block.

[0059]

[0064] As mentioned above, following any transformation to generate transform coefficients, the video encoder 200 may perform quantization of the transform coefficients. Quantization generally refers to a process in which transform coefficients are quantized to possibly reduce the amount of data used to represent the transform coefficients, achieving further compression. By performing a quantization process, the video encoder 200 may reduce the bit depth associated with some or all of the transform coefficients. For example, the video encoder 200 may truncate 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. In some examples, the quantization step may be bypassed.

[0060]

[0065] Following quantization, the video encoder 200 may scan the transform coefficients (or residual sample values, if the transform is skipped) to generate a one-dimensional vector from a two-dimensional matrix including the quantized transform coefficients or residual sample values ​​for which the transform is skipped and the quantization is skipped, or the residual quantized sample values ​​for which the transform is skipped but quantization is performed. The scan of the transform coefficients may be designed to place higher energy (and therefore lower frequency) transform coefficients at the front of the vector and lower energy (and therefore higher frequency) transform coefficients at the rear of the vector. In some examples, the video encoder 200 may utilize a predefined scan order to scan the quantized transform coefficients 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 an adaptive scan.

[0061]

[0066] After scanning the quantized transform coefficients to form the one-dimensional vector, video encoder 200 may entropy encode the one-dimensional vector, e.g., according to context-adaptive binary arithmetic coding (CABAC). In examples in which transform and / or quantization is skipped, video encoder 200 may entropy encode the one-dimensional vector of residual sample values ​​or residual quantized sample values. Video encoder 200 may also entropy encode values ​​of syntax elements that describe metadata associated with the encoded video data for use by video decoder 300 in decoding the video data.

[0062]

[0067] To implement CABAC, the video encoder 200 may assign a context in a context model to a symbol to be transmitted. The context may relate, for example, to whether neighboring values ​​of the symbol are zero-valued or not. The probability determination may be based on the context assigned to the symbol.

[0063]

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

[0064]

[0069] In this manner, video encoder 200 may generate coded video data, e.g., a bitstream including syntax elements that describe partitions of a picture into blocks (e.g., CUs) and prediction and / or residual values ​​of the blocks. Finally, video decoder 300 may receive the bitstream and decode the coded video data.

[0065]

[0070] In general, the video decoder 300 performs an inverse process of that performed by the video encoder 200 to decode the encoded video data of the bitstream. For example, the video decoder 300 may decode values ​​of syntax elements of the bitstream using CABAC in a manner that is inverse to, but substantially similar to, the CABAC encoding process of the video encoder 200. The syntax elements may define partitioning information of a picture into CTUs and partitioning of each CTU according to a corresponding partitioning structure, such as a QTBT structure, to define the CUs of the CTU. The syntax elements may further define prediction and residual values ​​for blocks (e.g., CUs) of video data.

[0066]

[0071] The residual values ​​may be represented, for example, by quantized transform coefficients. The video decoder 300 may dequantize and inverse transform the quantized transform coefficients of the block to reconstruct a residual block of the block. However, if transform and / or quantization is not applied by the video encoder 200, the video decoder 300 may bypass the inverse quantization and / or inverse transform steps. For example, the decoded values ​​may be residual values ​​that do not need to be inverse quantized and / or inverse transformed. The video decoder 300 uses the signaled prediction mode (intra or inter prediction) and related prediction information (e.g., motion information for inter prediction) to form a predictive block of the block. The video decoder 300 may then combine (sample by sample) the predictive block and the residual block to reconstruct the original block. The video decoder 300 may perform additional processing, such as performing a deblocking process to reduce visual artifacts along block boundaries.

[0067]

[0072] According to the techniques of this disclosure, the video encoder 200 and the video decoder 300 may be configured to utilize different coding schemes for transform-skipped blocks (i.e., for blocks coded with transform skip). For example, it may be desirable to support lossless coding in VVC without adding lossless-specific tools. There may be at least two residual coding schemes. The first residual coding scheme is called transform coefficient coding (TRCC) and the second residual coding scheme is called transform skip (TS) residual coding (TSRC).

[0068]

[0073] The TRCC and TSRC schemes may represent residual values ​​in different ways. In both TRCC and TSRC, video encoder 200 may determine whether the residual value in the residual block is significant (e.g., the absolute value is greater than 0) and determine whether the residual value is greater than a threshold value. For example, video encoder 200 may determine whether the residual value in the residual block is greater than 1, greater than 3, greater than 5, etc. Video encoder 200 may signal multiple flags that video decoder 300 utilizes to determine the residual value. For example, if video encoder 200 signals a first flag indicating that the residual value is significant and a second flag indicating that the residual value is greater than 1, but does not signal a third flag indicating that the residual value is less than 2, video decoder 300 may determine that the residual value is greater than 1 and less than 2.

[0069]

[0074] However, there may be differences between the TRCC and TSRC schemes. In TRCC, the video encoder 200 may signal information indicating the location of the last significant coefficient value, which the video decoder 300 may use to determine that all values ​​following the location of the last significant value are 0. However, in the TSRC scheme, if a transform is skipped, there may be no last significant value because there can be a significant value at any location in the residual block, including the last location in the residual block.

[0070]

[0075] As another example, in the TRCC scheme, a number of flags indicating whether the residual value among the residual values ​​is greater than a threshold value is different from a number of flags indicating whether the residual value among the residual values ​​is greater than a threshold value in the TSRC scheme. For example, the TRCC scheme may include a flag indicating whether the residual value is greater than 3, but may not include a flag indicating whether the residual value is greater than 5. However, in the TSRC scheme, there may be a flag indicating whether the residual value is greater than 5, a flag indicating whether the residual value is greater than 7, and a flag indicating whether the residual value is greater than 9.

[0071]

[0076] As yet another example, in the TRCC scheme, the scanning order of the residual blocks may be from last to first, i.e., from the last residual value to the first residual value, whereas in the TSRC scheme, the scanning order of the residual blocks may be from the first residual value to the last residual value.

[0072]

[0077] Thus, the TRCC scheme and the TSRC scheme are different types of coding schemes applied to residual values. As will be described in more detail, in some examples, the video encoder 200 utilized the TSRC scheme for all transform skip coded blocks, and the TRCC scheme was not available for the transform skip coded blocks. However, there may be benefits in allowing the TRCC scheme to be used for the transform skip coded blocks.

[0073]

[0078] In such a case, the video encoder 200 may signal information received by the video decoder 300 indicating whether a first type of coding scheme (e.g., the TRCC scheme) or a second type of coding scheme (e.g., the TSRC scheme) is applied. Such signaling may be present only if transform skip is enabled. For example, the video decoder 300 may first determine whether transform skip is enabled and parse a flag in the slice header indicating whether the first type of coding scheme or the second type of coding scheme is applied based on the transform skip being enabled. That is, if transform skip is enabled, the video decoder 300 may parse a flag in the slice header indicating whether the first type of coding scheme or the second type of coding scheme is applied. However, if transform skip is not enabled, the video decoder 300 may not parse a flag in the slice header indicating whether the first type of coding scheme or the second type of coding scheme is applied.

[0074]

[0079] Lossless coding may require skipping of a transform operation (e.g., video encoder 200 bypasses transforming the residual values ​​to the frequency domain with the coefficient values, and video decoder 300 bypasses the inverse transform operation because the residual values ​​are already in the sample domain). In some examples, video encoder 200 may signal a TS coding flag indicating that a transform is skipped for a block (e.g., for a transform-skipped block). The TS coding flag may be signaled as part of a multiple transform selection (MTS) index. In some examples, rather than explicitly signaling a TS coding flag, video decoder 300 may implicitly determine that a block is a transform-skipped block (e.g., a transform-skip coded block) if a block-based quantized residual domain delta pulse code modulation (BDPCM) mode is selected. In some examples, video encoder 200 and video decoder 300 may utilize TSRC as a residual coding scheme for transform-skipped blocks.

[0075]

[0080] In some examples, it may be desirable to use TRCC as well as BDPCM for transform skip blocks. If existing low-level signaling is to be used, a flag in the SPS, PPS, picture header, or slice header may be used to indicate the residual coding technique to be used when the transform is skipped. That is, the video encoder 200 may signal, and the video decoder 300 may receive, a flag in the slice header indicating whether a first type of coding scheme (e.g., TRCC) or a second type of coding scheme (e.g., TSRC) is applied to the residual values ​​of the transform skip coded block. In this manner, the TS coding path modification of VVC Draft 6 (e.g., when transform is bypassed) may be unnecessary, and TSRC or TRCC may be used. However, the techniques described in this disclosure may also be utilized when modifications to the TS coding path are made.

[0076]

[0081] This disclosure describes techniques for adding one or more syntax elements (e.g., flags) in an SPS, PPS, picture header, or slice header to select a coefficient (residual) coding technique (e.g., TRCC or TSRC) to be used when a transform is skipped. The one or more syntax elements (e.g., flags) may indicate whether TSRC or TRCC is used for a TS block (e.g., a block coded with transform skip). In some examples, the signaled method may take effect only if the quantization parameter (QP) of the transform-skipped block is less than or equal to 4 (i.e., lossless).

[0077]

[0082] For example, VVC Draft 10 includes sh_ts_residual_coding_disabled_flag, which is an example of a flag signaled in a slice header and described in this disclosure to indicate whether TSRC or TRCC is used for a transform skip coded block. For example, when sh_ts_residual_coding_disabled_flag is true (e.g., logic 1), it means that TSRC is disabled and TRCC is used. When sh_ts_residual_coding_disabled_flag is false (e.g., logic 0), it means that TSRC is not disabled, TSRC is used, and TRCC is not used.

[0078]

[0083] VVC draft 10 defines sh_ts_residual_coding_disabled_flag as follows: sh_ts_residual_coding_disabled_flag equal to 1 specifies that the residual_coding() syntax structure is used to parse residual samples of transform skip blocks of the current slice. sh_ts_residual_coding_disabled_flag equal to 0 specifies that the residual_ts_coding() syntax structure is used to parse residual samples of transform skip blocks of the current slice. When sh_ts_residual_coding_disabled_flag is not present, it is inferred to be equal to 0. In VVC draft 10, the residual_coding() syntax structure refers to the TRCC scheme and the residual_ts_coding() syntax structure refers to the TSRC scheme.

[0079]

[0084] As described in section 7.3.7 (slice header syntax) of VVC draft 10, the sh_ts_residual_coding_disabled_flag syntax element is signaled only if transform skipping is enabled. For example, in VVC draft 10, video encoder 200 may signal sps_transform_skip_enabled_flag, which indicates whether transform skipping is enabled for the block. Video decoder 300 may receive sps_transform_skip_enabled_flag and parse sh_ts_residual_coding_disabled_flag only if sps_transform_skip_enabled_flag is true (e.g., only if transform skipping is enabled).

[0080]

[0085] Thus, in one or more examples, the video decoder 300 may receive one or more syntax elements of video data (e.g., sh_ts_residual_coding_disabled_flag) from a video bitstream that indicates whether a first type of coding scheme (e.g., TRCC) or a second type of coding scheme (e.g., TSRC) is applied to residual values ​​of a block coded with transform skip. The residual values ​​indicate a difference between a block and a predictive block, and in transform skip, the residual values ​​are not transformed from the sample domain to the frequency domain (e.g., a DCT or DST operation is skipped). In some examples, the video decoder 300 may receive sh_ts_residual_coding_disabled_flag in a slice header.

[0081]

[0086] In one or more examples, the video decoder 300 may receive a first flag (e.g., sps_transform_skip_enabled_flag) indicating whether transform skipping is enabled. To receive the one or more syntax elements, the video decoder 300 may parse a second flag (e.g., sh_ts_residual_coding_disabled_flag) in a slice header indicating whether a first type of coding scheme or a second type of coding scheme is applied based on the first flag indicating that transform skipping is enabled. For example, if the first flag (e.g., sps_transform_skip_enabled_flag) is true, the video decoder 300 may only parse the second flag (e.g., sh_ts_residual_coding_disabled_flag). If the first flag is false, the video decoder 300 may not parse the second flag.

[0082]

[0087] The video decoder 300 may determine a type of coding scheme to apply to the residual values ​​based on one or more syntax elements. For example, the video decoder 300 may determine to use TRCC if sh_ts_residual_coding_disabled_flag is true, and may determine to use TSRC if sh_ts_residual_coding_disabled_flag is false.

[0083]

[0088] The video decoder 300 may determine the residual value based on the determined type of coding scheme. Because the block was coded with transform skip, the video decoder 300 may determine the residual value without applying an inverse transform to the residual value. For example, the residual value is already in the sample domain, and therefore an inverse transform from the frequency domain to the sample domain may not be necessary.

[0084]

[0089] The video decoder 300 may reconstruct the block based on the determined residual value and the predictive block. For example, the video decoder 300 may add the predictive block to the determined residual value to reconstruct the block.

[0085]

[0090] In one or more examples, the video encoder 200 may determine a residual value based on a difference between a block to be coded and a predictive block with a transform skip. As described, in a transform skip, the residual value is not transformed from the sample domain to the frequency domain.

[0086]

[0091] Video encoder 200 may determine a type of coding scheme between a first type of coding scheme (e.g., TRCC) and a second type of coding scheme (e.g., TSRC) to apply to the residual values. Video encoder 200 may encode the residual values ​​based on the determined type of coding scheme and signal in the video bitstream one or more syntax elements of the video data (e.g., sh_ts_residual_coding_disabled_flag in a slice header) that indicate whether the first type of coding scheme (e.g., TRCC) or the second type of coding scheme (e.g., TSRC) is applied to the residual values.

[0087]

[0092] In some examples, TSRC may be replaced with a TRCC scheme that skips coding of the last non-zero position (i.e., the position of the last significant coefficient) (assuming that the last non-zero coefficient position in the block will be the last position of the block). In addition, the video encoder 200 and the video decoder 300 may rotate (e.g., 180 degrees) the coefficients to be coded as in (HEVC Rext). In such examples, it may be unnecessary to signal the coding scheme to be used for the transform skip case. For example, existing signaling may be used to achieve lossless coding, since the transform skip path would use the TRCC scheme without signaling the last position and potentially rotating the block to be coded.

[0088]

[0093] In this disclosure, reference may be made generally to "signaling" certain information, such as a syntax element. The term "signaling" may generally refer to communication of values ​​of syntax elements and / or other data used to decode encoded video data. That is, video encoder 200 may signal values ​​of syntax elements in a bitstream. In general, signaling refers to generating values ​​in the bitstream. As described above, source device 102 may transport the bitstream to destination device 116 in substantially real-time or may transport the bitstream to destination device 116 in a non-real-time manner, such as may occur when storing syntax elements to storage device 112 for later retrieval by destination device 116.

[0089]

[0094] 2A and 2B are conceptual diagrams illustrating an exemplary quad-tree binary tree (QTBT) structure 130 and a corresponding coding tree unit (CTU) 132. The solid lines represent quad-tree partitions, and the dotted lines represent binary tree partitions. At each partition (i.e., non-leaf) node of the binary tree, one flag is signaled to indicate which partition type (i.e., horizontal or vertical) is used, where in this example, 0 indicates horizontal partition and 1 indicates vertical partition. In a quad-tree partition, there is no need to indicate the partition type because the quad-tree node divides a block horizontally and vertically into four sub-blocks with equal size. Thus, the video encoder 200 may encode, and the video decoder 300 may decode, syntax elements (such as partition information) for the region tree level (i.e., solid lines) of the QTBT structure 130 and syntax elements (such as partition information) for the prediction tree level (i.e., dashed lines) of the QTBT structure 130. The video encoder 200 may encode, and the video decoder 300 may decode, video data, such as prediction and transformation data, for CUs represented by terminal leaf nodes of the QTBT structure 130.

[0090]

[0095] 2B may be associated with parameters that define the sizes of blocks corresponding to nodes of the QTBT structure 130 at the first and second levels. These parameters may include a CTU size (representing the size of the CTU 132 in a sample), a minimum quad tree size (MinQTSize representing the minimum allowable quad tree leaf node size), a maximum binary tree size (MaxBTSize representing the maximum allowable binary tree root node size), a maximum binary tree depth (MaxBTDepth representing the maximum allowable binary tree depth), and a minimum binary tree size (MinBTSize representing the minimum allowable binary tree leaf node size).

[0091]

[0096] 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 partitioned according to a quadtree partition. That is, the nodes at the first level are either leaf nodes (without child nodes) or have four child nodes. The example QTBT structure 130 represents such a node as including a parent node and a child node with solid lines for the branches. If the nodes at the first level are not larger than the maximum allowed binary tree root node size (MaxBTSize), the nodes may be further partitioned by their respective binary trees. The binary tree partitioning of one node may be repeated until the nodes resulting from the partitioning reach the minimum allowed binary tree leaf node size (MinBTSize) or the maximum allowed binary tree depth (MaxBTDepth). The example QTBT structure 130 represents such a node as having dashed lines for the branches. The binary tree leaf nodes are called coding units (CUs), and CUs are used for prediction (e.g., intra-picture or inter-picture prediction) as well as transformation without any further partitioning. As discussed above, a CU is sometimes referred to as a "video block" or a "block."

[0092]

[0097] In one example of a QTBT partitioning structure, the CTU size is set as 128x128 (luma samples and two corresponding 64x64 chroma samples), MinQTSize is set as 16x16, MaxBTSize is set as 64x64, MinBTSize is set as 4 (for both width and height), and MaxBTDepth is set as 4. Quad tree partitioning is first applied to the CTU to generate quad tree leaf nodes. The quad tree leaf nodes may have a size from 16x16 (i.e., MinQTSize) to 128x128 (i.e., CTU size). If the leaf quad tree node is 128x128, it is not further partitioned by the binary tree since the size exceeds MaxBTSize (i.e., in this example, 64x64). Otherwise, the leaf quad tree node is further partitioned by the binary tree. Therefore, the quad tree leaf node is also the root node of the binary tree and has the binary tree depth as 0. When the binary tree depth reaches MaxBTDepth (4 in this example), no further splits are allowed. When a binary tree node has a width equal to MinBTSize (4 in this example), it implies that no further horizontal splits are allowed. Similarly, a binary tree node having a height equal to MinBTSize implies that no further vertical splits are allowed for that binary tree node. As mentioned above, the leaf nodes of the binary tree are called CUs and are further processed according to prediction and transformation without further partitioning.

[0093]

[0098] 3 is a block diagram illustrating an example video encoder 200 that may implement the techniques of this disclosure. FIG. 3 is provided for illustrative purposes and should not be considered as limiting the techniques broadly illustrated and described in this disclosure. For illustrative purposes, this disclosure describes video encoder 200 in the context of video coding standards such as the H.265 video coding standard (also referred to as HEVC) and the H.266 video coding standard (also referred to as VVC). However, the techniques of this disclosure are not limited to these video coding standards and are generally applicable to video encoding and decoding.

[0094]

[0099] 3, 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 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 processing circuits. For example, the units of video encoder 200 may be implemented as one or more circuits or logic elements, as part of a hardware circuit, or as part of a processor in an FPGA, an ASIC, etc. Moreover, video encoder 200 may include additional or alternative processors or processing circuits for performing these and other functions.

[0095]

[0100] 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 stored in the video data memory 230, for example, from the video source 104 (FIG. 1). The DPB 218 may act as a reference picture memory that stores reference video data for use in predicting subsequent video data by the video encoder 200. The video data memory 230 and the DPB 218 may be formed by any of a variety of memory devices, such as dynamic random access memory (DRAM), including synchronous DRAM (SDRAM), magnetoresistive RAM (MRAM), resistive RAM (RRAM), or other types of memory devices. The video data memory 230 and the DPB 218 may be provided by the same memory device or separate memory devices. In various examples, the video data memory 230 may be on-chip with the other components of the video encoder 200, as shown, or off-chip relative to those components.

[0096]

[0101] In this disclosure, references to video data memory 230 should not be construed as limited to memory internal to video encoder 200 unless specifically so described, or to memory external to video encoder 200 unless specifically so described. Instead, references to video data memory 230 should be understood as a reference memory that stores video data that video encoder 200 receives for encoding (e.g., video data of a current block to be encoded). Memory 106 of FIG. 1 may also provide temporary storage of outputs from various units of video encoder 200.

[0097]

[0102] The various units in FIG. 3 are shown to aid in understanding the operations performed by the video encoder 200. The units may be implemented as fixed-function circuits, programmable circuits, or a combination thereof. A fixed-function circuit refers to a circuit that provides a specific function and is preset to the operations that may be performed. A programmable circuit refers to a circuit that may be programmed to perform various tasks and to provide flexible functionality in the operations that may be performed. For example, a programmable circuit may execute software or firmware that causes the programmable circuit to operate in a manner defined by the software or firmware instructions. A fixed-function circuit may execute software instructions (e.g., to receive parameters or output parameters), but the type of operations that the fixed-function circuit performs is generally unchanged. In some examples, one or more of the units may be separate circuit blocks (fixed function or programmable), and in some examples, one or more of the units may be an integrated circuit.

[0098]

[0103] The video encoder 200 may include an arithmetic logic unit (ALU), a basic functional unit (EFU), a programmable core formed of digital circuits, analog circuits, and / or programmable circuits. In examples in which the operations of the video encoder 200 are implemented using software executed by a programmable circuit, the memory 106 (FIG. 1) may store instructions (e.g., object code) of the software that the video encoder 200 receives and executes, or another memory (not shown) within the video encoder 200 may store such instructions.

[0099]

[0104] The video data memory 230 is configured to store the received video data. The video encoder 200 may retrieve pictures of the 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 raw video data to be encoded.

[0100]

[0105] 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 additional functional units for performing video prediction according to other prediction modes. By way of 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.

[0101]

[0106] The mode selection unit 202 generally coordinates multiple encoding passes to test combinations of encoding parameters and resulting rate-distortion values ​​for such combinations. The encoding parameters may include partitioning of the CTU into CUs, prediction modes of the CUs, transformation types of residual data of the CUs, quantization parameters for the residual data of the CUs, etc. The mode selection unit 202 may ultimately select a combination of encoding parameters that has a rate-distortion value that is better than other tested combinations.

[0102]

[0107] Video encoder 200 may partition a picture retrieved from video data memory 230 into a series of CTUs and encapsulate one or more CTUs within a slice. Mode selection unit 202 may partition the CTUs of a picture according to a tree structure, such as the QTBT structure or quadtree structure of HEVC described above. As described above, video encoder 200 may form one or more CUs from partitioning the CTUs according to the tree structure. Such a CU may also be generally referred to as a “video block” or a “block.”

[0103]

[0108] In general, the mode selection unit 202 also controls its components (e.g., motion estimation unit 222, motion compensation unit 224, and intra prediction unit 226) to generate a prediction block for a current block (e.g., a current CU, or in HEVC, an overlapping portion of a PU and a TU). For inter prediction of a 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 previous coded pictures stored in the DPB 218). In particular, the motion estimation unit 222 may calculate a value representing how similar a potential reference block is to the current block according to, for example, a sum of absolute differences (SAD), a sum of squared differences (SSD), a mean absolute difference (MAD), a mean squared difference (MSD), etc. The motion estimation unit 222 may generally perform these calculations using a sample-by-sample difference between the current block and the reference block under consideration. 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.

[0104]

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

[0105]

[0110] As another example, for intra prediction, or intra predictive coding, the intra prediction unit 226 may generate a predictive block from samples neighboring a current block. For example, in a directional mode, the intra prediction unit 226 may generally mathematically combine values ​​of neighboring samples and populate these calculated values ​​in a prescribed direction across the current block to generate a predictive block. As another example, in a DC mode, the intra prediction unit 226 may calculate an average of neighboring samples for the current block and generate a predictive block to include this resulting average for each sample of the predictive block.

[0106]

[0111] The mode selection unit 202 provides the prediction block to the residual generation unit 204. The residual generation unit 204 receives a raw uncoded 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 sample-by-sample differences between the current block and the prediction block. The resulting sample-by-sample differences define a residual block of the current block. In some examples, the residual generation unit 204 may also determine differences between 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.

[0107]

[0112] In an example where the mode selection unit 202 partitions a 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 having various sizes. As mentioned above, the size of a CU may refer to the size of the luma coding block of the CU, and the size of a PU may refer to the size of the luma prediction unit of the PU. Assuming that a particular CU has a size of 2N×2N, the video encoder 200 may support a PU size of 2N×2N or N×N for intra prediction, and a symmetric PU size of 2N×2N, 2N×N, N×2N, N×N, or the like for inter 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 prediction.

[0108]

[0113] In examples where the mode select unit 202 does not further partition the CUs 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 CU sizes of 2N×2N, 2N×N, or N×2N.

[0109]

[0114] In other video coding techniques, such as intra block copy mode coding, affine mode coding, and linear model (LM) mode coding, as some examples, the mode selection unit 202 generates a predictive block of the current block being coded via a respective unit associated with the coding technique. In some examples, such as palette mode coding, the mode selection unit 202 may not generate a predictive block, but instead generate syntax elements that indicate how the block should be reconstructed based on a selected palette. In such modes, the mode selection unit 202 may provide these syntax elements to the entropy coding unit 220 to be coded.

[0110]

[0115] As described above, the residual generation unit 204 receives video data for a current block and a corresponding predictive 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 sample-by-sample differences between the predictive block and the current block.

[0111]

[0116] 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 the 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, e.g., a linear transform and a secondary transform, e.g., a rotation transform, to the residual block. In some examples, transform processing unit 206 does not apply a transform to the residual block.

[0112]

[0117] The quantization unit 208 may quantize the transform coefficients in the transform coefficient block to generate 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 transform coefficient block associated with the current block by adjusting the QP value associated with the CU. Quantization may introduce loss of information, and thus the quantized transform coefficients may have less precision than the original transform coefficients generated by transform processing unit 206.

[0113]

[0118] 3 by dashed lines, in some examples, one or both of transform processing unit 206 and quantization unit 208 may be bypassed. For example, mode selection unit 202 may determine that a block should be coded in transform skip mode. For a transform skipped block, the operation of transform processing unit 206 may be bypassed and the operation of quantization unit 208 may be bypassed.

[0114]

[0119] Inverse quantization unit 210 and inverse transform processing unit 212 may apply inverse quantization and inverse transform, respectively, to the quantized transform coefficient blocks to reconstruct residual blocks from the transform coefficient blocks. In examples in which one or more transforms and quantizations are skipped, the operations of inverse quantization unit 210 and inverse transform processing unit 212 may be skipped as well, as indicated by the dashed lines.

[0115]

[0120] Reconstruction unit 214 may generate a reconstructed block that corresponds to the current block (albeit potentially with some distortion) based on the reconstructed residual block and the predictive block generated by mode selection unit 202. For example, reconstruction unit 214 may add samples of the reconstructed residual block to corresponding samples from the predictive block generated by mode selection unit 202 to generate the reconstructed block.

[0116]

[0121] 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 blockiness artifacts along the edges of a CU. In some examples, the operations of filter unit 216 may be skipped.

[0117]

[0122] The video encoder 200 stores the reconstructed blocks in the DPB 218. For example, in examples where the operation of the filter unit 216 is not required, the reconstruction unit 214 may store the reconstructed blocks in the DPB 218. In examples where the operation of the filter unit 216 is required, the filter unit 216 may store the filtered reconstructed blocks in the DPB 218. The motion estimation unit 222 and the motion compensation unit 224 may retrieve reference pictures formed from the reconstructed (and potentially filtered) blocks from the DPB 218 to inter predict blocks of a later-encoded picture. In addition, the intra prediction unit 226 may use the reconstructed blocks in the DPB 218 of the current picture to intra predict other blocks in the current picture.

[0118]

[0123] In general, the entropy encoding unit 220 may entropy encode syntax elements received from other functional components of the video encoder 200. For example, the entropy encoding unit 220 may entropy encode quantized transform coefficient blocks from the quantization unit 208. As another example, the entropy encoding unit 220 may entropy encode predictive syntax elements (e.g., motion information for inter prediction, or intra mode information for intra prediction) from the mode selection unit 202. The entropy encoding unit 220 may perform one or more entropy encoding operations on syntax elements, which are another example of video data, to generate entropy encoded data. For example, the entropy encoding 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 partitioned entropy (PIPE) coding operation, an exponential-Golomb coding operation, or another type of entropy coding operation on the data. In some examples, the entropy encoding unit 220 may operate in a bypass mode in which syntax elements are not entropy coded.

[0119]

[0124] In some examples, if a transform is performed, the entropy encoding unit 220 may be configured to use a first coding scheme called transform coefficient coding (TRCC). If the transform is skipped, the entropy encoding unit 220 may be configured to use a second coding scheme called transform skip residual coding (TSRC). However, in the examples described in this disclosure, there may be times when TRCC is utilized even for transform skipped blocks (e.g., when the transform is skipped).

[0120]

[0125] There may be various differences between TRCC and TSRC. As an example, in the TRCC scheme, information indicating the location of the last significant value is signaled. In the TSRC scheme, information indicating the location of the last significant value is not signaled. In the TRCC scheme, the number of flags indicating whether the residual value among the residual values ​​is greater than a threshold (e.g., flags greater than 1, greater than 3, etc.) is different from the number of flags indicating whether the residual value among the residual values ​​is greater than a threshold in the TSRC scheme. As another example, the scanning order of the residual blocks in TRCC and TSRC may be different (e.g., TRCC is a scanning order from the last residual value to the first residual value, and TSRC is a scanning order from the first residual value to the last residual value).

[0121]

[0126] The residual generation unit 204 may determine residual information (e.g., residual values) based on a difference between a block to be coded with transform skip and a predictive block. The mode selection unit 202 may determine a type of coding scheme to apply to the residual information (e.g., the type of coding scheme is one of TRCC or TSRC). The entropy encoding unit 220 may encode the residual information based on the determined type of coding scheme. The entropy encoding unit 220 may also signal, in the video bitstream, one or more syntax elements (e.g., sh_ts_residual_coding_disabled_flag) indicating the type of coding scheme. In some examples, the entropy encoding unit 220 may signal one or more syntax elements based on a quantization parameter (QP) of the quantization unit 208 that is less than or equal to a threshold (e.g., 4).

[0122]

[0127] As another example, the residual generation unit 204 may determine the residual information based on a difference between a block to be coded with transform skip and a predictive block. The entropy coding unit 220 may code the residual information based on a TRCC scheme that skips coding of the last non-zero position. The entropy coding unit 220 may signal the coded residual information. In some examples, the entropy coding unit 220 may perform its operations on a rotated version of the residual information. Also, in some examples, the entropy coding unit 220 may avoid (e.g., do not signal) signaling information that a TRCC scheme is utilized.

[0123]

[0128] Although the above example techniques are described with respect to the entropy encoding unit 220, these example techniques should not be considered as so limiting. In some examples, the mode selection unit 202, or the entropy encoding unit 220 in combination with the mode selection unit 202, may be configured to implement the example techniques. Moreover, in some examples, various combinations of units of the video encoder 200 may be configured to implement the example techniques. In general, the video encoder 200 may be configured to implement the example techniques described in this disclosure.

[0124]

[0129] Video encoder 200 may output a bitstream that includes entropy-encoded syntax elements needed to reconstruct blocks of a slice or picture. In particular, entropy encoding unit 220 may output the bitstream.

[0125]

[0130] The operations described above are described with respect to blocks. Such descriptions should be understood as operations for luma coding blocks and / or chroma coding blocks. As described above, in some examples, the luma coding block and the chroma coding block are the luma component and the chroma component of a CU. In some examples, the luma coding block and the chroma coding block are the luma component and the chroma component of a PU.

[0126]

[0131] In some examples, operations performed with respect to luma coding blocks do not need to be repeated for chroma coding blocks. As an example, operations for identifying motion vectors (MVs) and reference pictures for luma coding blocks do not need to be repeated to identify MVs and reference pictures for chroma blocks. Instead, MVs for luma coding blocks may be scaled to determine 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.

[0127]

[0132] 4 is a block diagram illustrating an example video decoder 300 that may implement the techniques of this disclosure. FIG. 4 is provided for illustrative purposes and is not a limitation on the techniques broadly illustrated and described in this disclosure. For illustrative purposes, this disclosure describes the video decoder 300 according to VVC and HEVC techniques. However, the techniques of this disclosure may be implemented by video coding devices configured for other video coding standards.

[0128]

[0133] In the example of FIG. 4, 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 processing circuits. For example, the units of the video decoder 300 may be implemented as one or more circuits or logic elements, as part of a hardware circuit, or as part of a processor of an FPGA, an ASIC. Moreover, the video decoder 300 may include additional or alternative processors or processing circuits for performing these and other functions.

[0129]

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

[0130]

[0135] 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 obtained, for example, from the computer-readable medium 110 (FIG. 1). The CPB memory 320 may include a CPB that stores encoded video data (e.g., syntax elements) from the encoded video bitstream. The CPB memory 320 may also store video data other than syntax elements of a coded picture, such as temporary data representing output from various units of the video decoder 300. The DPB 314 generally stores decoded pictures that 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 memory devices, such as DRAM, including SDRAM, MRAM, RRAM, or other types of memory devices. The CPB memory 320 and the DPB 314 may be provided by the same memory device or separate memory devices. 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.

[0131]

[0136] Additionally or alternatively, in some examples, video decoder 300 may retrieve coded video data from memory 120 (FIG. 1). That is, memory 120 may store the data discussed above using CPB memory 320. Similarly, memory 120 may store instructions to be executed by video decoder 300 when some or all of the functionality of video decoder 300 is implemented in software to be executed by processing circuitry of video decoder 300.

[0132]

[0137] The various units shown in FIG. 4 are shown to aid in understanding the operations performed by the video decoder 300. The units may be implemented as fixed-function circuits, programmable circuits, or a combination thereof. As with FIG. 3, a fixed-function circuit refers to a circuit that provides a specific function and is preset to the operations that may be performed. A programmable circuit refers to a circuit that may be programmed to perform various tasks and to provide flexible functionality in the operations that may be performed. For example, a programmable circuit may execute software or firmware that causes the programmable circuit to operate in a manner defined by the software or firmware instructions. A fixed-function circuit may execute software instructions (e.g., to receive parameters or output parameters), but the type of operations that the fixed-function circuit performs is generally unchanged. In some examples, one or more of the units may be separate circuit blocks (fixed function or programmable), and in some examples, one or more of the units may be an integrated circuit.

[0133]

[0138] The video decoder 300 may include a programmable core formed from an ALU, an EFU, digital circuits, analog circuits, and / or programmable circuits. In examples in which the operations of the video decoder 300 are performed by software executing on programmable circuits, on-chip or off-chip memory may store instructions (e.g., object code) of the software that the video decoder 300 receives and executes.

[0134]

[0139] The entropy decoding unit 302 may receive the encoded video data from the CPB and entropy decode the video data to recover 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.

[0135]

[0140] In general, 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 (wherein the block currently being reconstructed, i.e., the block currently being decoded, may be referred to as the “current block”).

[0136]

[0141] The entropy decoding unit 302 may entropy decode syntax elements defining quantized transform coefficients of a quantized transform coefficient block, as well as 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 the degree of quantization and, similarly, the degree of inverse quantization that the inverse quantization unit 306 should apply. The inverse quantization unit 306 may perform, for example, 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.

[0137]

[0142] 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 transform, or another inverse transform to the transform coefficient block.

[0138]

[0143] 4 by the dashed lines, in some examples, one or both of the inverse quantization unit 306 and the inverse transform processing unit 308 may be bypassed. For example, the prediction processing unit 304 may receive information that a block is coded in transform skip mode. The prediction processing unit 304 may then bypass the operation of the inverse transform processing unit 308, and in some examples, the operation of the inverse quantization unit 306.

[0139]

[0144] In one or more examples, the prediction processing unit 304 may receive one or more syntax elements (e.g., sh_ts_residual_coding_disabled_flag in a slice header) that indicate a type of coding scheme to be applied to the residual information of the transform skip coded block (e.g., the type of coding scheme may be one of a TRCC scheme or a TSRC scheme). As described above, there may be various differences between TRCC and TSRC. As an example, in the TRCC scheme, information indicating the location of the last significant value is parsed. In the TSRC scheme, information indicating the location of the last significant value is not parsed. In the TRCC scheme, the number of flags (e.g., flags greater than 1, greater than 3, etc.) indicating whether the residual value of the residual value is greater than a threshold value is different from the number of flags indicating whether the residual value of the residual value is greater than a threshold value in the TSRC scheme. As another example, the scanning order of the residual blocks in TRCC and TSRC may be different (e.g., TRCC is a scanning order from the last residual value to the first residual value, and TSRC is a scanning order from the first residual value to the last residual value).

[0140]

[0145] The residual value indicates the difference between the block and the predictive block. The prediction processing unit 304 may determine the residual value based on the type of coding scheme. In some examples, the prediction processing unit 304 may receive one or more syntax elements based on a quantization parameter (QP) that is less than or equal to a threshold value (e.g., 4).

[0141]

[0146] As another example, the prediction processing unit 304 may determine residual information for a transform skip coded block, where determining the residual information includes determining the residual information utilizing a transform coefficient coding (TRCC) scheme that skips coding of the last non-zero position. In some examples, the prediction processing unit 304 may rotate the determined residual information prior to reconstructing the block. The prediction processing unit 304 may determine the residual information utilizing a TRCC scheme without receiving information that a TRCC scheme should be utilized.

[0142]

[0147] Although the above example techniques are described with respect to the prediction processing unit 304, these example techniques should not be considered as so limiting. In some examples, the entropy decoding unit 302, or the entropy decoding unit 302 in combination with the prediction processing unit 304, may be configured to perform the example techniques. Moreover, in some examples, various combinations of units of the video decoder 300 may be configured to perform the example techniques. In general, the video decoder 300 may be configured to perform the example techniques described in this disclosure.

[0143]

[0148] Further, prediction processing unit 304 generates a predictive block according to the prediction information syntax element entropy decoded by entropy decoding unit 302. For example, if the prediction information syntax element indicates that the current block is inter predicted, motion compensation unit 316 may generate a predictive block. In this case, the prediction information syntax element may indicate a reference picture in DPB 314 from which to retrieve the reference block, as well as a motion vector that identifies the location of the reference block in the reference picture relative to the location of the current block in the current picture. Motion compensation unit 316 may generally perform the inter prediction process in a manner substantially similar to that described with respect to motion compensation unit 224 (FIG. 3).

[0144]

[0149] As another example, if the prediction information syntax element indicates that the current block is intra predicted, the intra prediction unit 318 may generate a predictive block according to the intra prediction mode indicated by the prediction information syntax element. Again, the intra prediction unit 318 may generally perform an intra prediction process in a manner substantially similar to that described with respect to the intra prediction unit 226 (FIG. 3). The intra prediction unit 318 may retrieve data of neighboring samples for the current block from the DPB 314.

[0145]

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

[0146]

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

[0147]

[0152] 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 discussed above, the DPB 314 may provide reference information to the prediction processing unit 304, such as samples of a current picture for intra prediction and previously decoded pictures for subsequent motion compensation. Moreover, the video decoder 300 may output the decoded picture (e.g., decoded video) from the DPB 314 on a display device, such as the display device 118 of FIG. 1, for subsequent presentation. For example, the display device 118 may display the picture including the reconstructed block.

[0148]

[0153] 5 is a flowchart illustrating an example method for encoding a current block. The current block may comprise a current CU. Although described with respect to the processing circuitry of video encoder 200 (FIGS. 1 and 3), it should be understood that other devices may be configured to implement a method similar to that of FIG.

[0149]

[0154] The processing circuitry of the video encoder 200 may determine a residual value based on a difference between the block to be coded and the predictive block with a transform skip (350). In a transform skip, the residual value is not transformed from the sample domain to the frequency domain. For example, the operation of the transform processing unit 206 may be bypassed.

[0150]

[0155] The processing circuitry of the video encoder 200 may determine a type of coding scheme between a first type of coding scheme and a second type of coding scheme to apply to the residual values ​​(352). As an example, the first type of coding scheme is a transform coefficient coding (TRCC) scheme and the second type of coding scheme is a transform skip residual coding (TSRC) scheme. The video encoder 200 may determine the type of coding scheme based on a rate-distortion analysis indicating which coding scheme provides good video quality balanced with video compression.

[0151]

[0156] In the TRCC scheme, information indicating the location of the last significant value is signaled, but in the TSRC scheme, information indicating the location of the last significant value is not signaled. In the TRCC scheme, the number of flags (e.g., flags greater than 1, greater than 3, etc.) indicating whether the residual value among the residual values ​​is greater than a threshold value is different from the number of flags indicating whether the residual value among the residual values ​​is greater than a threshold value in the TSRC scheme. The scanning order of the residual blocks in TRCC and TSRC may be different (e.g., TRCC is a scanning order from the last residual value to the first residual value, and TSRC is a scanning order from the first residual value to the last residual value). The above are some exemplary ways in which TRCC and TSRC are different coding schemes, and the exemplary ways should not be considered exhaustive or required in all cases.

[0152]

[0157] A processing circuit of video encoder 200 may encode the residual value based on the determined type of coding scheme (354). For example, if TSRC is the determined type of coding scheme, the processing circuit may not signal the location of the last significant value and may signal a flag greater than the threshold according to TSRC, scanning from first to last. If TRCC is the determined type of coding scheme, the processing circuit may signal the location of the last significant value and may signal a flag greater than the threshold according to TRCC, scanning from last to first.

[0153]

[0158] A processing circuit of video encoder 200 may signal one or more syntax elements in the video bitstream that indicate whether a first type of coding scheme or a second type of coding scheme is applied to the residual values ​​(356). For example, the processing circuit may signal sh_ts_residual_coding_disabled_flag in the slice header to indicate whether a TRCC scheme or a TSRC scheme is applied to the residual values.

[0154]

[0159] 6 is a flow chart illustrating an example method for decoding a current block of data having residual blocks partitioned according to a partition tree type. The current block may comprise a current CU. Although described with respect to the processing circuitry of the video decoder 300 (FIGS. 1 and 4), it should be understood that other devices may be configured to perform a method similar to that of FIG.

[0155]

[0160] The processing circuitry of the video decoder 300 may receive from the video bitstream one or more syntax elements of the video data indicating whether a first type of coding scheme or a second type of coding scheme is applied to residual values ​​of a block coded with a transform skip (370). The residual values ​​indicate differences between the block and a predictive block, and in a transform skip, the residual values ​​are not transformed from the sample domain to the frequency domain. That is, the residual values ​​are already in the sample domain.

[0156]

[0161] As an example, to receive the one or more syntax elements, the processing circuitry of the video decoder 300 may receive a flag in a slice header (e.g., sh_ts_residual_coding_disabled_flag) indicating whether a first type of coding scheme or a second type of coding scheme is applied to residual values ​​of a block coded with transform skip. In some examples, the processing circuitry of the video decoder 300 may receive a first flag (e.g., sps_transform_skip_enabled_flag) indicating whether transform skip is enabled. To receive the one or more syntax elements, the processing circuitry of the video decoder 300 may parse a second flag in a slice header (e.g., sh_ts_residual_coding_disabled_flag) indicating whether a first type of coding scheme or a second type of coding scheme is applied based on the first flag indicating that transform skip is enabled.

[0157]

[0162] In some examples, the first type of coding scheme is a transform coefficient coding (TRCC) scheme, and the second type of coding scheme is a transform skip residual coding (TSRC) scheme. In the TRCC scheme, information indicating the location of the last significant value is parsed, but in the TSRC scheme, information indicating the location of the last significant value is not parsed. In the TRCC scheme, the number of flags indicating whether the residual value of the residual value is greater than a threshold (e.g., flags greater than 1, greater than 3, etc.) is different from the number of flags indicating whether the residual value of the residual value is greater than a threshold in the TSRC scheme. The scanning order of the residual block in TRCC and TSRC may be different (e.g., TRCC is a scanning order from the last residual value to the first residual value, and TSRC is a scanning order from the first residual value to the last residual value).

[0158]

[0163] The processing circuitry of the video decoder 300 may determine a type of coding scheme to apply to the residual values ​​based on the one or more syntax elements (372). For example, if sh_ts_residual_coding_disabled_flag is true, the processing circuitry of the video decoder 300 may determine that TRCC is enabled. If sh_ts_residual_coding_disabled_flag is false, the processing circuitry of the video decoder 300 may determine that TSRC is enabled.

[0159]

[0164] The processing circuitry of the video decoder 300 may determine the residual value based on the determined type of the coding scheme (374). For example, if TSRC is the determined type of the coding scheme, the processing circuitry may not parse the location of the last significant value and may parse the flag greater than the threshold according to TSRC, scanning from first to last. If TRCC is the determined type of the coding scheme, the processing circuitry may parse the location of the last significant value and may parse the flag greater than the threshold according to TRCC, scanning from last to first. Also, because the block was coded with transform skip, to determine the residual value, the processing circuitry of the video decoder 300 may determine the residual value without applying an inverse transform to the residual value.

[0160]

[0165] The processing circuitry of the video decoder 300 may reconstruct the block based on the determined residual value and the predictive block (376). The processing circuitry of the video decoder 300 may add the residual value to the predictive block to reconstruct the block.

[0161]

[0166] Below are one or more exemplary techniques that may be implemented separately or in combination.

[0162]

[0167] Example 1. A method of decoding video data, comprising receiving one or more syntax elements indicating a type of coding scheme to be applied to residual information of a transform skip coded block, where the residual information indicates a difference between the block and a predictive block, determining the residual information based on the type of coding scheme, and reconstructing the block based on the determined residual information and the predictive block.

[0163]

[0168] Example 2. A method of encoding video data, comprising: determining residual information based on a difference between a block to be coded with transform skip and a predictive block, determining a type of coding scheme to apply to the residual information, encoding the residual information based on the determined type of coding scheme, and signaling one or more syntax elements indicating the type of coding scheme.

[0164]

[0169] Example 3. The method of any of Examples 1 and 2, wherein the type of coding scheme comprises one of a transform coefficient coding (TRCC) scheme or a transform skip residual coding (TSRC).

[0165]

[0170] Example 4. The method of any of Examples 1-3, wherein determining the residual information comprises determining the residual information without applying a transform or an inverse transform to the residual information.

[0166]

[0171] Example 5. The method of any of Examples 1, 3, and 4, wherein receiving the one or more syntax elements comprises receiving the one or more syntax elements based on a quantization parameter (QP) that is less than or equal to a threshold.

[0167]

[0172] Example 6. The method of any of Examples 2-4, wherein signaling one or more syntax elements indicative of a type of coding scheme comprises signaling one or more syntax elements based on a quantization parameter (QP) being less than or equal to a threshold.

[0168]

[0173] Example 7. The method of any of Examples 5 and 6, wherein the threshold is 4.

[0169]

[0174] Example 8. A method of decoding video data, comprising: determining residual information for a transform skip coded block, where determining the residual information comprises determining the residual information utilizing a transform coefficient coding (TRCC) scheme that skips coding of a last non-zero position, and reconstructing the block based on the residual information and the predictive block, where the residual information indicates a difference between the block and the predictive block.

[0170]

[0175] Example 9. A method of encoding video data, comprising: determining residual information for a transform skip coded block, where the residual information indicates a difference between the block and a predictive block; encoding the residual information based on a transform coefficient coding (TRCC) scheme that skips coding of a last non-zero position; and signaling the encoded residual information.

[0171]

[0176] Example 10. The method of example 9, further comprising rotating the determined residual information prior to reconstructing the block.

[0172]

[0177] Example 11. The method of Example 9, further comprising rotating the residual information prior to encoding the residual information.

[0173]

[0178] Example 12. The method of any of Examples 8 and 9, wherein the rotating comprises rotating by 180 degrees.

[0174]

[0179] Example 13. The method of any of Examples 8, 10, and 12, wherein determining the residual information utilizing a TRCC scheme comprises determining the residual information utilizing a TRCC scheme without receiving information that a TRCC scheme should be utilized.

[0175]

[0180] Example 14. The method of any of Examples 9, 11, and 12, further comprising avoiding signaling information that the TRCC scheme is utilized.

[0176]

[0181] Example 15. The method comprising any one or combination of Examples 1, 3-5, 7, 8, 10, 12, and 13.

[0177]

[0182] Example 16. The method comprising any one or combination of Examples 2-4, 6, 7, 9, 11, 12, and 14.

[0178]

[0183] Example 17. A device for decoding video data, comprising: a memory configured to store the video data; and a processing circuit configured to perform the method of example 15.

[0179]

[0184] Example 18. A device for encoding video data, comprising: a memory configured to store the video data; and a processing circuit configured to perform the method of example 16.

[0180]

[0185] Example 19. The device of any of Examples 17 and 18, further comprising a display configured to display the decoded video data.

[0181]

[0186] Example 20. The device of any of Examples 17-19, wherein the device comprises one or more of a camera, a computer, a mobile device, a broadcast receiver device, a set-top box, or a wireless communication device.

[0182]

[0187] Example 21. The device of any of Examples 17, 19, and 20, wherein the processing circuitry comprises a video decoder.

[0183]

[0188] Example 22. The device of any of Examples 18-20, wherein the processing circuitry comprises a video encoder.

[0184]

[0189] Example 23. A computer-readable storage medium having stored thereon instructions that, when executed, cause one or more processors to perform the method of any of Examples 15 or 16.

[0185]

[0190] Example 24. A device for coding video data, comprising means for performing the method of any of Examples 15 or 16.

[0186]

[0191] In accordance with the above examples, it should be appreciated that some acts or events of any of the techniques described herein may be performed in a different sequence, added, merged, or omitted entirely (e.g., not all described acts or events may be necessary to the practice of the techniques). Moreover, in some examples, acts or events may be performed simultaneously rather than sequentially, for example, through multi-threaded processing, interrupt processing, or multiple processors.

[0187]

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

[0188]

[0193] By way of example and not limitation, such computer-readable storage media may comprise RAM, ROM, EEPROM, CD-ROM or other optical disk storage, magnetic disk storage or other magnetic storage devices, flash memory, or any other medium that may be used to store desired program code in the form of instructions or data structures and that may be accessed by a computer. Also, any connection is properly referred to as a computer-readable medium. For example, if instructions are transmitted from a website, server, or other remote source using coaxial cable, fiber optic cable, twisted pair, digital subscriber line (DSL), or wireless technologies such as infrared, radio, and microwave, the coaxial cable, fiber optic cable, twisted pair, DSL, or wireless technologies such as infrared, radio, and microwave are 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, carrier waves, signals, or other transitory media, but instead cover non-transitory tangible storage media. As used herein, disk and disc include compact disc (CD), laser disc, optical disc, digital versatile disc (DVD), floppy disk and Blu-ray disc, where disks typically reproduce data magnetically and discs reproduce data optically with lasers. Combinations of the above should also be included within the scope of computer readable media.

[0189]

[0194] The 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 circuits or discrete logic circuits. Thus, the terms "processor" and "processing circuitry" as used herein may refer to any of the aforementioned structures, or any other structures suitable for implementing the techniques described herein. In addition, in some aspects, the functions described herein may be provided in dedicated hardware and / or software modules configured for encoding and decoding, or incorporated into a composite codec. Also, the techniques may be fully implemented in one or more circuits or logic elements.

[0190]

[0195] The techniques of the present disclosure may be implemented in a wide variety of devices or apparatuses, including wireless handsets, integrated circuits (ICs) or sets of ICs (e.g., chipsets). Although various components, modules, or units have been described in this disclosure to highlight functional aspects of devices configured to implement the disclosed techniques, the components, modules, or units do not necessarily need to be realized 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 described above, along with suitable software and / or firmware.

[0191]

[0196] Various examples have been described. These and other examples are within the scope of the following claims. The invention as described in the claims of the original application is set forth below. [C1] A method for decoding video data, comprising the steps of: receiving from a video bitstream one or more syntax elements of video data that indicate whether a first type of coding scheme or a second type of coding scheme is applied to residual values ​​of a block of video data coded with transform skip, where the residual values ​​indicate a difference between the block and a predictive block, and where in transform skip, the residual values ​​are not transformed from a sample domain to a frequency domain; determining a type of coding scheme to apply to the residual values ​​based on the one or more syntax elements; determining the residual value based on the determined type of coding scheme; and reconstructing the block based on the determined residual value and the prediction block. A method comprising: [C2] The method according to C1, wherein the first type of coding scheme is a transform coefficient coding (TRCC) scheme, and the second type of coding scheme is a transform skip residual coding (TSRC) scheme. [C3] The method according to C2, wherein in the TRCC scheme, information indicating the position of the last significant value is parsed, and in the TSRC scheme, the information indicating the position of the last significant value is not parsed. [C4] The method described in C2, wherein in the TRCC method, the number of flags indicating whether or not a residual value among the residual values ​​is greater than a threshold value is different from the number of flags indicating whether or not the residual value among the residual values ​​is greater than the threshold value in the TSRC method. [C5] The method of C1, wherein determining the residual value comprises determining the residual value without applying an inverse transform to the residual value. [C6] The method of C1, wherein receiving the one or more syntax elements comprises receiving a flag in a slice header indicating whether the first type of coding scheme or the second type of coding scheme is applied to the residual values ​​of the block coded with transform skip. [C7] The method further comprises receiving a first flag indicating whether transform skip is enabled; wherein receiving the one or more syntax elements comprises parsing a second flag in a slice header indicating whether the first type of coding scheme or the second type of coding scheme is applied based on the first flag indicating that transform skipping is enabled. The method according to C1. [C8] The method of C1, wherein receiving the one or more syntax elements comprises receiving the one or more syntax elements based on a quantization parameter (QP) that is less than or equal to a threshold. [C9] A method for encoding video data, comprising the steps of: determining a residual value based on a difference between a block of video data to be coded with a transform skip and a predictive block, where in a transform skip, the residual value is not transformed from a sample domain to a frequency domain; determining a type of coding scheme to apply to the residual values, between a first type of coding scheme and a second type of coding scheme; encoding the residual values ​​based on the determined type of coding scheme; and signaling in a video bitstream one or more syntax elements of the video data that indicate whether the first type of coding scheme or the second type of coding scheme is applied to the residual values. A method comprising: [C10] The method according to C9, wherein the first type of coding scheme is a transform coefficient coding (TRCC) scheme, and the second type of coding scheme is a transform skip residual coding (TSRC) scheme. [C11] The method of C9, wherein signaling the one or more syntax elements comprises signaling a flag in a slice header indicating whether the first type of coding scheme or the second type of coding scheme is applied to the residual values. [C12] The method of C9, wherein signaling the one or more syntax elements comprises signaling the one or more syntax elements based on a quantization parameter (QP) being less than or equal to a threshold. [C13] A device for decoding video data, comprising: a memory configured to store video data; a processing circuit coupled to the memory, the processing circuit comprising: receiving from a video bitstream one or more syntax elements of video data that indicate whether a first type of coding scheme or a second type of coding scheme is applied to residual values ​​of a block of video data coded with transform skip, where the residual values ​​indicate a difference between the block and a predictive block, and where in transform skip, the residual values ​​are not transformed from a sample domain to a frequency domain; determining a type of coding scheme to apply to the residual values ​​based on the one or more syntax elements; determining the residual value based on the determined type of coding scheme; and reconstructing the block based on the determined residual value and the prediction block. A device configured to: [C14] The device of C13, wherein the first type of coding scheme is a transform coefficient coding (TRCC) scheme and the second type of coding scheme is a transform skip residual coding (TSRC) scheme. [C15] The device according to C14, wherein in the TRCC scheme, information indicating the position of the last significant value is parsed, and in the TSRC scheme, the information indicating the position of the last significant value is not parsed. [C16] The device described in C14, wherein in the TRCC method, a number of flags indicating whether a residual value among the residual values ​​is greater than a threshold value is different from a number of flags indicating whether the residual value among the residual values ​​is greater than the threshold value in the TSRC method. [C17] The device of C13, wherein to determine the residual value, the processing circuitry is configured to determine the residual value without applying an inverse transform to the residual value. [C18] The device of C13, wherein to receive the one or more syntax elements, the processing circuit is configured to receive a flag in a slice header indicating whether the first type of coding scheme or the second type of coding scheme is applied to the residual values ​​of the block coded with transform skip. [C19] The processing circuitry comprises: and configured to receive a first flag indicating whether transform skip is enabled, wherein, to receive the one or more syntax elements, the processing circuitry is configured to parse a second flag in a slice header indicating whether the first type of coding scheme or the second type of coding scheme is applied based on the first flag indicating that transform skip is enabled. The device described in C13. [C20] The device of C13, wherein, to receive the one or more syntax elements, the processing circuit is configured to receive the one or more syntax elements based on a quantization parameter (QP) that is less than or equal to a threshold. [C21] The device of C13, further comprising a display configured to display a picture including the reconstructed block. [C22] The device of C13, wherein the device comprises one or more of a camera, a computer, a mobile device, a broadcast receiver device, a set-top box, or a wireless communication device. [C23] A computer-readable storage medium having stored thereon instructions that, when executed, cause one or more processors to: receiving from a video bitstream one or more syntax elements of video data that indicate whether a first type of coding scheme or a second type of coding scheme is applied to residual values ​​of a block of video data coded with transform skip, where the residual values ​​indicate a difference between the block and a predictive block, and where in transform skip, the residual values ​​are not transformed from a sample domain to a frequency domain; determining a type of coding scheme to apply to the residual values ​​based on the one or more syntax elements; determining the residual value based on the determined type of coding scheme; and reconstructing the block based on the determined residual value and the prediction block. A computer-readable storage medium for causing a computer to perform the above steps. [C24] A device for decoding video data, comprising: means for receiving one or more syntax elements of the video data indicating whether a first type of coding scheme or a second type of coding scheme is to be applied to residual values ​​of a block coded with a transform skip, where the residual values ​​indicate a difference between the block and a predictive block, and where in a transform skip, the residual values ​​are not transformed from a sample domain to a frequency domain; and means for determining a type of coding scheme to apply to the residual values ​​based on the one or more syntax elements. means for determining the residual value based on the determined type of coding scheme; means for reconstructing the block based on the determined residual values ​​and the prediction block; A device comprising:

Claims

1. 1. A method for decoding video data, comprising the steps of: receiving from a video bitstream one or more syntax elements of video data indicating whether a first type of coding scheme or a second type of coding scheme is applied to residual values ​​of a block of video data coded with transform skip, where the residual values ​​indicate a difference between the block and a predictive block, and where in transform skip, the residual values ​​are not transformed from a sample domain to a frequency domain, receiving the one or more syntax elements comprises receiving a flag in a slice header indicating whether the first type of coding scheme or the second type of coding scheme is applied to the residual values ​​of the block coded with transform skip. determining a type of coding scheme to apply to the residual values ​​based on the one or more syntax elements; determining the residual value based on the determined type of coding scheme; reconstructing the block based on the determined residual value and the prediction block; A method comprising:

2. The method of claim 1 , wherein the first type of coding scheme is a transform coefficient coding (TRCC) scheme and the second type of coding scheme is a transform skip residual coding (TSRC) scheme.

3. The method of claim 2 , wherein in the TRCC scheme, information indicating a location of a last significant value is parsed, and in the TSRC scheme, information indicating the location of the last significant value is not parsed.

4. 3. The method of claim 2, wherein a number of flags indicating whether a residual value among the residual values ​​is greater than a threshold in the TRCC scheme is different from a number of flags indicating whether the residual value among the residual values ​​is greater than the threshold in the TSRC scheme.

5. The method of claim 1 , wherein determining the residual values ​​comprises determining the residual values ​​without applying an inverse transform to the residual values.

6. receiving a first flag indicating whether transform skip is enabled; wherein receiving the one or more syntax elements comprises parsing a second flag in a slice header indicating whether the first type of coding scheme or the second type of coding scheme is applied based on the first flag indicating that transform skipping is enabled. The method of claim 1.

7. 2. The method of claim 1, wherein receiving the one or more syntax elements comprises receiving the one or more syntax elements based on a quantization parameter (QP) that is less than or equal to a threshold.

8. 1. A method for encoding video data, comprising the steps of: determining a residual value based on a difference between a block of video data to be coded with a transform skip and a predictive block, where in a transform skip, the residual value is not transformed from a sample domain to a frequency domain; determining a type of coding scheme to apply to the residual values, between a first type of coding scheme and a second type of coding scheme; encoding the residual values ​​based on the determined type of coding scheme; and signaling, into a video bitstream, one or more syntax elements of the video data indicating whether the first type of coding scheme or the second type of coding scheme is applied to the residual values, wherein signaling the one or more syntax elements comprises signaling a flag in a slice header indicating whether the first type of coding scheme or the second type of coding scheme is applied to the residual values. A method comprising:

9. 9. The method of claim 8, wherein the first type of coding scheme is a transform coefficient coding (TRCC) scheme and the second type of coding scheme is a transform skip residual coding (TSRC) scheme.

10. 10. The method of claim 8, wherein signaling the one or more syntax elements comprises signaling the one or more syntax elements based on a quantization parameter (QP) being less than or equal to a threshold.

11. 1. A device for decoding video data, comprising: a memory configured to store video data; a processing circuit coupled to the memory, the processing circuit comprising: receiving from a video bitstream one or more syntax elements of video data indicating whether a first type of coding scheme or a second type of coding scheme is applied to residual values ​​of a block of video data coded with transform skip, where the residual values ​​indicate a difference between the block and a predictive block, and where in transform skip, the residual values ​​are not transformed from a sample domain to a frequency domain, receiving the one or more syntax elements comprises receiving a flag in a slice header indicating whether the first type of coding scheme or the second type of coding scheme is applied to the residual values ​​of the block coded with transform skip. determining a type of coding scheme to apply to the residual values ​​based on the one or more syntax elements; determining the residual value based on the determined type of coding scheme; reconstructing the block based on the determined residual value and the prediction block; A device configured to:

12. The device according to claim 11, wherein the device for decoding is configured to perform the method according to any one of claims 2 to 7.

13. The method of claim 12, wherein the first type of coding scheme is a transform coefficient coding (TRCC) scheme and the second type of coding scheme is a transform skip residual coding (TSRC) scheme; The device of claim 11 , wherein in the TRCC scheme, information indicating a location of a last significant value is parsed, and in the TSRC scheme, information indicating the location of the last significant value is not parsed.

14. The method of claim 13, wherein the first type of coding scheme is a transform coefficient coding (TRCC) scheme and the second type of coding scheme is a transform skip residual coding (TSRC) scheme; 12. The device of claim 11, wherein a number of flags indicating whether a residual value among the residual values ​​is greater than a threshold in the TRCC scheme is different from a number of flags indicating whether the residual value among the residual values ​​is greater than the threshold in the TSRC scheme.

15. A computer readable storage medium having instructions stored thereon which, when executed, cause one or more processors to perform a method according to any one of claims 1 to 10.

Citation Information

Patent Citations

  • Image decoding method using flag for residual coding method in image coding system, and device for same

    WO2021006700A1

  • Lossless coding of video data

    WO2021061318A1