Rice Parameter Derivation for High Bit Depth Video Coding
Patent Information
- Application Number
- JP2023553325
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2022-03-08
- Filing Date
- 2022-03-09
- Publication Date
- 2025-02-19
- Estimated Expiration
- 2042-03-09
AI Technical Summary
Existing video coding techniques, such as those in VVC, face inefficiencies in coding large transform coefficients due to limitations in the range of Rician parameter values, leading to increased codeword lengths and reduced coding efficiency for high-bit depth video data.
The proposed method extends the range of Rician parameter values beyond the conventional limits of 0 to 3, allowing for more efficient binarization by determining a shift value based on the sum of absolute values of adjacent transform coefficients and using a lookup table to derive optimal Rician parameters for syntax elements.
This approach reduces the number of bits required for large transform coefficients, improving coding efficiency and compression performance in video coding processes with bit depths greater than 10 bits.
Smart Images

Figure 00000000_0000_ABST
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] This disclosure relates to video encoding and decoding. [Background technology]
[0003] Digital video capabilities may be incorporated into a wide range of devices, including digital televisions, digital direct broadcast systems, wireless broadcast systems, personal digital assistants (PDAs), laptop or desktop computers, tablet computers, e-book readers, digital cameras, digital recording devices, digital media players, video gaming devices, video game consoles, cellular or satellite radio telephones, so-called "smartphones," video teleconferencing devices, video streaming devices, and the like. Digital video devices implement video coding techniques, such as those described in standards defined by MPEG-2, MPEG-4, ITU-T H.263, ITU-T H.264 / MPEG-4, Part 10, Advanced Video Coding (AVC), ITU-T H.265 / High Efficiency Video Coding (HEVC), and extensions to such standards. By implementing such video coding techniques, video devices may more efficiently transmit, receive, encode, decode, and / or store digital video information.
[0004]
[0004] Video coding techniques include spatial (intra-picture) prediction and / or temporal (inter-picture) prediction to reduce or remove redundancy inherent in video sequences. In block-based video coding, a video slice (e.g., a video picture or a portion of a video picture) may be partitioned into video blocks, which may also be referred to as coding tree units (CTUs), coding units (CUs) and / or coding nodes. Video blocks in an intra-coded (I) slice of a picture are encoded using spatial prediction with respect to reference samples in neighboring blocks in the same picture. Video blocks in an inter-coded (P or B) slice of a picture may use spatial prediction with respect to reference samples in neighboring blocks in the same picture or temporal prediction with respect to reference samples in other reference pictures. A picture may be referred to as a frame, and a reference picture may be referred to as a reference frame. Summary of the Invention
[0005]
[0005] In general, this disclosure describes techniques for adaptively deriving a Rice parameter for regular residual coding (RRC) of syntax elements related to transform coefficients in high bit-depth coding. In particular, this disclosure describes techniques for extending 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]
[0006] In high-bit depth video coding, the values of some transform coefficients may become quite large, thus resulting in syntax elements with larger codewords. In general, large codewords reduce coding efficiency. The size of such codewords may be reduced in some situations by determining a larger Rice parameter value. 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 may then be used to extend the possible values of the Rice parameter. Thus, smaller codeword values for some syntax elements may be achieved, thus improving coding efficiency. The techniques of this disclosure may 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, the one or more processors 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 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.
[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]
[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 description of the drawings]
[0013] [Figure 1]
[0013] A block diagram illustrating an example video encoding and decoding system in which the techniques of this disclosure may be implemented. [Diagram 2]
[0014] FIG. 1 is a conceptual diagram illustrating an example of adjacent coefficients used to derive Rice parameters. [Diagram 3]
[0015] FIG. 2 shows an example of a lookup table used to derive Rice parameters. [Figure 4]
[0016] FIG. 4 illustrates an example histogram of coded coefficients. [Diagram 5]
[0017] 13A-13C are diagrams illustrating example 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] 1 is a flowchart illustrating an example method for encoding a current block in accordance with techniques of this disclosure. [Figure 9]
[0021] 6 is a flowchart illustrating an example method for decoding a current block in accordance with techniques of this disclosure. [Figure 10]
[0022] 6 is another flowchart illustrating an example method for encoding a current block in accordance with techniques of this disclosure. [Figure 11]
[0023] 6 is another flowchart illustrating an example method for decoding a current block in accordance with techniques of this disclosure. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[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 a number of 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. Exemplary 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, a remainder syntax element and / or an absolute value syntax element may be binarized according to a truncated Rice binarization process. The truncated Rice binarization process is performed based on Rice parameters. The video decoder may be configured to determine the Rice parameters to perform an inverse binarization process for determining values of such syntax elements. In some examples, the video decoder may be configured to derive the 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 the 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 an input to a lookup table.
[0017]
[0027] In VVC, the Rice parameter has been tested for encoding and decoding video sources with a bit depth of 8 bits or a bit depth of 10 bits. In the VVC design, the Rice parameter value depends on the value of locSumAbs and is limited to be in 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 values, 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 limit of the Rice parameter value to be from 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 of video coding designs, particularly video coding designs that use bit depths greater than 10 bits. With the proposed techniques of this disclosure, the supported range of Rice parameters may be extended from 0-3 in VVC to a larger number, e.g., 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 the techniques of this disclosure. The techniques of this disclosure are generally directed to coding (encoding and / or decoding) video data. Generally, video data includes any data for processing video. Thus, video data may include raw uncoded video, coded video, decoded (e.g., reconstructed) video, and video metadata, such as signaling data.
[0020]
[0030] 1, system 100 includes a source device 102 that provides encoded video data to be decoded and displayed by a destination device 116, in this example. In particular, source device 102 provides the video data to destination device 116 via a computer-readable medium 110. Source device 102 and destination device 116 may comprise any of a wide range of devices, including desktop computers, notebook (i.e., laptop) computers, 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, and the like. In some cases, source device 102 and destination device 116 may be equipped for wireless communication and thus may be referred to as wireless communication devices.
[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, the video encoder 200 of source device 102 and the 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 only an example. In general, any digital video encoding and / or decoding device may implement the techniques for Rice parameter derivation. The source device 102 and the destination device 116 are only examples of coding devices, such that the source device 102 generates coded video data for transmission to the destination device 116. This disclosure refers to a "coding" device as a device that performs coding (encoding and / or decoding) of data. Thus, the video encoder 200 and the video decoder 300 represent examples of coding devices, in particular video encoders and video decoders, respectively. In some examples, the source device 102 and the destination device 116 may operate substantially symmetrically, such that each of the source device 102 and the destination device 116 includes video encoding and video decoding components. Thus, the system 100 may support one-way or two-way video transmission between the source device 102 and the destination device 116, for example, video streaming, video playback, video broadcasting, or video telephony.
[0023]
[0033] Generally, the 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 the video encoder 200, which encodes the data for the pictures. The video source 104 of the source device 102 may include a video capture device, such as a video camera, a video archive containing previously captured raw video, and / or a video feed interface for receiving video from a video content provider. As a further alternative, the video source 104 may generate computer graphics-based data as the source video, or a combination of live, archived, and computer-generated video. In each case, the video encoder 200 encodes the captured, pre-captured, or computer-generated video data. The video encoder 200 may reorder the pictures from a receiving order (sometimes called a “display order”) into a coding order for coding. The video encoder 200 may generate a bitstream including the encoded video data. The source device 102 may then output the encoded video data onto a computer-readable medium 110 via an output interface 108, for receipt and / or retrieval by, for example, an input interface 122 of a destination device 116.
[0024]
[0034] The memory 106 of the source device 102 and the memory 120 of the destination device 116 represent general-purpose memories. In some examples, the memories 106, 120 may store raw video data, e.g., raw video from the video source 104 and raw decoded video data from the video decoder 300. Additionally or alternatively, the memories 106, 120 may store software instructions executable by, e.g., the video encoder 200 and the video decoder 300, respectively. Although the memories 106 and 120 are shown in this example as separate from the video encoder 200 and the video decoder 300, it should be understood that the video encoder 200 and the video decoder 300 may also include internal memories for functionally similar or equivalent purposes. Additionally, the memories 106, 120 may store encoded video data, e.g., the output from the video encoder 200 and the input to the video decoder 300. In some examples, portions of the memory 106, 120 may be allocated as one or more video buffers, for example, to store raw decoded and / or encoded video data.
[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 according to a communication standard such as a wireless communication protocol. The communication medium may comprise any wireless or wired communication medium, such as a radio frequency (RF) spectrum or one or more physical transmission lines. The communication medium may form part of a packet-based network, such as a local area network, a wide area network, or a global network such as the Internet. The communication medium may include routers, switches, base stations, or any other equipment that may be useful 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 a file server 114 or another intermediate storage device, which may store the encoded video data generated by source device 102. Destination device 116 may access the stored video data from file server 114 via streaming or download.
[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 a file transfer protocol service (such as File Transfer Protocol (FTP) or File Delivery over Unidirectional Transport (FLUTE) protocol), a content delivery network (CDN) device, a Hypertext Transfer Protocol (HTTP) server, a Multimedia Broadcast Multicast Service (MBMS) or enhanced MBMS (eMBMS) server, and / or a network attached storage (NAS) device. The file server 114 may additionally or alternatively implement one or more HTTP streaming protocols, such as Dynamic Adaptive Streaming over HTTP (DASH), HTTP Live Streaming (HLS), Real Time Streaming Protocol (RTSP), HTTP Dynamic Streaming, etc.
[0029]
[0039] The destination device 116 may access the encoded video data from the 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 the file server 114. The 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 the file server 114, or other such protocols for retrieving media data.
[0030]
[0040] The output interface 108 and the input interface 122 may represent a wireless transmitter / receiver, a modem, a wired networking component (e.g., an Ethernet card), a wireless communication component operating according to any of the various IEEE 802.11 standards, or other physical components. In examples in which the output interface 108 and the input interface 122 comprise wireless components, the output interface 108 and the input interface 122 may be configured to transfer data, such as encoded video data, according to a cellular communication standard, such as 4G, 4G-LTE (Long Term Evolution), LTE Advanced, 5G, etc. In some examples in which the output interface 108 comprises a wireless transmitter, the output interface 108 and the input interface 122 may be configured to transfer data, such as encoded video data, according to other wireless standards, such as the IEEE 802.11 specification, the IEEE 802.15 specification (e.g., ZigBee), the Bluetooth standard, etc. In some examples, the source device 102 and / or the destination device 116 may include respective system-on-chip (SoC) devices. For example, the source device 102 may include a SoC device for performing functions attributable to the video encoder 200 and / or the output interface 108, and the destination device 116 may include a SoC device for performing functions attributable to the video decoder 300 and / or the input interface 122.
[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, the storage device 112, the 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, the video encoder 200 and the video decoder 300 may each be integrated with an audio encoder and / or an audio decoder and may include appropriate MUX-DEMUX units, or other hardware and / or software, to handle multiplexed streams that include both audio and video in a common data stream. Where applicable, the MUX-DEMUX units 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, the 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. The device including the video encoder 200 and / or the video decoder 300 may comprise an integrated circuit, a microprocessor, and / or a wireless communication device such as a cellular phone.
[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 that includes data to be processed (e.g., encoded, decoded, or otherwise used in an encoding and / or decoding process). For example, a block may include a two-dimensional matrix of samples of luminance and / or chrominance data. Generally, the video encoder 200 and the video decoder 300 may code video data represented in a YUV (e.g., Y, Cb, Cr) format. That is, rather than coding red, green, and blue (RGB) data for a sample of a picture, the video encoder 200 and the video decoder 300 may code a luminance component and a chrominance component, where the chrominance component may include both red and blue hues of chrominance components. In some examples, the video encoder 200 converts received RGB format data to a YUV representation prior to encoding, and the video decoder 300 converts the YUV representation to the 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 processes of encoding or decoding data for a picture. Similarly, this disclosure may refer to coding a block of a picture to include processes 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 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 children may be called a "leaf node", and a CU of such a leaf node may include one or more PUs and / or one or more TUs. The video coder may further partition PUs and TUs. For example, in HEVC, a residual quadtree (RQT) represents the partition of TUs. In HEVC, a PU represents inter-predicted data, 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, the video encoder 200 and the video decoder 300 may be configured to operate according to VVC. According to VVC, a video coder (such as the video encoder 200) partitions a picture into multiple coding tree units (CTUs). The video encoder 200 may partition the CTUs according to a tree structure, such as a quad-tree binary tree (QTBT) structure or a multi-type tree (MTT) structure. The QTBT structure eliminates the concept of multiple partition types, such as the separation between CUs, PUs, and TUs in HEVC. The QTBT structure includes two levels, a first level partitioned according to a quad-tree partition and a second level partitioned according to a binary tree partition. The root node of the QTBT structure corresponds to a CTU. The leaf nodes of the binary tree correspond to coding units (CUs).
[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. A triple tree or ternary tree partitioning is a partitioning in which a block is split into three sub-blocks. In some examples, a triple tree or ternary tree partitioning splits 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) may be symmetric or asymmetric.
[0041]
[0051] In some examples, video encoder 200 and video decoder 300 may use a single QTBT or MTT structure to represent each of the luminance and chrominance components, and in other examples, video encoder 200 and 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 in accordance with HEVC. For purposes of explanation, 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, the 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. The components are arrays or single samples from one of the three arrays (luma and two chromas) that configure the picture in 4:2:0, 4:2:2, or 4:4:4 color format, or an array or single sample of an array that configures the picture in monochrome format. In some examples, the 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 in a particular tile in a picture. A tile may be a rectangular region of a CTU in 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 include one or more CTU rows within the tile. A tile that is not partitioned into multiple bricks may also be referred to as a brick. However, a brick that is a true subset of a tile may not be referred to as a tile.
[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 "NxN" and "N by N", e.g., 16x16 samples or 16 by 16 samples, interchangeably to refer to sample dimensions of a block (such as a CU or other video block) in terms of vertical and horizontal dimensions. Generally, a 16x16 CU has 16 samples in the vertical direction (y=16) and 16 samples in the horizontal direction (x=16). Similarly, an NxN CU generally has N samples in the vertical direction and N samples in the horizontal direction, where N represents a non-negative integer value. Samples in a CU may be arranged in rows and columns. 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 NxM samples, where M is not necessarily equal to N.
[0048]
[0058] The video encoder 200 encodes video data for a CU that represents prediction and / or residual information, as well as other information. The prediction information indicates how the CU should be predicted to form a predictive block for the CU. The residual information generally represents sample-by-sample differences between 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 a motion search to identify a reference block that closely matches the CU, for example, with respect to the difference between the CU and the reference block. The video encoder 200 may calculate a difference metric using a sum of absolute differences (SAD), sum of squared differences (SSD), mean absolute difference (MAD), mean squared difference (MSD), or other such difference calculation to determine whether the reference block closely matches the current CU. In some examples, the video encoder 200 may predict the current CU using unidirectional or bidirectional prediction.
[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, the 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. In general, the video encoder 200 selects an intra prediction mode that describes neighboring samples relative to a current block (e.g., a block of a CU) from which samples of the current block should be predicted. Such samples may generally be above, to the left of, or to the left of the current block in the same picture as the current block, assuming that the video encoder 200 codes the CTUs and CUs in raster scan order (left to right, top to bottom).
[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- 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. Additionally, the video encoder 200 may apply a secondary transform, such as a mode-dependent non-separable secondary transform (MDNSST), a signal-dependent transform, a Karhunen-Loeve transform (KLT), etc., following the first transform. The video encoder 200 produces transform coefficients following application of the one or more transforms.
[0054]
[0064] As mentioned 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, providing further compression. By performing a quantization process, the video encoder 200 may reduce the bit depth associated with some or all of the transform coefficients. For example, the video encoder 200 may 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 produce 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 rear of the vector. In some examples, the video encoder 200 may utilize a predefined scan order to scan the quantized transform coefficients to produce a serialized vector, and then entropy code the quantized transform coefficients of the vector. In other examples, the video encoder 200 may perform an adaptive scan. 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 that describe metadata associated with the encoded video data for use by the video decoder 300 in decoding the video data.
[0056]
[0066] To implement CABAC, the video encoder 200 may assign a context in a context model to a symbol to be transmitted. The context may relate, for example, to whether neighboring values of the symbol are zero-valued or not. The probability determination may be based on the context assigned to the symbol.
[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, block header, slice header, or other syntax data, such as a sequence parameter set (SPS), a picture parameter set (PPS), or a video parameter set (VPS). Video decoder 300 may similarly decode such syntax data to determine how to decode corresponding video data.
[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 predictive and / or residual information for the blocks. Finally, video decoder 300 may receive the bitstream and decode the encoded video data.
[0059]
[0069] In general, the video decoder 300 performs an inverse process of that performed by the video encoder 200 to decode the encoded video data of the bitstream. For example, the video decoder 300 may decode values for syntax elements of the bitstream using CABAC in a manner that is inverse to, but substantially similar to, the CABAC encoding process of the video encoder 200. The syntax elements may define partition information for partitioning a picture into CTUs and partitions 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 (e.g., CUs) of video data.
[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 (sample-by-sample) the predictive block and the residual block to reconstruct the original block. The video decoder 300 may perform additional processing, such as performing a deblocking process to reduce visual artifacts along block boundaries.
[0061]
[0071] This disclosure may generally refer to "signaling" certain information, such as a syntax element. 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 in 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 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 the video decoder 300, RRC involves decoding a number of 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 300 may apply one or more transforms to the transform coefficients to reconstruct the residual block. Exemplary 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, a last significant coefficient position syntax element may indicate the x and y position of the last significant (e.g., non-zero) coefficient in a transform block with respect to 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 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, one 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 with a Golomb-Rice code at scan position n.
[0070]
[0081] The absolute value syntax element is another syntax element that may 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 with 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 a Rice parameter. The video decoder 300 may be configured to determine the Rice parameter to perform a de-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 the Rice parameter 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 Rice parameters for coding the syntax element related to the current coefficient 392.
[0072]
[0083] First, the video encoder 200 and / or the 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, the current coefficient 392 is shaded in black, and the neighboring coefficients 394 in the template are shaded in gray. The video encoder 200 and the 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 8-bit or 10-bit bit-depth video sources. In the VVC design, the Rice parameter value depends on the value of locSumAbs and is limited to be in 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 values, 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 noticeable 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 2 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 illustrates example codeword lengths for different Rice parameters (e.g., codeword lengths for remainder and / or absolute value syntax elements). As illustrated in FIG. 5, limiting the normative range of Rice parameter values to 3 (as defined in VVC) results in a significant increase in codeword lengths for coded values greater than 10 (see, e.g., plot 502). In FIG. 5, plots 500, 502, 504, 506, and 508 illustrate codeword lengths for Rice parameter values 0, 3, 8, 12, and 15, respectively. As illustrated in FIG. 5, Rice parameter values from 0 to 3 generally result in small codeword lengths for smaller coded values, but rapidly produce large codeword lengths 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 of video coding designs, particularly video coding designs that use bit depths greater than 10 bits. With the proposed techniques of this disclosure, the supported range of Rice parameters may be extended from 0-3 in VVC to a larger number, e.g., 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 the disclosure, the video encoder 200 and the video decoder 300 may be configured to scale and / or normalize the calculated value of the template of the neighboring coefficients (e.g., referred to as localSumbAbs) to handle bit depth increase and / or 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 calculated to indicate the local activity of the transform coefficient. 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) into 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 set of tabulated scalars Rx(g_riceShift) to determine the normShift value. In one example, the tabulated threshold 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] The video encoder 200 and the video decoder 300 may use the normShift value to normalize / scale the value of localSumAbs prior to determining the Rice parameter. For example, the video encoder 200 and the video decoder 300 may right-shift the value of localSumAbs by the value of normShift (e.g., normalized locSumAbs=locSumAbs>>normShift). The video encoder 200 and the 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, the video encoder 200 and the video decoder 300 may use the normalized localSumAbs as an 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 dynamical 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 scalar 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 slicer parameter derivation section described in VVC Draft 10 can be modified as follows, so that the size of the tabulated arrays (Rx and Tx) is 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) that specifies 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>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 indicated above, the localSumAbs value (sum) is successively compared (e.g., with 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]
[0101] After the value of normShift is determined, the video encoder 200 and the video decoder 300 may normalize the value of locSumAbs using the following formula: locSumAbs = locSumAbs >> normShift, where >> is a right shift. The video encoder 200 and the 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 an input to a lookup table (e.g., the table in FIG. 3) to determine an initial Rice parameter value. The video encoder 200 and the video decoder 300 may then add the normShift value to the initial Rice parameter value, such as 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 extensions to the successive comparators (eg, if else comparisons) defined above.
[0103]
[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 (as Rx(rangeIdx)) from the x value derived as the output of the template computation. To avoid consecutive branching due to comparison against a threshold (e.g., as in the if / else statement described earlier), the value x can be downshifted in parallel with a set of prespecified 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 with an approximation, for example with floor(log2(x)) arithmetic, 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 being decoded using Rice parameters (e.g., modulus or absolute decoded values, or some other syntax element value). 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 a 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]
[0108] 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, the 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 of 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 of 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 an input to an array of scale factors (e.g., Rx or g_riceShift).
[0111]
[0110] 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 encoder 200 and the 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. The video encoder 200 and the 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, the video encoder 200 and the video decoder 300 may be configured to determine a Rice parameter value (cRiceParam) as cRiceParam=cRiceParam+normShift. To determine the initial Rice parameter based on the normalized sum of the absolute values, the video encoder 200 and the video decoder 300 may be configured to determine the initial Rice parameter value using the normalized sum of the absolute values as an input to a lookup table (e.g., the lookup table in FIG. 3). Before determining the initial Rice parameter value, the video encoder 200 and the video decoder 300 may be configured to clip the normalized sum of the absolute values (e.g., locSumAbs=Clip3(0, 31, locSumAbs-baseLevel*5)). Once the Rice parameter value is determined, the video encoder 200 and the 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 as limiting the techniques broadly illustrated and described in this disclosure. For illustrative purposes, this disclosure describes the 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 selection unit 202, a residual generation unit 204, a transform processing unit 206, a quantization unit 208, an inverse quantization unit 210, an inverse transform processing unit 212, a reconstruction unit 214, a filter unit 216, a decoded picture buffer (DPB) 218, and an entropy coding unit 220. Any or all of the video data memory 230, the mode selection unit 202, the residual generation unit 204, the transform processing unit 206, the quantization unit 208, the inverse quantization unit 210, the inverse transform processing unit 212, the reconstruction unit 214, the filter unit 216, the DPB 218, and the entropy coding unit 220 may be implemented in one or more processors or processing circuits. For example, the units of video encoder 200 may be implemented as one or more circuits or logic elements, as part of a hardware circuit, or as part of a processor, ASIC, or FPGA. Moreover, video encoder 200 may include additional or alternative processors or processing circuits for performing these and other functions.
[0114]
[0113] The video data memory 230 may store video data to be encoded by components of the video encoder 200. The video encoder 200 may receive video data stored in the video data memory 230, for example, from the video source 104 (FIG. 1). The DPB 218 may act as a reference picture memory that stores reference video data for use in predicting subsequent video data by the video encoder 200. The video data memory 230 and the DPB 218 may be formed by any of a variety of memory devices, such as synchronous dynamic random access memory (DRAM), including DRAM (SDRAM), magnetoresistive RAM (MRAM), resistive RAM (RRAM), or other types of memory devices. The video data memory 230 and the DPB 218 may be provided by the same memory device or separate memory devices. In various examples, the video data memory 230 may be on-chip with other components of the 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, or to memory external to video encoder 200 unless specifically so described. Instead, references to video data memory 230 should be understood as a reference memory that stores video data that video encoder 200 receives for encoding (e.g., video data 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]
[0115] The various units in FIG. 6 are shown to aid in understanding the operations performed by the video encoder 200. The units may be implemented as fixed-function circuits, programmable circuits, or a combination thereof. A fixed-function circuit refers to a circuit that provides a specific function and is preset 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 provide flexible functionality in the operations that may be performed. For example, a programmable circuit may execute software or firmware that causes the programmable circuit to operate in a manner defined by the software or firmware instructions. A fixed-function circuit may execute software instructions (e.g., to receive parameters or output parameters), but the type of operation that the fixed-function circuit performs is 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 an integrated circuit.
[0117]
[0116] The video encoder 200 may include an arithmetic logic unit (ALU), a basic functional unit (EFU), a programmable core formed of digital circuits, analog circuits, and / or programmable circuits. In examples in which the operations of the video encoder 200 are implemented using software executed by a programmable circuit, the memory 106 (FIG. 1) may store instructions (e.g., object code) of the software that the video encoder 200 receives and executes, or another memory (not shown) within the video encoder 200 may store such instructions.
[0118]
[0117] The video data memory 230 is configured to store the received video data. The video encoder 200 may retrieve pictures of the video data from the video data memory 230 and provide the video data to the residual generation unit 204 and the mode selection unit 202. The video data in the video data memory 230 may be raw video data to be encoded.
[0119] The mode selection unit 202 includes a motion estimation unit 222, a motion compensation unit 224, and an intra prediction unit 226. The mode selection unit 202 may include additional functional units for performing video prediction according to other prediction modes. By way of example, the mode selection unit 202 may include a palette unit, an intra block copy unit (which may be part of the motion estimation unit 222 and / or the motion compensation unit 224), an affine unit, a linear model (LM) unit, etc.
[0120]
[0119] 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]
[0120] The video encoder 200 may partition a picture retrieved from the video data memory 230 into a series of CTUs and encapsulate one or more CTUs in a slice. The mode selection 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, the video encoder 200 may form one or more CUs from partitioning the CTUs according to the tree structure. Such a CU may also be generally referred to as a "video block" or a "block."
[0122]
[0121] In general, 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., the current CU, or in HEVC, the overlapping portion of the PU and 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, the sum of absolute differences (SAD), the sum of squared differences (SSD), the mean absolute difference (MAD), the mean squared difference (MSD), and the like. The motion estimation unit 222 may generally perform these calculations using the sample-by-sample difference between the current block and the reference block under consideration. Motion estimation unit 222 may identify the reference block having the lowest value resulting from these calculations, which indicates the reference block that most closely matches the current block.
[0123]
[0122] 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 use the motion vectors to generate a predictive block. For example, the motion compensation unit 224 may use the motion vectors to retrieve data of a reference block. As another example, if the motion vector has partial sample accuracy, 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 two reference blocks identified by the respective motion vectors and combine the retrieved data, for example, through sample-wise averaging or weighted averaging.
[0124]
[0123] As another example, for intra prediction, or intra predictive coding, the intra prediction unit 226 may generate a predictive block from samples adjacent to a current block. For example, in a directional mode, the intra prediction unit 226 may generally mathematically combine values of adjacent samples to produce a predictive block, and populate these calculated values in a defined direction across the current block. As another example, in a DC mode, the intra prediction unit 226 may calculate an average of the adjacent samples for the current block, and generate a predictive block to include this obtained average for each sample of the predictive block.
[0125]
[0124] The mode selection unit 202 provides the prediction block to the residual generation unit 204. The residual generation unit 204 receives a raw uncoded version of the current block from the video data memory 230 and receives the prediction block from the mode selection unit 202. The residual generation unit 204 calculates sample-by-sample differences between the current block and the prediction block. The resulting sample-by-sample differences define a residual block 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]
[0125] In an example where the mode selection unit 202 partitions a CU into PUs, each PU may be associated with a luma prediction unit and a corresponding chroma prediction unit. The video encoder 200 and the video decoder 300 may support PUs having various sizes. As 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]
[0126] In an example where the mode selection unit 202 does not further partition the CU into PUs, each CU may be associated with a luma coding block and a corresponding chroma coding block. As described above, the size of a CU may refer to the size of the luma coding block of the CU. The video encoder 200 and the video decoder 300 may support CU sizes of 2Nx2N, 2NxN, or Nx2N.
[0128]
[0127] In other video coding techniques, such as intra block copy mode coding, affine mode coding, and linear model (LM) mode coding, as some examples, the mode selection unit 202 generates a predictive block for the current block being coded via a respective unit associated with the coding technique. In some examples, such as palette mode coding, the mode selection unit 202 may not generate a predictive block, but instead generate a syntax element that indicates how the block should be reconstructed based on a selected palette. In such modes, the mode selection unit 202 may provide these syntax elements to be coded to the entropy coding unit 220.
[0129]
[0128] As described above, the residual generation unit 204 receives the video data for a 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]
[0129] 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 secondary transform, such as a rotation transform. In some examples, transform processing unit 206 does not apply a transform to the residual block.
[0131]
[0130] The quantization unit 208 may quantize the transform coefficients in the transform coefficient block to produce a quantized transform coefficient block. The quantization unit 208 may quantize the transform coefficients of the transform coefficient block according to a quantization parameter (QP) value associated with the current block. The video encoder 200 (e.g., via the mode selection unit 202) may adjust the degree of quantization applied to the transform coefficient block associated with the current block by adjusting the QP value associated with the CU. Quantization may result in loss of information, and thus 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 corresponding to the current block (potentially with some distortion) based on the reconstructed residual block and the predictive block generated by the mode selection unit 202. For example, the reconstruction unit 214 may add samples of the reconstructed residual block to corresponding samples from the predictive block generated by the mode selection unit 202 to produce a 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]
[0133] The video encoder 200 stores the reconstructed block in the DPB 218. For example, in an example where the operation of the filter unit 216 is not performed, the reconstruction unit 214 may store the reconstructed block in the DPB 218. In an example where the operation of the filter unit 216 is performed, the filter unit 216 may store the filtered reconstructed block in the DPB 218. The motion estimation unit 222 and the motion compensation unit 224 may retrieve a reference picture formed from the reconstructed (and potentially filtered) block from the DPB 218 to inter-predict blocks of a picture to be subsequently encoded. Furthermore, the intra prediction unit 226 may use the reconstructed block in the DPB 218 of the current picture to intra-predict other blocks in the current picture.
[0135] In general, the entropy encoding unit 220 may entropy encode syntax elements received from other functional components of the video encoder 200. For example, the entropy encoding unit 220 may entropy encode quantized transform coefficient blocks from the quantization unit 208. As another example, the entropy encoding unit 220 may entropy encode predictive syntax elements (e.g., motion information for inter prediction, or intra mode information for intra prediction) from the mode selection unit 202. The entropy encoding unit 220 may perform one or more entropy encoding operations on syntax elements, which are another example of video data, to generate entropy encoded data. For example, the entropy encoding unit 220 may perform a context-adaptive variable length coding (CAVLC) operation, a CABAC operation, a variable-to-variable (V2V) length coding operation, a syntax-based context-adaptive binary arithmetic coding (SBAC) operation, a probability interval partitioned entropy (PIPE) coding operation, an exponential-Golomb coding operation, or another type of entropy coding operation on the data. In some examples, the entropy encoding unit 220 may operate in a bypass mode in which syntax elements are not entropy coded.
[0136]
[0135] In one example, the entropy encoding unit 220 may be configured to implement one or more techniques of the present 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 being 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, the operations performed with respect to the luma coding block do not need to be repeated for the chroma coding block. As an example, the operations for identifying a motion vector (MV) and a reference picture for the luma coding block do not need to be repeated to identify the MV and the reference picture for the chroma block. Rather, the MV for the luma coding block may be scaled to determine the MV for the chroma block, and the reference picture may be the same. As another example, the intra prediction process may be the same for the luma coding block and the chroma coding block.
[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, where 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] In the example of FIG. 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, an ASIC, or an FPGA. Moreover, the video decoder 300 may include additional or alternative processors or processing circuits for performing these and other functions.
[0143]
[0142] 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]
[0143] The CPB memory 320 may store video data, such as an encoded video bitstream, to be decoded by components of the video decoder 300. The video data stored in the CPB memory 320 may be obtained, for example, from the computer-readable medium 110 (FIG. 1). The CPB memory 320 may include a CPB that stores encoded video data (e.g., syntax elements) from the encoded video bitstream. The CPB memory 320 may also store video data other than syntax elements of a coded picture, such as temporary data representing output from various units of the video decoder 300. The DPB 314 generally stores decoded pictures that the video decoder 300 may output and / or use as reference video data when decoding subsequent data or pictures of the encoded video bitstream. The CPB memory 320 and the DPB 314 may be formed by any of a variety of memory devices, such as DRAM, including SDRAM, MRAM, RRAM, or other types of memory devices. The CPB memory 320 and the DPB 314 may be provided by the same memory device or separate memory devices. In various examples, the CPB memory 320 may be on-chip with other components of the video decoder 300 or off-chip relative to those components.
[0145] Additionally or alternatively, in some examples, the video decoder 300 may retrieve coded video data from the memory 120 (FIG. 1). That is, the memory 120 may store data as described above along with the CPB memory 320. Similarly, the memory 120 may store instructions to be executed by the video decoder 300 when some or all of the functionality of the video decoder 300 is implemented in software to be executed by processing circuitry of the video decoder 300.
[0146]
[0145] The various units shown in FIG. 7 are shown to aid in understanding the operations performed by the video decoder 300. The units may be implemented as fixed-function circuits, programmable circuits, or a combination thereof. As in 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 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. Although a fixed-function circuit may execute software instructions (e.g., to receive parameters or output parameters), the type of operations that the fixed-function circuit performs is 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 an integrated circuit.
[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 operation of the video decoder 300 is performed by software executing on a programmable circuit, an 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]
[0147] 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]
[0148] 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 (wherein the block currently being reconstructed, i.e., decoded, may be referred to as the "current block").
[0150]
[0149] The entropy decoding unit 302 may entropy decode syntax elements defining the quantized transform coefficients of the quantized transform coefficient block, as well as transform information such as a quantization parameter (QP) and / or a transform mode indication(s). The inverse quantization unit 306 may use the QP associated with the quantized transform coefficient block to determine the degree of quantization and, similarly, the degree of inverse quantization that the inverse quantization unit 306 should apply. The inverse quantization unit 306 may perform, for example, a bitwise left shift operation to inverse quantize the quantized transform coefficients. The inverse quantization unit 306 may thereby form a transform coefficient block including the transform coefficients.
[0151]
[0150] In one example, the entropy decoding unit 302 may be configured to perform one or more techniques of the present 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 block, the inverse transform processing unit 308 may apply one or more inverse transforms to the transform coefficient block to generate a residual block associated with the current block. For example, the inverse transform processing unit 308 may apply an inverse DCT, an inverse integer transform, an inverse Karhunen-Loeve transform (KLT), an inverse rotational transform, an inverse transform, or another inverse transform to the transform coefficient block.
[0153]
[0152] Furthermore, the prediction processing unit 304 generates a prediction block according to the prediction information syntax element entropy decoded by the entropy decoding unit 302. For example, if the prediction information syntax element indicates that the current block is inter-predicted, the motion compensation unit 316 may generate a prediction block. In this case, the prediction information syntax element may indicate a reference picture in the DPB 314 from which the reference block should be retrieved, 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. The motion compensation unit 316 may generally perform an inter-prediction process in a manner substantially similar to that described with respect to the motion compensation unit 224 (FIG. 6).
[0154]
[0153] As another example, if the prediction information syntax element indicates that the current block is intra predicted, the intra prediction unit 318 may generate a prediction block according to the intra prediction mode indicated by the prediction information syntax element. Again, the intra prediction unit 318 may generally perform an intra prediction process in a manner substantially similar to that described with respect to the intra prediction unit 226 (FIG. 6). The intra prediction unit 318 may retrieve data of neighboring samples for the current block from the 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] The filter unit 312 may perform one or more filter operations on the reconstructed block. For example, the filter unit 312 may perform a deblocking operation to reduce blockiness artifacts along edges of the reconstructed block. The operations of the filter unit 312 are not necessarily performed in all examples.
[0157]
[0156] The video decoder 300 may store the reconstructed block in the DPB 314. For example, in an example where the operation of the filter unit 312 is not performed, the reconstruction unit 310 may store the reconstructed block in the DPB 314. In an example where the operation of the filter unit 312 is performed, the filter unit 312 may store the filtered reconstructed block in the DPB 314. As described above, the DPB 314 may provide reference information to the prediction processing unit 304, such as samples of a current picture for intra prediction and previously decoded pictures for subsequent motion compensation. Moreover, the video decoder 300 may output the decoded picture (e.g., decoded video) from the DPB 314 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 including 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, where a possible range for the Rice parameter value is from 0 to greater than 3.
[0159]
[0158] Figure 8 is a flowchart illustrating an example method for encoding a current block according to the techniques of this disclosure. The current block may comprise a current CU. Although described with respect to video encoder 200 (Figures 1 and 6), it should be understood that other devices may be configured to implement a method similar to that of Figure 8.
[0160]
[0159] 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 a difference between an original uncoded block and a predictive block for the current block. The video encoder 200 may then transform the residual block and quantize 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]
[0160] Figure 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 (Figures 1 and 7), it should be understood that other devices may be configured to perform a method similar to that of Figure 9.
[0162]
[0161] The video decoder 300 may receive entropy coded data for the current block, such as the entropy coded prediction information and the 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 the 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 an 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 inverse quantize 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 of 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 of 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 an input to an array of scale factors.
[0166]
[0165] In another example, to determine a Rice parameter value for encoding a syntax element for a current transform coefficient based on the sum of absolute values and the shift value, the 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. The video encoder 200 may be further configured to clip the normalized sum of absolute values. In another example, to determine an initial Rice parameter based on the normalized sum of absolute values, the video encoder 200 may be configured to determine the initial Rice parameter value using the normalized sum of absolute values as an 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 the 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 to an array of thresholds and determine a range id based on which two thresholds of 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 to all thresholds of the array of thresholds in parallel. The video decoder 300 may also determine the shift value using the range id as an input to the array of scale factors.
[0170]
[0169] 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 a Rice parameter value. The video decoder 300 may also clip the normalized sum of absolute values. In another example, to determine an initial Rice parameter based on the normalized sum of absolute values, the video decoder 300 is further configured to determine an initial Rice parameter value using the normalized sum of absolute values as an input to a lookup table. To decode a syntax element for a 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 of 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 - The method described in aspect 1A, wherein determining the 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 described in aspect 3A, further comprising scaling the value of localSumAbs.
[0176]
[0175] Aspect 5A - The method of 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 to 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 - A method as described in any of aspects 1A to 6A, wherein the coding comprises decoding.
[0179]
[0178] Aspect 8A - A method as described in any of aspects 1A to 6A, wherein the coding comprises encoding.
[0180]
[0179] Aspect 9A - A device for coding video data, the device comprising one or more means for performing a method according to any of aspects 1A to 8A.
[0181]
[0180] Embodiment 10A - A device as described in embodiment 9A, wherein the one or more means comprise one or more processors implemented in circuitry.
[0182]
[0181] Aspect 11A - A device described in any of aspects 9A and 10A, further comprising a memory for storing video data.
[0183]
[0182] Aspect 12A - A device as described in 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]
[0184] Aspect 14A - A device described in any of aspects 9A to 13A, wherein the device comprises a video decoder.
[0186]
[0185] Aspect 15A - A device described in any of aspects 9A to 14A, wherein the device comprises a video encoder.
[0187]
[0186] Aspect 16A - A computer-readable storage medium having instructions stored thereon that, when executed, cause one or more processors to perform a method as 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 - The method 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]
[0190] Aspect 4B - The method of aspect 3B, 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.
[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 - The method described in aspect 1B, wherein determining 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 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 the 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 to determine a shift value based on the sum of absolute values, one or more processors are further configured to determine a range id from the sum of absolute values and determine a shift value from the range id.
[0200]
[0199] Aspect 13B - The apparatus described in aspect 12B, wherein to determine a range id from the sum of the absolute values, the one or more processors are further configured to compare the sum of the absolute values to an array of thresholds, and determine the range id based on which two thresholds in the array of thresholds the sum of the 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 are configured to compare, in parallel, the sum of the absolute values with all thresholds in the array of thresholds.
[0202]
[0201] Aspect 15B - The apparatus described in aspect 13B, wherein to determine a shift value from the range id, the one or more processors are further configured to determine the shift value using the range id as input to the 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, the 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 the one or more processors are further configured to determine an 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 - The apparatus described in aspect 11B, wherein one or more processors are further configured to perform de-binarization of the syntax element based on the Rice parameter to decode a syntax element for a current transform coefficient using the Rice parameter value.
[0207]
[0206] Aspect 20B - The apparatus described in aspect 11B, wherein the 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 of 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 - The method 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 - The method described in aspect 23B, wherein determining a Rice parameter value for encoding a syntax element for a current transform coefficient based on the sum of absolute values and the 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 the absolute values.
[0217]
[0216] Aspect 30B - The method described in aspect 28B, wherein determining an initial Rice parameter based on a normalized sum of absolute values comprises determining an 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 the video data, and transforming the residual block to generate a transform block including the 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 - The method 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]
[0222] Aspect 4C - The method of aspect 3C, 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.
[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 the sum of absolute values and the 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 the 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 the 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 omitted entirely (e.g., not all described acts or events may be necessary to the practice of the techniques). Moreover, in some examples, acts or events may be performed simultaneously rather than sequentially, for example, through multi-threaded processing, interrupt processing, or multiple processors.
[0231]
[0230] In one or more examples, the described functions 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 codes and executed by a hardware-based processing unit. The computer-readable medium may include a computer-readable storage medium, which corresponds to a tangible medium, such as a data storage medium, or may include a communication medium, which includes any medium that facilitates the transfer of a computer program from one place to another, for example, according to a communication protocol. In this manner, the computer-readable medium may generally correspond to (1) a tangible computer-readable storage medium that is non-transitory, or (2) a communication medium, such as a signal or carrier wave. The data storage medium may be any available medium that can be accessed by one or more computers or one or more processors to retrieve instructions, codes and / or data structures for implementation of the techniques described in this disclosure. The 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 may be used to store desired program code in the form of instructions or data structures and that may be accessed by a computer. Also, any connection is properly referred to as a computer-readable medium. For example, if instructions are transmitted from a website, server, or other remote source using coaxial cable, fiber optic cable, twisted pair, digital subscriber line (DSL), or wireless technologies such as infrared, radio, and microwave, the coaxial cable, fiber optic cable, twisted pair, DSL, or wireless technologies such as infrared, radio, and microwave are included in the definition of the medium. However, it should be understood that computer-readable storage media and data storage media do not include connections, carrier waves, signals, or other transitory media, but instead cover non-transitory tangible storage media. As used herein, disk and disc include compact disc (CD), laser disc, optical disc, digital versatile disc (DVD), floppy disk and Blu-ray disc, where disks typically reproduce data magnetically and discs reproduce data optically with lasers. Combinations of the above should also be included within the scope of computer readable media.
[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. Thus, the terms "processor" and "processing circuitry" as used herein may refer to any of the above structures, or any other structures suitable for implementing the techniques described herein. Furthermore, in some aspects, the functions described herein may be provided in dedicated hardware and / or software modules configured for encoding and decoding, or may be incorporated into a composite codec. Also, the techniques may be fully implemented in one or more circuits or logic elements.
[0234]
[0233] The techniques of the present disclosure may be implemented in a wide variety of devices or apparatuses, including wireless handsets, integrated circuits (ICs) or sets of ICs (e.g., chipsets). In this disclosure, various components, modules, or units have been described to highlight functional aspects of devices configured to implement the disclosed techniques, but the 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.< / add> < / add>
Claims
1. 1. 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 said sum of absolute values, wherein determining said shift value based on said sum of absolute values comprises: 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 threshold values; determining said range id based on between which two thresholds in said array of thresholds said sum of absolute values falls; The method of claim 1 , comprising:
3. comparing said sum of absolute values to said array of threshold values; 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 said initial Rice parameter values using said normalized sum of absolute values as an input into 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 block; 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 the 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; [0023] 2. The method of claim 1, further comprising: 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 carry out 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, the 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, wherein determining said shift value based on said sum of absolute values comprises: 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, the apparatus comprising: a memory configured to store video data; one or more processors implemented in circuitry and in communication with the 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; [0023] 2. The method of claim 1, further comprising: 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.