Deriving rice parameters for coding high bit-depth video data
By calculating the sum of the absolute values of the adjacent coefficients of the current block of video data and the normalization of the basic level offset, the Rice parameter is determined, which solves the problem of increased codeword size and bitstream signaling in the decoding of high bit depth video data, and improves decoding efficiency and compression performance.
Patent Information
- Application Number
- CN202280025387.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Priority Date
- 2022-04-07
- Filing Date
- 2022-04-08
- Publication Date
- 2026-11-24
- Estimated Expiration
- 2042-04-08
AI Technical Summary
Existing video decoding technologies fail to utilize the cropping function of the Rice parameter when processing high bit depth video data, leading to a sharp increase in codeword size and bitstream signaling values, which affects decoding efficiency.
By calculating the sum of the absolute values of the adjacent coefficients of the current block of video data, and calculating the basic level offset value according to the bit depth and stripe type, and using the offset value for normalization, the Rice parameter is determined to keep it within 0 to 3 bits, avoiding the increase in codeword size and bitstream signaling.
It effectively solves the problems of increased codeword size and bitstream signaling in high bit depth video data decoding, and improves decoding efficiency and compression performance.
Smart Images

Figure CN117413517B_ABST
Abstract
Description
[0001] This application claims priority to U.S. Patent Application No. 17 / 658,396, filed April 7, 2022, and U.S. Provisional Patent Application No. 63 / 173,269, filed April 9, 2021, the entire contents of each of which are incorporated herein by reference. U.S. Patent Application No. 17 / 658,396, filed April 7, 2022, claims the benefit of U.S. Provisional Patent Application No. 63 / 173,269, filed April 9, 2021. Technical Field
[0002] This disclosure relates to video decoding, including video encoding and video decoding. Background Technology
[0003] Digital video functionality can be incorporated into a wide range of devices, including digital televisions, digital live broadcast systems, wireless broadcasting systems, personal digital assistants (PDAs), laptops or desktop computers, tablets, e-book readers, digital cameras, digital recording devices, digital media players, video game devices, video game terminals, cellular or satellite radio phones, so-called "smartphones," video conferencing equipment, video streaming devices, and more. Digital video devices employ video decoding technologies such as MPEG-2, MPEG-4, ITU-T H.263, ITU-T H.264 / MPEG-4 Part 10 Advanced Video Decoding (AVC), ITU-T H.265 / High-Efficiency Video Decoding (HEVC), ITU-T H.266 / Universal Video Decoding (VCC), and those described in standards defined by extensions to these standards, as well as proprietary video codecs / formats (such as AOMedia Video 1 (AV1) developed by the Open Media Alliance). Video devices can transmit, receive, encode, decode, and / or store digital video information more efficiently by implementing such video decoding technologies.
[0004] Video decoding techniques include spatial (intra-picture) prediction and / or temporal (inter-picture) prediction to reduce or remove inherent redundancy in video sequences. For block-based video decoding, video slices (e.g., video pictures or portions of video pictures) can be segmented into video blocks, which may also be referred to as decoding tree units (CTUs), decoding units (CUs), and / or decoding nodes. Video blocks in an intra-frame decoding (I) slice of a picture are encoded using spatial predictions about reference samples in adjacent blocks within the same picture. Video blocks in an inter-frame decoding (P or B) slice of a picture can use spatial predictions about reference samples in adjacent blocks within the same picture or temporal predictions about reference samples in other reference pictures. A picture may be called a frame, and a reference picture may be called a reference frame. Summary of the Invention
[0005] Generally, this disclosure describes techniques for deriving Rice parameters for decoding video data (e.g., high bit-depth video data). Specifically, Rice parameters can be used when performing rule residual decoding (RRC), which may include encoding and / or decoding. These techniques can be applied to ITU-T H.266 / Various Video Decoding (VVC) or other video decoding standards. The techniques of this disclosure generally relate to determining Rice parameters for binarizing current coefficients of a transform block of video data, wherein determining the Rice parameters involves using a base-level offset value. The base-level offset value can be calculated based on at least one of the bit depth of the video data or the stripe type of the video data stripe. The base-level offset value can then be applied to the sum of the absolute values of adjacent coefficients for the current coefficient to calculate a normalized value. The normalized value can be used, for example, to determine the Rice parameters from a lookup table. The Rice parameters can then be used to binarize the values of the current coefficients.
[0006] In one example, a method for decoding (encoding and / or decoding) video data includes: calculating the sum of the absolute values of multiple adjacent coefficients of the current coefficient for the current block of video data; calculating a base level offset value based on at least one of the bit depth of the video data or the stripe type that includes the stripe of the current block; using the base level offset value to calculate a normalized value of the sum of absolute values; and using the normalized value of the sum of absolute values to decode the current coefficient.
[0007] In another example, an apparatus for decoding (encoding and / or decoding) video data includes: a memory configured to store the video data; and one or more processors implemented in a circuit and configured to: calculate the sum of absolute values of a plurality of adjacent coefficients of a current coefficient for a current block of video data; calculate a base level offset value based on at least one of the bit depth of the video data or a stripe type that includes a stripe of the current block; use the base level offset value to calculate a normalized value for the sum of absolute values; and decode the current coefficient using the normalized value for the sum of absolute values.
[0008] In another example, a computer-readable storage medium having instructions stored thereon causes, when executed, a processor of a device for decoding video data to: calculate the sum of the absolute values of a plurality of adjacent coefficients of the current coefficient for the current block of video data; calculate a base level offset value based on at least one of the bit depth of the video data or the stripe type including the stripe of the current block; use the base level offset value to calculate a normalized value of the sum of absolute values; and decode the current coefficient using the normalized value of the sum of absolute values.
[0009] In another example, an apparatus for decoding (encoding and / or decoding) video data includes: a unit for calculating the sum of absolute values of a plurality of adjacent coefficients of a current coefficient for a current block of video data; a unit for calculating a base level offset value based on at least one of the bit depth of the video data or a stripe type including the stripe of the current block; a unit for calculating a normalized value of the sum of absolute values using the base level offset value; and a unit for decoding the current coefficient using the normalized value of the sum of absolute values.
[0010] Details of one or more examples are set forth in the accompanying drawings and the description below. Other features, objects, and advantages will be apparent from the description, drawings, and claims. Attached Figure Description
[0011] Figure 1 This is a block diagram illustrating an example video encoding and decoding system capable of performing the techniques described herein.
[0012] Figure 2 This is a conceptual diagram showing an example of the adjacent coefficients of the current coefficient that can be used to calculate the sum of local absolute values (locSumAbs).
[0013] Figure 3 This is a graph showing an empirical histogram of the decoding transform coefficients for a 16-bit test sequence of video data.
[0014] Figure 4 This is a graph showing the relationship between the codeword length generated during entropy decoding of coefficient values and a given Rice parameter.
[0015] Figure 5 This is a block diagram illustrating an example video encoder capable of performing the techniques described in this disclosure.
[0016] Figure 6 This is a block diagram illustrating an example video decoder capable of performing the techniques described in this disclosure.
[0017] Figure 7 This is a flowchart illustrating an example method for encoding the current block using techniques according to this disclosure.
[0018] Figure 8 This is a flowchart illustrating an example method for decoding the current block using techniques according to this disclosure.
[0019] Figure 9 This is a flowchart illustrating an example method for encoding video data according to the technology of this disclosure.
[0020] Figure 10This is a flowchart illustrating an example method for decoding video data according to the technology of this disclosure. Detailed Implementation
[0021] The Rice parameter value can be used to decode (encode or decode) the coefficients of residual blocks in video data. Specifically, the Rice parameter can be used when binarizing the value associated with entropy decoding (encoding or decoding) of that value. The use of Rice parameter values from 0 to 3 (inclusive) has been extensively tested in the development of the ITU-T H.266 / Various Video Decoding (VVC) standard. Typically, the Rice parameter value is scaled using a clipping formula that also uses the bit depth of the corresponding video data as input. The clipping formula initially developed for VVC was based on a bit depth of 8 bits or 10 bits. However, if the bit depth increases to more than 10 bits, the clipping function may no longer effectively clip the Rice parameter value to the 0-3 bit range, which could lead to a sharp increase in codeword size, resulting in a sharp increase in signaling values in the bitstream. This disclosure describes techniques that can avoid this increase in codeword size and data transmitted in the bitstream by signaling when using the Rice parameter to decode video data with a high bit depth (e.g., a bit depth exceeding 10 bits).
[0022] A video decoder (encoder or decoder) can be configured to decode (encode or decode) the value of the current coefficient of a transform block using the techniques of this disclosure. Specifically, the video decoder can first calculate the sum of the absolute values of the adjacent coefficients for the current coefficient. Then, the video decoder can calculate a base-level offset value based on one or both of the bit depth of the video data and / or the stripe type comprising the stripe of the transform block, to be applied to the sum of absolute values. The video decoder then uses the base-level offset value to calculate a normalized value of the sum of absolute values. The video encoder can then use the normalized value to decode the current coefficient. As described above, the techniques of this disclosure can be applied to cases where the bit depth can be extended to more than 10 bits. Therefore, calculating the base-level offset value based on the bit depth allows the cropped Rice parameter to remain within 0 to 3 bits.
[0023] Video decoding standards include ITU-T H.261, ISO / IEC MPEG-1 Vision, ITU-T H.262 or ISO / IEC MPEG-2 Vision, ITU-T H.263, ISO / IEC MPEG-4 Vision, and ITU-T H.264 (also known as ISO / IEC MPEG-4 AVC), including its Scalable Video Decoding (SVC) and Multi-View Video Decoding (MVC) extensions. High-Efficiency Video Decoding (HEVC) was completed in April 2013 by the ITU-T Video Decoding Experts Group (VCEG) and the Joint Collaborating Team on Video Decoding (JCT-VC) of the ISO / IEC Moving Picture Experts Group (MPEG).
[0024] The Joint Video Experts Group (JVET) is a collaborative group formed by MPEG and ITU-T Study Group 16 (VCEG) to continue developing video decoding technologies for and beyond the Universal Video Decoding (VVC) standard. A primary goal of VVC is to provide significant improvements over the compression performance of the existing HEVC standard, helping to deploy higher-quality video services and emerging applications such as 360° immersive multimedia and high dynamic range (HDR) video. The draft of the VVC standard can be found in Benjamin Bross, Jianle Chen, Shan Liu and Ye-Kui Wang, “Versatile Video Coding (Draft10)” Joint Video Experts Team (JVET) of ITU-T SG 16 WP 3 and ISO / IEC JTC 1 / SC29 / WG 11, Doc. JVET-S2001, 19th Meeting: Teleconference, 22 June – 01 July 2020, at phenix.it-sudparis.eu / jvet / doc_end_user / documents / 19_Teleconference / wg11 / JVET-S2001-v17.zip.
[0025] Figure 1 This is a block diagram illustrating an example video encoding and decoding system 100 capable of performing the techniques described in this disclosure. The techniques of this disclosure generally relate to decoding (encoding and / or decoding) video data. Typically, video data includes any data used for processing video. Therefore, video data can include raw, undecoded video, encoded video, decoded (e.g., reconstructed) video, and video metadata, such as signaling data.
[0026] like Figure 1As shown, in this example, system 100 includes source device 102, which provides encoded video data to be decoded and displayed by destination device 116. Specifically, source device 102 provides video data to destination device 116 via computer-readable medium 110. Source device 102 and destination device 116 can include any of a wide range of devices, including desktop computers, laptop computers, mobile devices, tablet computers, set-top boxes, handsets such as smartphones, televisions, cameras, display devices, digital media players, video game terminals, video streaming devices, broadcast receivers, etc. In some cases, source device 102 and destination device 116 may be configured for wireless communication and therefore may be referred to as wireless communication devices.
[0027] exist Figure 1 In the example, 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, video decoder 300, memory 120, and display device 118. According to this disclosure, the video encoder 200 of source device 102 and the video decoder 300 of destination device 116 can be configured to apply techniques for decoding high bit-depth video data using Rice parameters. Therefore, source device 102 represents an example of a video encoding device, while destination device 116 represents an example of a video decoding device. In other examples, the source and destination devices may include other components or arrangements. For example, source device 102 may receive video data from an external video source such as an external camera. Similarly, destination device 116 may interface with an external display device, rather than including an integrated display device.
[0028] like Figure 1 The system 100 shown is merely an example. Typically, any digital video encoding and / or decoding device can perform techniques for decoding high bit-depth video data using the Rice parameter. The source device 102 and destination device 116 are simply examples of such decoding devices, where the source device 102 generates decoded video data for transmission to the destination device 116. This disclosure refers to a “decoding” device as a device that performs the decoding (encoding and / or decoding) of data. Thus, the video encoder 200 and video decoder 300 represent examples of decoding devices, specifically, a video encoder and a video decoder, respectively. In some examples, the source device 102 and destination device 116 may operate in a substantially symmetrical manner, such that each of the source device 102 and destination device 116 includes video encoding and decoding components. Therefore, system 100 can support one-way or two-way video transmission between the source device 102 and destination device 116, for example, for video streaming, video playback, video broadcasting, or video telephony.
[0029] Typically, video source 104 represents a video data source (i.e., raw, undecoded video data) and provides a continuous series of pictures (also referred to as "frames") of video data to video encoder 200, which encodes the data of the pictures. Video source 104 of source device 102 may include video capture devices such as cameras, video archives containing previously captured raw video, and / or video feed interfaces for receiving video from video content providers. As a further alternative, video source 104 may generate computer graphics-based data as source video, or a combination of live video, archived video, and computer-generated video. In each case, video encoder 200 encodes the captured, pre-captured, or computer-generated video data. Video encoder 200 may rearrange the pictures from the received order (sometimes referred to as "display order") into a decoding order for decoding. Video encoder 200 may generate a bitstream including the encoded video data. The source device 102 can then output the encoded video data to a computer-readable medium 110 via the output interface 108 for reception and / or retrieval, for example, by the input interface 122 of the destination device 116.
[0030] The memory 106 of source device 102 and the memory 120 of destination device 116 represent general-purpose memory. In some examples, memories 106 and 120 may store raw video data, such as raw video from video source 104 and raw decoded video data from video decoder 300. Additionally or alternatively, memories 106 and 120 may store software instructions executable by, for example, video encoder 200 and video decoder 300, respectively. Although memories 106 and 120 are shown separately from video encoder 200 and video decoder 300 in this example, it should be understood that video encoder 200 and video decoder 300 may also include internal memory for functionally similar or equivalent purposes. Furthermore, memories 106 and 120 may store encoded video data, for example, output from video encoder 200 and input to video decoder 300. In some examples, portions of memories 106 and 120 may be allocated as one or more video buffers, for example, to store raw, decoded, and / or encoded video data.
[0031] Computer-readable medium 110 can represent any type of medium or device capable of transmitting encoded video data from source device 102 to destination device 116. In one example, computer-readable medium 110 represents a communication medium enabling source device 102 to transmit encoded video data directly to destination device 116 in real time, for example, via a radio frequency network or a computer-based network. Output interface 108 can modulate the transmitted signal including the encoded video data, and input interface 122 can demodulate the received transmitted signal according to a communication standard such as a wireless communication protocol. The communication medium can include any wireless or wired communication medium, such as radio frequency (RF) spectrum or one or more physical transmission lines. The communication medium can 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 can include a router, a switch, a base station, or any other device that can be used to facilitate communication from source device 102 to destination device 116.
[0032] In some examples, source device 102 can output encoded data from output interface 108 to storage device 112. Similarly, destination device 116 can access encoded data from storage device 112 via input interface 122. Storage device 112 can include any of a variety of distributed or locally accessed data storage media, such as hard disk drives, Blu-ray discs, DVDs, CD-ROMs, flash memory, volatile or non-volatile memory, or any other suitable digital storage medium for storing encoded video data.
[0033] In some examples, source device 102 can output encoded video data to file server 114 or another intermediate storage device that can store the encoded video data generated by source device 102. Destination device 116 can access the stored video data from file server 114 via streaming or downloading.
[0034] File server 114 can be any type of server device capable of storing encoded video data and sending such encoded video data to destination device 116. File server 114 can represent a web server (e.g., for a website), a server configured to provide file transfer protocol services (e.g., File Transfer Protocol (FTP) or File Transfer over One-Way Transmission (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. 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.
[0035] Destination device 116 can access encoded video data from file server 114 via any standard data connection, including an internet connection. This may include wireless channels (e.g., Wi-Fi connections), wired connections (e.g., digital subscriber line (DSL), cable modems, etc.), or combinations thereof, suitable for accessing encoded video data stored on file server 114. Input interface 122 can be configured to operate according to any one or more of the various protocols discussed above for retrieving or receiving media data from file server 114, or other such protocols for retrieving media data.
[0036] Output interface 108 and input interface 122 can 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 the example where output interface 108 and input interface 122 include wireless components, output interface 108 and input interface 122 can be configured to transmit data, such as encoded video data, according to cellular communication standards such as 4G, 4G-LTE (Long Term Evolution), LTE Advanced, 5G, etc. In some examples where output interface 108 includes a wireless transmitter, output interface 108 and input interface 122 can be configured to transmit 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™), Bluetooth™ standard, etc. In some examples, source device 102 and / or destination device 116 may include corresponding system-on-chip (SoC) devices. For example, source device 102 may include an SoC device to perform functions belonging to video encoder 200 and / or output interface 108, and destination device 116 may include an SoC device to perform functions belonging to video decoder 300 and / or input interface 122.
[0037] The technology disclosed herein can be applied to video decoding that supports any of a variety of multimedia applications, such as over-the-air television broadcasting, cable television transmission, satellite television transmission, internet streaming video transmission, such as Dynamic Adaptive Streaming (DASH) via HTTP, digital video encoded onto a data storage medium, decoding digital video stored on a data storage medium, or other applications.
[0038] The input interface 122 of the destination device 116 receives an encoded video bitstream from a computer-readable medium 110 (e.g., a communication medium, storage device 112, file server 114, etc.). The encoded video bitstream may include signaling information defined by the video encoder 200, which is also used by the video decoder 300, such as syntax elements having values describing the characteristics and / or processing of video blocks or other decoded units (e.g., slices, pictures, picture groups, sequences, etc.). The display device 118 displays a decoded image of the decoded video data to the 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 other types of display devices.
[0039] Although Figure 1Not shown, but in some examples, the video encoder 200 and the video decoder 300 may each be integrated with the audio encoder and / or audio decoder, and may include appropriate MUX-DEMUX units, or other hardware and / or software, to handle the multiplexed streams of both audio and video included in a common data stream.
[0040] The video encoder 200 and video decoder 300 can each be implemented as any of a variety of suitable encoder and / or decoder circuits, such as one or more microprocessors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), discrete logic, software, hardware, firmware, or any combination thereof. When the technology is partially implemented in software, the device may store instructions for the software in a suitable, non-transitory computer-readable medium and use one or more processors to execute the instructions in the hardware to perform the technology of this disclosure. Each of the video encoder 200 and video decoder 300 may be included in one or more encoders or decoders, either of which may be integrated as part of a combined encoder / decoder (CODEC) in the respective device. Devices including the video encoder 200 and / or video decoder 300 may include integrated circuits, microprocessors, and / or wireless communication devices, such as cellular phones.
[0041] The video encoder 200 and video decoder 300 may operate according to a video decoding standard, such as ITU-T H.265, also known as High Efficiency Video Decoding (HEVC) or its extensions, such as Multi-View and / or Scalable Video Decoding Extensions. Alternatively, the 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 Universal Video Decoding (VVC). In other examples, the video encoder 200 and video decoder 300 may operate according to proprietary video codecs / formats, such as AOMedia Video 1 (AV1), extensions to AVI, and / or subsequent versions of AV1 (e.g., AV2). In other examples, the video encoder 200 and video decoder 300 may operate according to other proprietary formats or industry standards. However, the techniques of this disclosure are not limited to any particular decoding standard or format. Generally, the video encoder 200 and video decoder 300 may be configured to perform the techniques of this disclosure in conjunction with any video decoding technique that uses Rice parameters to decode high bit-depth video data.
[0042] Generally, the video encoder 200 and video decoder 300 perform block-based decoding of images. The term "block" typically refers to a structure that includes data to be processed (e.g., encoded, decoded, or otherwise used in the encoding and / or decoding process). For example, a block may include a two-dimensional matrix of luminance and / or chrominance data samples. Typically, the video encoder 200 and video decoder 300 can decode video data represented in YUV (e.g., Y, Cb, Cr) format. That is, the video encoder 200 and video decoder 300 can decode luminance and chrominance components, rather than decoding the red, green, and blue (RGB) data of image samples, where chrominance components may include both red and blue hue chrominance components. In some examples, the video encoder 200 converts the received RGB formatted data to a YUV representation before encoding, and the video decoder 300 converts the YUV representation to RGB format. Alternatively, preprocessing and post-processing units (not shown) may perform these conversions.
[0043] This disclosure can generally refer to the decoding (e.g., encoding and decoding) of an image to include the process of encoding or decoding the data of the image. Similarly, this disclosure can refer to the decoding of blocks of an image to include the process of encoding or decoding the data of the block, such as prediction and / or residual decoding. Encoded video bitstreams typically include a series of values representing decoding decisions (e.g., decoding modes) and syntax elements that divide the image into blocks. Therefore, references to the decoding of an image or block should generally be understood as the decoded values of the syntax elements that form the image or block.
[0044] HEVC defines various blocks, including decoding units (CUs), prediction units (PUs), and transform units (TUs). According to HEVC, a video decoder (e.g., a video encoder 200) partitions a decoding tree unit (CTU) into CUs based on a quadtree structure. That is, the video decoder divides the CTU and CU into four equal, non-overlapping squares, and each node of the quadtree has zero or four child nodes. Nodes without child nodes can be called "leaf nodes," and the CU of such leaf nodes can include one or more PUs and / or one or more TUs. The video decoder can further partition PUs and TUs. For example, in HEVC, a residual quadtree (RQT) represents a partition of a TU. In HEVC, PUs represent inter-frame prediction data, while TUs represent residual data. CUs for intra-frame prediction include intra-frame prediction information, such as intra-frame mode indication.
[0045] As another example, the video encoder 200 and video decoder 300 can be configured to operate according to VVC. According to VVC, the video decoder (e.g., video encoder 200) segments the image into multiple decoding tree units (CTUs). The video encoder 200 can segment the CTUs according to a tree structure such as a quadtree-binary tree (QTBT) structure or a multi-type tree (MTT) structure. The QTBT structure eliminates the concept of multiple segmentation types, such as the separation of CU, PU, and TU in HEVC. The QTBT structure consists of two levels: a first level that segments according to quadtree segmentation; and a second level that segments according to binary tree segmentation. The root node of the QTBT structure corresponds to the CTU. The leaf nodes of the binary tree correspond to the decoding units (CUs).
[0046] In the MTT partitioning structure, blocks can be partitioned using quadtree (QT) partitioning, binary tree (BT) partitioning, and one or more types of ternary tree (TT) partitioning (also known as ternary tree (TT)) partitioning. A ternary or ternary tree partition is a partition that splits a block into three sub-blocks. In some examples, a ternary or ternary tree partition divides a block into three sub-blocks without splitting the original block through a center. The partitioning types in MTT (such as QT, BT, and TT) can be symmetric or asymmetric.
[0047] When operating according to the AV1 codec, the video encoder 200 and video decoder 300 can be configured to decode video data in blocks. In AV1, the largest decoded block that can be processed is called a superblock. In AV1, a superblock can be 128×128 luma samples or 64×64 luma samples. However, in subsequent video decoding formats (e.g., AV2), superblocks can be defined by different (e.g., larger) luma sample sizes. In some examples, the superblock is the top level of a block quadtree. The video encoder 200 can further divide the superblock into smaller decoded blocks. The video encoder 200 can divide the superblock and other decoded blocks into smaller blocks using square or non-square partitioning. Non-square blocks can include N / 2×N, N×N / 2, N / 4×N, and N×N / 4 blocks. The video encoder 200 and video decoder 300 can perform separate prediction and transform processing on each decoded block.
[0048] AV1 also defines video data tiles. A tile is a rectangular array of superblocks that can be decoded independently of other tiles. That is, the video encoder 200 and video decoder 300 can encode and decode the blocks within a tile separately, without using video data from other tiles. However, the video encoder 200 and video decoder 300 can perform filtering across tile boundaries. The tile size can be uniform or non-uniform. Tile-based decoding enables parallel processing and / or multithreading depending on the encoder and decoder implementation.
[0049] In some examples, the video encoder 200 and the video decoder 300 may use a single QTBT or MTT structure to represent each of the luminance and chrominance components, while in other examples, the video encoder 200 and the video decoder 300 may use two or more QTBT or MTT structures, such as one QTBT / MTT structure for the luminance component and another QTBT / MTT structure for the two chrominance components (or two QTBT / MTT structures for the respective chrominance components).
[0050] The video encoder 200 and the video decoder 300 can be configured to use quadtree segmentation, QTBT segmentation, MTT segmentation, superblock segmentation or other segmentation structures.
[0051] In some examples, a CTU includes a decoded tree block (CTB) of luminance samples, two corresponding CTBs of chrominance samples from an image with three sample arrays, or a CTB of samples from a monochrome image or an image decoded using three separate color planes and a syntax structure for decoding the samples. A CTB can be an NxN block of samples of some value N, such that dividing a component into a CTB is a segmentation. A component can be an array or a single sample from one of three arrays (luminance and two chrominance) for an image with a 4:2:0, 4:2:2, or 4:4:4 color format, or an array or a single sample from that array for an image with a monochrome format. In some examples, a decoded block is an MxN block of samples for some values of M and N, such that dividing a CTB into a decoded block is a segmentation.
[0052] Blocks (e.g., CTUs or CUs) can be grouped in various ways within an image. As an example, a brick can refer to a rectangular area of a row of CTUs within a specific tile in an image. A tile can be a rectangular area of a CTU within a specific tile column or row in an image. A tile column is a rectangular area of a CTU whose height is equal to the height of the image, and whose width is specified by a syntax element (e.g., in the image parameter set). A tile row is a rectangular area of a CTU whose height is specified by a syntax element (e.g., in the image parameter set), and whose width is equal to the width of the image.
[0053] In some examples, a tile can be divided into multiple bricks, each brick potentially including one or more CTU rows within the tile. A tile that is not divided into multiple bricks can also be referred to as a brick. However, bricks that are a proper subset of a tile may not be referred to as tiles. Bricks in an image can also be arranged in slices. A slice can be an integer number of bricks in an image that can be exclusively contained within a single Network Abstraction Layer (NAL) unit. In some examples, a slice comprises a continuous sequence of multiple complete tiles or a single complete brick of a single tile.
[0054] This disclosure uses "NxN" and "N by N" interchangeably to refer to the sample dimensions of a block (e.g., a CU or other video block) in the vertical and horizontal dimensions, for example, 16x16 samples or 16 by 16 samples. Generally, a 16x16 CU will have 16 samples in the vertical direction (y=16) and 16 samples in the horizontal direction (x=16). Similarly, an N×N CU generally has N samples in the vertical direction and N samples in the horizontal direction, where N represents a non-negative integer value. Samples in a CU can be arranged in rows and columns. Furthermore, a CU does not necessarily need to have the same number of samples in the horizontal direction as in the vertical direction. For example, a CU can include NxM samples, where M is not necessarily equal to N.
[0055] The video encoder 200 encodes video data of the CU (Complex Unit), which represents prediction and / or residual information, as well as other information. The prediction information indicates how the CU should be predicted to form a prediction block of the CU. The residual information typically represents the sample-by-sample difference between a sample of the CU before encoding and the prediction block.
[0056] To predict the Cubic Frame (CU), the video encoder 200 typically forms a predicted block of the CU through inter-frame prediction or intra-frame prediction. Inter-frame prediction generally refers to predicting the CU from data of a previously decoded image, while intra-frame prediction generally refers to predicting the CU from data of a previously decoded image within the same frame. To perform inter-frame prediction, the video encoder 200 can use one or more motion vectors to generate the predicted block. The video encoder 200 can typically perform a motion search to identify a reference block that closely matches the CU, for example, based on the differences between the CU and a reference block. The video encoder 200 can use sum of absolute differences (SAD), sum of squared differences (SSD), mean absolute difference (MAD), mean squared difference (MSD), or other such difference calculations to compute a difference metric to determine whether the reference block closely matches the current CU. In some examples, the video encoder 200 can use unidirectional or bidirectional prediction to predict the current CU.
[0057] Some examples of VVC also provide affine motion compensation modes, which can be considered as inter-frame prediction modes. In affine motion compensation mode, the video encoder 200 can determine two or more motion vectors representing non-translational motion, such as zoom in or out, rotation, perspective motion, or other irregular motion types.
[0058] To perform intra-frame prediction, the video encoder 200 can select an intra-frame prediction mode to generate prediction blocks. Some examples of VVC provide sixty-seven intra-frame prediction modes, including various orientation modes, as well as planar and DC modes. Generally, the video encoder 200 selects an intra-frame prediction mode that describes the neighboring samples of the current block (e.g., a block of a CU), predicting samples of the current block from the neighboring samples. Assuming the video encoder 200 decodes the CTU and CU in raster scan order (from left to right, from top to bottom), such samples are typically likely above, to the upper left, and to the left of the current block in the same image as the current block.
[0059] The video encoder 200 encodes data representing the prediction mode of the current block. For example, for inter-frame prediction modes, the video encoder 200 may encode data indicating which of the various available inter-frame prediction modes is used, along with the motion information for the corresponding mode. For instance, for unidirectional or bidirectional inter-frame prediction, the video encoder 200 may encode motion vectors using Advanced Motion Vector Prediction (AMVP) or merging modes. The video encoder 200 may use similar modes to encode motion vectors for affine motion compensation modes.
[0060] AV1 includes two common techniques for encoding and decoding blocks of video data. These two common techniques are intra-frame prediction (e.g., intra-frame prediction or spatial prediction) and inter-frame prediction (e.g., inter-frame prediction or temporal prediction). In the context of AV1, when using intra-frame prediction modes to predict blocks of video data for the current frame, the video encoder 200 and video decoder 300 do not use video data from other frames of the video data. For most intra-frame prediction modes, the video encoder 200 encodes blocks of the current frame based on the difference between sample values in the current block and predicted values generated based on reference samples in the same frame. The video encoder 200 determines the predicted values generated based on the reference samples based on the intra-frame prediction mode.
[0061] After prediction (e.g., intra-frame or inter-frame prediction of a block), the video encoder 200 can compute residual data for the block. Residual data, such as residual blocks, represents the sample-by-sample difference between the block and the predicted block formed using the corresponding prediction mode. The video encoder 200 can apply one or more transforms to the residual blocks to produce transformed data in the transform domain rather than the sample domain. For example, the video encoder 200 can 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 can apply a second transform after the first transform, such as a Mode Correlated Inseparable Second Transform (MDNSST), a Signal Correlation Transform, a Karhunen-Loeve Transform (KLT), etc. The video encoder 200 produces transform coefficients after applying one or more transforms.
[0062] As described above, after any transform that produces the transform coefficients, the video encoder 200 can perform quantization of the transform coefficients. Quantization generally refers to the process in which transform coefficients are quantized to potentially reduce the amount of data used to represent the transform coefficients, providing further compression. By performing the quantization process, the video encoder 200 can reduce the bit depth associated with some or all of the transform coefficients. For example, the video encoder 200 can, during quantization, quantize... n The position value is rounded down to 1 m Bit value, where n Greater than m In some examples, in order to perform quantization, the video encoder 200 may perform a bitwise right shift of the value to be quantized.
[0063] After quantization, the video encoder 200 can scan the transform coefficients to produce a one-dimensional vector from a two-dimensional matrix including the quantized transform coefficients. The scan can be designed to place higher-energy (and therefore lower-frequency) transform coefficients before the vector and lower-energy (and therefore higher-frequency) transform coefficients after the vector. In some examples, the video encoder 200 can utilize a predefined scan order to scan the quantized transform coefficients to produce a serialized vector, and then entropy-encode the quantized transform coefficients of that vector. In other examples, the video encoder 200 can perform an adaptive scan. After scanning the quantized transform coefficients to form a one-dimensional vector, the video encoder 200 can entropy-encode the one-dimensional vector, for example, according to context-adaptive binary arithmetic decoding (CABAC). The video encoder 200 can also entropy-encode the values of syntax elements describing metadata associated with the encoded video data, which is used by the video decoder 300 when decoding the video data.
[0064] When encoding the transform coefficients of a transform block, the video encoder 200 can encode the values of syntax elements, which include, for example, an explicit transform coefficient flag (indicating whether the absolute value of the coefficient is greater than zero), a greater than 1 flag (indicating whether the absolute value of the coefficient is greater than 1), a greater than 2 flag (indicating whether the absolute value of the coefficient is greater than 2), a remainder value (indicating the amount by which the absolute value of the coefficient exceeds 2), and a sign flag (indicating whether the value of the coefficient is positive or negative).
[0065] When encoding the remainder value of the current coefficient, the video encoder 200 can binarize the remainder value using the Rice parameter. According to the technology of this disclosure, in order to determine the Rice parameter, the video encoder 200 can calculate the sum of the absolute values of the adjacent coefficients for the current coefficient. For example, the video encoder 200 can calculate the absolute values of the coefficients to the right, second to the right, below, second below, and bottom right of the current coefficient, as follows: Figure 2 As shown in the diagram. The video encoder 200 can then sum each calculated absolute value to form a sum of absolute values. The video encoder 200 can then determine at least one of the stripe types, including bit depth and / or the stripe type of the current block.
[0066] Then, the video encoder 200 can calculate a base level offset value based on the bit depth and / or stripe type, for example, using equation (1) discussed in more detail below. The video encoder 200 can then use this base level offset value to calculate a normalized value of the sum of absolute values. For example, the video encoder 200 can calculate the normalized value using equation (2) discussed in more detail below. The video encoder 200 can then use the normalized value of the sum of local absolute values to derive the Rice parameter, for example, according to Table 1 discussed in more detail below. The video encoder 200 can then use the Rice parameter to form a Golomb-Rice code of the normalized sum of absolute values.
[0067] To perform CABAC, the video encoder 200 can assign context within a context model to the symbols to be transmitted. The context may involve, for example, whether the neighboring values of a symbol are zero. Probability determination can be based on the context assigned to the symbol. For the transform coefficients discussed in the example above, a symbol may correspond to one of the bits (binary numbers) of a Golomb-Rice code.
[0068] The video encoder 200 can also generate syntax data for the video decoder 300, such as block-based syntax data, image-based syntax data, and sequence-based syntax data, for example, in image headers, block headers, slice headers, or other syntax data, such as sequence parameter sets (SPS), image parameter sets (PPS), or video parameter sets (VPS). The video decoder 300 can also decode such syntax data to determine how to decode the corresponding video data.
[0069] In this way, the video encoder 200 can generate a bitstream that includes encoded video data, such as syntax elements describing the segmentation of the image into blocks (e.g., CUs) and prediction and / or residual information for the blocks. Finally, the video decoder 300 can receive the bitstream and decode the encoded video data.
[0070] Generally, the video decoder 300 performs the reverse process of the video encoder 200 to decode the encoded video data of the bitstream. For example, the video decoder 300 can use CABAC to decode the values of syntax elements of the bitstream in a manner substantially similar to but opposite to the CABAC encoding process of the video encoder 200. Syntax elements can define segmentation information for segmenting the image into CTUs and for segmenting each CTU according to a corresponding segmentation structure such as a QTBT structure to define the CUs of the CTU. Syntax elements can further define prediction and residual information for video data blocks (e.g., CUs).
[0071] The residual information can be represented, for example, by quantized transform coefficients. The video decoder 300 can inversely quantize and inversely transform the quantized transform coefficients of a block to reconstruct the residual block of that block. The video decoder 300 uses a signaled prediction mode (intra-frame or inter-frame prediction) and associated prediction information (e.g., motion information for inter-frame prediction) to form a prediction block of the block. The video decoder 300 can then combine the prediction block and the residual block (on a sample-by-sample basis) to reconstruct the original block. The video decoder 300 can perform additional processing, such as performing a deblocking process to reduce visual artifacts along block boundaries.
[0072] According to the technology of this disclosure, the video decoder 300 can receive the entropy-coded value of the current coefficient for a transform block. The video decoder 300 can entropy decode the entropy-coded value to form a Golomb-Rice code representing the value of the current coefficient. The video decoder 300 can calculate the sum of the local absolute values of the adjacent coefficients for the current coefficient. The video decoder 300 can also calculate the base level offset value, for example, using equation (1) discussed below. The video decoder 300 can calculate the normalized value of the sum of absolute values using the base level offset value, for example, using equation (2) discussed below. The video decoder 300 can then determine the Rice parameter based on the normalized value, for example, using Table 1 discussed below. The video decoder 300 can then binarize the value of the current coefficient (e.g., the absolute remainder value) from the Golomb-Rice code using the Rice parameter. The video decoder 300 can reconstruct the current coefficient based on the absolute remainder value and other decoded values of the current coefficient (e.g., sign value, effective transform coefficient value, value greater than 1, and value greater than 2).
[0073] This disclosure may generally refer to "signaling" certain information, such as syntax elements. The term "signaling" can generally refer to communication of values for syntax elements and / or other data used for decoding encoded video data. That is, video encoder 200 may signal the values of syntax elements in the bitstream. Typically, signaling refers to generating a value in the bitstream. As described above, source device 102 may transmit the bitstream to destination device 116 substantially in real time or non-real time, for example, when storing syntax elements to storage device 112 for later retrieval by destination device 116.
[0074] Figure 2 This is a conceptual diagram illustrating an example of the adjacent coefficients of the current coefficients that can be used to compute the sum of local absolute values (locSumAbs). In the current VVC design, the Rice parameter used for regular residual decoding (RRC) is derived from a template using a lookup table that considers the coefficient values of adjacent transform coefficients. Figure 2 Adjacency coefficient of medium gray shading Figure 2 The template for the current coefficient of the black shadow in the image.
[0075] Specifically, Figure 2The current block 130 is depicted, including various transformation coefficients. The current block 130 includes the current coefficient 132 and adjacent coefficients 134A-124E (adjacent coefficients 134). Relative to the position of the current coefficient 132, adjacent coefficient 134A represents the right adjacent coefficient, adjacent coefficient 134B represents the second right adjacent coefficient, adjacent coefficient 134C represents the lower right adjacent coefficient, adjacent coefficient 134D represents the lower adjacent coefficient, and adjacent coefficient 134E represents the second lower adjacent coefficient.
[0076] The video decoder can calculate the sum of local absolute values (locSumAbs), such as the absolute value of the adjacent coefficient 134 of the current coefficient 132. According to VVC, the video decoder calculates the value of locSumAbs as follows: Figure 2 The sum of the absolute values of the five available adjacent coefficients. According to an example from VVC, the video decoder then normalizes the value of locSumAbs using subtraction and cropping: locSumAbs = Clip3( 0, 31, locSumAbs – baseLevel 5)
[0077] Then, based on VVC, the video decoder uses the normalized value of locSumAbs from Table 1 below to derive the Rice parameter: Table 1
[0078] In VVC, the Rice parameter is limited to a closed interval from 0 to 3.
[0079] According to the technology of this disclosure, the video decoder can calculate the base level offset based on equation (1) discussed in more detail below. That is, the video decoder can calculate the base level offset value based on the bit depth and / or stripe type of the stripe including the current block 130.
[0080] Figure 3 This is a graph 136 showing the empirical histogram of the decoding transform coefficients for a 16-bit test sequence of video data.
[0081] Figure 4 Figure 140 shows the relationship between the codeword length generated during entropy decoding of coefficient values and a given Rice parameter.
[0082] The Rice parameter has been widely tested for encoding video sources with 8-bit or 10-bit depth. In one example design, the Rice parameter value depends on... locSumAbsThe values are limited to a range of 0 to 3 by cropping. The range of coefficients and therefore... locSumAbs The value may increase significantly. In this case, the current VVC range of the allowed Rice parameter is insufficient because for large values of the decoding coefficients, it will require the use of long codewords, such as 32-bit codewords.
[0083] Figure 3 and Figure 4 It provides a visualization of the potential consequences of the problem. Specifically, Figure 3 The histogram of the decoding coefficients for a 16-bit signal is shown (in powers of 2). Figure 4 The codeword length produced by the VVC entropy decoding method for the decoded value is shown. From Figure 4 It can be seen that limiting the standard range of the Rice parameter to 3 (as defined in VVC) leads to a significant increase in codeword length for decoded values greater than 10. This problem can be solved by allowing larger Rice parameter values for coefficients of a larger order of magnitude.
[0084] In one design (CE1.1 of the JVET-U conference), in order to address the limitations of the current VVC Rice parameter derivation at various input bit depths in video and thus improve compression efficiency, the supported range of the Rice parameter can be extended from 3 in VVC to a large number, such as 16. This would provide a more efficient binarization process and achieve a lower number of bits for large transform coefficient values.
[0085] For example, according to Equation 1517 of the VVC specification, the value of localSumbAbs can be scaled / normalized to handle bit depth increases or the dynamic range of transform coefficients before being used to derive the Rice parameters. The amount of the scaling factor can depend on the output value of the template derivation—localSumAbs, which is calculated to indicate the local activity of the transform coefficients, or on syntax elements signaled in the bitstream or a set of list values.
[0086] The VVC video encoder can compare the determined value of localSumAbs with a set of list thresholds Tx={Tid} to identify the dynamic range id that includes the dynamic range of that value. The video encoder can then scale and / or normalize the value of localSumAbs using a scalar normShift of values from a given set of list Rx={Rid} determined by the range id. The video encoder can then use the normalized localSumAbs to derive the Rice parameter using a predefined lookup table (e.g., the current lookup table in VVC, Table 128). With the value of localSumAbs normalized in the first step of the proposed design, the Rice parameter can be derived from a predefined table (e.g., from Table 128) and finally modified by adding an offset equal to Rid to extend the dynamic range of the Rice parameter range.
[0087] The set of threshold Tx and scaler Rx can be defined as follows:
[0088] Tx[8] = {32,128, 512, 2048, 8192, 32768, 131072, 524288};
[0089] Rx[9] = {0, 2, 4, 6, 8, 10, 12, 14, 16};
[0090] The values of array Tx can be restricted to powers of 2. In other embodiments, these values are excited by powers of 2 (2^x) and can be converted to powers of 2 by a finite number of operations such as offset, scaling, or right / left shift.
[0091] The size of the array can be equal to N, where N is a positive integer greater than the lower bound (e.g., >1 or >2) and less than the upper bound (e.g., 9 or 5). In some embodiments, the size of the Rx array is one entry larger than the Tx array. In some embodiments, the sizes of the Tx and Rx arrays can be limited to 4.
[0092] In some examples, the relevant Rice parameter derivation in VVC can be modified as follows, where the size of the list array is equal to 4.
[0093] To expand the range of the Rice parameter, CE1.2 of the U conference recommended that if locSumAbs exceeds a certain threshold, the value of locSumAbs be scaled by a shift so that the scaled value fits within the allowable range of Table 128 of the VVC specification without pruning. Subsequently, if scaling is performed for a given locSumAbs value, the output of Table 128 is adjusted by increasing the shift value.
[0094] The encoder (e.g., video encoder 200) can select a value for the syntax element sh_scale_rice, which can be either 1 or 2.
[0095] scalledCoef = (localSumAbs sh_scale_rice)>>3
[0096] shift = (scalledCoef == 0) ? 0 : Floor( Log2( scalledCoef) )
[0097] The value sh_scale_rice used is sent as a syntax element in the strip header by signaling, and is derived as a function of the QP value on the encoder side.
[0098] The specification text for VVC can be as follows: A value of 1 for `sps_high_bit_depth` indicates that the `sh_rice_parameter` syntax element can exist in the stripe header to implement the high bit depth mode of the Rice parameter for the binary representation of `abs_remaining[]` and `dec_abs_level`. A value of 0 for `sps_high_bit_depth` indicates that the `sh_rice_parameter` syntax element does not exist in the stripe header and the high bit depth mode cannot be implemented for the deduced Rice parameter. When it does not exist, the value of `sps_high_bit_depth` is inferred to be 0. 7.3.7 Strip Header Syntax `sh_scale_rice` specifies the scaling value used to derive the `Rice` parameter. The value of `sh_scale_rice` should be within a closed interval of 1 to 2. When `sh_scale_rice` does not exist, it is inferred to be equal to 0.
[0099] The RRC method discussed above can be extended using the history of the Rice parameters used, as discussed below:
[0100] Using a single counter for each color component, StatCoeff[3] updates once per TU from the first non-zero Golomb-Rice decoding transform coefficient (abs_remainder[] or dec_abs_level[]).
[0101] When the first non-zero Golomb-Rice decoded transform coefficient in the TU is decoded to abs_remainder, the history counter (StatCoeff) for the color component cIdx is updated as follows: StatCoeff[cIdx] = ( StatCoeff[cIdx]+ Floor(Log2(abs_remainder[ ])) +2 )>>1
[0102] When the first non-zero Golomb-Rice decoder transform coefficient in the TU is decoded to abs_remainder, the history counter for the color component cIdx is updated as follows: StatCoeff[cIdx] = ( StatCoeff[cIdx]+ Floor(Log2(dec_abs_level[ ])) )>>1
[0103] The history counter StatCoeff[3] can be reset at the CTU level with a default value, or the history can be propagated between different CTUs.
[0104] The template derivation uses historical Rice parameter values. Implementation of this method in Clause 9.3.3.2 shows an excerpt of the VVC specification text from Clause 9.3.3.2, where the text highlighted in green relates to changes in CE-1.2, and the text highlighted in yellow is associated with the classification used in CE-1.4. The variable g_historyValue is derived from the historical counter associated with the current color component id before decoding the current TU. histValue = 1< <StatCoeff[cIdx]
[0105] The video encoder 200 and the video decoder 300 can be configured according to the techniques discussed below in this disclosure. These techniques include modifications to the techniques described above.
[0106] In some examples, for the local Rice derivation technique discussed above, as shown below, the video encoder 200 and the video decoder 300 can derive the baseLevel offset as a function of the input signal bit depth and / or stripe type, and use the baseLevel offset value to scale the locSumAbs value.
[0107] In some examples, the baseLevelOffset of video encoder 200 and video decoder 300 can be derived as follows: baseLevelOffset = (bitDepth>T) ? (isIntra() ? P1 : P2) : (isIntra()? P3 : P4) (1)
[0108] In equation (1), the question mark operator (?) represents an equation of the form <condition>? X : Y, where the value of X is returned if the <condition> is true, but the value of Y is returned if the <condition> is false. The baseLevelOffset value represents the base level offset, bitDepth represents the bit depth of the video bitstream, T is the threshold, and P1, P2, P3, and P4 are values that can be predetermined in the bitstream or sent by signaling.
[0109] The video encoder 200 and video decoder 300 can normalize localSumAbs using a base-level offset value, as shown below: locSumAbs = Clip3(0, 31, locSumAbs - baseLevelOffset) (2)
[0110] Typically, T represents the threshold, and the values of P1, P2, P3, and P4 represent integer values. In some examples, T=12, P1=5, P2=10, P3=6, and P4=20. Other values for T, P1, P2, P3, and P4 can also be used. T, P1, P2, P3, and P4 can be predefined, signaled in the bitstream, or derived based on various standards.
[0111] In some examples, for the history-based Rice derivation technique discussed above, the video encoder 200 and video decoder 300 can maintain the state of the history counter StatCoeff[cIdx] between certain blocks (e.g., certain CTUs). Additionally or alternatively, the video encoder 200 and video decoder 300 can derive the ScaleRice parameters (which replace the explicitly signaled sh_scale_rice syntax element) at the block level (e.g., the CTU level) based on the current state of the StatCoeff[] counter. Therefore, the video encoder 200 and video decoder 300 do not need to explicitly signal the sh_rice_init syntax element.
[0112] In some examples, the video encoder 200 and video decoder 300 can derive the ScaleRice parameter values by comparing the state of StatCoeff[] with a threshold and specifying integer values for the parameters within a range of integer values. An example of such a derivation is shown below: ScaleRice = (StatCoeff[idx]>= T') ? P2' : P1';
[0113] In some examples, T'=4, P2'=2 and P1'=1.
[0114] In some examples, the video encoder 200 and the video decoder 300 can independently derive the ScaleRice parameter for each color component (e.g., luminance, blue hue chroma, and red hue chroma).
[0115] In some examples, the video encoder 200 and video decoder 300 can consider the values of the historical counters for two or more (e.g., all) color components by using an aggregation function (e.g., a weighting function across color components) when deriving the value of the ScaleRice parameter, as shown below: StatCoefAverage = ((StatCoeff[0] w0) + StatCoeff[1] w1 + StatCoeff[2] w2) / (w0+w1+w2); ScaleRice = (StatCoefAverage>= T'') ? P2'' : P1'';
[0116] In some examples, w0=2, w1=1, w2=1;
[0117] In some examples, the video encoder 200 and video decoder 300 may derive the ScaleRice parameter at the block level (e.g., at the level of CTU, TU, or subTU). The video encoder 200 and video decoder 300 may use the ScaleRice parameter when decoding data for subsequent decoded data blocks. Alternatively, the video encoder 200 and video decoder 300 may use the derived ScaleRice value with a delay of a block size, for example, for decoding blocks following the next block.
[0118] Therefore, the checks on the if(sps_high_bit_depth) and sh_scale_rice syntax elements can be removed from the syntax table.
[0119] In some examples, the video encoder 200 and the video decoder 300 can derive the ScaleRice value through the above process after StatCoeff has been initialized with default values or values sent by signals.
[0120] Figure 5 This is a block diagram illustrating an example video encoder 200 that can perform the techniques described in this disclosure. Figure 5 This disclosure is provided for illustrative purposes and should not be construed as limiting the techniques illustrated and described in this disclosure in a general manner. For illustrative purposes, this disclosure describes a video encoder 200 based on VVC (ITU-TH.266, under development) and HEVC (ITU-TH.265) technologies. However, the techniques of this disclosure can be implemented by video decoding devices configured for other video decoding standards and video decoding formats, such as AV1 and its successors.
[0121] exist Figure 5In the example, 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 units in the video data memory 230, mode selection unit 202, residual generation unit 204, transform processing unit 206, quantization unit 208, inverse quantization unit 210, inverse transform processing unit 212, reconstruction unit 214, filter unit 216, DPB 218, and entropy coding unit 220 can be implemented in one or more processors or in processing circuitry. For example, the units of the video encoder 200 can be implemented as one or more circuit or logic elements as part of hardware circuitry, or as part of a processor, ASIC, or FPGA. Furthermore, the video encoder 200 may include additional or alternative processors or processing circuitry to perform these and other functions.
[0122] The video data storage device 230 can store video data to be encoded by the components of the video encoder 200. The video encoder 200 can obtain data from, for example, a video source 104 (…). Figure 1 The video data memory 230 receives video data stored in the video data memory 230. The DPB 218 can act as a reference picture memory, storing reference video data for use when the video encoder 200 predicts subsequent video data. The video data memory 230 and DPB 218 can be formed from any memory device of various memory devices, such as dynamic random access memory (DRAM) (including synchronous DRAM (SDRAM)), magnetoresistive RAM (MRAM), resistive RAM (RRAM), or other types of memory devices. The video data memory 230 and DPB 218 can be provided by the same memory device or separate memory devices. In various examples, the video data memory 230 can be on-chip (as shown) with other components of the video encoder 200, or off-chip relative to those components.
[0123] In this disclosure, references to video data memory 230 should not be construed as limited to memory internal to video encoder 200 (unless specifically described as such) or memory external to video encoder 200 (unless specifically described as such). Rather, references to video data memory 230 should be understood as reference memory storing video data received by video encoder 200 for encoding (e.g., video data for the current block to be encoded). Figure 1 The memory 106 can also provide temporary storage for the outputs from various units of the video encoder 200.
[0124] Show Figure 5 The various units help to understand the operations performed by the video encoder 200. Units can be implemented as fixed-function circuits, programmable circuits, or a combination thereof. Fixed-function circuits are circuits that provide a specific function and are pre-defined in terms of the operations they can perform. Programmable circuits refer to circuits that can be programmed to perform various tasks and provide flexible functionality in the operations they can perform. For example, a programmable circuit can execute software or firmware that causes the programmable circuit to operate in a manner defined by the instructions of the software or firmware. Fixed-function circuits can execute software instructions (e.g., receiving or outputting parameters), but the type of operation performed by a fixed-function circuit is typically immutable. In some examples, one or more units within the unit may be different circuit blocks (fixed-function or programmable), and in some examples, one or more units within the unit may be integrated circuits.
[0125] The video encoder 200 may include an arithmetic logic unit (ALU), an essential function unit (EFU), digital circuitry, analog circuitry, and / or a programmable core, all formed by programmable circuitry. In an example where the operation of the video encoder 200 is performed using software executed by programmable circuitry, memory 106 ( Figure 1 The video encoder 200 may store instructions (e.g., object code) of the software received and executed by the video encoder 200, or another memory (not shown) within the video encoder 200 may store such instructions.
[0126] The video data storage unit 230 is configured to store the received video data. The video encoder 200 can retrieve images of the video data from the video data storage unit 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 storage unit 230 can be the raw video data to be encoded.
[0127] The mode selection unit 202 includes a motion estimation unit 222, a motion compensation unit 224, and an intra-frame prediction unit 226. The mode selection unit 202 may include additional functional units for performing video prediction based on other prediction modes. As an example, the mode selection unit 202 may include a palette unit, an intra-block copy unit (which may be part of the motion estimation unit 222 and / or the motion compensation unit 224), an affine unit, a linear model (LM) unit, etc.
[0128] Mode selection unit 202 typically coordinates multiple coding passes to test combinations of coding parameters and the rate-distortion values obtained for such combinations. Coding parameters may include the CTU-CU partitioning, the prediction mode used for the CU, the transformation type of the residual data used for the CU, and the quantization parameters of the residual data used for the CU. Mode selection unit 202 can ultimately select a combination of coding parameters that yields a better rate-distortion value compared to other tested combinations.
[0129] The video encoder 200 can segment images retrieved from the video data storage 230 into a series of CTUs and encapsulate one or more CTUs within a slice. The mode selection unit 202 can segment the CTUs of the image according to a tree structure (such as the MTT structure, QTBT structure, superblock structure, or quadtree structure described above). As described above, the video encoder 200 can form one or more CUs by dividing CTUs according to a tree structure. Such CUs can also be referred to as "video blocks" or "blocks".
[0130] Typically, mode selection unit 202 also controls its components (e.g., motion estimation unit 222, motion compensation unit 224, and intra-frame prediction unit 226) to generate prediction blocks for the current block (e.g., the current CU, or the overlapping portion of PU and TU in HEVC). To perform inter-frame prediction for the current block, motion estimation unit 222 can perform a motion search to identify one or more closely matching reference blocks in one or more reference pictures (e.g., one or more previously decoded pictures stored in DPB 218). Specifically, motion estimation unit 222 can calculate values representing the similarity between a potential reference block and the current block, for example, based on sum of absolute differences (SAD), sum of squared differences (SSD), mean absolute difference (MAD), mean squared error (MSD), etc. Motion estimation unit 222 can typically perform these calculations using sample-by-sample differences between the current block and the considered reference blocks. Motion estimation unit 222 can identify the reference block with the lowest value obtained from these calculations, indicating the reference block that most closely matches the current block.
[0131] Motion estimation unit 222 can generate one or more motion vectors (MVs) that define the position of a reference block in a reference image relative to the position of the current block in the current image. Motion estimation unit 222 can then provide the motion vectors to motion compensation unit 224. For example, for unidirectional inter-frame prediction, motion estimation unit 222 can provide a single motion vector, while for bidirectional inter-frame prediction, motion estimation unit 222 can provide two motion vectors. Motion compensation unit 224 can then use the motion vectors to generate prediction blocks. For example, motion compensation unit 224 can use the motion vectors to retrieve data for the reference blocks. As another example, if the motion vectors have fractional-sample precision, motion compensation unit 224 can interpolate the values used for the prediction blocks according to one or more interpolation filters. Furthermore, for bidirectional inter-frame prediction, motion compensation unit 224 can retrieve data for two reference blocks identified by corresponding motion vectors and combine the retrieved data, for example, by per-sample averaging or weighted averaging.
[0132] When operating according to the AV1 video decoding format, the motion estimation unit 222 and the motion compensation unit 224 can be configured to encode the decoded blocks of video data (e.g., both luma and chroma decoded blocks) using translational motion compensation, affine motion compensation, overlapping block motion compensation (OBMC), and / or composite intra-frame prediction.
[0133] As another example, for intra-prediction or intra-prediction decoding, intra-prediction unit 226 can generate a prediction block based on samples adjacent to the current block. For example, in directional mode, intra-prediction unit 226 can typically mathematically combine the values of adjacent samples and fill these calculated values across the current block in a defined direction to generate a prediction block. As another example, in DC mode, intra-prediction unit 226 can calculate the average of the adjacent samples of the current block and generate a prediction block to include the obtained average for each sample in the prediction block.
[0134] When operating according to the AV1 video decoding format, the intra-prediction unit 226 can be configured to encode decoded blocks of video data (e.g., both luma and chroma decoded blocks) using directional intra-prediction, non-directional intra-prediction, recursive filter intra-prediction, chroma prediction from luma (CFL), intra-block copying (IBC), and / or palette modes. The mode selection unit 202 may include additional functional units for performing video prediction based on other prediction modes.
[0135] Mode selection unit 202 provides the prediction block to residual generation unit 204. Residual generation unit 204 receives the original, undecoded version of the current block from video data memory 230 and the prediction block from mode selection unit 202. Residual generation unit 204 calculates the sample-by-sample difference between the current block and the prediction block. The resulting sample-by-sample difference defines the residual block of the current block. In some examples, residual generation unit 204 can also determine the difference between sample values in the residual block to generate the residual block using residual differential pulse decode-modulation (RDPCM). In some examples, one or more subtractor circuits performing binary subtraction can be used to form residual generation unit 204.
[0136] In the example where mode selection unit 202 divides a CU into PUs, each PU can be associated with a luma prediction unit and a corresponding chroma prediction unit. Video encoder 200 and video decoder 300 can support PUs of various sizes. As noted above, the size of a CU can refer to the size of the luma decoding block of the CU, while the size of a PU can refer to the size of the luma prediction unit of the PU. Assuming a particular CU size is 2Nx2N, video encoder 200 can support PU sizes of 2Nx2N or NxN for intra-frame prediction, and symmetric PU sizes of 2Nx2N, 2NxN, Nx2N, NxN, or similar for inter-frame prediction. Video encoder 200 and video decoder 300 can also support asymmetric partitioning of PU sizes of 2NxnU, 2NxnD, nLx2N, and nRx2N for inter-frame prediction.
[0137] In an example where mode selection unit 202 does not further divide the CU into PUs, each CU can be associated with a luminance decoding block and a corresponding chrominance decoding block. As mentioned above, the size of the CU can refer to the size of the luminance decoding block of the CU. The video encoder 200 and the video decoder 300 can support CU sizes of 2Nx2N, 2NxN, or Nx2N.
[0138] For other video decoding techniques (such as block-based copy mode decoding, affine mode decoding, and linear model (LM) mode decoding), mode selection unit 202 generates a prediction block for the current block being encoded via a corresponding unit associated with the decoding technique. In some examples (such as palette mode decoding), mode selection unit 202 may not generate a prediction block, but instead generate syntax elements indicating how the block will be reconstructed based on a selected palette. In such a mode, mode selection unit 202 can provide these syntax elements to entropy coding unit 220 for encoding.
[0139] As described above, the residual generation unit 204 receives video data for the current block and the corresponding prediction block. Then, the residual generation unit 204 generates a residual block for the current block. To generate the residual block, the residual generation unit 204 calculates the sample-by-sample difference between the prediction block and the current block.
[0140] Transform processing unit 206 applies one or more transformations to the residual block to generate a block of transform coefficients (referred to herein as a "transform coefficient block"). Transform processing unit 206 can apply various transformations to the residual block to form the transform coefficient block. For example, transform processing unit 206 can apply a Discrete Cosine Transform (DCT), direction transformation, Karhunen-Loeve Transform (KLT), or conceptually similar transformations to the residual block. In some examples, transform processing unit 206 can perform multiple transformations on the residual block, such as primary and secondary transformations (e.g., rotation transformations). In some examples, transform processing unit 206 does not apply any transformations to the residual block.
[0141] When operating according to AV1, the transform processing unit 206 may apply one or more transforms to the residual block to generate a block of transform coefficients (referred to herein as the "transform coefficient block"). The transform processing unit 206 may apply various transforms to the residual block to form the transform coefficient block. For example, the transform processing unit 206 may apply a combination of horizontal / vertical transforms, which may include the Discrete Cosine Transform (DCT), the Asymmetric Discrete Sine Transform (ADST), the Reversed ADST (e.g., ADST in reverse order), and the Identity Transform (IDTX). When using the Identity Transform, the transform is skipped in either the vertical or horizontal direction. In some examples, transform processing may be skipped.
[0142] Quantization unit 208 can quantize the transform coefficients in the transform coefficient block to produce a quantized transform coefficient block. Quantization unit 208 can quantize the transform coefficients of the transform coefficient block based on the QP value associated with the current block. Video encoder 200 (e.g., via mode selection unit 202) can 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 cause information loss, and therefore, the quantized transform coefficients may have lower accuracy compared to the original transform coefficients produced by transform processing unit 206.
[0143] The inverse quantization unit 210 and the inverse transform processing unit 212 can apply inverse quantization and inverse transform to the quantized transform coefficient block to reconstruct the residual block based on the transform coefficient block. The reconstruction unit 214 can generate a reconstructed block corresponding to the current block (although potentially with some degree of distortion) based on the reconstructed residual block and the prediction block generated by the mode selection unit 202. For example, the reconstruction unit 214 can add samples from the reconstructed residual block to corresponding samples from the prediction block generated by the mode selection unit 202 to generate the reconstructed block.
[0144] Filter unit 216 can perform one or more filtering operations on the reconstructed block. For example, filter unit 216 can perform deblocking to reduce block artifacts along the edges of the CU. In some examples, the operations of filter unit 216 can be skipped.
[0145] When operating according to AV1, filter unit 216 can perform one or more filter operations on the reconstructed block. For example, filter unit 216 can perform a deblocking operation to reduce block artifacts along the edges of the CU. In other examples, filter unit 216 can apply a constrained directional enhancement filter (CDEF), which can be applied after deblocking, and can include the application of an inseparable nonlinear low-pass directional filter based on the estimated edge orientation. Filter unit 216 can also include a loop recovery filter applied after CDEF, and can include a separable symmetric normalized Wiener filter or a dual self-guided filter.
[0146] The video encoder 200 stores the reconstructed blocks in the DPB 218. For example, in an example where the operation of the filter unit 216 is not performed, the reconstruction unit 214 may store the reconstructed blocks 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 blocks in the DPB 218. The motion estimation unit 222 and the motion compensation unit 224 may retrieve a reference picture formed by the reconstructed (and potentially filtered) blocks from the DPB 218 to perform inter-frame prediction of blocks in subsequently encoded pictures. In addition, the intra-frame prediction unit 226 may use the reconstructed blocks of the current picture in the DPB 218 to perform intra-frame prediction of other blocks in the current picture.
[0147] Typically, entropy coding unit 220 can entropy-encode syntax elements received from other functional components of video encoder 200. For example, entropy coding unit 220 can entropy-encode quantized transform coefficient blocks from quantization unit 208. As another example, entropy coding unit 220 can entropy-encode predictive syntax elements (e.g., motion information for inter-frame prediction or intra-frame mode information for intra-frame prediction) from mode selection unit 202. Entropy coding unit 220 can perform one or more entropy coding operations on syntax elements, another example of video data, to generate entropy-encoded data. For example, entropy coding unit 220 can perform context-adaptive variable-length decoding (CAVLC), CABAC, variable-to-variable (V2V) length decoding, syntax-based context-adaptive binary arithmetic decoding (SBAC), probability interval partitioning entropy (PIPE) decoding, exponential Golomb coding, or another type of entropy coding operation on the data. In some examples, entropy coding unit 220 can operate in a bypass mode where syntax elements are not entropy-encoded.
[0148] In some examples, entropy coding unit 220 may be configured to apply any or all of the Rice parameter derivation techniques discussed in this disclosure when entropy coding video data (e.g., the values of one or more syntax elements of transform coefficients). For example, entropy coding unit 220 may receive transform blocks from quantization unit 208. For each coefficient in the transform block, entropy coding unit 220 may encode one or more of the following: valid transform coefficient syntax elements, syntax elements greater than 1, syntax elements greater than 2, sign syntax elements, and remainder values.
[0149] When entropy encoding is performed on the remainder (or dec_abs_remainder value) and other values, the entropy encoding unit 220 can first calculate the sum of local absolute values as the sum of the absolute values of the adjacent coefficients for the current coefficient, for example, as mentioned above regarding... Figure 2 The entropy coding unit 220 can then calculate the base level offset value based on the bit depth and / or the stripe type including the current block, for example, according to equation (1) above. The entropy coding unit 220 can use the base level offset value to calculate the normalized value of the sum of local absolute values, for example, according to equation (2) above. The entropy coding unit 220 can then calculate the Rice parameter based on the normalized value, for example, according to Table 1 above. The entropy coding unit 220 can then use the Rice parameter to determine the Golomb-Rice code for the remainder value and entropy-encode each bit (binary number) of the Golomb-Rice code.
[0150] The video encoder 200 can output a bitstream that includes the entropy-encoded syntax elements required to reconstruct slices or blocks of images. In particular, the entropy coding unit 220 can output a bitstream.
[0151] According to AV1, entropy coding unit 220 can be configured as a symbol-to-symbol adaptive multi-symbol arithmetic encoder. The syntax elements in AV1 include an N-element alphabet, and the context (e.g., a probability model) includes a set of N probabilities. Entropy coding unit 220 can store the probabilities as an n-bit (e.g., 15-bit) cumulative distribution function (CDF). Entropy coding unit 220 can perform recursive scaling using an update factor based on the alphabet size to update the context.
[0152] The operations described above are described at the block level. Such descriptions should be understood as operations applied to luma decoding blocks and / or chroma decoding blocks. As described above, in some examples, the luma decoding block and chroma decoding block are the luma and chroma components of the CU. In some examples, the luma decoding block and chroma decoding block are the luma and chroma components of the PU.
[0153] In some examples, it is not necessary to repeat the operations performed for the luma-coded block for the chroma-decoded block. As one example, it is not necessary to repeat the operations of identifying the motion vector (MV) and reference image of the luma-decoded block to identify the MV and reference image of the chroma block. Instead, the MV used for the luma-decoded block can be scaled to determine the MV used for the chroma block, and the reference image can be the same. As another example, the intra-frame prediction process can be the same for both the luma-decoded block and the chroma-decoded block.
[0154] In this manner, video encoder 200 represents an example of an apparatus for encoding (and decoding) video data, the apparatus including a memory configured to store video data; and one or more processors implemented in circuitry and configured to: calculate the sum of the absolute values of a plurality of adjacent coefficients of the current coefficient of the current block of video data; calculate a base level offset value based on at least one of the bit depth of the video data or the stripe type including the stripe of the current block; use the base level offset value to calculate a normalized value of the sum of absolute values; and decode the current coefficient using the normalized value of the sum of absolute values.
[0155] Figure 6 This is a block diagram illustrating an example video decoder 300 capable of performing the techniques described herein. Figure 6This disclosure is provided for illustrative purposes and is not intended to limit the techniques extensively illustrated and described herein. For illustrative purposes, this disclosure describes a video decoder 300 based on the techniques of VVC (ITU-TH.266, under development) and HEVC (ITU-TH.265). However, the techniques of this disclosure may be implemented by video decoding devices configured for other video decoding standards.
[0156] exist Figure 6 In the example, the video decoder 300 includes a decoded 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) 134. Any or all of the units of the CPB memory 320, entropy decoding unit 302, prediction processing unit 304, inverse quantization unit 306, inverse transform processing unit 308, reconstruction unit 310, filter unit 312, and DPB 134 can be implemented in one or more processors or in processing circuitry. For example, the units of the video decoder 300 can be implemented as one or more circuit or logic elements as part of hardware circuitry, or as part of a processor, ASIC, or FPGA. Furthermore, the video decoder 300 may include additional or alternative processors or processing circuitry to perform these and other functions.
[0157] The prediction processing unit 304 includes a motion compensation unit 316 and an intra-frame prediction unit 318. The prediction processing unit 304 may include an addition unit that performs predictions based on other prediction modes. As an example, the prediction processing unit 304 may include a palette unit, an intra-block copy unit (which may form part of the motion compensation unit 316), an affine unit, a linear model (LM) unit, etc. In other examples, the video decoder 300 may include more, fewer, or different functional components.
[0158] When operating according to AV1, compensation unit 316 can be configured to decode video data blocks (e.g., both luma and chroma decoded blocks) using translational motion compensation, affine motion compensation, OBMC, and / or composite intra-inter-frame prediction, as described above. Intra-frame prediction unit 318 can be configured as described above to decode video data blocks (e.g., both luma and chroma decoded blocks) using directional intra-frame prediction, non-directional intra-frame prediction, recursive filter intra-frame prediction, CFL, intra-block copy (IBC), and / or palette mode.
[0159] CPB memory 320 can store video data to be decoded by components of video decoder 300, such as encoded video bitstreams. For example, it can be stored from computer-readable medium 110 ( Figure 1 The video data stored in the CPB memory 320 is obtained. The CPB memory 320 may include a CPB that stores encoded video data (e.g., syntax elements) from the encoded video bitstream. Furthermore, the CPB memory 320 may store video data different from the syntax elements of the decoded picture, such as temporary data representing the output of various units from the video decoder 300. The DPB 314 typically stores decoded pictures, which the video decoder 300 may output and / or use as reference video data when decoding subsequent data or pictures from the encoded video bitstream. The CPB memory 320 and DPB 314 may be formed of any of a variety of memory devices, such as dynamic random access memory (DRAM) (including synchronous DRAM (SDRAM)), magnetoresistive RAM (MRAM), resistive RAM (RRAM), or other types of memory devices. The CPB memory 320 and 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.
[0160] Additionally or alternatively, in some examples, the video decoder 300 can be drawn from the memory 120 ( Figure 1 The decoded video data is retrieved from the memory. In other words, memory 120 can utilize CPB memory 320 to store data, as discussed above. Similarly, when some or all of the functions of video decoder 300 are implemented using software to be executed by the processing circuitry of video decoder 300, memory 120 can store instructions to be executed by video decoder 300.
[0161] Shown in Figure 6 The various units shown are intended to aid in understanding the operations performed by the video decoder 300. These units can be implemented as fixed-function circuits, programmable circuits, or a combination thereof. Similar to... Figure 5 Fixed-function circuits refer to circuits that provide a specific function and are pre-configured regarding the operations that can be performed. Programmable circuits refer to circuits that can be programmed to perform various tasks and provide flexible functionality in the operations that can be performed. For example, a programmable circuit can execute software or firmware that causes the programmable circuit to operate in a manner defined by the instructions of the software or firmware. Fixed-function circuits can execute software instructions (e.g., receive or output parameters), but the type of operation performed by a fixed-function circuit is typically immutable. In some examples, one or more units in a cell can be different circuit blocks (fixed-function or programmable), and in some examples, one or more units in a cell can be integrated circuits.
[0162] The video decoder 300 may include an ALU, EFU, digital circuitry, analog circuitry, and / or a programmable core formed by programmable circuitry. In an example where the operation of the video decoder 300 is performed by software executed on programmable circuitry, on-chip or off-chip memory may store instructions (e.g., object code) of the software received and executed by the video decoder 300.
[0163] Entropy decoding unit 302 can receive encoded video data from the CPB and perform entropy decoding on the video data to reconstruct the syntax elements. Prediction processing unit 304, inverse quantization unit 306, inverse transform processing unit 308, reconstruction unit 310, and filter unit 312 can generate decoded video data based on the syntax elements extracted from the bitstream.
[0164] In some examples, the entropy decoding unit 302 may be configured to apply any or all of the Rice parameter derivation techniques discussed in this disclosure when entropy decoding video data (e.g., the values of one or more syntax elements of transform coefficients). For example, the entropy decoding unit 302 may receive entropy encoded values of one or more of the following: valid transform coefficient syntax elements, syntax elements greater than 1, syntax elements greater than 2, symbolic syntax elements, and remainder values.
[0165] When decoding the remainder (or dec_abs_remainder value) and other values of the current coefficient, the entropy decoding unit 302 can perform entropy decoding on the Golomb-Rice code in the bitstream of the remainder of the current coefficient. Then, the entropy decoding unit 302 can calculate the sum of local absolute values as the sum of the absolute values of the adjacent coefficients of the current coefficient, for example, as mentioned above. Figure 2 The entropy decoding unit 302 can then calculate the base level offset value based on the bit depth and / or the stripe type including the current block, for example, according to equation (1) above. The entropy decoding unit 302 can use the base level offset value to calculate the normalized value of the sum of local absolute values, for example, according to equation (2) above. The entropy decoding unit 302 can then calculate the Rice parameter based on the normalized value, for example, according to Table 1 above. The entropy decoding unit 302 can then binarize the remainder value from the Golomb-Rice code using the Rice parameter. The entropy decoding unit 302 can concatenate the explicit coefficient value, the value greater than 1, the value greater than 2, and the remainder value to reconstruct the current coefficient.
[0166] Typically, the video decoder 300 reconstructs the image block by block. The video decoder 300 can perform the reconstruction operation on each block individually (where the block currently being reconstructed (i.e., decoded) can be referred to as the "current block").
[0167] Entropy decoding unit 302 can entropy decode the syntax elements of the quantized transform coefficients defining the quantized transform coefficient block, as well as transform information (such as quantization parameters (QP) and / or transform mode indications). Inverse quantization unit 306 can use the QP associated with the quantized transform coefficient block to determine the quantization level, and similarly, determine the inverse quantization level to be applied by inverse quantization unit 306. Inverse quantization unit 306 can, for example, perform a bitwise left shift operation to inverse quantize the quantized transform coefficients. Inverse quantization unit 306 can thus form a transform coefficient block including the transform coefficients.
[0168] After the inverse quantization unit 306 forms the transform coefficient block, the inverse transform processing unit 308 can 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 can apply the inverse DCT, inverse integer transform, inverse Karhunen-Loeve transform (KLT), inverse rotation transform, inverse direction transform, or another inverse transform to the transform coefficient block.
[0169] Furthermore, the prediction processing unit 304 generates a prediction block based on the prediction information syntax elements entropy-decoded by the entropy decoding unit 302. For example, if the prediction information syntax elements indicate that the current block is inter-frame predicted, the motion compensation unit 316 can generate the prediction block. In this case, the prediction information syntax elements may indicate the reference picture from which the reference block is to be retrieved in the DPB 314, and a motion vector identifying the position of the reference block in the reference picture relative to the position of the current block in the current picture. The motion compensation unit 316 can typically be configured with respect to the motion compensation unit 224 ( Figure 5 The method described is basically similar to the way the inter-frame prediction process is performed.
[0170] As another example, if the prediction information syntax element indicates that the current block is intra-predicted, then intra-prediction unit 318 can generate a prediction block according to the intra-prediction mode indicated by the prediction information syntax element. Again, intra-prediction unit 318 can typically be configured with respect to intra-prediction unit 226 ( Figure 5 The intra-prediction process is performed in a manner substantially similar to that described above. The intra-prediction unit 318 can retrieve data from neighboring samples of the current block from the DPB 314.
[0171] Reconstruction unit 310 can reconstruct the current block using the prediction block and the residual block. For example, reconstruction unit 310 can reconstruct the current block by adding the samples of the residual block to the corresponding samples of the prediction block.
[0172] Filter unit 312 can perform one or more filter operations on the reconstructed block. For example, filter unit 312 can perform a deblocking operation to reduce block artifacts along the edges of the reconstructed block. The operation of filter unit 312 is not necessarily performed in all examples.
[0173] The video decoder 300 can store the reconstructed blocks in the DPB 314. For example, in an example where the operation of the filter unit 312 is not performed, the reconstruction unit 310 can store the reconstructed blocks in the DPB 314. In an example where the operation of the filter unit 312 is performed, the filter unit 312 can store the filtered reconstructed blocks in the DPB 314. As discussed above, the DPB 314 can provide reference information (such as samples of the current image for intra-frame prediction and samples of previously decoded images for subsequent motion compensation) to the prediction processing unit 304. Furthermore, the video decoder 300 can output decoded images (e.g., decoded video) from the DPB 314 for use in, for example... Figure 1 The subsequent presentation on display devices such as display device 118.
[0174] In this manner, video decoder 300 represents an example of a device for decoding video data, the device including a memory configured to store the video data; and one or more processors implemented in circuitry and configured to: calculate the sum of the absolute values of a plurality of adjacent coefficients of the current coefficient of the current block of video data; calculate a base level offset value based on at least one of the bit depth of the video data or the stripe type including the stripe of the current block; use the base level offset value to calculate a normalized value of the sum of absolute values; and decode the current coefficient using the normalized value of the sum of absolute values.
[0175] Figure 7 This is a flowchart illustrating an example method for encoding the current block according to the techniques described in this disclosure. The current block may include the current CU. Although it is relative to video encoder 200 ( Figure 1 and 5 This is described in the context of [the specific device described here], but it should be understood that other devices can be configured to perform [the same actions]. Figure 7 Similar to the method.
[0176] In this example, the video encoder 200 initially predicts the current block (350). For example, the video encoder 200 may form a prediction block for the current block. The video encoder 200 may then compute a residual block for the current block (352). To compute the residual block, the video encoder 200 may compute the difference between the original undecoded block for the current block and the prediction block. The video encoder 200 may then transform the residual block and quantize the transform coefficients of the residual block (354). Next, the video encoder 200 may scan the quantized transform coefficients of the residual block (356). During or after the scan, the video encoder 200 may entropy encode the transform coefficients (358). For example, the video encoder 200 may use CAVLC or CABAC to encode the transform coefficients. When entropy encodes the transform coefficients, the video encoder 200 may apply any or all of the Rice parameter derivation techniques discussed in this disclosure. The video encoder 200 may then output the entropy-encoded data of the block (360).
[0177] The video encoder 200 can also decode the current block after encoding it, using the decoded version of the current block as reference data for subsequent decoded data (e.g., in inter-frame prediction or intra-frame prediction modes). Therefore, the video encoder 200 can perform inverse quantization and inverse transform on the coefficients to reconstruct the residual block (362). The video encoder 200 can combine the residual block with the prediction block to form a decoded block (364). The video encoder 200 can then store the decoded block in the DPB 218 (366).
[0178] Figure 8 This is a flowchart illustrating an example method for decoding a current video data block according to the technology described in this disclosure. The current block may include the current CU. Although it is relative to video decoder 300 ( Figure 1 and 6 This is described in the context of [the specific device described here], but it should be understood that other devices can be configured to perform [the same actions]. Figure 8 Similar to the method.
[0179] The video decoder 300 can receive entropy-encoded data for the current block, such as entropy-encoded prediction information and entropy-encoded data for the transform coefficients of the residual block corresponding to the current block (370). The video decoder 300 can entropy decode the entropy-encoded data to determine the prediction information for the current block and reproduce the transform coefficients of the residual block (372). When entropy decoding the transform coefficients, the video decoder 300 can apply any or all of the Rice parameter derivation techniques discussed in this disclosure.
[0180] The video decoder 300 can predict the current block (374), for example, using an intra-frame or inter-frame prediction mode indicated by the prediction information of the current block, to compute a predicted block for the current block. The video decoder 300 can then inversely scan the reproduced transform coefficients (376) to create a block of quantized transform coefficients. The video decoder 300 can then inversely quantize the transform coefficients and apply the inverse transform to the transform coefficients to produce a residual block (378). The video decoder 300 can finally decode the current block (380) by combining the predicted block and the residual block.
[0181] Figure 9 This is a flowchart illustrating an example method for encoding video data according to the technology of this disclosure. Figure 9 The method can generally correspond to Figure 7 Step 358.
[0182] First, the video encoder 200 can determine the current coefficient value (400) of the current video data block. The video encoder 200 can then divide the current coefficient value into corresponding values of syntax elements, such as explicit coefficient syntax elements, syntax elements greater than 1, syntax elements greater than 2, remainder syntax elements, and symbolic syntax elements. Figure 9 The method described describes how to encode the value of the remainder syntax element. However, other syntax elements (such as the dec_abs_level[] syntax element) can also be encoded using this method or similar methods.
[0183] Then, the video encoder 200 can calculate the sum of local absolute values (402). For example, the video encoder 200 can determine the absolute values of the adjacent coefficients of the current coefficient. Regarding Figure 2 For example, adjacent coefficients may include the right adjacent coefficient, the second right adjacent coefficient, the lower right adjacent coefficient, the lower adjacent coefficient, and the second lower adjacent coefficient. The video encoder 200 may sum the absolute values of adjacent coefficients as the sum of local absolute values.
[0184] Then, the video encoding unit 200 can calculate the base level offset value (404) based on the bit depth and / or the stripe type including the current block. For example, the video encoder 200 can calculate the base level offset value (baseLevelOffset) as follows: baseLevelOffset = (bitDepth>T) ? (isIntra() ? P1: P2) : (isIntra() ?P3: P4) Therefore, the video encoder 200 can determine whether the bit depth of the video data is greater than a threshold T. If the bit depth is greater than the threshold, the video encoder 200 can determine whether the stripe type is intra-prediction. If the stripe type is intra-prediction, the video encoder 200 can determine that the base level offset is P1. If the stripe type is not intra-prediction (e.g., inter-prediction, such as P-strip or B-strip), the video encoder 200 can determine that the base level offset is P2. If the bit depth is less than or equal to the threshold, the video encoder 200 can also determine whether the stripe type is intra-prediction. If the stripe type is intra-prediction, the video encoder 200 can determine that the base level offset is P3. If the stripe type is not intra-prediction (e.g., inter-prediction, such as P-strip or B-strip), the video encoder 200 can determine that the base level offset is P4. P1, P2, P3, and P4 can be predefined values, or the video encoder 200 can determine the values of P1, P2, P3, and P4 and send the determined values as signals in the bitstream.
[0185] Then, the video encoder 200 can normalize the sum of local absolute values using the calculated base level offset value (406). For example, the video encoder 200 can calculate: locSumAbs = Clip3( 0, 31, locSumAbs - baseLevelOffset) In this example, a clipping operation Clip3 based on, for example, VVC is used, and the calculated baseLevelOffset value is used to update locSumAbs (sum of local absolute values).
[0186] Then, the video encoder 200 can determine the Rice parameter (408) from the normalized value. For example, the video encoder 200 can use Table 1 as a lookup table to determine the Rice parameter.
[0187] Then, the video encoder 200 can use the Rice parameter to determine the Golomb-Rice code for the coefficient values (e.g., the remainder value) (410). The Golomb-Rice code can be a series of bits (binary numbers). The video encoder 200 can then entropy encode the Golomb-Rice code (412).
[0188] In this way, Figure 9The method represents an example of a method for encoding video data, the method comprising: calculating the sum of the absolute values of a plurality of adjacent coefficients of the current coefficient of the current block of video data; calculating a base level offset value based on at least one of the bit depth of the video data or a stripe type that includes the stripe of the current block; using the base level offset value to calculate a normalized value of the sum of absolute values; and decoding the current coefficient using the normalized value of the sum of absolute values.
[0189] Figure 10 This is a flowchart illustrating an example method for decoding video data according to the technology of this disclosure. Figure 10 The method can generally correspond to Figure 8 Step 372.
[0190] First, the video decoder 300 can perform entropy decoding (420) on the Golomb-Rice code of the current coefficients of the current block of video data. The Golomb-Rice code can correspond to the residual value of the current coefficient, and the current coefficient can also include explicit coefficient syntax elements, syntax elements greater than 1, syntax elements greater than 2, and symbolic syntax elements. Although Figure 10 The example is intended to decode the remainder of the current coefficient, but Figure 10 The method can also be used to decode other values, such as the values of dec_abs_level[] syntax elements.
[0191] Then, the video decoder 300 can calculate the sum of local absolute values (422). For example, the video decoder 300 can determine the absolute values of the adjacent coefficients of the current coefficient. Regarding Figure 2 For example, adjacent coefficients may include the right adjacent coefficient, the second right adjacent coefficient, the lower right adjacent coefficient, the lower adjacent coefficient, and the second lower adjacent coefficient. The video decoder 300 can sum the absolute values of the adjacent coefficients as the sum of local absolute values.
[0192] Then, the video decoding unit 300 can calculate the base level offset value (424) based on the bit depth and / or the stripe type including the current block. For example, the video decoder 300 can calculate the base level offset value (baseLevelOffset) as follows: baseLevelOffset = (bitDepth>T) ? (isIntra() ? P1: P2) : (isIntra() ?P3: P4) Therefore, the video decoder 300 can determine whether the bit depth of the video data is greater than a threshold T. If the bit depth is greater than the threshold, the video decoder 300 can determine whether the stripe type is intra-prediction. If the stripe type is intra-prediction, the video decoder 300 can determine that the base level offset is P1. If the stripe type is not intra-prediction (e.g., inter-prediction, such as P-strip or B-strip), the video decoder 300 can determine that the base level offset is P2. If the bit depth is less than or equal to the threshold, the video decoder 300 can also determine whether the stripe type is intra-prediction. If the stripe type is intra-prediction, the video decoder 300 can determine that the base level offset is P3. If the stripe type is not intra-prediction (e.g., inter-prediction, such as P-strip or B-strip), the video decoder 300 can determine that the base level offset is P4. P1, P2, P3, and P4 can be predefined values, or the video decoder 300 can decode the values of P1, P2, P3, and P4 from the bitstream.
[0193] Then, the video decoder 300 can normalize the sum of local absolute values using the calculated base level offset value (426). For example, the video decoder 300 can calculate: locSumAbs = Clip3( 0, 31, locSumAbs - baseLevelOffset) In this example, the clipping operation Clip3 based on, for example, VVC is used, and the calculated baseLevelOffset value is used to update locSumAbs (sum of local absolute values).
[0194] Then, the video decoder 300 can determine the Rice parameter (428) from the normalized value. For example, the video decoder 300 can use Table 1 as a lookup table to determine the Rice parameter.
[0195] Then, the video decoder 300 can use the Rice parameter to form a binarized (binary) value representing the remainder value from the Golomb-Rice code (430). The video decoder 300 can further reconstruct the coefficient value based on this binarized value (432). For example, the video decoder 300 can concatenate explicit coefficient syntax elements, syntax elements greater than 1, syntax elements greater than 2, and remainder values.
[0196] In this way, Figure 9The method represents a method for decoding video data, comprising: calculating the sum of the absolute values of multiple adjacent coefficients of the current coefficient of the current block of video data; calculating a base level offset value based on at least one of the bit depth of the video data or the stripe type including the stripe of the current block; using the base level offset value to calculate a normalized value of the sum of absolute values; and decoding the current coefficient using the normalized value of the sum of absolute values.
[0197] Examples of various techniques used in this disclosure are summarized in the following clauses:
[0198] Clause 1: A method for decoding video data, the method comprising: calculating the sum of absolute values of a plurality of adjacent coefficients of a current coefficient for a current block of video data; calculating a base level offset value based on at least one of the bit depth of the video data or a stripe type including a stripe of the current block; using the base level offset value to calculate a normalized value of the sum of absolute values; and decoding the current coefficient using the normalized value of the sum of absolute values.
[0199] Clause 2: The method described in Clause 1, wherein the plurality of adjacent coefficients includes five adjacent coefficients for the current coefficient.
[0200] Clause 3: The method according to any one of Clauses 1 and 2, wherein the plurality of adjacent coefficients includes the two right adjacent coefficients of the current coefficient, the two lower adjacent coefficients of the current coefficient, and the lower right adjacent coefficient of the current coefficient.
[0201] Clause 4: The method according to any one of Clauses 1-3, wherein calculating the base level offset comprises: calculating baseLevelOffset = (bitDepth>T) ? (isIntra() ? P1: P2) : (isIntra() ? P3:P4), where bitDepth includes the bit depth of the video data, isIntra() returns true if the slice type is intra-predictive slice, isIntra() returns false if the slice type is inter-predictive slice, and T, P1, P2, P3, and P4 include the corresponding input values.
[0202] Clause 5: The method described in Clause 4, wherein the input values of T, P1, P2, P3 and P4 are predetermined.
[0203] Clause 6: The method described in Clause 4, wherein the input values of T, P1, P2, P3 and P4 are transmitted as signals in a bitstream.
[0204] Clause 7: The method according to any one of Clauses 4-6, wherein T=12, P1=5, P2=10, P3=6, and P4=20.
[0205] Clause 8: The method according to any one of Clauses 4-6, wherein T=12, P1=5, P2=10, P3=10, and P4=20.
[0206] Clause 9: The method according to any one of Clauses 1-8, wherein calculating the normalized value of the sum of absolute values comprises calculating Clip3(0, 31, locSumAbs - baseLevelOffset), wherein locSumAbs comprises the sum of absolute values and baseLevelOffset comprises the base level offset value.
[0207] Clause 10: A method for decoding video data, the method comprising: maintaining a history counter representing the history of Rice parameters used for decoding coefficients of color components of the video data; deriving Rice parameter scaling values for blocks of color components of the video data from the current value of the history counter, without explicitly decoding the values of the Rice parameter scaling values; calculating the sum of absolute values of multiple adjacent coefficients of the current coefficient of the block; using the Rice parameter scaling values to calculate a scaling value of the sum of absolute values; and using the scaling value of the sum of absolute values to decode the current coefficient.
[0208] Clause 11: A method comprising a combination of the method according to any one of Clauses 1-9 and the method according to Clause 10.
[0209] Clause 12: The method described in Clauses 10 and 11, wherein deriving the Rice parameter scaling value comprises calculating (StatCoeff[idx]>= T') ? P2' : P1', where idx represents the color component, StatCoeff[idx] represents the current value of the history counter, and T', P1', and P2' represent the input values.
[0210] Clause 13: The method described in Clause 12, wherein the input values of T', P1', and P2' are predetermined.
[0211] Clause 14: The method according to Clause 12, wherein the input values of T', P1', and P2' are transmitted as signals in a bitstream.
[0212] Clause 15: The method according to any one of Clauses 12-14, wherein T'=4, P2'=2 and P1'=1.
[0213] Clause 16: The method according to Clauses 10 and 11, wherein deriving the Rice parameter scaling value comprises: for all color components including the color components of the video data, calculating an aggregated history counter value representing an aggregation of history counters including the history counter; and using the aggregated history counter value to derive the Rice parameter scaling value.
[0214] Clause 17: The method described in Clause 16, wherein calculating the aggregate history counter value includes: calculating ((StatCoeff[0]) w0) + StatCoeff[1] w1 + StatCoeff[2] w2) / (w0+w1+w2), where StatCoeff[0] represents the first history counter of the history counter for the first color component of the color component, StatCoeff[1] represents the second history counter of the history counter for the second color component of the color component, StatCoeff[2] represents the third history counter of the history counter for the third color component of the color component, and w0, w1 and w2 represent their respective weighting values.
[0215] Clause 18: The method described in Clause 17, wherein deriving the Rice parameter scaling value includes using (StatCoefAverage>= T'') ? P2'' : P1'' to derive the Rice parameter scaling value, where StatCoefAverage represents the aggregated history counter value, and T'', P1'', and P2'' represent the input values.
[0216] Clause 19: The method described in Clause 18, wherein the input values of T'', P1'', and P2'' are predetermined.
[0217] Clause 20: The method according to Clause 18, wherein the input values of T'', P1'', and P2'' are transmitted as signals in a bitstream.
[0218] Clause 21: The method according to any one of Clauses 18-20, wherein T''=4, P2''=2 and P1''=1.
[0219] Clause 22: The method according to any one of Clauses 18-21, wherein w0=2, w1=1 and w2=1.
[0220] Clause 23: The method according to any one of Clauses 10-22, wherein the block includes a decoding tree unit (CTU).
[0221] Clause 24: The method according to any one of Clauses 10-22, wherein the block includes a transformation unit (TU).
[0222] Clause 25: The method according to any one of Clauses 10-22, wherein the block comprises a sub-transformation unit (sub-TU).
[0223] Clause 26: The method according to any one of Clauses 10-22, wherein the block includes a first block and the Rice parameter scaling value includes a first Rice parameter scaling value, the method further comprising using the first Rice parameter scaling value to derive a second Rice parameter scaling value for a second block.
[0224] Clause 27: A method for decoding video data, the method comprising: calculating the sum of absolute values of a plurality of adjacent coefficients of a current coefficient for a current block of video data; calculating a base level offset value based on at least one of the bit depth of the video data or a stripe type including a stripe of the current block; using the base level offset value to calculate a normalized value of the sum of absolute values; and using the normalized value of the sum of absolute values to decode the current coefficient.
[0225] Clause 28: The method described in Clause 27, wherein the plurality of adjacent coefficients includes five adjacent coefficients for the current coefficient.
[0226] Clause 29: The method described in Clause 27, wherein the plurality of adjacent coefficients includes the two right adjacent coefficients of the current coefficient, the two lower adjacent coefficients of the current coefficient, and the lower right adjacent coefficient of the current coefficient.
[0227] Clause 30: The method described in Clause 27, wherein calculating the base level offset includes calculating baseLevelOffset = (bitDepth>T) ? (isIntra() ? P1: P2) : (isIntra() ? P3:P4), where bitDepth includes the bit depth of the video data, isIntra() returns true if the slice type is intra-predictive slice, isIntra() returns false if the slice type is inter-predictive slice, and T, P1, P2, P3, and P4 include the corresponding input values.
[0228] Clause 31: The method described in Clause 30, wherein the input values of T, P1, P2, P3 and P4 are predetermined.
[0229] Clause 32: The method according to Clause 30, wherein the input values of T, P1, P2, P3 and P4 are transmitted as signals in a bit stream.
[0230] Clause 33: The method described in accordance with Clause 30, wherein T=12, P1=5, P2=10, P3=6, and P4=20.
[0231] Clause 34: The method described in accordance with Clause 30, wherein T=12, P1=5, P2=10, P3=10, and P4=20.
[0232] Clause 35: The method according to Clause 27, wherein calculating the normalized value of the sum of absolute values comprises: calculating Clip3(0, 31, locSumAbs - baseLevelOffset), wherein locSumAbs comprises the sum of absolute values and baseLevelOffset comprises the base level offset value.
[0233] Clause 36: A method for decoding video data, the method comprising: maintaining a history counter representing the history of Rice parameters used for decoding coefficients of color components of the video data; deriving Rice parameter scaling values for blocks of color components of the video data based on the current value of the history counter, without explicitly decoding the values of the Rice parameter scaling values; calculating the sum of absolute values of a plurality of adjacent coefficients for the current coefficient of the block; using the Rice parameter scaling values to calculate a scaling value of the sum of absolute values; and decoding the current coefficient using the scaling value of the sum of absolute values.
[0234] Clause 37: The method described in Clause 36, wherein deriving the Rice parameter scaling value comprises: calculating (StatCoeff[idx]>= T') ? P2' : P1', where idx represents the color component, StatCoeff[idx] represents the current value of the history counter, and T', P1', and P2' represent the input values.
[0235] Clause 38: The method described in Clause 37, wherein the input values of T', P1', and P2' are predetermined.
[0236] Clause 39: The method described in Clause 37, wherein the input values of T', P1', and P2' are transmitted as signals in the video data.
[0237] Clause 40: The method described in accordance with Clause 37, wherein T'=4, P2'=2 and P1'=1.
[0238] Clause 41: The method according to Clause 36, wherein deriving the Rice parameter scaling value comprises: for all color components including the color components of the video data, calculating an aggregated history counter value representing an aggregation of history counters including the history counter; and using the aggregated history counter value to derive the Rice parameter scaling value.
[0239] Clause 42: The method according to Clause 41, wherein calculating the aggregate history counter value includes: calculating ((StatCoeff[0]) w0) + StatCoeff[1] w1 + StatCoeff[2] w2) / (w0+w1+w2), where StatCoeff[0] represents the first history counter for the first color component of the color component, StatCoeff[1] represents the second history counter for the second color component of the color component, StatCoeff[2] represents the third history counter for the third color component of the color component, and w0, w1 and w2 represent their respective weighting values.
[0240] Clause 43: The method described in Clause 42, wherein deriving the Rice parameter scaling value comprises: deriving the Rice parameter scaling value using (StatCoefAverage>= T'') ? P2'' : P1'', where StatCoefAverage represents the aggregated history counter value, and T'', P1'', and P2'' represent the input values.
[0241] Clause 44: The method described in Clause 43, wherein the input values of T'', P1'', and P2'' are predetermined.
[0242] Clause 45: The method described in Clause 43, wherein the input values of T'', P1'', and P2'' are transmitted as signals in the video data.
[0243] Clause 46: The method described in Clause 43, wherein T''=4, P2''=2 and P1''=1.
[0244] Clause 47: The method described in accordance with Clause 43, wherein w0=2, w1=1 and w2=1.
[0245] Clause 48: The method according to Clause 36, wherein the block comprises a decoding tree unit (CTU).
[0246] Clause 49: The method according to Clause 36, wherein the block includes a transformation unit (TU).
[0247] Clause 50: The method according to Clause 36, wherein the block includes a sub-transformation unit (sub-TU).
[0248] Clause 51: The method according to Clause 36, wherein the block includes a first block and the Rice parameter scaling value includes a first Rice parameter scaling value, the method further comprising: using the first Rice parameter scaling value to derive a second Rice parameter scaling value for a second block.
[0249] Clause 52: The method according to any one of Clauses 1-51, wherein decoding includes decoding.
[0250] Clause 53: The method according to any one of Clauses 1-51, wherein decoding includes encoding.
[0251] Clause 54: An apparatus for decoding video data, the apparatus comprising one or more units for performing the method according to any one of Clauses 1-53.
[0252] Clause 55: The device according to Clause 54, wherein the one or more units include one or more processors implemented in a circuit.
[0253] Clause 56: The device according to any one of Clauses 54-55 further includes: a display configured to display decoded video data.
[0254] Clause 57: The device pursuant to any one of Clauses 54-56, wherein the device includes one or more of a camera, a computer, a mobile device, a broadcast receiver device, or a set-top box.
[0255] Clause 58: The device according to any one of Clauses 54-57 further includes: a memory for storing the video data.
[0256] Clause 59: A computer-readable storage medium having instructions stored thereon, which, when executed, cause a processor of an apparatus for decoding video data to perform the method according to any one of Clauses 1-53.
[0257] Clause 60: An apparatus for decoding video data, the apparatus comprising: a unit for calculating the sum of absolute values of a plurality of adjacent coefficients of a current coefficient for a current block of video data; a unit for calculating a base level offset value based on at least one of the bit depth of the video data or a stripe type including the stripe of the current block; a unit for calculating a normalized value of the sum of absolute values using the base level offset value; and a unit for decoding the current coefficient using the normalized value of the sum of absolute values.
[0258] Clause 61: An apparatus for decoding video data, the apparatus comprising: a unit for maintaining a history counter representing a history of Rice parameters used for decoding coefficients of color components of the video data; a unit for deriving Rice parameter scaling values for blocks of color components of the video data from the current value of the history counter, without explicitly decoding the values of the Rice parameter scaling values; a unit for calculating the sum of absolute values of a plurality of adjacent coefficients of the current coefficient of the block; a unit for calculating a scaling value of the sum of absolute values using the Rice parameter scaling values; and a unit for decoding the current coefficient using the scaling value of the sum of absolute values.
[0259] Clause 62: A method for decoding video data, the method comprising: calculating the sum of absolute values of a plurality of adjacent coefficients of a current coefficient for a current block of video data; calculating a base level offset based on at least one of the bit depth of the video data or a stripe type including a stripe of the current block; using the base level offset to calculate a normalized value of the sum of absolute values; and decoding the current coefficient using the normalized value of the sum of absolute values.
[0260] Clause 63: The method according to Clause 62, wherein the plurality of adjacent coefficients includes five adjacent coefficients for the current coefficient.
[0261] Clause 64: The method according to Clause 62, wherein the plurality of adjacent coefficients includes two right adjacent coefficients of the current coefficient, two lower adjacent coefficients of the current coefficient, and one lower right adjacent coefficient of the current coefficient.
[0262] Clause 65: The method according to Clause 62, wherein calculating the base level offset comprises: calculating baseLevelOffset = (bitDepth>T) ? (isIntra() ? P1: P2) : (isIntra() ? P3:P4), wherein bitDepth includes the bit depth of the video data, isIntra() returns true if the slice type is intra-predictive slice, isIntra() returns false if the slice type is inter-predictive slice, and T, P1, P2, P3, and P4 include the corresponding input values.
[0263] Clause 66: The method described in accordance with Clause 65, wherein T=12.
[0264] Clause 67: The method described in accordance with Clause 66, wherein P1=5, P2=10, P3=6 and P4=20.
[0265] Clause 68: The method described in accordance with Clause 66, wherein P1=5, P2=10, P3=10 and P4=20.
[0266] Clause 69: The method described in Clause 65, wherein the input values of T, P1, P2, P3 and P4 are predetermined.
[0267] Clause 70: The method according to Clause 65, wherein the input values of T, P1, P2, P3 and P4 are transmitted as signals in a bitstream.
[0268] Clause 71: The method according to Clause 62, wherein calculating the normalized value of the sum of absolute values comprises: calculating Clip3(0, 31, locSumAbs - baseLevelOffset), wherein locSumAbs comprises the sum of absolute values and baseLevelOffset comprises the base level offset value.
[0269] Clause 72: The method according to Clause 62, wherein decoding the current coefficient using the normalized value of the sum of absolute values comprises: determining a Rice parameter corresponding to the normalized value of the sum of absolute values; and binarizing the value of the current coefficient using the Rice parameter to form a binarized value.
[0270] Clause 73: The method according to Clause 62, wherein the current block includes a first block, the color components of the video data include the first block, the sum of absolute values includes a first sum of absolute values, and the plurality of adjacent coefficients includes a first plurality of adjacent coefficients, the method further comprising: maintaining a history counter representing a history of Rice parameters used to decode the coefficients of the color components of the video data; deriving a scaled value of the Rice parameters for a second block of the color components of the video data from the current value of the history counter, without explicitly decoding the value of the scaled value of the Rice parameters; calculating a second sum of second absolute values of a second plurality of adjacent coefficients of the second coefficients of the second block; using the scaled value of the Rice parameters to calculate a scaled value of the second sum of absolute values; and decoding the second coefficients of the second block using the scaled value of the second sum of absolute values.
[0271] Clause 74: The method according to Clause 12, wherein deriving the Rice parameter scaling value comprises: calculating (StatCoeff[idx]>= T') ? P2' : P1', where idx represents the color component, StatCoeff[idx] represents the current value of the history counter, and T', P1', and P2' represent input values.
[0272] Clause 75: The method described in Clause 13, wherein the input values of T', P1', and P2' are predetermined.
[0273] Clause 76: The method according to Clause 13, wherein the input values of T', P1', and P2' are transmitted as signals in a bitstream.
[0274] Clause 77: The method described in Clause 13, wherein T'=4, P2'=2 and P1'=1.
[0275] Clause 78: The method according to Clause 12, wherein deriving the Rice parameter scaling value comprises: calculating, for all color components of the video data, including the color components, an aggregated history counter value representing an aggregation of history counters including the history counter; and using the aggregated history counter value to derive the Rice parameter scaling value.
[0276] Clause 79: The method according to Clause 17, wherein calculating the aggregate history counter value comprises: calculating ((StatCoeff[0]) w0) + StatCoeff[1] w1 + StatCoeff[2] w2) / (w0+w1+w2), where StatCoeff[0] represents the first history counter for the first color component of the color component, StatCoeff[1] represents the second history counter for the second color component of the color component, StatCoeff[2] represents the third history counter for the third color component of the color component, and w0, w1 and w2 represent the corresponding weighted values.
[0277] Clause 80: The method according to Clause 18, wherein deriving the Rice parameter scaling value comprises: deriving the Rice parameter scaling value using (StatCoefAverage>= T'') ? P2'' : P1'', where StatCoefAverage represents the aggregated history counter value, and T'', P1'', and P2'' represent input values.
[0278] Clause 81: The method described in Clause 19, wherein the input values of T'', P1'', and P2'' are predetermined.
[0279] Clause 82: The method described in Clause 19, wherein the input values of T'', P1'', and P2'' are transmitted as signals in the video data.
[0280] Clause 83: The method described in accordance with Clause 19, wherein T''=4, P2''=2 and P1''=1.
[0281] Clause 84: The method described in accordance with Clause 19, wherein w0=2, w1=1 and w2=1.
[0282] Clause 85: The method according to Clause 12, wherein the second block comprises one of a decoding tree unit (CTU), a transform unit (TU), or a sub-transform unit (sub-TU).
[0283] Clause 86: The method according to Clause 62, wherein, in order to decode the current coefficient, the one or more processors are configured to decode the current coefficient using a normalized value of the sum of absolute values.
[0284] Clause 87: The method according to Clause 62, wherein, in order to decode the current coefficient, the one or more processors are configured to: encode the current coefficient using a normalized value of the sum of absolute values.
[0285] Clause 88: An apparatus for decoding video data, the apparatus comprising: a memory configured to store the video data; and one or more processors implemented in a circuit and configured to: calculate the sum of absolute values of a plurality of adjacent coefficients of a current coefficient for a current block of the video data; calculate a base level offset value based on at least one of the bit depth of the video data or a stripe type including a stripe of the current block; use the base level offset value to calculate a normalized value of the sum of absolute values; and decode the current coefficient using the normalized value of the sum of absolute values.
[0286] Clause 89: The device according to Clause 27, wherein the plurality of adjacent coefficients includes five adjacent coefficients for the current coefficient.
[0287] Clause 90: The device according to Clause 27, wherein the plurality of adjacent coefficients includes two right adjacent coefficients of the current coefficient, two lower adjacent coefficients of the current coefficient, and one lower right adjacent coefficient of the current coefficient.
[0288] Clause 91: The device according to Clause 27, wherein, in order to calculate the base level offset, one or more processors are configured to: calculate baseLevelOffset = (bitDepth>T) ? (isIntra() ? P1: P2) :(isIntra() ? P3: P4), where bitDepth includes the bit depth of the video data, isIntra() returns true if the slice type is intra-predictive slice, isIntra() returns false if the slice type is inter-predictive slice, and T, P1, P2, P3, and P4 include the corresponding input values.
[0289] Clause 92: The device as described in Clause 30, wherein T=12.
[0290] Clause 93: The device as described in Clause 30, wherein the input values of T, P1, P2, P3 and P4 are predetermined.
[0291] Clause 94: The device according to Clause 27, wherein, in order to compute a normalized value of the sum of absolute values, the one or more processors are configured to compute Clip3(0, 31, locSumAbs - baseLevelOffset), wherein locSumAbs comprises the sum of absolute values and baseLevelOffset comprises the base level offset value.
[0292] Clause 95: The apparatus according to Clause 27, wherein, in order to decode the current coefficient using a normalized value of the sum of absolute values, one or more processors are configured to: determine a Rice parameter corresponding to the normalized value of the sum of absolute values; and binarize the value of the current coefficient using the Rice parameter to form a binarized value.
[0293] Clause 96: The apparatus according to Clause 27, wherein the current block includes a first block, the color components of the video data include the first block, the sum of absolute values includes a first sum of absolute values, and the plurality of adjacent coefficients includes a first plurality of adjacent coefficients, and wherein one or more processors are configured to: maintain a history counter representing the history of Rice parameters used to decode the coefficients of the color components of the video data; derive a Rice parameter scaling value for a second block of the color components of the video data based on the current value of the history counter, without explicitly decoding the value of the Rice parameter scaling value; calculate a second sum of second absolute values of a second plurality of adjacent coefficients of the second coefficients of the second block; use the Rice parameter scaling value to calculate a scaling value of the second sum of absolute values; and decode the second coefficients of the second block using the scaling value of the second sum of absolute values.
[0294] Clause 97: The device according to Clause 35, wherein, in order to derive the Rice parameter scaling value, one or more processors are configured to calculate (StatCoeff[idx]>= T') ? P2' : P1', where idx represents the color component, StatCoeff[idx] represents the current value of the history counter, and T', P1', and P2' represent the input values.
[0295] Clause 98: The apparatus according to Clause 27, wherein, in order to decode the current coefficient, one or more processors are configured to perform at least one of the following operations: encode the current coefficient using a normalized value of the sum of absolute values, or decode the current coefficient using a normalized value of the sum of absolute values.
[0296] Clause 99: The device pursuant to Clause 27 further includes: a display configured to display decoded video data.
[0297] Clause 100: The device as described in Clause 27, wherein the device includes one or more of a camera, computer, mobile device, broadcast receiver device or set-top box.
[0298] Clause 101: A computer-readable storage medium having instructions stored thereon, wherein, when the instructions are executed, a processor of an apparatus for decoding video data performs the following operations: calculating the sum of absolute values of a plurality of adjacent coefficients of a current coefficient for a current block of video data; calculating a base level offset value based on at least one of the bit depth of the video data or a stripe type including a stripe of the current block; using the base level offset value to calculate a normalized value of the sum of absolute values; and decoding the current coefficient using the normalized value of the sum of absolute values.
[0299] Clause 102: An apparatus for decoding video data, the apparatus comprising: a unit for calculating the sum of absolute values of a plurality of adjacent coefficients of a current coefficient for a current block of video data; a unit for calculating a base level offset value based on at least one of the bit depth of the video data or a stripe type including a stripe of the current block; a unit for calculating a normalized value of the sum of absolute values using the base level offset value; and a unit for decoding the current coefficient using the normalized value of the sum of absolute values.
[0300] Clause 103: A method for decoding video data, the method comprising: calculating the sum of absolute values of a plurality of adjacent coefficients of a current coefficient for a current block of video data; calculating a base level offset based on at least one of a bit depth of the video data or a stripe type including a stripe of the current block; using the base level offset to calculate a normalized value of the sum of absolute values; and decoding the current coefficient using the normalized value of the sum of absolute values.
[0301] Clause 104: The method described in Clause 103, wherein the plurality of adjacent coefficients includes five adjacent coefficients for the current coefficient.
[0302] Clause 105: The method according to any one of Clauses 103 and 104, wherein the plurality of adjacent coefficients includes the two right adjacent coefficients of the current coefficient, the two lower adjacent coefficients of the current coefficient, and the lower right adjacent coefficient of the current coefficient.
[0303] Clause 106: The method according to any one of Clauses 103-105, wherein calculating the base level offset comprises: calculating baseLevelOffset = (bitDepth>T) ? (isIntra() ? P1: P2) : (isIntra() ? P3: P4), wherein bitDepth includes the bit depth of the video data, isIntra() returns true if the slice type is intra-predictive slice, isIntra() returns false if the slice type is inter-predictive slice, and T, P1, P2, P3, and P4 include the corresponding input values.
[0304] Clause 107: The method described in accordance with Clause 106, wherein T=12.
[0305] Clause 108: The method described in accordance with Clause 107, wherein P1=5, P2=10, P3=6 and P4=20.
[0306] Clause 109: The method described in accordance with Clause 107, wherein P1=5, P2=10, P3=10 and P4=20.
[0307] Clause 110: The method according to any one of Clauses 106-109, wherein the input values of T, P1, P2, P3 and P4 are predetermined.
[0308] Clause 111: The method according to any one of Clauses 106-109, wherein the input values of T, P1, P2, P3 and P4 are transmitted as signals in a bit stream.
[0309] Clause 112: The method according to any one of Clauses 103-111, wherein calculating the normalized value of the sum of absolute values comprises calculating Clip3(0, 31, locSumAbs - baseLevelOffset), wherein locSumAbs comprises the sum of absolute values and baseLevelOffset comprises the base level offset value.
[0310] Clause 113: The method according to any one of Clauses 103-112, wherein decoding the current coefficient using a normalized value of the sum of absolute values comprises: determining a Rice parameter corresponding to the normalized value of the sum of absolute values; and binarizing the value of the current coefficient using the Rice parameter to form a binarized value.
[0311] Clause 114: The method according to any one of Clauses 103-113, wherein the current block includes a first block, the color components of the video data include the first block, the sum of absolute values includes a first sum of absolute values, and the plurality of adjacent coefficients includes a first plurality of adjacent coefficients, the method further comprising: maintaining a history counter representing a history of Rice parameters used to decode the coefficients of the color components of the video data; deriving a Rice parameter scaling value for a second block of the color components of the video data based on the current value of the history counter, without explicitly decoding the value of the Rice parameter scaling value; calculating a second sum of second absolute values of a second plurality of adjacent coefficients of the second coefficients of the second block; using the Rice parameter scaling value to calculate a scaling value of the second sum of absolute values; and using the scaling value of the second sum of absolute values to decode the second coefficients of the second block.
[0312] Clause 115: The method according to Clause 114, wherein deriving the Rice parameter scaling value comprises: calculating (StatCoeff[idx]>= T') ? P2' : P1', where idx represents the color component, StatCoeff[idx] represents the current value of the history counter, and T', P1', and P2' represent the input values.
[0313] Clause 116: The method described in Clause 115, wherein the input values of T', P1', and P2' are predetermined.
[0314] Clause 117: The method according to Clause 115, wherein the input values of T', P1' and P2' are transmitted as signals in the video data.
[0315] Clause 118: The method according to any one of Clauses 115-117, wherein T'=4, P2'=2 and P1'=1.
[0316] Clause 119: The method according to any one of Clauses 114-118, wherein deriving the Rice parameter scaling value comprises: for all color components including the color components of the video data, calculating an aggregated history counter value representing an aggregation of history counters including the history counter; and using the aggregated history counter value to derive the Rice parameter scaling value.
[0317] Clause 120: The method according to Clause 119, wherein calculating the aggregate history counter value includes: calculating ((StatCoeff[0]) w0) + StatCoeff[1] w1 + StatCoeff[2] w2) / (w0+w1+w2), where StatCoeff[0] represents the first history counter for the first color component of the color component, StatCoeff[1] represents the second history counter for the second color component of the color component, StatCoeff[2] represents the third history counter for the third color component of the color component, and w0, w1 and w2 represent the corresponding weighted values.
[0318] Clause 121: The method according to Clause 120, wherein deriving the Rice parameter scaling value comprises: using (StatCoefAverage>= T'') ? P2'' : P1'' to derive the Rice parameter scaling value, where StatCoefAverage represents the aggregated history counter value, and T'', P1'', and P2'' represent the input values.
[0319] Clause 122: The method described in Clause 121, wherein the input values of T'', P1'', and P2'' are predetermined.
[0320] Clause 123: The method according to Clause 121, wherein the input values of T'', P1'', and P2'' are transmitted as signals in the video data.
[0321] Clause 124: The method according to any one of Clauses 121-123, wherein T''=4, P2''=2 and P1''=1.
[0322] Clause 125: The method according to any one of Clauses 121-124, wherein w0=2, w1=1 and w2=1.
[0323] Clause 126: The method according to any one of Clauses 114-125, wherein the second block comprises one of a decoding tree unit (CTU), a transform unit (TU), or a sub-transform unit (sub-TU).
[0324] Clause 127: The method according to any one of Clauses 103-126, wherein, in order to decode the current coefficient, one or more processors are configured to decode the current coefficient using a normalized value of the sum of absolute values.
[0325] Clause 128: The method according to any one of Clauses 103-127, wherein, in order to decode the current coefficient, one or more processors are configured to encode the current coefficient using a normalized value of the sum of absolute values.
[0326] Clause 129: An apparatus for decoding video data, the apparatus comprising: a memory configured to store the video data; and one or more processors implemented in a circuit and configured to: calculate the sum of absolute values of a plurality of adjacent coefficients of a current coefficient for a current block of the video data; calculate a base level offset value based on at least one of the bit depth of the video data or a stripe type including a stripe of the current block; use the base level offset value to calculate a normalized value of the sum of absolute values; and decode the current coefficient using the normalized value of the sum of absolute values.
[0327] Clause 130: The device as described in Clause 129, wherein the plurality of adjacent coefficients includes five adjacent coefficients for the current coefficient.
[0328] Clause 131: The device according to any one of Clauses 129 and 130, wherein the plurality of adjacent coefficients includes the two right adjacent coefficients of the current coefficient, the two lower adjacent coefficients of the current coefficient, and the lower right adjacent coefficient of the current coefficient.
[0329] Clause 132: A device according to any one of Clauses 129-131, wherein, in order to calculate the base level offset, one or more processors are configured to calculate baseLevelOffset = (bitDepth>T) ? (isIntra()? P1: P2) : (isIntra() ? P3: P4), where bitDepth includes the bit depth of the video data, isIntra() returns true if the slice type is intra-predictive slice, isIntra() returns false if the slice type is inter-predictive slice, and T, P1, P2, P3, and P4 include the corresponding input values.
[0330] Clause 133: The device as described in Clause 132, wherein T=12.
[0331] Clause 134: The device according to any one of Clauses 132 and 133, wherein the input values of T, P1, P2, P3 and P4 are predetermined.
[0332] Clause 135: A device according to any one of Clauses 129-134, wherein, in order to compute a normalized value of the sum of absolute values, one or more processors are configured to compute Clip3(0, 31, locSumAbs - baseLevelOffset), wherein locSumAbs comprises the sum of absolute values and baseLevelOffset comprises the base level offset value.
[0333] Clause 136: The apparatus according to Clause 135, wherein, in order to decode the current coefficient using a normalized value of the sum of absolute values, one or more processors are configured to: determine a Rice parameter corresponding to the normalized value of the sum of absolute values; and binarize the value of the current coefficient using the Rice parameter to form a binarized value.
[0334] Clause 137: An apparatus according to any one of Clauses 129-136, wherein the current block includes a first block, the color components of the video data include the first block, the sum of absolute values includes a first sum of absolute values, and the plurality of adjacent coefficients includes a first plurality of adjacent coefficients, and wherein one or more processors are configured to: maintain a history counter representing a history of Rice parameters used for decoding the coefficients of the color components of the video data; derive a Rice parameter scaling value for a second block of the color components of the video data based on the current value of the history counter, without explicitly decoding the value of the Rice parameter scaling value; calculate a second sum of second absolute values of a second plurality of adjacent coefficients of the second coefficients of the second block; use the Rice parameter scaling value to calculate a scaling value of the second sum of absolute values; and decode the second coefficients of the second block using the scaling value of the second sum of absolute values.
[0335] Clause 138: The device according to Clause 137, wherein, in order to derive the Rice parameter scaling value, one or more processors are configured to: calculate (StatCoeff[idx]>= T') ? P2' : P1', where idx represents the color component, StatCoeff[idx] represents the current value of the history counter, and T', P1', and P2' represent the input values.
[0336] Clause 139: The device according to any one of Clauses 129-138, wherein, in order to decode the current coefficient, one or more processors are configured to perform at least one of the following operations: encode the current coefficient using a normalized value of the sum of absolute values, or decode the current coefficient using a normalized value of the sum of absolute values.
[0337] Clause 140: The device according to any one of Clauses 129-139 further includes: a display configured to display decoded video data.
[0338] Clause 141: The device pursuant to any one of Clauses 129-140, wherein the device includes one or more of a camera, computer, mobile device, broadcast receiver device or set-top box.
[0339] Clause 142: A computer-readable storage medium having instructions stored thereon, wherein, when the instructions are executed, a processor of an apparatus for decoding video data performs the following operations: calculating the sum of absolute values of a plurality of adjacent coefficients of a current coefficient for a current block of video data; calculating a base level offset value based on at least one of the bit depth of the video data or a stripe type including a stripe of the current block; using the base level offset value to calculate a normalized value of the sum of absolute values; and using the normalized value of the sum of absolute values to decode the current coefficient.
[0340] Clause 143: An apparatus for decoding video data, the apparatus comprising: a unit for calculating the sum of absolute values of a plurality of adjacent coefficients of a current coefficient for a current block of video data; a unit for calculating a base level offset value based on at least one of the bit depth of the video data or a stripe type including a stripe of the current block; a unit for calculating a normalized value of the sum of absolute values using the base level offset value; and a unit for decoding the current coefficient using the normalized value of the sum of absolute values.
[0341] It should be recognized that, depending on the examples, certain actions or events of any technique described herein may be performed in a different order, and may be added, combined, or omitted entirely (e.g., not all described actions or events are necessary for implementing the technique). Furthermore, in some examples, actions or events may be performed concurrently (e.g., through multithreading, interrupt handling, or multiple processors) rather than sequentially.
[0342] In one or more examples, the described functionality can be implemented in hardware, software, firmware, or any combination thereof. If implemented in software, the functionality can be stored as one or more instructions or code on a computer-readable medium or transmitted through a computer-readable medium and executed by a hardware-based processing unit. A computer-readable medium can include a computer-readable storage medium (which corresponds to a tangible medium such as a data storage medium) or a communication medium, including, for example, any medium that facilitates the transfer of a computer program from one place to another according to a communication protocol. In this way, a computer-readable medium can generally correspond to (1) a non-transitory tangible computer-readable storage medium or (2) a communication medium such as a signal or carrier wave. A data storage medium can be any available medium that can be accessed by one or more computers or one or more processors to obtain instructions, code, and / or data structures for implementing the techniques described in this disclosure. A computer program product can include a computer-readable medium.
[0343] By way of example, and not limitation, such computer-readable storage media may include RAM, ROM, EEPROM, CD-ROM or other optical disc storage, magnetic disk storage or other magnetic storage devices, flash memory, or any other medium capable of storing desired program code in the form of instructions or data structures and accessible by a computer. Furthermore, any connection is appropriately 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 technology (e.g., infrared, radio, and microwave), then coaxial cable, fiber optic cable, twisted pair, DSL, or wireless technology (e.g., infrared, radio, and microwave) is included in the definition of medium. However, it should be understood that computer-readable storage media and data storage media do not include connections, carrier waves, signals, or other transient media, but instead refer to non-transient tangible storage media. As used herein, disks and optical discs include compact optical discs (CDs), laser optical discs, optical discs, digital versatile optical discs (DVDs), floppy disks, and Blu-ray discs, wherein disks typically magnetically copy data, while optical discs optically copy data using lasers. The above combinations should also be included within the scope of computer-readable media.
[0344] Instructions can be executed by one or more processors, such as one or more digital signal processors (DSPs), general-purpose microprocessors, application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or other equivalent integrated or discrete logic circuits. Therefore, the terms "processor" and "processing circuitry" as used herein can refer to any of the foregoing structures or any other structure suitable for implementing the techniques described herein. Additionally, in some aspects, the functionality described herein can be provided within dedicated hardware and / or software modules configured for encoding and decoding, or incorporated into a combined decoder. Furthermore, the techniques can be implemented entirely within one or more circuit or logic elements.
[0345] The techniques disclosed herein can be implemented in a wide variety of devices or apparatuses, including wireless mobile phones, integrated circuits (ICs), or a set of ICs (e.g., chipsets). Various components, modules, or units are described in this disclosure to emphasize functional aspects of a device configured to perform the disclosed techniques, but implementation by different hardware units is not necessarily required. Specifically, as described above, various units may be combined in a decoder hardware unit or provided by a collection of interoperable hardware units (including one or more processors as described above) combined with appropriate software and / or firmware.
[0346] Examples have been described. These and other examples are within the scope of the following claims.
Claims
1. A method for decoding video data, the method comprising: Calculate the sum of the absolute values of multiple adjacent coefficients of the current coefficient for the current block of video data; A base level offset is calculated based on the bit depth of the video data and the stripe type of the stripe including the current block, wherein the stripe type indicates whether the stripe is intra-frame predictive decoding or inter-frame predictive decoding. The sum of absolute values is normalized using the base level offset value; The Rice parameter is determined based on the sum of the normalized absolute values; and The current coefficient is decoded using the Rice parameter.
2. The method according to claim 1, wherein, The plurality of adjacent coefficients includes five adjacent coefficients for the current coefficient.
3. The method according to claim 1, wherein, The plurality of adjacent coefficients includes: two right-side adjacent coefficients for the current coefficient, two lower-side adjacent coefficients for the current coefficient, and one lower-right adjacent coefficient for the current coefficient.
4. The method according to claim 1, wherein, Calculating the base level offset includes: calculating baseLevelOffset = (bitDepth > T) ? (isIntra() ? P1: P2) : (isIntra() ? P3: P4), where baseLevelOffset is the base level offset, bitDepth includes the bit depth for the video data, isIntra() returns true if the slice type is intra-predictive slice, or false if the slice type is inter-predictive slice, and T, P1, P2, P3, and P4 include the corresponding input values, and the condition is an equation of the form ? X: Y, where the question mark operator returns the value of X if the condition is true, and the value of Y if the condition is false.
5. The method according to claim 4, wherein, T=12。 6. The method according to claim 5, wherein, P1=5, P2=10, P3=6 and P4=20.
7. The method according to claim 5, wherein, P1=5, P2=10, P3=10 and P4=20.
8. The method according to claim 4, wherein, The input values for T, P1, P2, P3, and P4 are predetermined.
9. The method according to claim 4, wherein, The input values of T, P1, P2, P3, and P4 are transmitted as signals in a bitstream.
10. The method according to claim 1, wherein, The normalized value for calculating the sum of absolute values includes calculating Clip3(0, 31, locSumAbs - baseLevelOffset), where locSumAbs includes the sum of absolute values and baseLevelOffset includes the base level offset value.
11. The method according to claim 1, wherein, Decoding the current coefficient using the normalized value of the sum of the absolute values further includes: The value of the current coefficient is binarized using the Rice parameter to form a binarized value.
12. The method according to claim 1, wherein, The current block includes a first block, the color components of the video data include the first block, the sum of absolute values includes the first sum of absolute values, and the plurality of adjacent coefficients includes a first plurality of adjacent coefficients. The method further includes: Maintain a history counter that represents the history of the Rice parameter used to decode the coefficients of the color components of the video data; The Rice parameter scaling value for the second block of the color component of the video data is derived from the current value of the history counter without explicitly decoding the value of the Rice parameter scaling value. Calculate the sum of the second absolute values of the second plurality of adjacent coefficients for the second coefficient of the second block; The scaling value of the Rice parameter is used to calculate the scaling value for the sum of the second absolute values; and The second coefficient of the second block is decoded using a scaling value applied to the sum of the second absolute values.
13. The method according to claim 12, wherein, The derivation of the Rice parameter scaling value includes: calculating (StatCoeff[idx] >= T') ? P2' : P1', where idx represents the color component, StatCoeff[idx] represents the current value for the history counter, and T', P1', and P2' represent the input values.
14. The method according to claim 13, wherein, The input values of T', P1', and P2' are predetermined.
15. The method according to claim 13, wherein, The input values of T', P1', and P2' are transmitted as signals in the video data.
16. The method according to claim 13, wherein, T'=4, P2'=2 and P1'=1.
17. The method according to claim 12, wherein, The derivation of the Rice parameter scaling value includes: For all color components of the video data, including the color components, calculate an aggregated history counter value representing the aggregation of history counters, including the history counters; and The Rice parameter scaling value is derived using the aggregated history counter value.
18. The method according to claim 17, wherein, Calculating the aggregated history counter value includes: calculating ((StatCoeff[0]) w0) + StatCoeff[1] w1 + StatCoeff[2] w2) / (w0+w1+w2), where StatCoeff[0] represents the first history counter of the history counter for the first color component of the color component, StatCoeff[1] represents the second history counter of the history counter for the second color component of the color component, StatCoeff[2] represents the third history counter of the history counter for the third color component of the color component, and w0, w1 and w2 represent their respective weighting values.
19. The method according to claim 18, wherein, The derivation of the Rice parameter scaling value includes: using (StatCoefAverage >= T'') ? P2'' : P1'' to derive the Rice parameter scaling value, where StatCoefAverage represents the aggregated history counter value, and T'', P1'', and P2'' represent the input values.
20. The method according to claim 19, wherein, The input values of T'', P1'', and P2'' are predetermined.
21. The method according to claim 19, wherein, The input values of T'', P1'', and P2'' are transmitted as signals in the video data.
22. The method according to claim 19, wherein, T''=4, P2''=2 and P1''=1.
23. The method according to claim 19, wherein, w0=2, w1=1 and w2=1.
24. The method according to claim 12, wherein, The second block includes one of a decoding tree unit (CTU), a transform unit (TU), or a sub-transform unit (sub-TU).
25. The method according to claim 1, wherein, Decoding the current coefficients includes: decoding the current coefficients using the normalized value of the sum of the absolute values.
26. The method according to claim 1, wherein, Decoding the current coefficient includes encoding the current coefficient using the normalized value of the sum of the absolute values.
27. An apparatus for decoding video data, the apparatus comprising: Memory, configured to store instructions; as well as One or more processors configured to execute the instructions such that the device is used to: Calculate the sum of the absolute values of multiple adjacent coefficients of the current coefficient for the current block of video data; A base level offset is calculated based on the bit depth of the video data and the stripe type of the stripe including the current block, wherein the stripe type indicates whether the stripe is intra-frame predictive decoding or inter-frame predictive decoding. The sum of absolute values is normalized using the base level offset value. The Rice parameter is determined based on the sum of the normalized absolute values; and The current coefficient is decoded using the Rice parameter.
28. The device according to claim 27, wherein, The plurality of adjacent coefficients includes five adjacent coefficients for the current coefficient.
29. The device according to claim 27, wherein, The plurality of adjacent coefficients includes: two right-side adjacent coefficients for the current coefficient, two lower-side adjacent coefficients for the current coefficient, and one lower-right adjacent coefficient for the current coefficient.
30. The device according to claim 27, wherein, To calculate the base level offset, the one or more processors are configured to compute baseLevelOffset = (bitDepth > T) ? (isIntra() ? P1: P2): (isIntra() ? P3: P4), where baseLevelOffset includes the base level offset, bitDepth includes the bit depth of the video data, isIntra() returns true if the slice type of the slice is intra-predictive slice, or false if the slice type of the slice is inter-predictive slice, and T, P1, P2, P3, and P4 include the corresponding input values, and the condition is an equation of the form ? X:Y, where the value of X is returned if the condition is true, and the value of Y is returned if the condition is false.
31. The device according to claim 30, wherein, T=12。 32. The device according to claim 30, wherein, The input values for T, P1, P2, P3, and P4 are predetermined.
33. The device according to claim 27, wherein, In order to calculate the normalized value of the sum of absolute values, the one or more processors are configured to calculate Clip3(0, 31, locSumAbs - baseLevelOffset), where locSumAbs includes the sum of absolute values and baseLevelOffset includes the base level offset value.
34. The device according to claim 27, wherein, In order to decode the current coefficient using the normalized value of the sum of the absolute values, the one or more processors are further configured to perform the following operations: The value of the current coefficient is binarized using the Rice parameter to form a binarized value.
35. The device according to claim 27, wherein, The current block includes a first block, the color components of the video data include the first block, the sum of absolute values includes a first sum of absolute values, and the plurality of adjacent coefficients includes a first plurality of adjacent coefficients, and wherein the one or more processors are further configured to perform the following operations: Maintain a history counter that represents the history of the Rice parameter used to decode the coefficients of the color components of the video data; The Rice parameter scaling value for the second block of the color component of the video data is derived from the current value of the history counter without explicitly decoding the value of the Rice parameter scaling value. Calculate the sum of the second absolute values of the second plurality of adjacent coefficients for the second coefficient of the second block; The scaling value of the Rice parameter is used to calculate the scaling value for the sum of the second absolute values; as well as The second coefficient of the second block is decoded using a scaling value applied to the sum of the second absolute values.
36. The device according to claim 35, wherein, To derive the Rice parameter scaling value, the one or more processors are configured to calculate (StatCoeff[idx] >= T') ? P2' : P1', where idx represents the color component, StatCoeff[idx] represents the current value of the history counter, and T', P1', and P2' represent the input values.
37. The device according to claim 27, wherein, In order to decode the current coefficient, the one or more processors are configured to perform at least one of the following operations: encode the current coefficient using the normalized value of the sum of the absolute values, or decode the current coefficient using the normalized value of the sum of the absolute values.
38. The apparatus of claim 27, further comprising: A display configured to show decoded video data.
39. The device according to claim 27, wherein, The device includes one or more of the following: camera, computer, mobile device, broadcast receiver device or set-top box.
40. An apparatus for decoding video data, the apparatus comprising: A unit used to calculate the sum of the absolute values of multiple adjacent coefficients of the current coefficient for the current block of video data; A unit for calculating a base level offset value based on the bit depth of the video data and the stripe type of the stripe including the current block, wherein the stripe type indicates whether the stripe is intra-frame predictive decoding or inter-frame predictive decoding. A unit used to normalize the sum of absolute values using the basic level offset value; A unit for determining the Rice parameter based on the sum of the normalized absolute values; and A unit used to decode the current coefficient using the Rice parameter.
41. The device according to claim 40, further comprising: Units for performing the method according to any one of claims 2-26.
