Rice parameter derivation for high bit-depth video coding
By adaptively deriving Rice parameters based on neighboring transform coefficients, the method addresses inefficiencies in high-bit-depth video coding, improving compression efficiency by reducing codeword sizes for large coefficients in video coding standards.
Patent Information
- Application Number
- JP2023553325
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Priority Date
- 2022-03-08
- Filing Date
- 2022-03-09
- Publication Date
- 2026-02-17
- Estimated Expiration
- 2042-03-09
AI Technical Summary
In high-bit-depth video coding, large transform coefficients result in inefficient coding due to the limited range of Rice parameter values, leading to longer codewords and reduced compression efficiency.
Adaptive derivation of Rice parameters based on the dynamic range of neighboring transform coefficients, expanding the range beyond the conventional limits to improve coding efficiency by using a shift value and determining a larger Rice parameter value.
This approach reduces the size of codewords for syntax elements, enhancing coding efficiency by allowing smaller codeword values for larger transform coefficients, particularly in video coding standards like VVC.
Smart Images

Figure 0007815266000008 
Figure 0007815266000009 
Figure 0007815266000010
Abstract
Description
[Technical Field]
[0001]
[0001] This application claims priority to U.S. Patent Application No. 17 / 653,962, filed March 8, 2022, and U.S. Provisional Application No. 63 / 159,892, filed March 11, 2021, the entire contents of each of which are incorporated herein by reference. U.S. Patent Application No. 17 / 653,962, filed March 8, 2022, claims the benefit of U.S. Provisional Application No. 63 / 159,892, filed March 11, 2021.
[0002] FIELD OF THE DISCLOSURE
[0002] This disclosure relates to video encoding and video 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 gaming devices, video game consoles, cellular or satellite radiotelephones, so-called "smartphones," video teleconferencing devices, video streaming devices, etc. 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, video slices (e.g., video pictures or portions of video pictures) 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 intra-coded (I) slices of a picture are encoded using spatial prediction with respect to reference samples in neighboring blocks in the same picture. Video blocks in inter-coded (P or B) slices 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 adaptively deriving Rice parameters for regular residual coding (RRC) of syntax elements related to transform coefficients in high bit-depth coding. In particular, this disclosure describes techniques for expanding the range of possible Rice parameter values based on the dynamic range of the sum of absolute values of transform coefficients in a template around a currently coded transform coefficient.
[0006] In high-bit-depth video coding, the values of some transform coefficients can become quite large, thus resulting in syntax elements with larger codewords. Generally, large codewords reduce coding efficiency. The size of such codewords can be reduced in some situations by determining larger Rice parameter values. The techniques of this disclosure include determining a shift value based on the dynamic range of the sum of the absolute values of neighboring transform coefficients. The shift value can then be used to expand the possible values of the Rice parameter. Thus, smaller codeword values for some syntax elements can be achieved, thus improving coding efficiency. The techniques of this disclosure can be used with extensions of HEVC, VVC, or other video coding techniques.
[0007]
[0007] In one example, the present disclosure describes a method for decoding video data, the method comprising determining a sum of absolute values of adjacent transform coefficients of a current transform coefficient, determining a shift value based on the sum of absolute values, determining a Rice parameter value for decoding a syntax element for the current transform coefficient based on the sum of absolute values and the shift value, and decoding the syntax element for the current transform coefficient using the Rice parameter value.
[0008]
[0008] In another example, the present disclosure describes an apparatus configured to decode video data, the apparatus comprising: a memory configured to store the video data; and one or more processors implemented in a circuit and in communication with the memory, wherein the one or more processors are configured to: determine a sum of absolute values of adjacent transform coefficients of a current transform coefficient; determine a shift value based on the sum of absolute values; determine a Rice parameter value for decoding a syntax element for the current transform coefficient based on the sum of absolute values and the shift value; and decode the syntax element for the current transform coefficient using the Rice parameter value.
[0009]
[0009] In another example, the present disclosure describes an apparatus configured to decode video data, the apparatus comprising: means for determining a sum of absolute values of adjacent transform coefficients of a current transform coefficient; means for determining a shift value based on the sum of absolute values; means for determining a Rice parameter value for decoding a syntax element for the current transform coefficient based on the sum of absolute values and the shift value; and means for decoding the syntax element for the current transform coefficient using the Rice parameter value.
[0010]
[0010] In another example, the present disclosure describes a non-transitory computer-readable storage medium that stores instructions that, when executed, cause one or more processors configured to decode video data to determine a sum of absolute values of adjacent transform coefficients of a current transform coefficient, determine a shift value based on the sum of absolute values, determine a Rice parameter value for decoding a syntax element for the current transform coefficient based on the sum of absolute values and the shift value, and decode the syntax element for the current transform coefficient using the Rice parameter value.
[0011]
[0011] In another example, the present disclosure describes a method for encoding video data, the method comprising determining a sum of absolute values of adjacent transform coefficients of a current transform coefficient, determining a shift value based on the sum of absolute values, determining a Rice parameter value for decoding a syntax element for the current transform coefficient based on the sum of absolute values and the shift value, and encoding the syntax element for the current transform coefficient using the Rice parameter value.
[0012] 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 explanation of the drawings]
[0013] [Figure 1]
[0013] FIG. 1 is a block diagram illustrating an example video encoding and decoding system that may implement the techniques of this disclosure. [Figure 2]
[0014] FIG. 1 is a conceptual diagram illustrating an example of neighbor coefficients used to derive Rice parameters. [Figure 3]
[0015] FIG. 10 shows an example of a lookup table used to derive Rice parameters. [Figure 4]
[0016] 10 illustrates an exemplary histogram of coded coefficients. [Figure 5]
[0017] FIG. 10 illustrates exemplary codeword lengths for different Rice parameters. [Figure 6]
[0018] 1 is a block diagram illustrating an example video encoder that may implement the techniques of this disclosure. [Figure 7]
[0019] 1 is a block diagram illustrating an example video decoder that may implement the techniques of this disclosure. [Figure 8]
[0020] 10 is a flowchart illustrating an example method for encoding a current block, in accordance with techniques of this disclosure. [Figure 9]
[0021] 10 is a flowchart illustrating an example method for decoding a current block, in accordance with techniques of this disclosure. [Figure 10]
[0022] 10 is another flowchart illustrating an example method for encoding a current block, in accordance with techniques of this disclosure. [Figure 11]
[0023] 10 is another flowchart illustrating an example method for decoding a current block, in accordance with techniques of this disclosure. DETAILED DESCRIPTION OF THE INVENTION
[0014]
[0024] Regular residual coding (RRC) is an exemplary technique for encoding and decoding a residual block. RRC is a term that may distinguish residual coding techniques that include transforms from other residual coding techniques, such as transform skip (TS) residual coding. From the context of a video decoder, RRC involves decoding multiple syntax elements used to determine the magnitude and polarity (e.g., positive or negative) of transform coefficients in a block. Once the transform coefficient values are determined, the video decoder may apply one or more transforms to the transform coefficients to reconstruct the residual block. Example syntax elements that may define the positions and values of the transform coefficients may include one or more last significant coefficient position syntax elements, a coded block flag, a significant coefficient flag, one or more absolute level greater than X flags, a parity flag, a remainder syntax element, and an absolute value syntax element.
[0015]
[0025] In some examples of RRC or other residual coding techniques, some syntax elements may be binarized according to a binarization process. For example, remainder syntax elements and / or absolute value syntax elements may be binarized according to a truncated Rice binarization process. The truncated Rice binarization process is performed based on Rice parameters. A video decoder may be configured to determine the Rice parameters to perform an inverse binarization process to determine values of such syntax elements. In some examples, a video decoder may be configured to derive Rice parameters for RRC using a lookup table and coefficient values of neighboring transform coefficients in a template.
[0016]
[0026] For example, the video decoder may be configured to calculate a value of locSumAbs, which is the sum of the absolute values of five available neighboring coefficients in the template to the current transform coefficient. The video decoder may normalize the value of locSumAbs (e.g., using subtraction and clipping). The video decoder may derive the Rice parameters using the normalized value of locSumAbs as input to a lookup table.
[0017]
[0027] In VVC, the Rice parameter has been tested for encoding and decoding video sources with 8-bit or 10-bit bit depths. In the VVC design, the Rice parameter value depends on the value of locSumAbs and is limited to be within the range of 0 to 3, inclusive, through the clipping process described above. When the bit depth of the input video is increased, extended precision is enabled, and / or the quantization parameter (QP) is set very low, the range of values of the transform coefficients, and therefore the locSumAbs value, may increase significantly. In such cases, the range of allowable Rice parameter values in VVC may not be sufficient for optimal coding efficiency because limiting the Rice parameter value to 0 to 3 would require the use of long codewords, e.g., codewords of length 32, for coded coefficients with large values.
[0018]
[0028] This disclosure describes techniques that address limitations of Rice parameter derivation techniques in VVC and other video coding processes for various input bit depths of video data. The techniques of this disclosure may improve compression efficiency for video coding designs, particularly those using bit depths greater than 10 bits. Using the proposed techniques of this disclosure, the supported range of Rice parameters may be extended from 0 to 3 in VVC to larger numbers, such as 16, which would provide a more efficient binarization process. A more efficient binarization process may result in a lower number of bits being used for larger values of transform coefficients. In particular, the techniques of this disclosure may result in smaller codeword lengths for remainder and / or absolute value syntax elements for transform coefficients with larger absolute values.
[0019]
[0029] 1 is a block diagram illustrating an example video encoding and decoding system 100 that may implement techniques of this disclosure. The techniques of this disclosure are generally directed to coding (encoding and / or decoding) video data. Generally, the video data includes some data for processing the video. Thus, the video data may include raw uncoded video, coded video, decoded (e.g., reconstructed) video, and video metadata, such as signaling data.
[0020]
[0030] 1, system 100 includes a source device 102 that, in this example, provides encoded video data to be decoded and displayed by a destination device 116. In particular, source device 102 provides the video data to destination device 116 via 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, mobile devices, tablet computers, set-top boxes, telephone handsets such as smartphones, televisions, cameras, display devices, digital media players, video gaming consoles, video streaming devices, broadcast receiver devices, etc. 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.
[0021]
[0031] 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, video encoder 200 of source device 102 and video decoder 300 of destination device 116 may be configured to apply techniques for Rice parameter derivation. 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 device and destination device may include other components or arrangements. For example, source device 102 may receive video data from an external video source, such as an external camera. Similarly, destination device 116 may interface with an external display device rather than including an integrated display device.
[0022]
[0032] The system 100 shown in FIG. 1 is merely an example. In general, any digital video encoding and / or decoding device may implement techniques for Rice parameter derivation. Source device 102 and destination device 116 are merely examples of coding devices, such that source device 102 generates coded video data for transmission to destination device 116. This disclosure refers to a “coding” device as a device that performs coding (encoding and / or decoding) of data. Accordingly, video encoder 200 and video decoder 300 represent examples of coding devices, particularly video encoders and video decoders, respectively. In some examples, source device 102 and destination device 116 may operate substantially symmetrically, such that each of source device 102 and destination device 116 includes video encoding and video decoding components. Thus, system 100 may support one-way or two-way video transmission between source device 102 and destination device 116, for example, video streaming, video playback, video broadcasting, or video telephony.
[0023]
[0033] 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 live 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 as source video, or a combination of live, archived, and computer-generated 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 their received order (sometimes referred to as “display order”) into a coding order for coding. Video encoder 200 may generate a bitstream including the encoded video data. Source device 102 may then output the encoded video data onto computer-readable medium 110 via output interface 108 for receipt and / or retrieval by, for example, input interface 122 of destination device 116.
[0024]
[0034] Memory 106 of source device 102 and memory 120 of destination device 116 represent general-purpose memory. In some examples, memory 106, 120 may store raw video data, e.g., raw video from video source 104 and raw decoded video data from video decoder 300. Additionally or alternatively, memory 106, 120 may store software instructions executable by video encoder 200 and video decoder 300, respectively, for example. While memory 106 and memory 120 are shown separate from video encoder 200 and video decoder 300 in this example, it should be understood that video encoder 200 and video decoder 300 may also include internal memory for functionally similar or equivalent purposes. Additionally, memory 106, 120 may store encoded video data, e.g., output from video encoder 200 and input to 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.
[0025]
[0035] 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 the 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 in accordance with 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 in facilitating communication from the source device 102 to the destination device 116.
[0026]
[0036] In some examples, source device 102 may output the encoded data from output interface 108 to storage device 112. Similarly, destination device 116 may access the encoded data from storage device 112 via input interface 122. Storage device 112 may include any of a variety of distributed or locally accessed data storage media, such as a hard drive, Blu-ray disc, DVD, CD-ROM, flash memory, volatile or non-volatile memory, or any other suitable digital storage medium for storing encoded video data.
[0027]
[0037] In some examples, source device 102 may output the encoded video data to 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.
[0028]
[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 (e.g., 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.
[0029]
[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 any one or more of the various protocols described above for retrieving or receiving media data from file server 114, or other such protocols for retrieving media data.
[0030]
[0040] Output interface 108 and 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 output interface 108 and input interface 122 comprise wireless components, output interface 108 and 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 output interface 108 comprises a wireless transmitter, output interface 108 and 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, source device 102 and / or destination device 116 may include respective system-on-chip (SoC) devices. For example, the source device 102 may include an SoC device for performing functions attributed to the video encoder 200 and / or the output interface 108, and the destination device 116 may include an SoC device for performing functions attributed to the video decoder 300 and / or the input interface 122.
[0031]
[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.
[0032]
[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.). 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 liquid crystal display (LCD), a plasma display, an organic light-emitting diode (OLED) display, or another type of display device.
[0033]
[0043] 1, in some examples, video encoder 200 and video decoder 300 may each be integrated with an audio encoder and / or decoder and may include an appropriate MUX-DEMUX unit or other hardware and / or software to handle multiplexed streams that include 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).
[0034]
[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, a device may store instructions for the software 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 integrated as part of a combined encoder / decoder (codec) in the respective device. Devices including the video encoder 200 and / or the video decoder 300 may comprise integrated circuits, microprocessors, and / or wireless communication devices such as cellular phones.
[0035]
[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 extensions 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 10)," Joint Video Experts Team (JVET) of ITU-T SG16 WP3 and ISO / IEC JTC1 / SC29 / WG11, 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.
[0036]
[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 containing data to be processed (e.g., encoded, decoded, or otherwise used in the encoding and / or decoding process). For example, a block may include a two-dimensional matrix of luminance and / or chrominance data samples. Generally, the video encoder 200 and the video decoder 300 may code video data represented in YUV (e.g., Y, Cb, Cr) format. That is, rather than coding red, green, and blue (RGB) data for a picture sample, 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.
[0037]
[0047] This disclosure may generally refer to coding (e.g., encoding and decoding) a picture to include the process of encoding or decoding data for a picture. Similarly, this disclosure may refer to coding a block of a picture to include the process of encoding or decoding data for the block, e.g., predictive and / or residual coding. A coded video bitstream generally includes a series of values for syntax elements that represent coding decisions (e.g., coding modes) and the partitioning of a picture into blocks. Thus, references to coding a picture or a block should be understood generally as coding values for the syntax elements that form the picture or block.
[0038]
[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 child nodes may be referred to as a "leaf node," and a CU of such a leaf node may include one or more PUs and / or one or more TUs. The video coder may further partition PUs and TUs. For example, in HEVC, a residual quadtree (RQT) represents the partitioning of TUs. In HEVC, a PU represents inter-predicted data, and a TU represents residual data. An intra-predicted CU includes intra-prediction information, such as an intra-mode indication.
[0039]
[0049] As another example, video encoder 200 and video decoder 300 may be configured to operate according to VVC. According to VVC, a video coder (such as video encoder 200) partitions a picture into multiple coding tree units (CTUs). 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 quad-tree partitioning and a second level partitioned according to binary tree partitioning. The root node of the QTBT structure corresponds to a CTU. The leaf nodes of the binary tree correspond to coding units (CUs).
[0040]
[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. Triple tree or ternary tree partitioning is a partitioning in which a block is split into three sub-blocks. In some examples, triple tree or ternary tree partitioning divides a block into three sub-blocks without splitting the original block through the center. The partitioning types in MTT (e.g., QT, BT, and TT) can be symmetric or asymmetric.
[0041]
[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).
[0042]
[0052] Video encoder 200 and video decoder 300 may be configured to use quadtree partitioning, QTBT partitioning, MTT partitioning, or other partition structures according to HEVC. For illustrative purposes, 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.
[0043]
[0053] In some examples, a CTU includes a coding tree block (CTB) of luma samples, two corresponding CTBs of chroma samples for a picture with three sample arrays, or a CTB of samples for a monochrome picture, or a picture coded using three separate color planes and syntax structures used to code the samples. The CTB may be an N×N block of samples, for some value of N such that the division of the components into the CTB is partitioned. A component is an array or a single sample from one of three arrays (luma and two chroma) that configure the picture in 4:2:0, 4:2:2, or 4:4:4 color format, or an array or a single sample of an array that configures the picture in monochrome format. In some examples, a coding block is an M×N block of samples, for some value of M and N such that the division of the CTB into coding blocks is partitioned.
[0044]
[0054] 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 within 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.
[0045]
[0055] In some examples, a tile may be partitioned into multiple bricks, each of which may contain 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.
[0046]
[0056] 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.
[0047]
[0057] This disclosure may use "N x N" and "N by N" interchangeably to refer to the sample dimensions of a block (such as a CU or other video block) in terms of the vertical and horizontal dimensions, e.g., 16 x 16 samples or 16 by 16 samples. Generally, a 16 x 16 CU has 16 samples in the vertical direction (y = 16) and 16 samples in the horizontal direction (x = 16). Similarly, an N x N 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. Moreover, 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 N x M samples, where M is not necessarily equal to N.
[0048]
[0058] Video encoder 200 encodes video data for a CU, which represents prediction and / or residual information and other information. The prediction information indicates how the CU should be predicted to form a predictive block for the CU. The residual information generally represents sample-by-sample differences between the samples of the CU prior to encoding and the predictive block.
[0049]
[0059] 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 motion search to identify a reference block that closely matches the CU, e.g., 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), a sum of squared differences (SSD), a mean absolute difference (MAD), a 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 prediction or bidirectional prediction.
[0050]
[0060] Some examples of VVC also provide 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.
[0051]
[0061] To perform intra prediction, video encoder 200 may select an intra prediction mode to generate a predictive block. Some examples of VVC provide 67 intra prediction modes, including various directional modes as well as planar and DC modes. Generally, 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-left, or to the left of the current block in the same picture as the current block, assuming that video encoder 200 codes CTUs and CUs in raster scan order (left to right, top to bottom).
[0052]
[0062] 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 for 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 modes.
[0053]
[0063] Following prediction, such as intra-prediction or inter-prediction, of a block, the video encoder 200 may calculate residual data for the block. The residual data, such as a residual block, represents 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 produce transformed 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. Furthermore, the video encoder 200 may apply a secondary transform, such as a mode-dependent non-separable secondary transform (MDNSST), a signal-dependent transform, or a Karhunen-Loeve transform (KLT), following the first transform. The video encoder 200 produces transform coefficients following application of the one or more transforms.
[0054]
[0064] As described above, following any transformation to produce 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, thereby providing further compression. By performing the 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 round an n-bit value to an m-bit value during quantization, where n is greater than m. In some examples, to perform quantization, the video encoder 200 may perform a bitwise right shift of the value to be quantized.
[0055]
[0065] Following quantization, the video encoder 200 may scan the transform coefficients to create a one-dimensional vector from a two-dimensional matrix including the quantized transform coefficients. The scan 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 back of the vector. In some examples, the video encoder 200 may utilize a predefined scan order to scan the quantized transform coefficients to create a serialized vector and then entropy code the quantized transform coefficients of the vector. In other examples, the video encoder 200 may perform adaptive scanning. After scanning the quantized transform coefficients to form the one-dimensional vector, the video encoder 200 may entropy code the one-dimensional vector, for example, according to context-adaptive binary arithmetic coding (CABAC). The video encoder 200 may also entropy code values for syntax elements describing metadata associated with the encoded video data for use by the video decoder 300 in decoding the video data.
[0056]
[0066] To implement CABAC, 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 values. A probability determination may be based on the context assigned to the symbol.
[0057]
[0067] 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, a block header, a 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.
[0058]
[0068] In this manner, video encoder 200 may generate a bitstream including syntax elements that describe encoded video data, e.g., partitions of a picture into blocks (e.g., CUs) and prediction and / or residual information for the blocks. Finally, video decoder 300 may receive the bitstream and decode the encoded video data.
[0059]
[0069] Generally, video decoder 300 performs an inverse process to that performed by video encoder 200 to decode encoded video data of a bitstream. For example, video decoder 300 may decode values for syntax elements of a bitstream using CABAC in a manner that is reverse to, but substantially similar to, the CABAC encoding process of video encoder 200. The syntax elements may define partition information for partitioning a picture into CTUs and the partitioning of each CTU according to a corresponding partition structure, such as a QTBT structure, to define CUs of the CTU. The syntax elements may further define prediction and residual information for blocks of video data (e.g., CUs).
[0060]
[0070] The residual information 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 for the block. The video decoder 300 uses the signaled prediction mode (intra- or inter-prediction) and associated prediction information (e.g., motion information for inter-prediction) to form a predictive block for the block. The video decoder 300 may then combine the predictive block and the residual block (sample by sample) 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.
[0061]
[0071] This disclosure may generally refer to “signaling” certain information, such as syntax elements. The term “signaling” may generally refer to communication of values for syntax elements and / or other data used to decode encoded video data. That is, video encoder 200 may signal values for syntax elements in a bitstream. Generally, signaling refers to generating values in a bitstream. As mentioned 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 non-real time, such as may be done when storing syntax elements to storage device 112 for later retrieval by destination device 116.
[0062]
[0072] According to the techniques of this disclosure, as described in more detail below, video encoder 200 and video decoder 300 may be configured to determine a Rice parameter value for coding a current transform coefficient, and code the current transform coefficient using the determined Rice parameter value, where a possible range for the Rice parameter value is from 0 to greater than 3. In a more specific example, video encoder 200 and video decoder 300 may be configured to determine a sum of absolute values of neighboring transform coefficients of a current transform coefficient, determine a shift value based on the sum of absolute values, determine a Rice parameter value for coding a syntax element for the current transform coefficient based on the sum of absolute values and the shift value, and code the syntax element for the current transform coefficient using the Rice parameter value.
[0063]
[0073] Overview of Rice Parameter Derivation for Regular Residual Coding
[0074] Regular residual coding (RRC) is an exemplary technique for encoding and decoding residual blocks. RRC is a term that may distinguish residual coding techniques that include transforms from other residual coding techniques, such as transform skip (TS) residual coding. From the context of video decoder 300, RRC involves decoding multiple syntax elements used to determine the magnitude and polarity (e.g., positive or negative) of transform coefficients in a block. Once the transform coefficient values are determined, video decoder 300 may apply one or more transforms to the transform coefficients to reconstruct the residual block. Example syntax elements that may define the positions and values of the transform coefficients may include one or more last significant coefficient position syntax elements, a coded block flag, a significant coefficient flag, one or more absolute level greater than X flags, a parity flag, a remainder syntax element, and an absolute value syntax element.
[0064]
[0075] In general, the last significant coefficient position syntax element may indicate the x and y position of the last significant (e.g., non-zero) coefficient in the transform block with respect to the forward scan order. The video decoder 300 may determine the position of this last significant coefficient and then parse and decode other syntax elements for other transform coefficients in the reverse scan order starting from this last significant coefficient position.
[0065]
[0076] A coded block flag indicates whether a block or sub-block (e.g., a sub-block of a transform block) contains significant coefficients. For example, in VVC, an exemplary coded block flag is sb_coded_flag[xS][yS], which specifies whether a sub-block of a transform block contains non-zero transform coefficients.
[0066]
[0077] The significant coefficient flag indicates whether the absolute value of a particular transform coefficient is non-zero. For example, in VVC, an exemplary significant coefficient flag is sig_coeff_flag[xC][yC], which specifies, for a transform coefficient location (xC, yC) in the current transform block, whether the corresponding transform coefficient level at location (xC, yC) is non-zero.
[0067]
[0078] One or more absolute level greater than X flags are syntax elements that indicate whether the absolute value of a particular transform coefficient is greater than some value X (e.g., 1, 2, 3, etc.). In VVC, an example of an absolute value greater than X flag is abs_level_gtx_flag[n][j], which specifies whether the absolute value of the transform coefficient level (at scan position n) is greater than (j<<1)+1.
[0068]
[0079] A parity flag is a flag that indicates whether the value of a transform coefficient is positive or negative. In VVC, an exemplary parity flag is par_level_flag[n], which specifies the parity of the transform coefficient level at scan position n.
[0069]
[0080] A remainder syntax element is a syntax element whose value indicates the absolute value of the remainder of a transform coefficient above some other value (e.g., the maximum value X coded for an absolute level flag greater than X). In VVC, an example of a remainder syntax element is abs_remainder[n], which indicates the absolute value of the remainder of a transform coefficient level coded using a Golomb-Rice code at scan position n.
[0070]
[0081] The absolute value syntax element is another syntax element that can be coded to indicate the absolute value of a transform coefficient. In VVC, an example absolute value syntax element is dec_abs_level[n], which is an intermediate value coded using a Golomb-Rice code at scan position n.
[0071]
[0082] In some examples of RRC or other residual coding techniques, some syntax elements may be binarized according to a binarization process. For example, abs_remainder[n] and dec_abs_level[n] are binarized according to a shortened Rice binarization process. The shortened Rice binarization process is performed based on Rice parameters. The video decoder 300 may be configured to determine the Rice parameters to perform an inverse binarization process for determining values of such syntax elements (e.g., abs_remainder[n] and dec_abs_level[n]). In some examples, such as VVC, the video encoder 200 and the video decoder 300 may be configured to derive Rice parameters for RRC using a lookup table and coefficient values of neighboring transform coefficients in a template. A template of neighboring coefficients is shown in FIG. 2. FIG. 2 shows a transform block 390 with a current coefficient 392 and neighboring coefficients 394. The values of the neighboring coefficients 394 may be used to determine the Rice parameters for coding the syntax element associated with the current coefficient 392 .
[0072]
[0083] First, video encoder 200 and / or video decoder 300 may be configured to calculate a value of locSumAbs, which is the sum of the absolute values of the five available neighboring coefficients in the template to the current coefficient. In FIG. 2, current coefficient 392 is shaded black, and neighboring coefficient 394 in the template is shaded gray. Video encoder 200 and video decoder 300 may normalize the value of locSumAbs (e.g., using subtraction and clipping) as follows: locSumAbs = Clip3(0, 31, locSumAbs-baseLevel*5). Clip3 is a clipping function that limits the value of (locSumAbs-baseLevel*5) to be between 0 and 31, inclusive. The variable baseLevel multiplied by 5 (baseLevel not equal to 0) implements an offset to the estimated value from the template locSumAbs value when some of the transform coefficient values are coded using context-based arithmetic coding. Video encoder 200 and video decoder 300 may derive the Rice parameters using the normalized values of locSumAbs as input to a lookup table, e.g., Table 1 shown in Figure 3. As shown in Figure 3, in some examples, the range of values for the Rice parameters is constrained from 0 to 3, inclusive. As further shown in Figure 3, the range of values for the normalized locSumAbs ranges from 0 to 31, inclusive.
[0073]
[0084] In VVC, the Rice parameter has been tested for encoding video sources with 8-bit or 10-bit bit depths. In the VVC design, the Rice parameter value depends on the value of locSumAbs and is limited to be within the range of 0 to 3, inclusive, through the clipping process described above. When the bit depth of the input video is increased, extended precision is enabled, and / or the quantization parameter (QP) is set very low, the range of values of the transform coefficients, and therefore the locSumAbs value, may increase significantly. In such cases, the range of allowable Rice parameter values in VVC may not be sufficient for optimal coding efficiency because the current design of VVC (e.g., VVC Draft 10) would require the use of long codewords, e.g., codewords of length 32, for coded coefficients with large values. Such problems may be particularly pronounced for the abs_remainder[n] and dec_abs_level[n] syntax elements.
[0074]
[0085] A visualization of the problem is shown in Figures 4 and 5. Figure 4 shows an example histogram (Hist) of coded coefficients (in power-of-two form) for a 16-bit signal. Figure 4 shows the total number of occurrences (Y-axis) for a particular codeword length (X-axis). Plot 400 is the histogram for all coefficients (coeffsHist), plot 402 is the histogram for the DC coefficient (coeffsHistDC), and plot 404 is the histogram for the last significant coefficient (coeffsHistlast).
[0075]
[0086] FIG. 5 shows example codeword lengths for different Rice parameters (e.g., codeword lengths for remainder and / or absolute value syntax elements). As shown in FIG. 5, limiting the canonical range of Rice parameter values to 3 (as defined in VVC) results in a significant increase in codeword length for coded values greater than 10 (see, e.g., plot 502). In FIG. 5, plots 500, 502, 504, 506, and 508 show codeword lengths for Rice parameter values 0, 3, 8, 12, and 15, respectively. As shown in FIG. 5, Rice parameter values from 0 to 3 generally result in small codeword lengths for smaller coded values, but rapidly increase in codeword length for larger coded values. This problem is mitigated by allowing larger values for the Rice parameter for larger magnitude coefficients.
[0076]
[0087] This disclosure describes techniques that address limitations of Rice parameter derivation techniques in VVC and other video coding processes for various input bit depths of video data. The techniques of this disclosure may improve compression efficiency for video coding designs, particularly those using bit depths greater than 10 bits. Using the proposed techniques of this disclosure, the supported range of Rice parameters may be extended from 0 to 3 in VVC to larger numbers, such as 16, which would provide a more efficient binarization process. A more efficient binarization process may result in a lower number of bits being used for larger values of transform coefficients. In particular, the techniques of this disclosure may result in smaller codeword lengths for remainder and / or absolute value syntax elements for transform coefficients with larger absolute values.
[0077]
[0088] In one example of this disclosure, the video encoder 200 and the video decoder 300 may be configured to scale and / or normalize the calculated value of a template of neighboring coefficients (e.g., referred to as localSumbAbs) to handle increased bit depth and / or a larger dynamic range of the transform coefficients. The video encoder 200 and the video decoder 300 may be configured to scale and / or normalize the value of localSumbAbs before it is used to derive the Rice parameter. The video encoder 200 and the video decoder 300 may be configured to determine the amount of the scaling factor to be used based on the value of localSumAbs subtracted by the output of the template derivation, which is calculated to indicate the local activity of the transform coefficients. In another example, the video decoder 300 may be configured to determine the scaling factor from a syntax element signaled in the bitstream or from a set of tabulated values.
[0078]
[0089] Video encoder 200 and video decoder 300 may compare the determined value of localSumAbs to a set of tabulated thresholds Tx={Tid} (e.g., hereinafter referred to as g_riceT) to identify a dynamic range id (rangeIdx) within which the value of localSumAbs falls. In one example, the tabulated thresholds g_riceT have the following eight values Tx[8]={32, 128, 512, 2048, 8192, 32768, 131072, 524288}. If the value of localSumAbs is less than 32, the range id is 0. If the value of localSumAbs is less than 128 but greater than or equal to 32, the range id is 1. If the value of localSumAbs is less than 512 but greater than or equal to 128, the range id is 2, and so on.
[0079]
[0090] The video encoder 200 and the video decoder 300 may determine a scalar value (normShift) from a given set of tabulated scalars Rx={Rid} (e.g., hereinafter referred to as g_riceShift) determined by a previously determined range id. The scalars in the scalar array Rx may be referred to as scale factors and / or shift values. The video encoder 200 and the video decoder 300 may use the previously determined range id as an input to the tabulated set of scalars Rx(g_riceShift) to determine the normShift value. In one example, the tabulated threshold value g_riceT has the following nine values Rx[9]={0, 2, 4, 6, 8, 10, 12, 14, 16}. If the value of the range id is 0, the normShift value is 0. If the value of the range id is 1, the normShift value is 2. If the value of the range id is 2, the normShift value is 4, and so on.
[0080]
[0091] Video encoder 200 and video decoder 300 may use the normShift value to normalize / scale the value of localSumAbs prior to determining the Rice parameter. For example, video encoder 200 and video decoder 300 may right-shift the value of localSumAbs by the value of normShift (e.g., normalized locSumAbs = locSumAbs >> normShift). Video encoder 200 and video decoder 300 are configured to use the normalized localSumAbs to derive the Rice parameter using a predefined lookup table (e.g., Table 1 in FIG. 3 or another predefined table). More generally, video encoder 200 and video decoder 300 may use the normalized localSumAbs as input to a function, lookup table, or process for determining the Rice parameter.
[0081]
[0092] In one example, once the value of localSumbAbs is normalized as described above, video encoder 200 and video decoder 300 may derive the Rice parameter from a predefined table. Video encoder 200 and video decoder 300 may then modify the Rice parameter determined from the table by adding an offset (e.g., normShift) equal to Rid to extend the dynamic range of the Rice parameter. That is, the final Rice parameter is equal to the Rice parameter determined from the table plus the value of normShift.
[0082]
[0093] In some examples, a set of threshold Tx and scaler values Rx may be defined as follows:
[0083]
number
[0084]
[0094] In some examples, the values comprising array Tx are restricted to be powers of 2. In other examples, the values are not restricted to be powers of 2 (e.g., 2^x), but may be converted to such through a limited number of operations, such as offsetting, scaling, or right / left shifting.
[0085]
[0095] The size of the array is not limited to 8 or 9 values as above, but may be equal to N, where N is a positive integer greater than a lower bound, e.g., greater than 1 or greater than 2, and less than an upper bound, e.g., 9 or 5. In some examples, the size of the Rx array is greater than the size of the Tx array by one entry. In some examples, the sizes of the Tx and Rx arrays may be limited to 4.
[0086]
[0096] The relevant Ricer parameter derivation section described in VVC Draft 10 can be modified as follows, with the size of the tabulated arrays (Rx and Tx) equal to 4. Additional material to VVC Draft 10 is available under the tag <add> From tag< / add> is shown between.
[0087]
[0097] 9.3.3.2 Rice Parameter Derivation Process for abs_remainder[] and dec_abs_level[] The inputs to this process are the base level baseLevel, the color component index cIdx, the luma location (x0, y0) specifying the top-left sample of the current transform block relative to the top-left sample of the current picture, the current coefficient scan location (xC, yC), the binary logarithm of the transform block width log2TbWidth, and the binary logarithm of the transform block height log2TbHeight.
[0088] The output of this process is the rice parameter cRiceParam.
[0089] Given an array AbsLevel[x][y] for a transform block with component index cIdx and top-left luma location (x0, y0), the variable locSumAbs is derived as specified by the following pseudocode process:
[0090]
number
[0091] <add>g_riceT and g_riceShift are defined as follows:
[0092]
number
[0093] Given the variable locSumAbs, the rice parameter cRiceParam is derived as specified in Table 128.
[0094] <add>The cRiceParam is then refined as follows:
[0095]
number
[0096]
[0098] In the above example, the threshold array Tx is called g_riceT and the scalar array Rx is called g_riceShift. The following pseudocode shows the comparison of localSumAbs values with various entries in the threshold array g_riceT:
[0097]
number
[0098]
[0099] As shown above, the localSumAbs value (sum) is successively compared (e.g., by a successive comparator) to each of the thresholds in the array g_riceT to determine the range id (rangeIdx). Once the value of rangeIdx is determined, the video encoder 200 and the video decoder 300 set a shift value (normShift) according to the following formula: normShift=g_riceShift[rangeIdx]. That is, rangeIdx is used as an input to the scale factor (or shift value) array g_riceShift.
[0099]
[0100] In the above example, the g_riceT and g_riceShift arrays are defined as follows:
[0100]
number
[0101] After the value of normShift is determined, video encoder 200 and video decoder 300 may normalize the value of locSumAbs using the following formula: locSumAbs = locSumAbs >> normShift, where >> is a right shift. Video encoder 200 and video decoder 300 may then clip the normalized locSumAbs value using the following formula: locSumAbs = Clip3(0, 31, locSumAbs - baseLevel * 5), as described above. This clipped locSumAbs value may then be used as input to a lookup table (e.g., the table in FIG. 3) to determine an initial Rice parameter value. Video encoder 200 and video decoder 300 may then add the normShift value to the initial Rice parameter value, as in cRiceParam = cRiceParam + normShift, to obtain a final Rice parameter value (cRiceParam).
[0102]
[0102] In some examples, the g_riceT and / or g_riceShift arrays may be expanded to eight entries, with associated expansions to the successive comparators (eg, if else comparisons) defined above.
[0103] In some examples, a parallel-friendly implementation of the serial comparison of x vs. {Tx} defined above may be utilized.
[0104]
number
[0105] The implementation shown above is one possible technique for performing normShift derivation from the x value derived as the output of the template calculation (as Rx(rangeIdx)). To avoid consecutive branching due to comparison against a threshold (e.g., as in the if / else statement described previously), the value x can be downshifted in parallel with a pre-specified set of right shifts (>>). Depending on the result of the right shift, a binary "or" operation aggregates the bits to produce the y variable. The variable y is used to fetch the parameter normShift from the Rx table.
[0106]
[0105] In another example, the successive comparisons of x vs. {Tx} defined above may be replaced by approximations, for example, by floor(log2(x)) operations, or through searching the most significant bits, leading zeros, etc.
[0107] In some examples, separate Tx and Rx arrays may be defined for separate color components, color formats, or types of syntax elements (e.g., modulus or absolute decoded values, or some other syntax element value) being decoded using Rice parameters. Such syntax element values may be determined using parameters such as the bit depth of the signal, the internal bit depth, or the mode of the Rice derivation process.
[0108] In summary, in one example, video encoder 200 and video decoder 300 may be configured to determine a Rice parameter value for coding a current transform coefficient, and to code the current transform coefficient using the determined Rice parameter value, where the possible range for the Rice parameter value is from 0 to greater than 3. In one example, the possible range for the Rice parameter value is from 0 to 16.
[0109] In a more specific example, the video encoder 200 and the video decoder 300 may be configured to determine a sum of absolute values (e.g., locSumAbs) of neighboring transform coefficients of a current transform coefficient. The video encoder 200 and the video decoder 300 may then determine a shift value (e.g., normShift) based on the sum of absolute values. The video encoder 200 and the video decoder 300 may further determine a Rice parameter value (cRiceParam) for coding a syntax element for the current transform coefficient based on the sum of absolute values and the shift value. As described above, possible syntax elements may include a remainder syntax element and / or an absolute value syntax element. The video encoder 200 and the video decoder 300 may then code (e.g., encode or decode, respectively) the syntax element for the current transform coefficient using the Rice parameter value.
[0110]
[0109] In one example, to determine the shift value based on the sum of absolute values, the video encoder 200 and the video decoder 300 may determine a range id (e.g., rangeIdx) from the sum of absolute values and determine the shift value from the range id. To determine the range id from the sum of absolute values, the video encoder 200 and the video decoder 300 may compare the sum of absolute values to an array of thresholds (e.g., Tx or g_riceT) and determine the range id based on which two thresholds in the array of thresholds the sum of absolute values falls between. Comparing the sum of absolute values to the array of thresholds may include comparing the sum of absolute values to all thresholds in the array of thresholds in parallel. In a further example, to determine the shift value from the range id, the video encoder 200 and the video decoder 300 may be configured to determine the shift value using the range id as input to an array of scale factors (e.g., Rx or g_riceShift).
[0111] In another example, to determine a Rice parameter value for decoding a syntax element for a current transform coefficient based on the sum of absolute values and the shift value, video encoder 200 and video decoder 300 may be configured to normalize the sum of absolute values using the shift value to generate a normalized sum of absolute values. In one example, the normalization process is locSumAbs = locSumAbs >> normShift. Video encoder 200 and video decoder 300 may determine an initial Rice parameter value based on the normalized sum of absolute values and add the shift value to the initial Rice parameter value to determine the Rice parameter value. For example, video encoder 200 and video decoder 300 may be configured to determine the Rice parameter value (cRiceParam) as cRiceParam = cRiceParam + normShift. To determine the initial Rice parameter based on the normalized sum of absolute values, video encoder 200 and video decoder 300 may be configured to determine the initial Rice parameter value using the normalized sum of absolute values as input to a lookup table (e.g., the lookup table in FIG. 3). Before determining the initial Rice parameter value, video encoder 200 and video decoder 300 may be configured to clip the normalized sum of absolute values (e.g., locSumAbs=Clip3(0, 31, locSumAbs-baseLevel*5)). Once the Rice parameter value is determined, video encoder 200 and video decoder 300 may be configured to binarize or de-binarize the syntax element, respectively, based on the Rice parameter.
[0112]
[0111] Figure 6 is a block diagram illustrating an example video encoder 200 that may implement the techniques of this disclosure. Figure 6 is provided for illustrative purposes and should not be considered limiting of the techniques broadly illustrated and described in this disclosure. For illustrative purposes, this disclosure describes video encoder 200 in accordance with VVC (ITU-T H.266 under development) and HEVC (ITU-T H.265) techniques. However, the techniques of this disclosure may be implemented by video encoding devices configured for other video coding standards.
[0113] 6, the video encoder 200 includes a video data memory 230, a mode select 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 select 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, ASIC, or FPGA. Moreover, video encoder 200 may include additional or alternative processors or processing circuits for performing these and other functions.
[0114] Video data memory 230 may store video data to be encoded by components of video encoder 200. Video encoder 200 may receive video data stored in video data memory 230, for example, from video source 104 (FIG. 1). DPB 218 may serve as a reference picture memory that stores reference video data for use in predicting subsequent video data by video encoder 200. Video data memory 230 and DPB 218 may be formed by any of a variety of memory devices, such as synchronous dynamic random access memory (DRAM), including DRAM (SDRAM), magnetoresistive RAM (MRAM), resistive RAM (RRAM), or other types of memory devices. Video data memory 230 and DPB 218 may be provided by the same memory device or separate memory devices. In various examples, video data memory 230 may be on-chip with other components of video encoder 200, as shown, or off-chip relative to those components.
[0115] 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, nor should they be construed as limited 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 for 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.
[0116] The various units in FIG. 6 are shown to aid in understanding the operations performed by 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 with respect to the operations that may be performed. A programmable circuit refers to a circuit that can 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 types of operations that the fixed-function circuit performs are generally invariant. 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 integrated circuits.
[0117]
[0116] Video encoder 200 may include an arithmetic logic unit (ALU), a basic functional unit (EFU), a programmable core formed from digital circuits, analog circuits, and / or programmable circuits. In examples in which the operations of video encoder 200 are implemented using software executed by programmable circuits, memory 106 (FIG. 1) may store instructions (e.g., object code) of the software that video encoder 200 receives and executes, or another memory (not shown) within video encoder 200 may store such instructions.
[0118]
[0117] The video data memory 230 is configured to store 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.
[0119] The mode select unit 202 includes a motion estimation unit 222, a motion compensation unit 224, and an intra prediction unit 226. The mode select unit 202 may include additional functional units for performing video prediction according to other prediction modes. By way of example, the mode select 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.
[0120] The mode selection unit 202 generally coordinates multiple encoding passes to test combinations of encoding parameters and the resulting rate-distortion values for such combinations. The encoding parameters may include partitioning of CTUs into CUs, prediction modes for CUs, transform types for residual data of CUs, quantization parameters for residual data of CUs, etc. The mode selection unit 202 may finally select a combination of encoding parameters that has a rate-distortion value that is better than other tested combinations.
[0121] Video encoder 200 may partition a picture retrieved from video data memory 230 into a series of CTUs, encapsulating one or more CTUs in a slice. Mode select unit 202 may partition the CTUs of the picture according to a tree structure, such as the QTBT structure or quadtree structure of HEVC described above. As described above, video encoder 200 may form one or more CUs from partitioning the CTUs according to the tree structure. Such CUs may also be generally referred to as “video blocks” or “blocks.”
[0122] Generally, the mode selection unit 202 also controls its components (e.g., the motion estimation unit 222, the motion compensation unit 224, and the intra prediction unit 226) to generate a prediction block for a current block (e.g., a current CU, or in HEVC, an overlapping portion of a PU and a TU). For inter prediction of the current block, the motion estimation unit 222 may perform motion search to identify one or more closely matching reference blocks in one or more reference pictures (e.g., one or more previously 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 sample-by-sample differences between the current block and the reference block under consideration. Motion estimation unit 222 may identify the reference block with the lowest value resulting from these calculations, which indicates the reference block that most closely matches the current block.
[0123] 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 sub-sample precision, the motion compensation unit 224 may interpolate values for 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.
[0124] 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 defined direction across the current block to produce 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.
[0125] The mode select 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 select 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 for 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.
[0126] In examples in which the mode select 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 indicated 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 the size of a particular CU is 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 for PU sizes of 2N×nU, 2N×nD, nL×2N, and nR×2N for inter prediction.
[0127] In examples in which the mode select unit 202 does not further partition 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.
[0128] In other video coding techniques, such as intra-block copy mode coding, affine mode coding, and linear model (LM) mode coding, for example, mode select unit 202 generates a predictive block for the current block being coded via a respective unit associated with the coding technique. In some examples, such as palette mode coding, mode select 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, mode select unit 202 may provide these syntax elements to be coded to entropy coding unit 220.
[0129]
[0128] As described above, the residual generation unit 204 receives the video data for the current block and the 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.
[0130] 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 on the residual block, e.g., a linear transform and a quadratic transform, such as a rotation transform. In some examples, transform processing unit 206 does not apply a transform to the residual block.
[0131] The quantization unit 208 may quantize the transform coefficients in the transform coefficient block to produce a quantized transform coefficient block. The quantization unit 208 may quantize the transform coefficients of the transform coefficient block according to a quantization parameter (QP) value associated with the current block. The video encoder 200 (e.g., via the mode select 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 result in a loss of information, and therefore, the quantized transform coefficients may have lower precision than the original transform coefficients produced by the transform processing unit 206.
[0132]
[0131] The inverse quantization unit 210 and the inverse transform processing unit 212 may apply inverse quantization and inverse transform to the quantized transform coefficient block, respectively, to reconstruct a residual block from the transform coefficient block. The reconstruction unit 214 may produce a reconstructed block that corresponds to the current block (potentially with some distortion) based on the reconstructed residual block and the predictive block generated by the mode select unit 202. For example, the reconstruction unit 214 may add samples of the reconstructed residual block to corresponding samples from the predictive block generated by the mode select unit 202 to produce the reconstructed block.
[0133]
[0132] 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. The operations of filter unit 216 may be skipped in some examples.
[0134] The video encoder 200 stores the reconstructed blocks in the DPB 218. For example, in examples where the operations of the filter unit 216 are not performed, the reconstruction unit 214 may store the reconstructed blocks in the DPB 218. In examples where the operations of the filter unit 216 are performed, 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. Furthermore, 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.
[0135] Generally, 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 select 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, 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, entropy encoding unit 220 may operate in a bypass mode in which syntax elements are not entropy coded.
[0136] In one example, the entropy encoding unit 220 may be configured to perform one or more techniques of this disclosure, as described above. For example, the entropy encoding unit 220 may be configured to: determine a sum of absolute values of neighboring transform coefficients of a current transform coefficient; determine a shift value based on the sum of absolute values; determine a Rice parameter value for encoding a syntax element for the current transform coefficient based on the sum of absolute values and the shift value; and encode the syntax element for the current transform coefficient using the Rice parameter value.
[0137]
[0136] 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.
[0138]
[0137] 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 blocks and chroma coding blocks are luma and chroma components of a CU. In some examples, the luma coding blocks and chroma coding blocks are luma and chroma components of a PU.
[0139]
[0138] 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. Rather, 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.
[0140]
[0139] Video encoder 200 represents an example of a device configured to encode video data, including a memory configured to store the video data and one or more processing units implemented in a circuit, the one or more processing units configured to determine a Rice parameter value for coding a current transform coefficient, and code the current transform coefficient using the determined Rice parameter value, wherein a possible range for the Rice parameter value is from 0 to greater than 3.
[0141]
[0140] Figure 7 is a block diagram illustrating an example video decoder 300 that may implement the techniques of this disclosure. Figure 7 is provided for illustrative purposes and is not intended to limit the techniques broadly illustrated and described in this disclosure. For illustrative purposes, this disclosure describes the video decoder 300 in accordance with VVC (ITU-T H.266 under development) and HEVC (ITU-T H.265) techniques. However, the techniques of this disclosure may be implemented by video coding devices configured for other video coding standards.
[0142] 7, 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, ASIC, or FPGA. Moreover, the video decoder 300 may include additional or alternative processors or processing circuits for performing these and other functions.
[0143] The prediction processing unit 304 includes a motion compensation unit 316 and an intra prediction unit 318. The prediction processing unit 304 may include additional units for performing prediction according to other prediction modes. By way of example, the prediction processing unit 304 may include a palette unit, an intra block copy unit (which may form part of the motion compensation unit 316), an affine unit, a linear model (LM) unit, etc. In other examples, the video decoder 300 may include more, fewer, or different functional components.
[0144] 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 coded pictures, 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.
[0145] 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 data as described above along with 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.
[0146] The various units shown in FIG. 7 are presented to aid in understanding the operations performed by video decoder 300. The units may be implemented as fixed-function circuits, programmable circuits, or a combination thereof. As with FIG. 6, a fixed-function circuit refers to a circuit that provides a specific function and is preset with respect 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 types of operations that the fixed-function circuit performs are generally invariant. 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 integrated circuits.
[0147]
[0146] 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.
[0148] 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.
[0149] Generally, 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 (here, the block currently being reconstructed, i.e., decoded, may be referred to as the “current block”).
[0150] 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 one or more transform mode indications. 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 to 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.
[0151] In one example, the entropy decoding unit 302 may be configured to perform one or more techniques of this disclosure, as described above. For example, the entropy decoding unit 302 may be configured to: determine a sum of absolute values of neighboring transform coefficients of a current transform coefficient; determine a shift value based on the sum of absolute values; determine a Rice parameter value for decoding a syntax element for the current transform coefficient based on the sum of absolute values and the shift value; and decode the syntax element for the current transform coefficient using the Rice parameter value.
[0152] After the inverse quantization unit 306 forms the transform coefficient blocks, the inverse transform processing unit 308 may apply one or more inverse transforms to the transform coefficient blocks to generate residual blocks 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 blocks.
[0153] Furthermore, 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 a 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. 6).
[0154] As another example, if the prediction information syntax element indicates that the current block is intra-predicted, intra prediction unit 318 may generate a predictive block according to the intra-prediction mode indicated by the prediction information syntax element. Again, intra prediction unit 318 may generally perform the intra-prediction process in a manner substantially similar to that described with respect to intra prediction unit 226 (FIG. 6). Intra prediction unit 318 may retrieve data of neighboring samples for the current block from DPB 314.
[0155]
[0154] 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.
[0156]
[0155] Filter unit 312 may perform one or more filter operations on the reconstructed blocks. For example, filter unit 312 may perform a deblocking operation to reduce blockiness artifacts along the edges of the reconstructed blocks. The operations of filter unit 312 are not necessarily performed in all instances.
[0157] The video decoder 300 may store the reconstructed block in the DPB 314. For example, in examples where the operations of the filter unit 312 are not performed, the reconstruction unit 310 may store the reconstructed block in the DPB 314. In examples where the operations of the filter unit 312 are performed, the filter unit 312 may store the filtered reconstructed block in the DPB 314. As described above, the DPB 314 may provide reference information to the prediction processing unit 304, such as samples of the current picture for intra prediction and previously decoded pictures for subsequent motion compensation. Moreover, the video decoder 300 may output the decoded picture (e.g., the decoded video) from the DPB 314 for subsequent presentation on a display device, such as the display device 118 of FIG. 1 .
[0158]
[0157] Thus, the video decoder 300 represents an example of a video decoding device that includes a memory configured to store video data and one or more processing units implemented in a circuit, the one or more processing units configured to determine a Rice parameter value for coding a current transform coefficient, and code the current transform coefficient using the determined Rice parameter value, wherein the possible range for the Rice parameter value is from 0 to greater than 3.
[0159] 8 is a flowchart illustrating an example method for encoding a current block in accordance with the techniques of this disclosure. The current block may comprise a current CU. Although described with respect to video encoder 200 (FIGS. 1 and 6), it should be understood that other devices may be configured to implement a method similar to that of FIG.
[0160] In this example, the video encoder 200 first predicts the current block (350). For example, the video encoder 200 may form a predictive block for the current block. The video encoder 200 may then calculate a residual block for the current block (352). To calculate the residual block, the video encoder 200 may calculate the difference between the original uncoded block and the predictive block for the current block. The video encoder 200 may then transform the residual block and quantize the transform coefficients of the residual block (354). The video encoder 200 may then scan the quantized transform coefficients of the residual block (356). During or following the scan, the video encoder 200 may entropy code the transform coefficients (358). For example, the video encoder 200 may code the transform coefficients using CAVLC or CABAC. The video encoder 200 may then output entropy-coded data for the block (360).
[0161] 9 is a flowchart illustrating an example method for decoding a current block of video data in accordance with the techniques of this disclosure. The current block may comprise a current CU. Although described with respect to video decoder 300 (FIGS. 1 and 7), it should be understood that other devices may be configured to implement a method similar to that of FIG.
[0162] The video decoder 300 may receive entropy-coded data for the current block, such as entropy-coded prediction information and entropy-coded data for the transform coefficients of the residual block corresponding to the current block (370). The video decoder 300 may entropy decode the entropy-coded data to determine prediction information for the current block and to reconstruct the transform coefficients of the residual block (372). The video decoder 300 may predict the current block, e.g., using the intra-prediction or inter-prediction mode indicated by the prediction information for the current block, to calculate a predictive block for the current block (374). The video decoder 300 may then inverse scan the reconstructed transform coefficients to create a block of quantized transform coefficients (376). The video decoder 300 may then dequantize the transform coefficients and apply an inverse transform to the transform coefficients to produce a residual block (378). The video decoder 300 may finally decode the current block by combining the predictive block and the residual block (380).
[0163]
[0162] Figure 10 is another flowchart illustrating an example method for encoding a current block in accordance with the techniques of this disclosure. The technique of Figure 10 may be implemented by one or more structural components of video encoder 200.
[0164] In one example of this disclosure, video encoder 200 may be configured to determine a sum of absolute values of neighboring transform coefficients of a current transform coefficient (600) and determine a shift value based on the sum of absolute values (602). Video encoder 200 may further determine a Rice parameter value for encoding a syntax element for the current transform coefficient based on the sum of absolute values and the shift value (604), and encode the syntax element for the current transform coefficient using the Rice parameter value (606).
[0165]
[0164] In one example, to determine the shift value based on the sum of absolute values, the video encoder 200 may be configured to determine a range ID from the sum of absolute values and determine a shift value from the range ID. To determine the range ID from the sum of absolute values, the video encoder 200 may be configured to compare the sum of absolute values to an array of thresholds and determine a range ID based on which two thresholds in the array of thresholds the sum of absolute values falls between. Comparing the sum of absolute values to the array of thresholds may include comparing the sum of absolute values to all thresholds in the array of thresholds in parallel. In one example, to determine the shift value from the range ID, the video encoder 200 may be configured to determine the shift value using the range ID as input to an array of scale factors.
[0166] In another example, to determine a Rice parameter value for encoding a syntax element for the current transform coefficient based on the sum of absolute values and the shift value, video encoder 200 may be configured to normalize the sum of absolute values using the shift value to generate a normalized sum of absolute values, determine an initial Rice parameter value based on the normalized sum of absolute values, and add the shift value to the initial Rice parameter value to determine the Rice parameter value. Video encoder 200 may be further configured to clip the normalized sum of absolute values. In another example, to determine the initial Rice parameter based on the normalized sum of absolute values, video encoder 200 may be configured to determine the initial Rice parameter value using the normalized sum of absolute values as input to a lookup table. Encoding the syntax element for the current transform coefficient using the Rice parameter value may include binarizing the syntax element based on the Rice parameter.
[0167]
[0166] Figure 11 is another flowchart illustrating an example method for decoding a current block in accordance with the techniques of this disclosure. The technique of Figure 11 may be implemented by one or more structural components of video decoder 300.
[0168] In one example, the video decoder 300 is configured to determine a sum of absolute values of neighboring transform coefficients of a current transform coefficient (700) and determine a shift value based on the sum of absolute values (702). The video decoder 300 may be further configured to determine a Rice parameter value for decoding a syntax element for the current transform coefficient based on the sum of absolute values and the shift value (704), and decode the syntax element for the current transform coefficient using the Rice parameter value (706).
[0169]
[0168] In one example, to determine the shift value based on the sum of absolute values, the video decoder 300 is further configured to determine a range ID from the sum of absolute values and determine a shift value from the range ID. To determine the range ID from the sum of absolute values, the video decoder 300 is further configured to compare the sum of absolute values with an array of thresholds and determine a range ID based on which two thresholds in the array of thresholds the sum of absolute values falls between. The video decoder 300 may be configured to compare the sum of absolute values with all thresholds in the array of thresholds in parallel. The video decoder 300 may also determine the shift value using the range ID as input to the array of scale factors.
[0170] In another example, to determine a Rice parameter value for decoding a syntax element for a current transform coefficient based on the sum of absolute values and the shift value, the video decoder 300 is further configured to: normalize the sum of absolute values using the shift value to generate a normalized sum of absolute values; determine an initial Rice parameter value based on the normalized sum of absolute values; and add the shift value to the initial Rice parameter value to determine the Rice parameter value. The video decoder 300 may also clip the normalized sum of absolute values. In another example, to determine the initial Rice parameter based on the normalized sum of absolute values, the video decoder 300 is further configured to determine the initial Rice parameter value using the normalized sum of absolute values as an input to a lookup table. To decode a syntax element for the current transform coefficient using the Rice parameter value, the video decoder 300 is further configured to debinarize the syntax element based on the Rice parameter.
[0171]
[0170] Other exemplary aspects of the present disclosure are described below.
[0172]
[0171] Aspect 1A - A method for coding video data, the method comprising determining a Rice parameter value for coding a current transform coefficient, and coding the current transform coefficient using the determined Rice parameter value, wherein a possible range for the Rice parameter value is from 0 to greater than 3.
[0173]
[0172] Aspect 2A - The method of aspect 1A, wherein the possible range for the Rice parameter value is from 0 to 16.
[0174]
[0173] Aspect 3A - A method as described in aspect 1A, wherein determining a Rice parameter value comprises determining a value of localSumAbs, where localSumAbs is the sum of the absolute values of adjacent transform coefficients relative to a current transform coefficient, and determining the Rice parameter value using the value of localSumAbs.
[0175]
[0174] Aspect 4A - The method of aspect 3A, further comprising scaling the value of localSumAbs.
[0176]
[0175] Aspect 5A - The method described in aspect 4A, wherein scaling the value of localSumAbs comprises determining a dynamic range id for the value of localSumAbs, wherein determining the dynamic range id includes comparing the value of localSumAbs with a predetermined array of thresholds (Tx), determining a scale factor to be used to scale the value of localSumAbs using the dynamic range id and a predetermined array of scale factors (Rx), and scaling the value of localSumAbs using the scale factor.
[0177]
[0176] Aspect 6A - The method of aspect 5A, wherein determining the Rice parameter value comprises determining the Rice parameter value using a lookup table and a scaled value of localSumAbs.
[0178]
[0177] Aspect 7A - The method of any of aspects 1A to 6A, wherein the coding comprises decoding.
[0179]
[0178] Aspect 8A - The method of any of aspects 1A to 6A, wherein coding comprises encoding.
[0180] Aspect 9A - A device for coding video data, the device comprising one or more means for performing the method described in any of aspects 1A to 8A.
[0181]
[0180] Embodiment 10A - The device of embodiment 9A, wherein the one or more means comprise one or more processors implemented in circuitry.
[0182]
[0181] Aspect 11A - A device according to any of aspects 9A and 10A, further comprising a memory for storing video data.
[0183]
[0182] Aspect 12A - The device of any of aspects 9A to 11A, further comprising a display configured to display the decoded video data.
[0184]
[0183] Aspect 13A - A device described in any of aspects 9A to 12A, wherein the device comprises one or more of a camera, a computer, a mobile device, a broadcast receiver device, or a set-top box.
[0185] Aspect 14A - A device according to any of aspects 9A to 13A, wherein the device comprises a video decoder.
[0186] Aspect 15A - A device according to any of aspects 9A to 14A, wherein the device comprises a video encoder.
[0187]
[0186] Aspect 16A - A computer-readable storage medium having stored thereon instructions that, when executed, cause one or more processors to perform a method described in any of aspects 1A to 8A.
[0188]
[0187] Aspect 1B - A method for decoding video data, the method comprising: determining a sum of absolute values of adjacent transform coefficients of a current transform coefficient; determining a shift value based on the sum of absolute values; determining a Rice parameter value for decoding a syntax element for the current transform coefficient based on the sum of absolute values and the shift value; and decoding the syntax element for the current transform coefficient using the Rice parameter value.
[0189]
[0188] Aspect 2B - The method of aspect 1B, wherein determining a shift value based on the sum of absolute values comprises determining a range id from the sum of absolute values and determining a shift value from the range id.
[0190]
[0189] Aspect 3B - A method as described in aspect 2B, wherein determining a range id from the sum of absolute values comprises comparing the sum of absolute values to an array of thresholds, and determining a range id based on which two thresholds in the array of thresholds the sum of absolute values falls between.
[0191] Aspect 4B The method of aspect 3B, wherein comparing the sum of the absolute values to the array of thresholds comprises comparing the sum of the absolute values to all thresholds in the array of thresholds in parallel.
[0192]
[0191] Aspect 5B - The method of aspect 3B, wherein determining the shift value from the range id comprises determining the shift value using the range id as input to an array of scale factors.
[0193]
[0192] Aspect 6B - A method as described in aspect 1B, wherein determining a Rice parameter value for decoding a syntax element for a current transform coefficient based on a sum of absolute values and a shift value comprises normalizing the sum of absolute values using the shift value to generate a normalized sum of absolute values, determining an initial Rice parameter value based on the normalized sum of absolute values, and adding the shift value to the initial Rice parameter value to determine the Rice parameter value.
[0194]
[0193] Aspect 7B - The method of aspect 6B, further comprising clipping the normalized sum of absolute values.
[0195]
[0194] Aspect 8B - The method described in aspect 6B, wherein determining the initial Rice parameter based on the normalized sum of absolute values comprises determining the initial Rice parameter value using the normalized sum of absolute values as input to a lookup table.
[0196]
[0195] Aspect 9B - The method of aspect 1B, wherein decoding a syntax element for the current transform coefficient using a Rice parameter value comprises de-binarizing the syntax element based on the Rice parameter.
[0197]
[0196] Aspect 10B - The method of aspect 1B, further comprising reconstructing a residual block based at least in part on the syntax element, reconstructing a picture based at least in part on the residual block, and displaying the picture.
[0198]
[0197] Aspect 11B - An apparatus configured to decode video data, the apparatus comprising: a memory configured to store the video data; and one or more processors implemented in a circuit and in communication with the memory, wherein the one or more processors are configured to: determine a sum of absolute values of adjacent transform coefficients of a current transform coefficient; determine a shift value based on the sum of absolute values; determine a Rice parameter value for decoding a syntax element for the current transform coefficient based on the sum of absolute values and the shift value; and decode the syntax element for the current transform coefficient using the Rice parameter value.
[0199]
[0198] Aspect 12B - The apparatus described in aspect 11B, wherein one or more processors are further configured to determine a range ID from the sum of the absolute values and to determine a shift value from the range ID, in order to determine a shift value based on the sum of the absolute values.
[0200]
[0199] Aspect 13B - The apparatus described in aspect 12B, wherein to determine a range id from the sum of absolute values, the one or more processors are further configured to compare the sum of absolute values with an array of thresholds, and determine a range id based on which two thresholds in the array of thresholds the sum of absolute values falls between.
[0201]
[0200] Aspect 14B - The apparatus described in aspect 13B, further configured such that, to compare the sum of the absolute values with the array of thresholds, one or more processors compare the sum of the absolute values with all thresholds in the array of thresholds in parallel.
[0202]
[0201] Aspect 15B - The apparatus described in aspect 13B, wherein to determine a shift value from the range id, one or more processors are further configured to determine the shift value using the range id as input to an array of scale factors.
[0203]
[0202] Aspect 16B - The apparatus described in aspect 11B, wherein, to determine a Rice parameter value for decoding a syntax element for a current transform coefficient based on the sum of absolute values and the shift value, one or more processors are further configured to: normalize the sum of absolute values using the shift value to generate a normalized sum of absolute values, determine an initial Rice parameter value based on the normalized sum of absolute values, and add the shift value to the initial Rice parameter value to determine the Rice parameter value.
[0204]
[0203] Aspect 17B - The apparatus of aspect 16B, wherein the one or more processors are further configured to clip the normalized sum of the absolute values.
[0205]
[0204] Aspect 18B - The apparatus described in aspect 16B, wherein one or more processors are further configured to determine the initial Rice parameter value using the normalized sum of the absolute values as input to a lookup table to determine the initial Rice parameter based on the normalized sum of the absolute values.
[0206]
[0205] Aspect 19B - An apparatus described in aspect 11B, wherein one or more processors are further configured to de-binarize the syntax element based on the Rice parameter to decode the syntax element for the current transform coefficient using the Rice parameter value.
[0207]
[0206] Aspect 20B - The apparatus described in aspect 11B, wherein one or more processors are further configured to reconstruct a residual block based at least in part on the syntax element, reconstruct a picture based at least in part on the residual block, and display the picture.
[0208]
[0207] Aspect 21B - An apparatus configured to decode video data, the apparatus comprising: means for determining a sum of absolute values of adjacent transform coefficients of a current transform coefficient; means for determining a shift value based on the sum of absolute values; means for determining a Rice parameter value for decoding a syntax element for the current transform coefficient based on the sum of absolute values and the shift value; and means for decoding the syntax element for the current transform coefficient using the Rice parameter value.
[0209]
[0208] Aspect 22B - A non-transitory computer-readable storage medium storing instructions that, when executed, cause one or more processors configured to decode video data to determine a sum of absolute values of adjacent transform coefficients of a current transform coefficient, determine a shift value based on the sum of absolute values, determine a Rice parameter value for decoding a syntax element for the current transform coefficient based on the sum of absolute values and the shift value, and decode the syntax element for the current transform coefficient using the Rice parameter value.
[0210]
[0209] Aspect 23B - A method for encoding video data, the method comprising: determining a sum of absolute values of adjacent transform coefficients of a current transform coefficient; determining a shift value based on the sum of absolute values; determining a Rice parameter value for encoding a syntax element for the current transform coefficient based on the sum of absolute values and the shift value; and encoding the syntax element for the current transform coefficient using the Rice parameter value.
[0211]
[0210] Aspect 24B - The method of aspect 23B, wherein determining a shift value based on the sum of absolute values comprises determining a range id from the sum of absolute values and determining a shift value from the range id.
[0212]
[0211] Aspect 25B - A method as described in aspect 24B, wherein determining a range id from the sum of absolute values comprises comparing the sum of absolute values to an array of thresholds, and determining a range id based on which two thresholds in the array of thresholds the sum of absolute values falls between.
[0213]
[0212] Aspect 26B - The method of aspect 25B, wherein comparing the sum of the absolute values to the array of thresholds comprises comparing, in parallel, the sum of the absolute values to all thresholds in the array of thresholds.
[0214]
[0213] Aspect 27B - The method of aspect 25B, wherein determining the shift value from the range id comprises determining the shift value using the range id as input to an array of scale factors.
[0215]
[0214] Aspect 28B - A method as described in aspect 23B, wherein determining a Rice parameter value for encoding a syntax element for a current transform coefficient based on a sum of absolute values and a shift value comprises normalizing the sum of absolute values using the shift value to generate a normalized sum of absolute values, determining an initial Rice parameter value based on the normalized sum of absolute values, and adding the shift value to the initial Rice parameter value to determine the Rice parameter value.
[0216]
[0215] Aspect 29B - The method of aspect 28B, further comprising clipping the normalized sum of absolute values.
[0217]
[0216] Aspect 30B - The method described in aspect 28B, wherein determining the initial Rice parameter based on the normalized sum of absolute values comprises determining the initial Rice parameter value using the normalized sum of absolute values as input to a lookup table.
[0218]
[0217] Aspect 31B - The method of aspect 23B, wherein encoding a syntax element for the current transform coefficient using a Rice parameter value comprises binarizing the syntax element based on the Rice parameter.
[0219]
[0218] Aspect 32B - The method described in aspect 23B, further comprising capturing a picture of video data, generating a residual block from the picture of video data, and transforming the residual block to generate a transform block including current transform coefficients.
[0220]
[0219] Aspect 1C - A method for decoding video data, the method comprising: determining a sum of absolute values of adjacent transform coefficients of a current transform coefficient; determining a shift value based on the sum of absolute values; determining a Rice parameter value for decoding a syntax element for the current transform coefficient based on the sum of absolute values and the shift value; and decoding the syntax element for the current transform coefficient using the Rice parameter value.
[0221]
[0220] Aspect 2C - The method of aspect 1C, wherein determining a shift value based on the sum of absolute values comprises determining a range id from the sum of absolute values and determining a shift value from the range id.
[0222]
[0221] Aspect 3C - A method as described in aspect 2C, wherein determining a range id from the sum of absolute values comprises comparing the sum of absolute values to an array of thresholds, and determining a range id based on which two thresholds in the array of thresholds the sum of absolute values falls between.
[0223] Aspect 4C The method of aspect 3C, wherein comparing the sum of the absolute values to the array of thresholds comprises comparing the sum of the absolute values to all thresholds in the array of thresholds in parallel.
[0224]
[0223] Aspect 5C The method of aspect 3C, wherein determining the shift value from the range id comprises determining the shift value using the range id as input to an array of scale factors.
[0225]
[0224] Aspect 6C - A method described in any of aspects 1C to 5C, wherein determining a Rice parameter value for decoding a syntax element for a current transform coefficient based on a sum of absolute values and a shift value comprises normalizing the sum of absolute values using the shift value to generate a normalized sum of absolute values, determining an initial Rice parameter value based on the normalized sum of absolute values, and adding the shift value to the initial Rice parameter value to determine the Rice parameter value.
[0226]
[0225] Aspect 7C The method of aspect 6C, further comprising clipping the normalized sum of absolute values.
[0227]
[0226] Aspect 8C - The method described in aspect 6C, wherein determining the initial Rice parameter based on the normalized sum of absolute values comprises determining the initial Rice parameter value using the normalized sum of absolute values as input to a lookup table.
[0228]
[0227] Aspect 9C - A method according to any of aspects 1C to 8C, wherein decoding a syntax element for a current transform coefficient using a Rice parameter value comprises de-binarizing the syntax element based on the Rice parameter.
[0229]
[0228] Aspect 10C - A method according to any of aspects 1C to 9C, further comprising reconstructing a residual block based at least in part on the syntax element, reconstructing a picture based at least in part on the residual block, and displaying the picture.
[0230]
[0229] In accordance with the above examples, it should be recognized that some acts or events of any of the techniques described herein may be performed in a different sequence, added, merged, or entirely excluded (e.g., not all described acts or events may be required to practice the techniques). Moreover, in some examples, acts or events may be performed simultaneously rather than sequentially, for example, through multithreaded processing, interrupt processing, or multiple processors.
[0231] 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. Computer-readable media may include computer-readable storage media, which correspond to tangible media such as data storage media, or communication media, including any medium that facilitates transfer of a computer program from one place to another, for example, according to a communications protocol. In this manner, computer-readable media may generally correspond to (1) tangible computer-readable storage media that are non-transitory, or (2) communication media such as a signal or carrier wave. Data storage media 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 implementing the techniques described in this disclosure. A computer program product may include a computer-readable medium.
[0232]
[0231] 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 can be used to store desired program code in the form of instructions or data structures and that can be accessed by a computer. Also, any connection is properly termed 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 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 discs (CDs), laser discs, optical discs, digital versatile discs (DVDs), floppy disks, and Blu-ray discs, where disks typically reproduce data magnetically and discs reproduce data optically with a laser. Combinations of the above should also be included within the scope of computer-readable media.
[0233]
[0232] The instructions may be executed by one or more processors, such as one or more DSPs, general-purpose microprocessors, ASICs, FPGAs, or other equivalent integrated circuits or discrete logic circuits. Accordingly, the terms "processor" and "processing circuitry" as used herein may refer to any of the above structures or any other structure suitable for implementing the techniques described herein. Furthermore, in some aspects, the functionality described herein may be provided in dedicated hardware and / or software modules configured for encoding and decoding, or incorporated into a combined codec. Also, the techniques may be fully implemented in one or more circuits or logic elements.
[0234] The techniques of this 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, those components, modules, or units do not necessarily require realization by different hardware units. Rather, 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.
[0235]
[0234] Various examples have been described. These and other examples are within the scope of the following claims. The inventions described in the claims of the present application as originally filed are set forth below. [C1] 1. A method for decoding video data, said method comprising: determining a sum of absolute values of adjacent transform coefficients of a current transform coefficient; determining a shift value based on said sum of absolute values; determining a Rice parameter value for decoding a syntax element for the current transform coefficient based on the sum of absolute values and the shift value; decoding the syntax element for the current transform coefficient using the Rice parameter value; and A method comprising: [C2] determining the shift value based on the sum of absolute values; determining a range id from said sum of absolute values; determining the shift value from the range id; The method of claim C1, comprising: [C3] determining the range id from the sum of absolute values comparing said sum of absolute values to an array of thresholds; determining said range id based on which two thresholds in said array of thresholds said sum of absolute values falls between; The method of C2, comprising: [C4] comparing said sum of absolute values to said array of thresholds; The method of C3, comprising comparing, in parallel, the sum of absolute values to all thresholds in the array of thresholds. [C5] determining the shift value from the range id, determining said shift values using said range ids as input to an array of scale factors; The method of C3, comprising: [C6] determining the Rice parameter value for decoding the syntax element for the current transform coefficient based on the sum of absolute values and the shift value; normalizing the sum of absolute values using the shift value to generate a normalized sum of absolute values; determining an initial Rice parameter value based on the normalized sum of absolute values; and adding the shift value to the initial Rice parameter value to determine the Rice parameter value. The method of claim C1, comprising: [C7] clipping said normalized sum of absolute values The method of C6, further comprising: [C8] determining the initial Rice parameter value based on the normalized sum of absolute values; and determining the initial Rice parameter value using the normalized sum of absolute values as an input to a lookup table. The method of C6, comprising: [C9] decoding the syntax element for the current transform coefficient using the Rice parameter value; de-binarizing the syntax elements based on the Rice parameters; The method of claim C1, comprising: [C10] reconstructing a residual block based at least in part on the syntax elements; and reconstructing a picture based at least in part on the residual blocks; and displaying said picture; The method of C1, further comprising: [C11] 1. An apparatus configured to decode video data, said apparatus comprising: a memory configured to store video data; one or more processors implemented in circuitry and in communication with said memory; wherein the one or more processors: determining a sum of absolute values of adjacent transform coefficients of a current transform coefficient; determining a shift value based on said sum of absolute values; determining a Rice parameter value for decoding a syntax element for the current transform coefficient based on the sum of absolute values and the shift value; decoding the syntax element for the current transform coefficient using the Rice parameter value; and An apparatus configured to: [C12] To determine the shift value based on the sum of absolute values, the one or more processors: determining a range id from said sum of absolute values; determining the shift value from the range id; The apparatus of C11, further configured to: [C13] To determine the range id from the sum of absolute values, the one or more processors: comparing said sum of absolute values to an array of thresholds; determining said range id based on which two thresholds in said array of thresholds said sum of absolute values falls between; The apparatus of C12, further configured to: [C14] to compare the sum of absolute values to the array of thresholds, the one or more processors: The apparatus of C13, further configured to compare, in parallel, the sum of absolute values to all thresholds in the array of thresholds. [C15] To determine the shift value from the range id, the one or more processors: determining said shift values using said range ids as input to an array of scale factors; The apparatus of C13, further configured to: [C16] the one or more processors to determine the Rice parameter value for decoding the syntax element for the current transform coefficient based on the sum of absolute values and the shift value; normalizing the sum of absolute values using the shift value to generate a normalized sum of absolute values; determining an initial Rice parameter value based on the normalized sum of absolute values; and adding the shift value to the initial Rice parameter value to determine the Rice parameter value. The apparatus of C11, further configured to: [C17] the one or more processors: clipping said normalized sum of absolute values The apparatus of C16, further configured to: [C18] to determine the initial Rice parameters based on the normalized sum of absolute values, the one or more processors: determining the initial Rice parameter value using the normalized sum of absolute values as an input to a lookup table; The apparatus of C16, further configured to: [C19] to decode the syntax element for the current transform coefficient using the Rice parameter value, the one or more processors: de-binarizing the syntax elements based on the Rice parameters; The apparatus of C11, further configured to: [C20] the one or more processors: reconstructing a residual block based at least in part on the syntax elements; and reconstructing a picture based at least in part on the residual blocks; and displaying said picture; The apparatus of C11, further configured to: [C21] 1. An apparatus configured to decode video data, said apparatus comprising: means for determining the sum of the absolute values of adjacent transform coefficients of a current transform coefficient; means for determining a shift value based on said sum of absolute values; means for determining a Rice parameter value for decoding a syntax element for the current transform coefficient based on the sum of absolute values and the shift value; means for decoding the syntax element for the current transform coefficient using the Rice parameter value; An apparatus comprising: [C22] A non-transitory computer-readable storage medium storing instructions that, when executed, cause one or more processors configured to decode video data: determining a sum of absolute values of adjacent transform coefficients of a current transform coefficient; determining a shift value based on said sum of absolute values; determining a Rice parameter value for decoding a syntax element for the current transform coefficient based on the sum of absolute values and the shift value; decoding the syntax element for the current transform coefficient using the Rice parameter value; and A non-transitory computer-readable storage medium that causes [C23] 1. A method for encoding video data, said method comprising: determining a sum of absolute values of adjacent transform coefficients of a current transform coefficient; determining a shift value based on said sum of absolute values; determining a Rice parameter value for encoding a syntax element for the current transform coefficient based on the sum of absolute values and the shift value; encoding the syntax element for the current transform coefficient using the Rice parameter value; and A method comprising: [C24] determining the shift value based on the sum of absolute values; determining a range id from said sum of absolute values; determining the shift value from the range id; The method of C23, comprising: [C25] determining the range id from the sum of absolute values comparing said sum of absolute values to an array of thresholds; determining said range id based on which two thresholds in said array of thresholds said sum of absolute values falls between; The method of claim C24, comprising: [C26] comparing said sum of absolute values to said array of thresholds; The method of C25, comprising comparing, in parallel, the sum of absolute values to all thresholds of the array of thresholds. [C27] determining the shift value from the range id, determining said shift values using said range ids as input to an array of scale factors; The method of C25, comprising: [C28] determining the Rice parameter value for encoding the syntax element for the current transform coefficient based on the sum of absolute values and the shift value; normalizing the sum of absolute values using the shift value to generate a normalized sum of absolute values; determining an initial Rice parameter value based on the normalized sum of absolute values; and adding the shift value to the initial Rice parameter value to determine the Rice parameter value. The method of C23, comprising: [C29] clipping said normalized sum of absolute values The method of C28, further comprising: [C30] determining the initial Rice parameter value based on the normalized sum of absolute values; and determining the initial Rice parameter value using the normalized sum of absolute values as an input to a lookup table. The method of C28, comprising: [C31] encoding the syntax element for the current transform coefficient using the Rice parameter value; binarizing the syntax elements based on the Rice parameters; The method of C23, comprising: [C32] capturing a picture of the video data; generating a residual block from the picture of video data; transforming the residual block to generate a transform block including the current transform coefficients; The method of C23, further comprising: < / add> < / add>
Claims
1. 1. A method for decoding video data, said method comprising: determining a sum of absolute values of adjacent transform coefficients of a current transform coefficient; determining a shift value based on the sum of absolute values; and wherein determining the shift value based on the sum of absolute values determining a range id from said sum of absolute values; determining the shift value from the range id; Equipped with determining a Rice parameter value for decoding a syntax element for the current transform coefficient based on the sum of absolute values and the shift value; decoding the syntax element for the current transform coefficient using the Rice parameter value; and A method comprising:
2. Determining the range id from the sum of absolute values comprises: comparing said sum of absolute values to an array of thresholds; determining said range id based on which two thresholds in said array of thresholds said sum of absolute values falls between; The method of claim 1 , comprising:
3. comparing said sum of absolute values to said array of thresholds; 3. The method of claim 2, comprising comparing, in parallel, said sum of absolute values to all thresholds of said array of thresholds.
4. determining the shift value from the range id; determining said shift value using said range id as an input to an array of scale factors; The method of claim 2 comprising:
5. determining the Rice parameter value for decoding the syntax element for the current transform coefficient based on the sum of absolute values and the shift value; normalizing the sum of absolute values using the shift value to generate a normalized sum of absolute values; determining initial Rice parameter values based on said normalized sum of absolute values; adding the shift value to the initial Rice parameter value to determine the Rice parameter value; The method of claim 1 , comprising:
6. clipping said normalized sum of absolute values The method of claim 5 further comprising:
7. determining the initial Rice parameters based on the normalized sum of absolute values; determining the initial Rice parameter value using the normalized sum of absolute values as an input to a lookup table; The method of claim 5 , comprising:
8. decoding the syntax element for the current transform coefficient using the Rice parameter value; de-binarizing the syntax elements based on the Rice parameters; The method of claim 1 , comprising:
9. reconstructing a residual block based at least in part on the syntax elements; and reconstructing a picture based at least in part on the residual blocks; and displaying said picture; The method of claim 1 further comprising:
10. 1. An apparatus configured to decode video data, said apparatus comprising: a memory configured to store video data; one or more processors implemented in circuitry and in communication with said memory; wherein the one or more processors: determining a sum of absolute values of adjacent transform coefficients of a current transform coefficient; determining a shift value based on the sum of absolute values, wherein to determine the shift value based on the sum of absolute values, the one or more processors: determining a range id from said sum of absolute values; determining the shift value from the range id; further configured to: determining a Rice parameter value for decoding a syntax element for the current transform coefficient based on the sum of absolute values and the shift value; decoding the syntax element for the current transform coefficient using the Rice parameter value; and An apparatus configured to:
11. The apparatus of claim 10, further configured to perform a method according to any one of claims 2 to 9.
12. 10. A non-transitory computer-readable storage medium storing instructions that, when executed, cause one or more processors configured to decode video data to perform the method of any one of claims 1 to 9.
13. 1. A method for encoding video data, said method comprising: determining a sum of absolute values of adjacent transform coefficients of a current transform coefficient; determining a shift value based on the sum of absolute values; and wherein determining the shift value based on the sum of absolute values determining a range id from said sum of absolute values; determining the shift value from the range id; Equipped with determining a Rice parameter value for encoding a syntax element for the current transform coefficient based on the sum of absolute values and the shift value; encoding the syntax element for the current transform coefficient using the Rice parameter value; and A method comprising:
14. An apparatus configured to encode video data, said apparatus comprising: a memory configured to store video data; one or more processors implemented in circuitry and in communication with said memory; wherein the one or more processors: determining a sum of absolute values of adjacent transform coefficients of a current transform coefficient; determining a shift value based on the sum of absolute values, wherein to determine the shift value based on the sum of absolute values, the one or more processors: determining a range id from said sum of absolute values; determining the shift value from the range id; further configured to: determining a Rice parameter value for decoding a syntax element for the current transform coefficient based on the sum of absolute values and the shift value; decoding the syntax element for the current transform coefficient using the Rice parameter value; and An apparatus configured to:
15. A non-transitory computer-readable storage medium storing instructions that, when executed, cause one or more processors configured to encode video data to perform the method of claim 13.
Citation Information
Patent Citations
Image decoding device and image encoding device
JP2022188825A
Methods and Apparatus for Simplification of Coding Residual Blocks
US20210037261A1
Encoding device, decoding device, encoding method, and decoding method
WO2020067167A1