Signaling Chroma Quantization Parameter (QP) Mapping Table
By signaling chroma QP mapping tables in the video bitstream with a piecewise linear model, the solution addresses the inflexibility of static tables in VVC Draft 5, enhancing coding efficiency and adaptability for diverse video content.
Patent Information
- Application Number
- JP2021576133
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Priority Date
- 2020-06-24
- Filing Date
- 2020-06-25
- Publication Date
- 2024-10-11
- Estimated Expiration
- 2040-06-25
AI Technical Summary
Existing video coding standards, such as VVC Draft 5, use static chroma QP mapping tables that lack flexibility, leading to suboptimal distortion and coding efficiency for diverse video content types like HDR and WCG, and assume the same table for both Cb and Cr components, which is not optimal.
Signal chroma QP mapping tables in the encoded video bitstream, allowing for a piecewise linear model, enabling separate mapping for Cb and Cr components, and adapt to specific content types like HDR and WCG without relying on QP offsets.
Enhances coding efficiency and flexibility by allowing tailored chroma QP modeling for different video content types, improving dynamic range adaptation and reducing distortion.
Smart Images

Figure 0007565955000012 
Figure 0007565955000013 
Figure 0007565955000014
Abstract
Description
Claiming priority
[0001]
[0001] This application claims priority to U.S. Application No. 16 / 911,003, filed June 24, 2020, which claims the benefit of U.S. Provisional Application No. 62 / 866,561, filed June 25, 2019, and U.S. Provisional Application No. 62 / 909,626, filed October 2, 2019, the entire contents of each of which are incorporated herein by reference. [Technical field]
[0002]
[0002] This disclosure relates to video encoding and decoding. [Background technology]
[0003] Digital video capabilities may be incorporated into a wide range of devices, including digital televisions, digital direct broadcast systems, wireless broadcast systems, personal digital assistants (PDAs), laptop or desktop computers, tablet computers, e-book readers, digital cameras, digital recording devices, digital media players, video game devices, video game consoles, cellular or satellite radio telephones, so-called "smartphones," video teleconferencing devices, video streaming devices, and the like. Digital video devices implement video coding techniques, such as those described in standards defined by MPEG-2, MPEG-4, ITU-T H.263, ITU-T H.264 / MPEG-4, Part 10, Advanced Video Coding (AVC), ITU-T H.265 / High Efficiency Video Coding (HEVC), and extensions to such standards. By implementing such video coding techniques, video devices may more efficiently transmit, receive, encode, decode, and / or store digital video information.
[0004]
[0004] Video coding techniques include spatial (intra-picture) prediction and / or temporal (inter-picture) prediction to reduce or remove redundancy inherent in video sequences. In block-based video coding, a video slice (e.g., a video picture or a portion of a video picture) may be partitioned into video blocks, which may also be referred to as coding tree units (CTUs), coding units (CUs) and / or coding nodes. Video blocks in an intra-coded (I) slice of a picture are encoded using spatial prediction with respect to reference samples in neighboring blocks in the same picture. Video blocks in an inter-coded (P or B) slice of a picture may use spatial prediction with respect to reference samples in neighboring blocks in the same picture or temporal prediction with respect to reference samples in other reference pictures. A picture may be referred to as a frame, and a reference picture may be referred to as a reference frame. Summary of the Invention
[0005]
[0005] Generally, this disclosure describes techniques for determining quantization parameter (QP) values for chroma blocks of video data. In particular, this disclosure describes techniques that include signaling one or more chroma QP mapping tables in an encoded video bitstream. In one example, the chroma QP mapping table may be signaled in a sequence parameter set (SPS). A video decoder may receive and decode the encoded chroma QP mapping table and then use the signaled chroma QP mapping table to determine QP values for chroma components of a block of video data from the chroma QP mapping table and the QP values used for the corresponding luma block. In some examples, the video encoder may encode and signal the chroma QP mapping table as a piecewise linear model.
[0006]
[0006] One benefit of signaling a chroma QP mapping table in the bitstream is to provide the encoder with the flexibility to efficiently model chroma QP values for a particular type of video content, without resorting to the use of QP offset values. Constraining the signaling of the chroma QP mapping table (e.g., using a static chroma QP mapping table) may not serve this purpose. Therefore, it would be beneficial to have a more general signaling mechanism for chroma QP mapping tables.
[0007]
[0007] In one example, a method includes receiving, in an encoded video bitstream, a syntax element describing a set of pivot points specifying a piece-wise linear model for a first chroma quantization parameter (QP) mapping table, determining a first chroma QP value for a first chroma block of the video data from the luma QP value and the first chroma QP mapping table, and decoding the first chroma block of the video data using the first chroma QP value.
[0008]
[0008] In another example, an apparatus includes a memory configured to store video data and one or more processors in communication with the memory, the one or more processors configured to receive, in an encoded video bitstream, a syntax element describing a set of pivot points that specify a piecewise linear model for a first chroma quantization parameter (QP) mapping table, determine a first chroma QP value for a first chroma block of the video data from the luma QP value and the first chroma QP mapping table, and decode the first chroma block of the video data using the first chroma QP value.
[0009]
[0009] In another example, an apparatus includes means for receiving, in an encoded video bitstream, a syntax element describing a set of pivot points specifying a piecewise linear model for a first chroma quantization parameter (QP) mapping table, means for determining a first chroma QP value for a first chroma block of the video data from the luma QP value and the first chroma QP mapping table, and means for decoding the first chroma block of the video data using the first chroma QP value.
[0010]
[0010] In another example, the present disclosure describes a non-transitory computer-readable storage medium storing instructions that, when executed, cause one or more processors of a device configured to decode video data to receive, in an encoded video bitstream, a syntax element describing a set of pivot points that specify a piecewise linear model for a first chroma quantization parameter (QP) mapping table, determine a first chroma QP value for a first chroma block of the video data from the luma QP value and the first chroma QP mapping table, and decode the first chroma block of the video data using the first chroma QP value.
[0011]
[0011] In another example, a method includes determining a first chroma QP value for a first chroma block of video data from a luma QP value and a first chroma QP mapping table, encoding the first chroma block of the video data using the first chroma QP value, and signaling in the encoded video bitstream a syntax element describing a set of pivot points that specify a piecewise linear model for the first chroma quantization parameter (QP) mapping table.
[0012]
[0012] In another example, an apparatus includes a memory configured to store video data and one or more processors in communication with the memory, the one or more processors configured to: determine a first chroma QP value for a first chroma block of the video data from a luma QP value and a first chroma QP mapping table; encode the first chroma block of the video data using the first chroma QP value; and signal in the encoded video bitstream a syntax element describing a set of pivot points that specify a piecewise linear model for the first chroma quantization parameter (QP) mapping table.
[0013]
[0013] In another example, an apparatus includes means for determining a first chroma QP value for a first chroma block of video data from a luma QP value and a first chroma QP mapping table, means for encoding the first chroma block of the video data using the first chroma QP value, and means for signaling in the encoded video bitstream a syntax element describing a set of pivot points that specify a piecewise linear model for the first chroma quantization parameter (QP) mapping table.
[0014]
[0014] In another example, the disclosure describes a non-transitory computer-readable storage medium storing instructions that, when executed, cause one or more processors of a device configured to encode video data to determine a first chroma QP value for a first chroma block of the video data from a luma QP value and a first chroma QP mapping table, encode the first chroma block of the video data using the first chroma QP value, and signal in the encoded video bitstream a syntax element describing a set of pivot points that specify a piecewise linear model for the first chroma quantization parameter (QP) mapping table.
[0015] The details of one or more examples are set forth in the accompanying drawings and the description below. Other features, objects, and advantages will become apparent from the description, drawings, and claims. [Brief description of the drawings]
[0016] [Figure 1]
[0016] FIG. 1 is a block diagram illustrating an example video encoding and decoding system in which the techniques of this disclosure may be implemented. [Diagram 2]
[0017] 1 is a block diagram illustrating an example video encoder that may implement the techniques of this disclosure. [Diagram 3]
[0018] 1 is a block diagram illustrating an example video decoder that may implement the techniques of this disclosure. [Figure 4]
[0019] 1 is a flowchart illustrating an example video encoding method of this disclosure. [Diagram 5]
[0020] 4 is a flowchart illustrating an example video decoding method of this disclosure. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0017]
[0021] In an exemplary draft version of the developing Versatile Video Coding (VVC) standard, the value of the quantization parameter (QP) (e.g., chroma QP) used to decode a chroma block is derived from the value of the QP (e.g., luma QP) used to decode a luma block and the value of an offset parameter using a chroma QP mapping table (see, e.g., Bross et al., "Versatile Video Coding (Draft 5)," ITU-T SG16 WP3 and ISO / IEC 151285-2). Joint Video Experts Team (JVET) of JTC1 / SC29 / WG11, 14th Meeting, Geneva, Switzerland, March 19-27, 2019, JVET-N1008-v8 (hereinafter, "Tables 8-15 in VVC Draft 5"). In some examples, the chroma QP mapping table has a linear slope of 1 for most QP values and a slope less than 1 for QP values between 29 and 43. In VVC Draft 5, a fixed chroma QP mapping table is used to determine the chroma QP values from the luma QP values. That is, the chroma QP mapping table is not signaled in the bitstream, but rather is static, and the same chroma QP mapping table is stored in both the video encoder and the video decoder.
[0018]
[0022] Techniques for determining chroma QP values using a static chroma QP mapping table (e.g., as in VVC Draft 5) exhibit several drawbacks. As an example, a static chroma QP mapping table does not provide the flexibility to model chroma QP values for all types of video content that may be encoded (e.g., high dynamic range (HDR) video content, wide color gamut (WCG) video content, natural content, screen content, etc.). Thus, the use of a static chroma QP mapping table may result in suboptimal distortion and / or coding efficiency in some situations. Furthermore, the chroma QP mapping table used in VVC Draft 5 is designed under the assumption that the same table is used for both Cb and Cr chroma components. However, in more common use cases (e.g., HDR video), it has been found to be advantageous to use different chroma QP mapping tables for the Cb and Cr components.
[0019]
[0023] In view of these shortcomings, this disclosure describes techniques for signaling one or more chroma QP mapping tables in an encoded video bitstream. In one example, the chroma QP mapping table may be signaled in a sequence parameter set (SPS). A video decoder may receive and decode the encoded chroma QP mapping table and then use the signaled chroma QP mapping table to determine QP values for chroma components of a block of video data. In some examples, a video encoder may encode and signal the chroma QP mapping table as a piecewise linear model.
[0020]
[0024] One benefit of signaling a chroma QP mapping table in the bitstream is to provide the encoder with the flexibility to efficiently model chroma QP values for a particular type of video content without resorting to the use of QP offset values. Constraining the signaling of the chroma QP mapping table (e.g., using a static chroma QP mapping table) may not serve this purpose. Therefore, it would be beneficial to have a more general signaling mechanism for chroma QP mapping tables.
[0021]
[0025] 1 is a block diagram illustrating an example video encoding and decoding system 100 that may implement the techniques of this disclosure. The techniques of this disclosure are generally directed to coding (encoding and / or decoding) video data. In general, video data includes any data for processing video. Thus, video data may include raw uncoded video, coded video, decoded (e.g., reconstructed) video, and video metadata, such as signaling data.
[0022]
[0026] 1, system 100 includes a source device 102 that provides encoded video data to be decoded and displayed by a destination device 116, in this example. In particular, source device 102 provides the video data to destination device 116 via a computer-readable medium 110. Source device 102 and destination device 116 may comprise any of a wide range of devices, including desktop computers, notebook (i.e., laptop) computers, mobile devices, tablet computers, set-top boxes, telephone handsets such as smartphones, televisions, cameras, display devices, digital media players, video game consoles, video streaming devices, broadcast receiver devices, and the like. In some cases, source device 102 and destination device 116 may be equipped for wireless communication and thus may be referred to as wireless communication devices.
[0023]
[0027] In the example of FIG. 1, source device 102 includes a video source 104, memory 106, video encoder 200, and output interface 108. Destination device 116 includes an input interface 122, a video decoder 300, memory 120, and a display device 118. According to this disclosure, the video encoder 200 of source device 102 and the video decoder 300 of destination device 116 may be configured to apply techniques for encoding and decoding a chroma QP mapping table. Thus, source device 102 represents an example of a video encoding device, and destination device 116 represents an example of a video decoding device. In other examples, the source and destination devices may include other components or arrangements. For example, source device 102 may receive video data from an external video source, such as an external camera. Similarly, destination device 116 may interface with an external display device rather than including an integrated display device.
[0024]
[0028] The system 100 shown in FIG. 1 is only an example. In general, any digital video encoding and / or decoding device may implement the techniques for encoding and decoding chroma QP mapping tables. The source device 102 and the destination device 116 are only examples of coding devices, such that the source device 102 generates coded video data for transmission to the destination device 116. This disclosure refers to a "coding" device as a device that performs coding (encoding and / or decoding) of data. Thus, the video encoder 200 and the video decoder 300 represent examples of coding devices, specifically video encoders and video decoders, respectively. In some examples, the source device 102 and the destination device 116 may operate substantially symmetrically, such that each of the source device 102 and the destination device 116 includes video encoding and decoding components. Thus, the system 100 may support one-way or two-way video transmission between the source device 102 and the destination device 116, for example, video streaming, video playback, video broadcasting, or video telephony.
[0025]
[0029] Generally, the video source 104 represents a source of video data (i.e., raw, unencoded video data) and provides a continuous series of pictures (also called “frames”) of the video data to the video encoder 200, which encodes the data for the pictures. The video source 104 of the source device 102 may include a video capture device, such as a video camera, a video archive containing previously captured raw video, and / or a video feed interface for receiving video from a video content provider. As a further alternative, the video source 104 may generate computer graphics-based data or a combination of live, archival, and computer-generated video as the source video. In each case, the video encoder 200 encodes the captured, pre-captured, or computer-generated video data. The video encoder 200 may reorder the pictures from a receiving order (sometimes called a “display order”) into a coding order for coding. The video encoder 200 may generate a bitstream including the encoded video data. The source device 102 may then output the encoded video data via the output interface 108 onto a computer-readable medium 110 for receipt and / or retrieval by, for example, an input interface 122 of the destination device 116 .
[0026]
[0030] The memory 106 of the source device 102 and the memory 120 of the destination device 116 represent general-purpose memories. In some examples, the memories 106, 120 may store raw video data, e.g., raw video from the video source 104 and raw decoded video data from the video decoder 300. Additionally or alternatively, the memories 106, 120 may store software instructions executable by, e.g., the video encoder 200 and the video decoder 300, respectively. Although the memories 106 and 120 are shown in this example as separate from the video encoder 200 and the video decoder 300, it should be understood that the video encoder 200 and the video decoder 300 may also include internal memories for functionally similar or equivalent purposes. Additionally, the memories 106, 120 may store encoded video data, e.g., the output from the video encoder 200 and the input to the video decoder 300. In some examples, portions of the memory 106, 120 may be allocated as one or more video buffers, for example, to store raw decoded and / or encoded video data.
[0027]
[0031] The computer-readable medium 110 may represent any type of medium or device capable of transporting encoded video data from the source device 102 to the destination device 116. In one example, the computer-readable medium 110 represents a communication medium for enabling the source device 102 to transmit the encoded video data directly to the destination device 116 in real time, for example, via a radio frequency network or a computer-based network. The output interface 108 may demodulate a transmission signal including the encoded video data, and the input interface 122 may demodulate a received transmission signal according to a communication standard, such as a wireless communication protocol. The communication medium may comprise any wireless or wired communication medium, such as a radio frequency (RF) spectrum or one or more physical transmission lines. The communication medium may form part of a packet-based network, such as a local area network, a wide area network, or a global network such as the Internet. The communication medium may include routers, switches, base stations, or any other equipment that may be useful to facilitate communication from the source device 102 to the destination device 116.
[0028]
[0032] In some examples, the computer-readable medium 110 may include a storage device 112. The source device 102 may output the encoded data from the output interface 108 to the storage device 112. Similarly, the destination device 116 may access the encoded data from the storage device 112 via the input interface 122. The storage device 112 may include any of a variety of distributed or locally accessed data storage media, such as a hard drive, a Blu-ray disc, a DVD, a CD-ROM, flash memory, volatile or non-volatile memory, or any other suitable digital storage medium for storing encoded video data.
[0029]
[0033] In some examples, computer-readable medium 110 may include a file server 114 or another intermediate storage device that may store the encoded video data generated by source device 102. Source device 102 may output the encoded video data to file server 114 or another intermediate storage device that may store the encoded video data generated by source device 102. Destination device 116 may access the stored video data from file server 114 via streaming or download.
[0030]
[0034] The file server 114 may be any type of server device capable of storing encoded video data and transmitting the encoded video data to the destination device 116. The file server 114 may represent a web server (e.g., for a website), a server configured to provide a file transfer protocol service (such as File Transfer Protocol (FTP) or File Delivery over Unidirectional Transport (FLUTE) protocol), a content delivery network (CDN) device, a Hypertext Transfer Protocol (HTTP) server, a Multimedia Broadcast Multicast Service (MBMS) or enhanced MBMS (eMBMS) server, and / or a network attached storage (NAS) device. The file server 114 may additionally or alternatively implement one or more HTTP streaming protocols, such as Dynamic Adaptive Streaming over HTTP (DASH), HTTP Live Streaming (HLS), Real Time Streaming Protocol (RTSP), HTTP Dynamic Streaming, etc.
[0031]
[0035] The destination device 116 may access the encoded video data from the file server 114 through any standard data connection, including an Internet connection. This may include a wireless channel (e.g., a Wi-Fi connection), a wired connection (e.g., a Digital Subscriber Line (DSL), a cable modem, etc.), or a combination of both, that is suitable for accessing the encoded video data stored on the file server 114. The input interface 122 may be configured to operate according to any one or more of the various protocols described above for retrieving or receiving media data from the file server 114, or other such protocols for retrieving media data.
[0032]
[0036] The output interface 108 and the input interface 122 may represent a wireless transmitter / receiver, a modem, a wired networking component (e.g., an Ethernet card), a wireless communication component operating according to any of the various IEEE 802.11 standards, or other physical components. In examples in which the output interface 108 and the input interface 122 comprise wireless components, the output interface 108 and the input interface 122 may be configured to transfer data, such as encoded video data, according to a cellular communication standard, such as 4G, 4G-LTE (Long Term Evolution), LTE Advanced, 5G, etc. In some examples in which the output interface 108 comprises a wireless transmitter, the output interface 108 and the input interface 122 may be configured to transfer data, such as encoded video data, according to other wireless standards, such as the IEEE 802.11 specification, the IEEE 802.15 specification (e.g., ZigBee), the Bluetooth standard, etc. In some examples, the source device 102 and / or the destination device 116 may include respective system-on-chip (SoC) devices. For example, the source device 102 may include a SoC device for performing functions attributable to the video encoder 200 and / or the output interface 108, and the destination device 116 may include a SoC device for performing functions attributable to the video decoder 300 and / or the input interface 122.
[0033]
[0037] The techniques of this disclosure may be applied to video coding supporting any of a variety of multimedia applications, such as over-the-air television broadcast, cable television transmission, satellite television transmission, Internet streaming video transmission such as Dynamic Adaptive Streaming over HTTP (DASH), digital video encoded on a data storage medium, decoding of digital video stored on a data storage medium, or other applications.
[0034]
[0038] The input interface 122 of the destination device 116 receives the encoded video bitstream from the computer-readable medium 110 (e.g., a communication medium, the storage device 112, the file server 114, etc.). The encoded video bitstream may include signaling information defined by the video encoder 200 that is also used by the video decoder 300, such as syntax elements having values that describe characteristics and / or processing of video blocks or other coded units (e.g., slices, pictures, groups of pictures, sequences, etc.). The display device 118 displays decoded pictures of the decoded video data to a user. The display device 118 may represent any of a variety of display devices, such as a liquid crystal display (LCD), a plasma display, an organic light emitting diode (OLED) display, or another type of display device.
[0035]
[0039] 1, in some examples, the video encoder 200 and the video decoder 300 may each be integrated with an audio encoder and / or an audio decoder and may include an appropriate MUX-DEMUX unit, or other hardware and / or software, to handle multiplexed streams that include both audio and video in a common data stream. Where applicable, the MUX-DEMUX unit may conform to the ITU H.223 multiplexer protocol, or other protocols such as the User Datagram Protocol (UDP).
[0036]
[0040] The video encoder 200 and the video decoder 300 may each be implemented as any of a variety of suitable encoder and / or decoder circuits, or any combination thereof, such as one or more microprocessors, digital signal processors (DSPs), application specific integrated circuits (ASICs), field programmable gate arrays (FPGAs), discrete logic, software, hardware, firmware, etc. When the techniques are implemented partially in software, a device may store software instructions on a suitable non-transitory computer-readable medium and execute the instructions in hardware using one or more processors to implement the techniques of this disclosure. Each of the video encoder 200 and the video decoder 300 may be included in one or more encoders or decoders, any of which may be integrated as part of a combined encoder / decoder (codec) in the respective device. A device including the video encoder 200 and / or the video decoder 300 may comprise an integrated circuit, a microprocessor, and / or a wireless communication device such as a cellular phone.
[0037]
[0041] Video encoder 200 and video decoder 300 may operate according to a video coding standard, such as ITU-T H.265, also known as High Efficiency Video Coding (HEVC), or extensions thereof, such as multiview and / or scalable video coding extensions. Alternatively, video encoder 200 and video decoder 300 may operate according to other proprietary or industry standards, such as ITU-T H.266, also known as Versatile Video Coding (VVC), and / or MPEG Essential Video Coding (EVC). A recent draft of the VVC standard is set forth in Bross et al., "Versatile Video Coding (Draft 5)," Joint Video Experts Team (JVET) of ITU-T SG16 WP3 and ISO / IEC JTC1 / SC29 / WG11, 14th Meeting, Geneva, Switzerland, March 19-27, 2019, JVET-N1008-v8 (hereinafter, "VVC Draft 5"). However, the techniques of this disclosure are not limited to any particular coding standard.
[0038]
[0042] Generally, the video encoder 200 and the video decoder 300 may perform block-based coding of a picture. The term “block” generally refers to a structure that includes data to be processed (e.g., encoded, decoded, or otherwise used in an encoding and / or decoding process). For example, a block may include a two-dimensional matrix of samples of luminance and / or chrominance data. Generally, the video encoder 200 and the video decoder 300 may code video data represented in a YUV (e.g., Y, Cb, Cr) format. That is, rather than coding red, green, and blue color (RGB) data for a sample of a picture, the video encoder 200 and the video decoder 300 may code a luminance component and a chrominance component, where the chrominance component may include both red hue and blue hue chrominance components. In some examples, the video encoder 200 converts received RGB format data to a YUV representation prior to encoding, and the video decoder 300 converts the YUV representation to the RGB format. Alternatively, pre-processing and post-processing units (not shown) may perform these conversions.
[0039]
[0043] This disclosure may generally refer to coding (e.g., encoding and decoding) a picture to include processes of encoding or decoding data of a picture. Similarly, this disclosure may refer to coding a block of a picture to include processes of encoding or decoding data of the block, e.g., predictive and / or residual coding. A coded video bitstream generally includes a series of values for syntax elements that represent coding decisions (e.g., coding modes) and partitioning of a picture into blocks. Thus, references to coding a picture or a block should be understood generally as coding values of the syntax elements that form the picture or block.
[0040]
[0044] HEVC defines various blocks, including coding units (CUs), prediction units (PUs), and transform units (TUs). According to HEVC, a video coder (such as video encoder 200) partitions coding tree units (CTUs) into CUs according to a quadtree structure. That is, the video coder partitions CTUs and CUs into four equal non-overlapping squares, and each node of the quadtree has either zero or four child nodes. A node without children may be called a "leaf node", and a CU of such a leaf node may include one or more PUs and / or one or more TUs. The video coder may further partition PUs and TUs. For example, in HEVC, a residual quadtree (RQT) represents the partition of TUs. In HEVC, a PU represents inter-predicted data, and a TU represents residual data. An intra-predicted CU includes intra-prediction information, such as an intra-mode indication.
[0041]
[0045] As another example, the video encoder 200 and the video decoder 300 may be configured to operate according to VVC. According to VVC, a video coder (such as the video encoder 200) partitions a picture into multiple coding tree units (CTUs). The video encoder 200 may partition the CTUs according to a tree structure, such as a quad-tree binary tree (QTBT) structure or a multi-type tree (MTT) structure. The QTBT structure eliminates the concept of multiple partition types, such as the separation between CUs, PUs, and TUs in HEVC. The QTBT structure includes two levels, a first level partitioned according to a quad-tree partition and a second level partitioned according to a binary tree partition. The root node of the QTBT structure corresponds to a CTU. The leaf nodes of the binary tree correspond to coding units (CUs).
[0042]
[0046] In the MTT partitioning structure, blocks may be partitioned using quad tree (QT) partitioning, binary tree (BT) partitioning, and one or more types of triple tree (TT) (also called ternary tree (TT)) partitioning. A triple or ternary tree partitioning is a partitioning in which a block is split into three sub-blocks. In some examples, a triple or ternary tree partitioning splits a block into three sub-blocks without splitting the original block through the center. The partition types in MTT (e.g., QT, BT, and TT) may be symmetric or asymmetric.
[0043]
[0047] In some examples, the video encoder 200 and the video decoder 300 may use a single QTBT or MTT structure to represent each of the luminance and chrominance components, and in other examples, the video encoder 200 and the video decoder 300 may use two or more QTBT or MTT structures, such as one QTBT / MTT structure for the luminance component and another QTBT / MTT structure for both chrominance components (or two QTBT / MTT structures for each chrominance component).
[0044]
[0048] Video encoder 200 and video decoder 300 may be configured to use quadtree partitioning according to HEVC, QTBT partitioning, MTT partitioning, or other partitioning structures used in VVC and / or EVC examples. For purposes of illustration, the description of the techniques of this disclosure is presented with respect to QTBT partitioning. However, it should be understood that the techniques of this disclosure may also be applied to video coders configured to use quadtree partitioning, or other types of partitioning as well.
[0045]
[0049] In some examples, the CTU includes a coding tree block (CTB) of luma samples, two corresponding CTBs of chroma samples for a picture with three sample arrays, or a CTB of samples for a monochrome picture, or a picture coded using three separate color planes and syntax structures used to code the samples. The CTB may be an N×N block of samples for some value of N such that the division of the components into the CTB is partitioning. The components are arrays or single samples from one of the three arrays (luma and two chromas) that configure the picture in 4:2:0, 4:2:2, or 4:4:4 color format, or an array or single sample of an array that configures the picture in monochrome format. In some examples, the coding block is an M×N block of samples for some value of M and N such that the division of the CTB into coding blocks is partitioning.
[0046]
[0050] Blocks (e.g., CTUs or CUs) may be grouped in various ways in a picture. As an example, a brick may refer to a rectangular region of a CTU row in a particular tile in a picture. A tile may be a rectangular region of a CTU in a particular tile column and a particular tile row in a picture. A tile column refers to a rectangular region of a CTU having a height equal to the height of the picture and a width specified by a syntax element (e.g., in a picture parameter set). A tile row refers to a rectangular region of a CTU having a height specified by a syntax element (e.g., in a picture parameter set) and a width equal to the width of the picture.
[0047]
[0051] In some examples, a tile may be partitioned into multiple bricks, each of which may include one or more CTU rows within the tile. A tile that is not partitioned into multiple bricks may also be referred to as a brick. However, a brick that is a true subset of a tile may not be referred to as a tile.
[0048]
[0052] The bricks in a picture may also be arranged into slices. A slice may be an integer number of bricks of a picture that may be contained entirely in a single Network Abstraction Layer (NAL) unit. In some examples, a slice includes either several complete tiles or only a continuous sequence of complete bricks of one tile.
[0049]
[0053] This disclosure may use "NxN" and "N by N", e.g., 16x16 samples or 16 by 16 samples, interchangeably to refer to sample dimensions of a block (such as a CU or other video block) in terms of vertical and horizontal dimensions. Generally, a 16x16 CU has 16 samples in the vertical direction (y=16) and 16 samples in the horizontal direction (x=16). Similarly, an NxN CU generally has N samples in the vertical direction and N samples in the horizontal direction, where N represents a non-negative integer value. Samples in a CU may be arranged in rows and columns. Moreover, a CU does not necessarily have the same number of samples in the horizontal direction as in the vertical direction. For example, a CU may comprise NxM samples, where M is not necessarily equal to N.
[0050]
[0054] The video encoder 200 encodes video data for a CU that represents prediction and / or residual information, as well as other information. The prediction information indicates how the CU should be predicted to form a predictive block for the CU. The residual information generally represents sample-by-sample differences between samples of the CU prior to encoding and the predictive block.
[0051]
[0055] To predict a CU, the video encoder 200 may generally form a predictive block for the CU through inter-prediction or intra-prediction. Inter-prediction generally refers to predicting a CU from data of a previously coded picture, while intra-prediction generally refers to predicting a CU from previously coded data of the same picture. To perform inter-prediction, the video encoder 200 may generate a predictive block using one or more motion vectors. The video encoder 200 may generally perform a motion search to identify a reference block that closely matches the CU, for example, with respect to the difference between the CU and the reference block. The video encoder 200 may calculate a difference metric using a sum of absolute differences (SAD), sum of squared differences (SSD), mean absolute difference (MAD), mean squared difference (MSD), or other such difference calculation to determine whether the reference block closely matches the current CU. In some examples, the video encoder 200 may predict the current CU using unidirectional or bidirectional prediction.
[0052]
[0056] Some examples of VVC also provide an affine motion compensation mode, which may be considered an inter-prediction mode. In an affine motion compensation mode, video encoder 200 may determine two or more motion vectors that represent non-translational motion, such as zooming in or out, rotation, perspective motion, or other irregular motion types.
[0053]
[0057] To perform intra prediction, the video encoder 200 may select an intra prediction mode to generate a predictive block. Some examples of VVC provide 67 intra prediction modes, including various directional modes, as well as planar and DC modes. In general, the video encoder 200 selects an intra prediction mode that describes neighboring samples relative to a current block (e.g., a block of a CU) from which samples of the current block should be predicted. Such samples may generally be above, to the left of, or to the left of the current block in the same picture as the current block, assuming that the video encoder 200 codes the CTUs and CUs in raster scan order (left to right, top to bottom).
[0054]
[0058] Video encoder 200 encodes data representing a prediction mode for the current block. For example, in an inter prediction mode, video encoder 200 may encode data representing which of various available inter prediction modes is used, as well as motion information of the corresponding mode. For example, in unidirectional or bidirectional inter prediction, video encoder 200 may encode motion vectors using advanced motion vector prediction (AMVP) or merge mode. Video encoder 200 may use similar modes to encode motion vectors for affine motion compensation modes.
[0055]
[0059] Following prediction, such as intra- or inter-prediction, of a block, the video encoder 200 may calculate residual data for the block. The residual data, such as a residual block, represents sample-by-sample differences between the block and a predictive block for the block formed using a corresponding prediction mode. The video encoder 200 may apply one or more transforms to the residual block to produce transformed data in a transform domain rather than the sample domain. For example, the video encoder 200 may apply a discrete cosine transform (DCT), an integer transform, a wavelet transform, or a conceptually similar transform to the residual video data. Additionally, the video encoder 200 may apply a secondary transform, such as a mode-dependent non-separable secondary transform (MDNSST), a signal-dependent transform, a Karhunen-Loeve transform (KLT), etc., following the first transform. The video encoder 200 produces transform coefficients following application of the one or more transforms.
[0056]
[0060] As mentioned above, following any transformation to produce transform coefficients, the video encoder 200 may perform quantization of the transform coefficients. Quantization generally refers to a process in which transform coefficients are quantized to possibly reduce the amount of data used to represent the transform coefficients, providing further compression. By performing a quantization process, the video encoder 200 may reduce the bit depth associated with some or all of the transform coefficients. For example, the video encoder 200 may round an n-bit value to an m-bit value during quantization, where n is greater than m. In some examples, to perform quantization, the video encoder 200 may perform a bitwise right shift of the value to be quantized.
[0057]
[0061] Following quantization, the video encoder 200 may scan the transform coefficients to produce a one-dimensional vector from a two-dimensional matrix including the quantized transform coefficients. The scan may be designed to place higher energy (and therefore lower frequency) transform coefficients at the front of the vector and lower energy (and therefore higher frequency) transform coefficients at the rear of the vector. In some examples, the video encoder 200 may utilize a predefined scan order to scan the quantized transform coefficients to produce a serialized vector, and then entropy code the quantized transform coefficients of the vector. In other examples, the video encoder 200 may perform an adaptive scan. After scanning the quantized transform coefficients to form the one-dimensional vector, the video encoder 200 may entropy code the one-dimensional vector, for example, according to context-adaptive binary arithmetic coding (CABAC). The video encoder 200 may also entropy code values for syntax elements describing metadata associated with the encoded video data for use by the video decoder 300 in decoding the video data.
[0058]
[0062] To implement CABAC, the video encoder 200 may assign a context in a context model to a symbol to be transmitted. The context may relate, for example, to whether neighboring values of the symbol are zero-valued or not. The probability determination may be based on the context assigned to the symbol.
[0059]
[0063] Video encoder 200 may further generate syntax data, such as block-based syntax data, picture-based syntax data, and sequence-based syntax data, for video decoder 300, e.g., in a picture header, block header, slice header, or other syntax data, such as a sequence parameter set (SPS), a picture parameter set (PPS), or a video parameter set (VPS). Video decoder 300 may similarly decode such syntax data to determine how to decode corresponding video data.
[0060]
[0064] In this manner, video encoder 200 may generate a bitstream including syntax elements that describe encoded video data, e.g., partitions of a picture into blocks (e.g., CUs) and predictive and / or residual information for the blocks. Finally, video decoder 300 may receive the bitstream and decode the encoded video data.
[0061]
[0065] In general, the video decoder 300 performs an inverse process of that performed by the video encoder 200 to decode the encoded video data of the bitstream. For example, the video decoder 300 may decode values for syntax elements of the bitstream using CABAC in a manner that is inverse to, but substantially similar to, the CABAC encoding process of the video encoder 200. The syntax elements may define partition information for partitioning a picture into CTUs and partitions of each CTU according to a corresponding partition structure, such as a QTBT structure, to define CUs of the CTU. The syntax elements may further define prediction and residual information for blocks (e.g., CUs) of video data.
[0062]
[0066] The residual information may be represented, for example, by quantized transform coefficients. The video decoder 300 may dequantize and inverse transform the quantized transform coefficients of the block to reconstruct a residual block for the block. The video decoder 300 uses the signaled prediction mode (intra- or inter-prediction) and associated prediction information (e.g., motion information for inter-prediction) to form a predictive block for the block. The video decoder 300 may then combine (sample-by-sample) the predictive block and the residual block to reconstruct the original block. The video decoder 300 may perform additional processing, such as performing a deblocking process to reduce visual artifacts along block boundaries.
[0063]
[0067] As described in more detail below, in accordance with the techniques of this disclosure, the video encoder 200 may be configured to determine a first chroma QP value for a first chroma block of the video data from a luma QP value and a first chroma QP mapping table, encode the first chroma block of the video data using the first chroma QP value, and signal in the encoded video bitstream a syntax element that describes a set of pivot points that specify a piecewise linear model for the first chroma QP mapping table. Similarly, in an inverse manner, the video decoder 300 may be configured to receive in the encoded video bitstream a syntax element that describes a set of pivot points that specify a piecewise linear model for the first chroma QP mapping table, determine a first chroma QP value for the first chroma block of the video data from the luma QP value and the first chroma QP mapping table, and decode the first chroma block of the video data using the first chroma QP value.
[0064]
[0068] This disclosure may generally refer to "signaling" certain information, such as a syntax element. The term "signaling" may generally refer to communication of values for syntax elements and / or other data used to decode encoded video data. That is, video encoder 200 may signal values for syntax elements in a bitstream. Generally, signaling refers to generating values in a bitstream. As described above, source device 102 may transport the bitstream to destination device 116 in substantially real-time or may transport the bitstream to destination device 116 in non-real-time, such as may be done when storing syntax elements in storage device 112 for later retrieval by destination device 116.
[0065]
[0069] 2 is a block diagram illustrating an example video encoder 200 that may implement the techniques of this disclosure. FIG. 2 is provided for illustrative purposes and should not be considered as limiting the techniques broadly illustrated and described in this disclosure. For illustrative purposes, this disclosure describes video encoder 200 in accordance with VVC (ITU-T H.266 under development), EVC, and HEVC (ITU-T H.265) techniques. However, the techniques of this disclosure may be implemented by video encoding devices configured for other video coding standards.
[0066]
[0070] 2, 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 encoding unit 220. Any or all of the video data memory 230, the mode selection unit 202, the 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 DPB 218, and an entropy encoding unit 220 may be implemented in one or more processors or processing circuits. For example, the units of video encoder 200 may be implemented as one or more circuits or logic elements, as part of a hardware circuit, or as part of a processor in an FPGA, an ASIC, etc. Moreover, video encoder 200 may include additional or alternative processors or processing circuits for performing these and other functions.
[0067]
[0071] The video data memory 230 may store video data to be encoded by the components of the video encoder 200. The video encoder 200 may receive video data stored in the video data memory 230, for example, from the video source 104 (FIG. 1). The DPB 218 may act as a reference picture memory that stores reference video data for use in predicting subsequent video data by the video encoder 200. The video data memory 230 and the DPB 218 may be formed by any of a variety of memory devices, such as synchronous dynamic random access memory (DRAM), including DRAM (SDRAM), magnetoresistive RAM (MRAM), resistive RAM (RRAM), or other types of memory devices. The video data memory 230 and the DPB 218 may be provided by the same memory device or separate memory devices. In various examples, the video data memory 230 may be on-chip with the other components of the video encoder 200, as shown, or off-chip relative to those components.
[0068]
[0072] In this disclosure, references to video data memory 230 should not be construed as limited to memory internal to video encoder 200 unless specifically so described, or to memory external to video encoder 200 unless specifically so described. Instead, references to video data memory 230 should be understood as a reference memory that stores video data that video encoder 200 receives for encoding (e.g., video data for a current block to be encoded). Memory 106 of FIG. 1 may also provide temporary storage of outputs from various units of video encoder 200.
[0069]
[0073] The various units in FIG. 2 are shown to aid in understanding the operations performed by the video encoder 200. The units may be implemented as fixed-function circuits, programmable circuits, or a combination thereof. A fixed-function circuit refers to a circuit that provides a specific function and is preset with respect to the operations that may be performed. A programmable circuit refers to a circuit that may be programmed to perform various tasks and to provide flexible functionality in the operations that may be performed. For example, a programmable circuit may execute software or firmware that causes the programmable circuit to operate in a manner defined by the software or firmware instructions. A fixed-function circuit may execute software instructions (e.g., to receive parameters or output parameters), but the type of operations that the fixed-function circuit performs is generally unchanging. In some examples, one or more of the units may be separate circuit blocks (fixed function or programmable), and in some examples, one or more of the units may be an integrated circuit.
[0070]
[0074] The video encoder 200 may include an arithmetic logic unit (ALU), a basic functional unit (EFU), a programmable core formed of digital circuits, analog circuits, and / or programmable circuits. In examples in which the operations of the video encoder 200 are implemented using software executed by a programmable circuit, the memory 106 (FIG. 1) may store instructions (e.g., object code) of the software that the video encoder 200 receives and executes, or another memory (not shown) within the video encoder 200 may store such instructions.
[0071]
[0075] The video data memory 230 is configured to store the received video data. The video encoder 200 may retrieve pictures of the video data from the video data memory 230 and provide the video data to the residual generation unit 204 and the mode selection unit 202. The video data in the video data memory 230 may be raw video data to be encoded.
[0072]
[0076] The mode selection unit 202 includes a motion estimation unit 222, a motion compensation unit 224, and an intra prediction unit 226. The mode selection unit 202 may include additional functional units for performing video prediction according to other prediction modes. By way of example, the mode selection unit 202 may include a palette unit, an intra block copy unit (which may be part of the motion estimation unit 222 and / or the motion compensation unit 224), an affine unit, a linear model (LM) unit, etc.
[0073]
[0077] The mode selection unit 202 generally coordinates multiple encoding passes to test combinations of encoding parameters and produces rate-distortion values for such combinations. The encoding parameters may include partitioning of the CTUs into CUs, prediction modes for the CUs, transform types for residual data of the CUs, quantization parameters for residual data of the CUs, etc. The mode selection unit 202 may finally select a combination of encoding parameters that has a rate-distortion value that is better than other tested combinations.
[0074]
[0078] Video encoder 200 may partition a picture retrieved from video data memory 230 into a series of CTUs and encapsulate one or more CTUs in a slice. Mode selection unit 202 may partition the CTUs of a picture according to a tree structure, such as the QTBT structure or quadtree structure of HEVC described above. As described above, video encoder 200 may form one or more CUs from partitioning the CTUs according to the tree structure. Such CUs may also be generally referred to as “video blocks” or “blocks.”
[0075]
[0079] In general, the mode selection unit 202 also controls its components (e.g., the motion estimation unit 222, the motion compensation unit 224, and the intra prediction unit 226) to generate a prediction block for a current block (e.g., the current CU, or in HEVC, the overlapping portion of the PU and TU). For inter prediction of the current block, the motion estimation unit 222 may perform motion search to identify one or more closely matching reference blocks in one or more reference pictures (e.g., one or more previously coded pictures stored in the DPB 218). In particular, the motion estimation unit 222 may calculate a value representing how similar a potential reference block is to the current block according to, for example, a sum of absolute differences (SAD), a sum of squared differences (SSD), a mean absolute difference (MAD), a mean squared difference (MSD), etc. The motion estimation unit 222 may generally perform these calculations using a sample-by-sample difference between the current block and the reference block under consideration. Motion estimation unit 222 may identify the reference block having the lowest value resulting from these calculations, which indicates the reference block that most closely matches the current block.
[0076]
[0080] The motion estimation unit 222 may form one or more motion vectors (MVs) that define the position of a reference block in a reference picture relative to the position of a current block in a current picture. The motion estimation unit 222 may then provide the motion vectors to the motion compensation unit 224. For example, in unidirectional inter prediction, the motion estimation unit 222 may provide a single motion vector, while in bidirectional inter prediction, the motion estimation unit 222 may provide two motion vectors. The motion compensation unit 224 may then generate a predictive block using the motion vectors. For example, the motion compensation unit 224 may use the motion vectors to retrieve data of the reference block. As another example, if the motion vectors have sub-sample precision, the motion compensation unit 224 may interpolate values for the predictive block according to one or more interpolation filters. Moreover, in bidirectional inter prediction, the motion compensation unit 224 may retrieve data for the two reference blocks identified by the respective motion vectors and combine the retrieved data, for example, through sample-wise averaging or weighted averaging.
[0077]
[0081] As another example, for intra prediction, or intra predictive coding, the intra prediction unit 226 may generate a predictive block from samples neighboring a current block. For example, in a directional mode, the intra prediction unit 226 may generally mathematically combine values of neighboring samples and populate these calculated values in a prescribed direction across the current block to produce a predictive block. As another example, in a DC mode, the intra prediction unit 226 may calculate an average of the neighboring samples for the current block and generate a predictive block to include this resulting average for each sample of the predictive block.
[0078]
[0082] The mode selection unit 202 provides the prediction block to the residual generation unit 204. The residual generation unit 204 receives a raw uncoded version of the current block from the video data memory 230 and receives the prediction block from the mode selection unit 202. The residual generation unit 204 calculates sample-by-sample differences between the current block and the prediction block. The resulting sample-by-sample differences define a residual block for the current block. In some examples, the residual generation unit 204 may also determine differences between sample values in the residual block to generate the residual block using residual differential pulse code modulation (RDPCM). In some examples, the residual generation unit 204 may be formed using one or more subtractor circuits that perform binary subtraction.
[0079]
[0083] In an example where the mode selection unit 202 partitions a CU into PUs, each PU may be associated with a luma prediction unit and a corresponding chroma prediction unit. The video encoder 200 and the video decoder 300 may support PUs having various sizes. As indicated above, the size of a CU may refer to the size of the luma coding block of the CU, and the size of a PU may refer to the size of the luma prediction unit of the PU. Assuming that the size of a particular CU is 2N×2N, the video encoder 200 may support a PU size of 2N×2N or N×N for intra prediction, and a symmetric PU size of 2N×2N, 2N×N, N×2N, N×N, or the like for inter prediction. The video encoder 200 and the video decoder 300 may also support asymmetric partitioning of PU sizes of 2N×nU, 2N×nD, nL×2N, and nR×2N for inter prediction.
[0080]
[0084] In examples where the mode select unit 202 does not further partition the CUs into PUs, each CU may be associated with a luma coding block and a corresponding chroma coding block. As described above, the size of a CU may refer to the size of the luma coding block of the CU. The video encoder 200 and the video decoder 300 may support CU sizes of 2N×2N, 2N×N, or N×2N.
[0081]
[0085] In other video coding techniques such as intra block copy mode coding, affine mode coding, and linear model (LM) mode coding, as some examples, the mode selection unit 202 generates a predictive block for the current block being coded via a respective unit associated with the coding technique. In some examples, such as palette mode coding, the mode selection unit 202 may not generate a predictive block, but instead generate syntax elements that indicate how the block should be reconstructed based on a selected palette. In such modes, the mode selection unit 202 may provide these syntax elements to be coded to the entropy coding unit 220.
[0082]
[0086] As described above, the residual generation unit 204 receives the video data for a current block and the corresponding predictive block. The residual generation unit 204 then generates a residual block for the current block. To generate the residual block, the residual generation unit 204 calculates sample-by-sample differences between the predictive block and the current block.
[0083]
[0087] Transform processing unit 206 applies one or more transforms to the residual block to generate a block of transform coefficients (referred to herein as a "transform coefficient block"). Transform processing unit 206 may apply various transforms to the residual block to form the transform coefficient block. For example, transform processing unit 206 may apply a discrete cosine transform (DCT), a directional transform, a Karhunen-Loeve transform (KLT), or a conceptually similar transform to the residual block. In some examples, transform processing unit 206 may perform multiple transforms on the residual block, e.g., a linear transform and a secondary transform such as a rotation transform. In some examples, transform processing unit 206 does not apply a transform to the residual block.
[0084]
[0088] The quantization unit 208 may quantize the transform coefficients in the transform coefficient block to produce a quantized transform coefficient block. The quantization unit 208 may quantize the transform coefficients of the transform coefficient block according to a quantization parameter (QP) value associated with the current block. The video encoder 200 (e.g., via the mode selection unit 202) may adjust the degree of quantization applied to the transform coefficient block associated with the current block by adjusting the QP value associated with the CU. Quantization may result in loss of information, and thus the quantized transform coefficients may have less precision than the original transform coefficients produced by transform processing unit 206.
[0085]
[0089] As described in more detail below, in some examples of this disclosure, quantization unit 208 (or another structural unit of video encoder 200) may be configured to signal one or more chroma QP mapping tables in the encoded video bitstream. Quantization unit 208 may use the chroma QP mapping table to determine a QP value for a chroma block of the video data from a QP value (e.g., a luma QP value) used to encode a corresponding luma block of the video data. That is, the luma QP value is an input to the chroma QP mapping table. The chroma QP mapping table may include a chroma QP mapping table that is used to determine a QP value for a chroma block of the video data from a QP value (e.g., a luma QP value) used to encode a corresponding luma block of the video data. That is, the luma QP value is an input to the chroma QP mapping table. The quantization unit 208 outputs a chroma QP value as a function of the luma QP value. In some examples, the function is a piecewise linear value. The quantization unit 208 may signal the chroma QP mapping table to be used to the video decoder 300 (e.g., in an SPS). The video decoder 300 may then use the chroma QP mapping table to determine a chroma QP value that may be used to perform inverse quantization when decoding a chroma block of the video data.
[0086]
[0090] In one example of the disclosure, the quantization unit 208 (or another structural unit of the video encoder 200) may be configured to determine a first chroma QP value for a first chroma block of the video data from the luma QP value and a first chroma QP mapping table, encode the first chroma block of the video data using the first chroma QP value, and signal the first chroma QP mapping table in the encoded video bitstream. In one example, the first chroma QP mapping table is a piecewise linear model. In this example, to signal the first chroma QP mapping table, the quantization unit 208 may be configured to signal a syntax element that describes a set of pivot points that specify the piecewise linear model.
[0087]
[0091] Inverse quantization unit 210 and inverse transform processing unit 212 may apply inverse quantization and inverse transform to the quantized transform coefficient block, respectively, to reconstruct a residual block from the transform coefficient block. Reconstruction unit 214 may produce a reconstructed block that corresponds to the current block (potentially with some distortion) based on the reconstructed residual block and the predictive block generated by mode selection unit 202. For example, reconstruction unit 214 may add samples of the reconstructed residual block to corresponding samples from the predictive block generated by mode selection unit 202 to produce a reconstructed block.
[0088]
[0092] Filter unit 216 may perform one or more filter operations on the reconstructed block. For example, filter unit 216 may perform a deblocking operation to reduce blockiness artifacts along the edges of a CU. The operations of filter unit 216 may be skipped in some examples.
[0089]
[0093] The video encoder 200 stores the reconstructed blocks in the DPB 218. For example, in examples where the operation of the filter unit 216 is not required, the reconstruction unit 214 may store the reconstructed blocks in the DPB 218. In examples where the operation of the filter unit 216 is required, the filter unit 216 may store the filtered reconstructed blocks in the DPB 218. The motion estimation unit 222 and the motion compensation unit 224 may retrieve reference pictures formed from the reconstructed (and potentially filtered) blocks from the DPB 218 to inter predict blocks of a later-encoded picture. Additionally, the intra prediction unit 226 may use the reconstructed blocks in the DPB 218 of the current picture to intra predict other blocks in the current picture.
[0090]
[0094] In general, the entropy encoding unit 220 may entropy encode syntax elements received from other functional components of the video encoder 200. For example, the entropy encoding unit 220 may entropy encode quantized transform coefficient blocks from the quantization unit 208. As another example, the entropy encoding unit 220 may entropy encode predictive syntax elements (e.g., motion information for inter prediction or intra mode information for intra prediction) from the mode selection unit 202. The entropy encoding unit 220 may perform one or more entropy encoding operations on syntax elements, which are another example of video data, to generate entropy encoded data. For example, the entropy encoding unit 220 may perform a context-adaptive variable length coding (CAVLC) operation, a CABAC operation, a variable-to-variable (V2V) length coding operation, a syntax-based context-adaptive binary arithmetic coding (SBAC) operation, a Probability Interval Partitioning Entropy (PIPE) coding operation, an Exponential-Golomb coding operation, or another type of entropy coding operation on the data. In some examples, the entropy encoding unit 220 may operate in a bypass mode in which syntax elements are not entropy coded.
[0091]
[0095] The video encoder 200 may output a bitstream that includes entropy-encoded syntax elements needed to reconstruct blocks of a slice or picture. In particular, the entropy encoding unit 220 may output the bitstream.
[0092]
[0096] The operations described above are described with respect to blocks. Such descriptions should be understood as being operations for luma coding blocks and / or chroma coding blocks. As described above, in some examples, the luma coding blocks and chroma coding blocks are luma and chroma components of a CU. In some examples, the luma coding blocks and chroma coding blocks are luma and chroma components of a PU.
[0093]
[0097] In some examples, operations performed with respect to luma coding blocks do not need to be repeated for chroma coding blocks. As an example, operations for identifying motion vectors (MVs) and reference pictures for luma coding blocks do not need to be repeated to identify MVs and reference pictures for chroma blocks. Rather, the MVs for luma coding blocks may be scaled to determine the MVs for chroma blocks, and the reference pictures may be the same. As another example, the intra prediction process may be the same for luma coding blocks and chroma coding blocks.
[0094]
[0098] Video encoder 200 represents an example of a device configured to encode video data including a memory configured to store the video data and one or more processing units implemented in a circuit configured to: determine a first chroma QP value for a first chroma block of the video data from a luma QP value and a first chroma QP mapping table; encode the first chroma block of the video data using the first chroma QP value; and signal in the encoded video bitstream a syntax element that describes a set of pivot points that specify a piecewise linear model for the first chroma QP mapping table.
[0095]
[0099] 3 is a block diagram illustrating an example video decoder 300 that may implement the techniques of this disclosure. FIG. 3 is provided for illustrative purposes and is not intended to limit the techniques broadly illustrated and described in this disclosure. For illustrative purposes, this disclosure describes the video decoder 300 in accordance with VVC (ITU-T H.266 under development), EVC, and HEVC (ITU-T H.265) techniques. However, the techniques of this disclosure may be implemented by video coding devices configured for other video coding standards.
[0096]
[0100] In the example of FIG. 3, the video decoder 300 includes a coded picture buffer (CPB) memory 320, an entropy decoding unit 302, a prediction processing unit 304, an inverse quantization unit 306, an inverse transform processing unit 308, a reconstruction unit 310, a filter unit 312, and a decoded picture buffer (DPB) 314. Any or all of the CPB memory 320, the entropy decoding unit 302, the prediction processing unit 304, the inverse quantization unit 306, the inverse transform processing unit 308, the reconstruction unit 310, the filter unit 312, and the DPB 314 may be implemented in one or more processors or processing circuits. For example, the units of the video decoder 300 may be implemented as one or more circuits or logic elements, as part of a hardware circuit, or as part of a processor of an FPGA, an ASIC. Moreover, the video decoder 300 may include additional or alternative processors or processing circuits for performing these and other functions.
[0097]
[0101] Prediction processing unit 304 includes a motion compensation unit 316 and an intra prediction unit 318. Prediction processing unit 304 may include additional units for performing prediction according to other prediction modes. By way of example, prediction processing unit 304 may include a palette unit, an intra block copy unit (which may form part of motion compensation unit 316), an affine unit, a linear model (LM) unit, etc. In other examples, video decoder 300 may include more, fewer, or different functional components.
[0098]
[0102] The CPB memory 320 may store video data, such as an encoded video bitstream, to be decoded by components of the video decoder 300. The video data stored in the CPB memory 320 may be obtained, for example, from the computer-readable medium 110 (FIG. 1). The CPB memory 320 may include a CPB that stores encoded video data (e.g., syntax elements) from the encoded video bitstream. The CPB memory 320 may also store video data other than syntax elements of a coded picture, such as temporary data representing output from various units of the video decoder 300. The DPB 314 generally stores decoded pictures that the video decoder 300 may output and / or use as reference video data when decoding subsequent data or pictures of the encoded video bitstream. The CPB memory 320 and the DPB 314 may be formed by any of a variety of memory devices, such as DRAM, including SDRAM, MRAM, RRAM, or other types of memory devices. The CPB memory 320 and the DPB 314 may be provided by the same memory device or separate memory devices. In various examples, the CPB memory 320 may be on-chip with other components of the video decoder 300 or off-chip relative to those components.
[0099]
[0103] Additionally or alternatively, in some examples, video decoder 300 may retrieve coded video data from memory 120 (FIG. 1). That is, memory 120 may store data as described above along with CPB memory 320. Similarly, memory 120 may store instructions to be executed by video decoder 300 when some or all of the functionality of video decoder 300 is implemented in software to be executed by processing circuitry of video decoder 300.
[0100]
[0104] The various units shown in FIG. 3 are shown to aid in understanding the operations performed by the video decoder 300. The units may be implemented as fixed-function circuits, programmable circuits, or a combination thereof. As in FIG. 2, a fixed-function circuit refers to a circuit that provides a specific function and is preset with respect to the operations that may be performed. A programmable circuit refers to a circuit that may be programmed to perform various tasks and to provide flexible functionality in the operations that may be performed. For example, a programmable circuit may execute software or firmware that causes the programmable circuit to operate in a manner defined by the software or firmware instructions. A fixed-function circuit may execute software instructions (e.g., to receive parameters or output parameters), but the types of operations that the fixed-function circuit performs are generally unchanging. In some examples, one or more of the units may be separate circuit blocks (fixed function or programmable), and in some examples, one or more of the units may be an integrated circuit.
[0101]
[0105] The video decoder 300 may include a programmable core formed from an ALU, an EFU, digital circuits, analog circuits, and / or programmable circuits. In examples in which the operations of the video decoder 300 are performed by software executing on programmable circuits, on-chip or off-chip memory may store instructions (e.g., object code) of the software that the video decoder 300 receives and executes.
[0102]
[0106] The entropy decoding unit 302 may receive the encoded video data from the CPB and entropy decode the video data to recover the syntax elements. The prediction processing unit 304, the inverse quantization unit 306, the inverse transform processing unit 308, the reconstruction unit 310, and the filter unit 312 may generate decoded video data based on the syntax elements extracted from the bitstream.
[0103]
[0107] In general, the video decoder 300 reconstructs a picture on a block-by-block basis. The video decoder 300 may perform a reconstruction operation on each block individually (wherein the block currently being reconstructed, i.e., the block currently being decoded, may be referred to as the “current block”).
[0104]
[0108] The entropy decoding unit 302 may entropy decode syntax elements defining the quantized transform coefficients of the quantized transform coefficient block, as well as transform information such as a quantization parameter (QP) and / or a transform mode indication. The inverse quantization unit 306 may use the QP associated with the quantized transform coefficient block to determine the degree of quantization and, similarly, the degree of inverse quantization that the inverse quantization unit 306 should apply. The inverse quantization unit 306 may perform, for example, a bitwise left shift operation to inverse quantize the quantized transform coefficients. The inverse quantization unit 306 may thereby form a transform coefficient block including the transform coefficients.
[0105]
[0109] As described in more detail below, in some examples of this disclosure, the inverse quantization unit 306 (or another structural unit of the video decoder 300) may be configured to receive one or more chroma QP mapping tables in an encoded video bitstream. The inverse quantization unit 306 may use the chroma QP mapping table to determine a QP value (e.g., a chroma QP value) for a chroma block of the video data from a QP value (e.g., a luma QP value) used to decode a corresponding luma block of the video data. That is, the luma QP value is an input to the chroma QP mapping table. The chroma QP mapping table outputs a chroma QP value as a function of the luma QP value. In some examples, the function is a piece-wise linear value. The inverse quantization unit 306 may receive the chroma QP mapping table to be used (e.g., in an SPS). The inverse quantization unit 306 of the video decoder 300 may then use the chroma QP mapping table to determine chroma QP values that may be used to perform inverse quantization when decoding chroma blocks of the video data.
[0106]
[0110] In one example of the disclosure, the inverse quantization unit 306 (or another structural unit of the video decoder 300) may be configured to receive a first chroma QP mapping table in an encoded video bitstream, determine a first chroma QP value for a first chroma block of the video data from the luma QP value and the first chroma QP mapping table, and decode the first chroma block of the video data using the first chroma QP value. In one example, the first chroma QP mapping table is a piecewise linear model. In this example, to receive the first chroma QP mapping table, the inverse quantization unit 306 may be configured to receive a syntax element describing a set of pivot points that specify the piecewise linear model.
[0107]
[0111] After the inverse quantization unit 306 forms the transform coefficient block, the inverse transform processing unit 308 may apply one or more inverse transforms to the transform coefficient block to generate a residual block associated with the current block. For example, the inverse transform processing unit 308 may apply an inverse DCT, an inverse integer transform, an inverse Karhunen-Loeve transform (KLT), an inverse rotational transform, an inverse transform, or another inverse transform to the transform coefficient block.
[0108]
[0112] Further, prediction processing unit 304 generates a predictive block according to the prediction information syntax element entropy decoded by entropy decoding unit 302. For example, if the prediction information syntax element indicates that the current block is inter predicted, motion compensation unit 316 may generate a predictive block. In this case, the prediction information syntax element may indicate a reference picture in DPB 314 from which to retrieve a reference block, as well as a motion vector that identifies the location of the reference block in the reference picture relative to the location of the current block in the current picture. Motion compensation unit 316 may generally perform an inter prediction process in a manner substantially similar to that described with respect to motion compensation unit 224 (FIG. 2).
[0109]
[0113] As another example, if the prediction information syntax element indicates that the current block is intra predicted, the intra prediction unit 318 may generate a predictive block according to the intra prediction mode indicated by the prediction information syntax element. Again, the intra prediction unit 318 may generally perform an intra prediction process in a manner substantially similar to that described with respect to the intra prediction unit 226 (FIG. 2). The intra prediction unit 318 may retrieve data of neighboring samples for the current block from the DPB 314.
[0110]
[0114] The reconstruction unit 310 may reconstruct the current block using the predictive block and the residual block. For example, the reconstruction unit 310 may add samples of the residual block to corresponding samples of the predictive block to reconstruct the current block.
[0111]
[0115] Filter unit 312 may perform one or more filter operations on the reconstructed block. For example, filter unit 312 may perform a deblocking operation to reduce blockiness artifacts along edges of the reconstructed block. The operations of filter unit 312 are not necessarily performed in all examples.
[0112]
[0116] The video decoder 300 may store the reconstructed block in the DPB 314. For example, in examples where the operations of the filter unit 312 are not performed, the reconstruction unit 310 may store the reconstructed block in the DPB 314. In examples where the operations of the filter unit 312 are performed, the filter unit 312 may store the filtered reconstructed block in the DPB 314. As described above, the DPB 314 may provide reference information to the prediction processing unit 304, such as samples of the current picture for intra prediction and previously decoded pictures for subsequent motion compensation. Moreover, the video decoder 300 may output the decoded picture (e.g., decoded video) from the DPB 314 for subsequent presentation on a display device, such as the display device 118 of FIG. 1.
[0113]
[0117] In this manner, the video decoder 300 represents an example of a video decoding device that includes a memory configured to store video data and one or more processing units implemented in a circuit, the one or more processing units configured to receive, in an encoded video bitstream, a syntax element describing a set of pivot points that specify a piecewise linear model for a first chroma QP mapping table, determine a first chroma QP value for a first chroma block of the video data from the luma QP value and the first chroma QP mapping table, and decode the first chroma block of the video data using the first chroma QP value.
[0114]
[0118] Next-generation video applications are expected to operate with video data representing captured scenes with high dynamic range (HDR) and / or wide color gamut (WCG). The utilized dynamic range and color gamut parameters are two independent attributes of the video content, and their specifications for the purposes of digital television and multimedia services are defined by several international standards. For example, ITU-R Rec.BT.709, "Parameter values for the HDTV standards for production and international programme exchange", and ITU-R Rec.BT.2020, "Parameter values for ultra-high definition television systems for production and international programme exchange", respectively, define parameters for HDTV (high definition television) and UHDTV (ultra-high definition television), such as standard dynamic range (SDR) and color primaries that extend beyond the standard color gamut. Rec.BT.2100, "Image parameter values for high dynamic range television for use in production and international programme exchange", defines transfer functions and representations for HDR television use, including primaries that support wide color gamut representations.
[0115]
[0119] There are other standards developing organization (SDO) documents that specify dynamic range and color gamut attributes in other systems, for example, the DCI-P3 color gamut is defined in SMPTE-231-2 (Society of Motion Picture and Television Engineers), and some parameters of HDR are defined in SMPTE-2084. A brief description of dynamic range and color gamut for video data is given below.
[0116]
[0120] Dynamic range is generally defined as the ratio between the maximum brightness (e.g., luminance) and the minimum brightness of a video signal. Dynamic range may be measured in terms of "f-stops", where one f-stop corresponds to twice the dynamic range of a signal. As defined by the Motion Picture Experts Group (MPEG), content that employs brightness variations with more than 16 f-stops is called HDR content. In some terms, levels between 10 f-stops and 16 f-stops are considered as intermediate dynamic range, but may be considered HDR according to other definitions. In some examples of the present disclosure, HDR video content may be any video content that has a higher dynamic range than traditionally used video content with a standard dynamic range (e.g., video content specified by ITU-R Rec.BT.709).
[0117]
[0121] The human visual system (HVS) is capable of perceiving a much larger dynamic range than SDR and HDR content. However, the HVS includes an adaptation mechanism to narrow the dynamic range of the HVS to a so-called simultaneous range. The width of the simultaneous range may depend on the current lighting conditions (e.g., the current luminance).
[0118]
[0122] Current video applications and services are regulated by ITU Rec. 709, providing SDR that generally supports a range of luminance (e.g., luminance) from approximately 0.1 to 100 (often referred to as "nits") candelas (cd) per m2, resulting in less than 10 f-stops. Some exemplary next-generation video services are expected to provide a dynamic range of up to 16 f-stops. Detailed specifications for such content are currently under development, but some initial parameters are specified in SMPTE-2084 and ITU-R Rec. 2020.
[0119]
[0123] Chroma QP Dependency on Luma QP Value
[0124] Some state-of-the-art video coding designs, such as HEVC and newer video coding standards, may utilize a predefined dependency between luma and chroma QP values (e.g., a static chroma QP mapping table) that is effectively applied to process a currently coded Cb chroma block and / or a currently coded Cr chroma block. Such a dependency may be utilized to achieve optimal bitrate allocation between luma and chroma components.
[0120]
[0125] One example of such a dependency is represented by Tables 8-10 of the HEVC specification, where a chroma QP value applied to decode a chroma sample is derived from a QP value utilized to decode a luma sample. The relevant section of HEVC, where a chroma QP value is derived based on the QP value of the corresponding luma sample (e.g., the QP value applied to the block / TU of the corresponding luma sample), a chroma QP offset, and Tables 8-10 of the HEVC specification, is reproduced below.
[0121]
[0126] When ChromaArrayType is not equal to 0, the following applies: - variable qP Cb and qP Cr is derived as follows:
[0122] - if tu_residual_act_flag[xTbY][yTbY] is equal to 0, the following applies:
[0123]
number
[0124] - Otherwise (tu_residual_act_flag[xTbY][yTbY] is equal to 1), the following applies:
[0125]
number
[0126] - If ChromaArrayType is equal to 1, the variable qP Cb and qP Cr are qPi Cb and qPi Cr Based on the index qPi equal to Qp as specified in Table 8-10 C The value is set equal to the value of - otherwise, the variable qP Cb and qP Cr are qPi Cb and qPi Cr Based on the index qPi being equal to 51, it is set equal to Min(qPi,51). - chroma quantization parameter Qp' for the Cb and Cr components Cb and Qp' Cr is derived as follows:
[0127]
number
[0128] [Table 1]
[0129]
[0127] Variable qPCb and qP Cr are the final QP values Qp', respectively. Cb and Qp' Cr The intermediate value of the Cb chroma QP and Cr chroma QP used to determine the Cb chroma QP. A ChromaArrayType of 0 indicates that monochrome coding syntax is used. A ChromaArrayType that is non-zero (e.g., greater than 0) indicates a different type of chroma subsampling format (e.g., 4:4:4, 4:2:2, 4:2:0, etc.).
[0130]
[0128] A similar QP mapping table and chroma QP derivation is used in VVC (eg, Tables 8-15 in VVC Draft 5).
[0131]
[0129] In VVC Draft 5, the chroma QP value is derived from the luma QP value and the offset parameter using a chroma QP mapping table (e.g., Table 8-15 in VVC Draft 5). The chroma QP mapping table has a linear slope of 1 for the majority of luma QP values. For luma QP values between 29 and 43, the slope is less than 1.
[0132]
[0130] The VVC Draft 5 design, and other techniques that use static chroma QP mapping tables with or without chroma QP offsets, have several drawbacks. As an example, static chroma QP mapping tables do not provide the flexibility to model chroma QP values for all types of video content that may be encoded (e.g., high dynamic range (HDR) video content, wide color gamut (WCG) video content, natural content, screen content, etc.). Thus, the use of static chroma QP mapping tables may result in suboptimal distortion and / or coding efficiency in some situations.
[0133]
[0131] Furthermore, the chroma QP mapping table used in VVC Draft 5 is designed under the assumption that the same table is used for both the Cb and Cr chroma components. However, in more common use cases (e.g., HDR video), it has been found to be advantageous to use different chroma QP mapping tables for the Cb and Cr components.
[0134] In view of the above, this disclosure describes techniques for signaling one or more chroma QP mapping tables in an encoded video bitstream. In one example, the chroma QP mapping table may be signaled in a sequence parameter set (SPS). The video decoder 300 may receive and decode the encoded chroma QP mapping table and then use the signaled chroma QP mapping table to determine QP values for chroma components of a block of video data. In some examples, the video encoder 200 may encode and signal the chroma QP mapping table as a piecewise linear model.
[0135]
[0133] One benefit of signaling a chroma QP mapping table in the bitstream is to provide the encoder with flexibility to efficiently model chroma QP values for a particular type of video content (e.g., HDR content) without resorting to the use of QP offset values. Constraining the signaling of the chroma QP mapping table (e.g., using a static chroma QP mapping table) may not serve this purpose. It is therefore beneficial to have a more general signaling mechanism for the chroma QP mapping table. The techniques of this disclosure may improve dynamic range adaptation for different types of video content. It should be understood that one or more of the techniques described below may be used independently or in combination with any other combination of the techniques of this disclosure.
[0136] In one example of this disclosure, video encoder 200 and video decoder 300 may be configured to code (e.g., encode and decode, respectively) a syntax element indicating whether one or more chroma QP mapping tables are explicitly signaled in the encoded video bitstream. For example, video encoder 200 may encode a syntax element having a first value (e.g., 1) indicating that a chroma QP mapping table is signaled in the bitstream or having a second value (e.g., 0) indicating that a chroma QP mapping table is not signaled in the bitstream. Video encoder 200 may signal such a syntax element in one or more of a sequence parameter set (SPS), a picture parameter set (PPS), an adaptation parameter set (APS), other parameter sets, a picture header, a tile group header, a slice header, and / or other data structures for signaling syntax elements. If video encoder 200 signals a syntax element indicating that a chroma QP mapping table is signaled in the bitstream, video encoder 200 may further encode and signal such chroma QP mapping table.
[0137]
[0135] As an example, video encoder 200 may be configured to encode a chroma_qp_table_present_flag in the APS and / or SPS that indicates whether a chroma QP mapping table is signaled in the bitstream. As an example, a chroma_qp_table_present_flag with a value equal to 1 specifies that a chroma QP mapping table is signaled in the APS. A chroma_qp_table_present_flag with a value equal to 0 specifies that a chroma QP mapping table is not signaled in the APS and a default chroma QP mapping table (e.g., Table 8-15 in VVC draft 5) is used to derive a chroma QP value.
[0138]
[0136] The video decoder 300 may be configured to receive and decode a syntax element indicating whether a chroma QP mapping table is signaled in the bitstream. If the video decoder 300 determines that the syntax element indicates that a chroma QP mapping table is signaled in the bitstream, the video decoder 300 may also receive and decode such a chroma QP mapping table. If the video decoder 300 determines that the syntax element indicates that a chroma QP mapping table is not signaled in the bitstream, the video decoder 300 may instead use a default chroma QP mapping table (e.g., Tables 8-15 in VVC Draft 5) and / or a previously received chroma QP mapping table.
[0139]
[0137] Thus, in one example of this disclosure, the video encoder 200 may be configured to signal a syntax element indicating whether one or more chroma QP mapping tables are explicitly signaled in the encoded video bitstream. Similarly, in the reverse manner, the video decoder 300 may be configured to receive a syntax element indicating whether one or more chroma QP mapping tables are explicitly signaled in the encoded video bitstream. Based on this syntax element, the video decoder 300 may be configured to determine whether a chroma QP mapping table is received and should be decoded.
[0140] In another example of this disclosure, video encoder 200 may signal one or more chroma QP mapping tables in the encoded video bitstream. Video encoder 200 may be configured to signal a chroma QP mapping table regardless of whether video encoder 200 is configured to signal a syntax element indicating that a chroma QP mapping table is signaled in the bitstream. That is, in some examples, video encoder 200 may not indicate whether a chroma QP mapping table is signaled. Instead, video encoder 200 may always signal a chroma QP mapping table in some level of syntax structure (e.g., SPS, APS, etc.).
[0141]
[0139] Thus, in one example of this disclosure, the video encoder 200 may be configured to determine a first chroma QP value for a first chroma block of the video data from a luma QP value and a first chroma QP mapping table. The video encoder 200 may encode the first chroma block of the video data using the first chroma QP value and signal in the encoded video bitstream a syntax element that describes a set of pivot points that specify a piecewise linear model for the first chroma QP mapping table. In an inverse manner, the video decoder 300 may receive in the encoded video bitstream a syntax element that describes a set of pivot points that specify a piecewise linear model for the first chroma QP mapping table, determine a first chroma QP value for the first chroma block of the video data from the luma QP value and the first chroma QP mapping table, and decode the first chroma block of the video data using the first chroma QP value.
[0142]
[0140] In the above example, video encoder 200 signals at least one chroma QP mapping table in a particular syntax structure (e.g., SPS, APS, etc.). In other examples, video encoder 200 may signal multiple chroma QP mapping tables for a particular syntax structure (e.g., one chroma QP mapping table for each of multiple APSs) and then signal an index (e.g., an ID for a particular APS) indicating which of the multiple chroma QP mapping tables should be used for a block / tile / slice / picture. For example, as shown in implementation example 1 below, video encoder 200 may signal chromaQP_table_data in each of multiple APSs, where chromaQP_table_data specifies the chroma QP mapping table. Video encoder 200 may then signal adaptation_parameter_set_id, which is an ID indicating the APS from which to obtain the chroma QP mapping table.
[0143] In one example of this disclosure, the video encoder 200 may signal the chroma QP mapping table as a parametric function. In particular, the video encoder 200 may signal parameters of the parametric function. The video decoder 300 may receive the parameters and reconstruct the parametric function of the chroma QP mapping table.
[0144]
[0142] In another example, video encoder 200 may signal the chroma QP mapping table as a piecewise linear model. In some examples, video encoder 200 may signal the piecewise linear model by signaling a scale and offset associated with each linear piece of the piecewise linear model. In other examples, video encoder 200 may signal a set of pivot points that specify the boundaries of the piecewise linear model. However, any technique for signaling a piecewise linear model may be used. In the context of this disclosure, the boundaries of the piecewise linear model indicate the locations of the model where the slope of the linear model changes. Thus, the pivot points are the locations (e.g., boundaries) of the slope change.
[0145]
[0143] As shown below in implementation examples 1 and 2, video encoder 200 signals a chroma QP mapping table by signaling pivot points that specify the boundaries of a piecewise linear model. For example, video encoder 200 may signal a syntax element num_points_in_qp_table[i] indicating the number of pivot points in the i-th chroma QP mapping table. Then, for each pivot point, video encoder 200 may signal delta_qp_in_val[i][j] and delta_qp_out_val[i][j], where delta_qp_in_val[i][j] specifies the delta value used to derive the input coordinate of the j-th pivot point of the i-th chroma QP mapping table, and delta_qp_out_val[i][j] specifies the delta value used to derive the output coordinate of the j-th pivot point of the i-th chroma QP mapping table.
[0146]
[0144] Thus, in one example, the video encoder 200 may be configured to signal a set of pivot points that specify boundaries of a piecewise linear model of a chroma QP mapping table. The video decoder 300 may be configured to receive a set of pivot point(s) that specify boundaries of the piecewise linear model. The video decoder 300 may then reconstruct the chroma QP mapping table from the received pivot point(s).
[0147]
[0145] In another example of this disclosure, video encoder 200 may signal a syntax element to indicate that the same chroma QP mapping table is used for the Cb and Cr components. That is, the same chroma QP mapping table may be used to determine chroma QP values for co-located Cb and Cr chroma blocks. For example, when the syntax element has a value of 1, one chroma QP mapping table is used for both Cb and Cr chroma blocks. When the syntax element is 0, video encoder 200 may be configured to signal separate chroma QP mapping tables for Cb and Cr chroma blocks.
[0148]
[0146] Similarly, in another example, video encoder 200 may signal a syntax element to indicate that the same chroma QP mapping table is used for the Cb component, the Cr component, and / or the joint CbCr residual. That is, the same chroma QP mapping table may be used to determine chroma QP values for co-located Cb chroma blocks, Cr chroma blocks, and / or the joint CbCr residual. For example, when the syntax element has a value of 1, one chroma QP mapping table is used for either the Cb chroma blocks, the Cr chroma blocks, and / or the joint CbCr residual. When the syntax element is 0, video encoder 200 may be configured to signal separate chroma QP mapping tables for the Cb chroma blocks, the Cr chroma blocks, and / or the joint CbCr residual.
[0149] In one example of this disclosure, the first chroma block is a Cb chroma block and the second chroma block is a Cr chroma block co-located with the first chroma block. In this example, the video encoder 200 may signal, and the video decoder 300 may receive, a syntax element that indicates whether the same chroma QP mapping table is used for both the Cb and Cr chroma blocks.
[0150]
[0148] In one example, the syntax element indicates that the same chroma QP mapping table is used for both Cb and Cr chroma blocks. In this example, the video encoder 200 may signal a single chroma QP mapping table. The video decoder 300 may determine a first chroma QP value for a first chroma block (e.g., a Cr block) and may determine a second chroma QP value for a second chroma block (e.g., a co-located Cb block) from the corresponding luma QP value and the chroma QP mapping table.
[0151] In another example, the syntax element indicates that the same chroma QP mapping table is not used for both Cb and Cr chroma blocks. In this example, the video decoder 300 may receive a first chroma QP mapping table in the encoded video bitstream for a first chroma block (e.g., a Cb block) and a second chroma QP mapping table in the encoded video bitstream for a second chroma block (e.g., a Cr block). The video decoder 300 may then determine a first chroma QP value for the Cb chroma block of the video data from the luma QP value and the first chroma QP mapping table, and determine a second chroma QP value for the Cr chroma block of the video data from the luma QP value and the second chroma QP mapping table.
[0152] In some example video codecs, in addition to the Cb residual and the Cr residual (e.g., one residual block for the Cb component and another residual block for the Cr component), the video encoder 200 and the video decoder 300 may be configured to derive one or more residual blocks of the video data from the jointly coded and quantized Cb residual and the Cr residual. Such residuals may be referred to as joint CbCr residuals. For example, one joint residual may be obtained by averaging the residual of the Cb block (Cb_res) and the residual of the Cr block (Cr_res) using the formula (Cb_res+Cr_res) / 2. In another example, the joint residual may be obtained from the averaged difference between the residual of the Cb block and the residual of the Cr block using the formula (Cb_res-Cr_res) / 2. In such video codecs, the video encoder 200 may be configured to define and signal a chroma QP mapping table for each such joint residual. In some examples, a chroma QP mapping table may be signaled for all joint CbCr residuals.
[0153]
[0151] In some examples, the video encoder 200 may be configured to signal / specify that one or more chroma QP mapping tables for Cb and / or Cr blocks may be applied to one or more joint residuals.
[0154] In some examples, the video encoder 200 may be configured to signal a syntax element (e.g., an index value) that specifies which residual blocks (Cb, Cr, joint CbCr, etc.) share one or more chroma QP mapping tables. For example, when the index value is equal to 0, the residuals do not share the same chroma QP mapping table. When the index value is equal to 1, the Cb and Cr blocks share the same chroma QP mapping table, but the joint CbCr residual block may be decoded using a separate chroma QP mapping table.
[0155] In one or more examples of this disclosure, one possible candidate for use as a chroma QP mapping table is a chroma QP mapping table defined by default in a video coding specification (e.g., a default chroma QP mapping table). In this example, video encoder 200 may be configured to signal a syntax element to indicate that for a particular residual type (e.g., Cb, Cr, joint CbCr), the default chroma QP mapping table should be used or an explicitly signaled chroma QP mapping table should be used.
[0156]
[0154] In some examples, the video encoder 200 may be configured to signal N chroma QP mapping tables. For example, the video encoder 200 may be configured to signal a list of N chroma QP mapping tables. Each chroma QP mapping table may be defined by a number of pivot points that represent piecewise linear mappings of the chroma QP mapping tables. For each pivot point, an input and an output QP may be signaled. For example, as shown below in an example implementation, an input QP value for a pivot point may be defined by delta_qp_in_val[i][j], which specifies a delta value used to derive an input coordinate of the jth pivot point in the ith chroma QP mapping table. An output QP value for a pivot point may be defined by delta_qp_out_val[i][j], which specifies a delta value used to derive an output coordinate of the jth pivot point in the ith chroma QP mapping table. A particular chroma QP mapping table to be used for a particular residual may be specified by an index into the list of chroma QP mapping tables.
[0157]
[0155] In another example, for each residual type (eg, Cb, Cr, joint CbCr), video encoder 200 may be configured to signal an index to specify the chroma QP mapping table that should be used.
[0158] In any combination of the above examples, the video encoder 200 may be configured to signal one or more chroma QP mapping tables in one or more parameter sets, in a slice header, or in other parts of the encoded video bitstream. Exemplary parameter sets include one or more of an SPS, a PPS, an APS, a VPS, a decoder parameter set (DPS), or another parameter set. When associated with a parameter set, a chroma QP mapping table is applicable to all samples in a picture associated with the particular parameter set.
[0159]
[0157] In another example of this disclosure, video encoder 200 may specify one or more spatial regions (e.g., slices, tiles, bricks, regions of interest, etc.) for a picture, and video encoder 200 may signal one or more chroma QP mapping tables for the particular specified spatial regions.
[0160]
[0158] In other examples, the video encoder 200 may be configured to update the chroma QP mapping table and signal at the bitstream, sequence, frame, block or pixel level.
[0161]
[0159] In examples in which a chroma QP mapping table is associated with a spatial region, video encoder 200 may signal one or more chroma QP mapping tables, and video encoder 200 may use an index into a list of chroma QP mapping tables to specify a particular chroma QP mapping table to be used for a particular region.
[0162] In other examples of this disclosure, video encoder 200 may be configured to specify and signal chroma QP mapping tables for other chroma types, such as chroma format, chroma sample location type, etc. The chroma format (e.g., chroma_format) may indicate a chroma subsampling format. Examples include monochrome, 4:4:0, 4:2:2, 4:4:4, etc. The chroma sample location type (e.g., chroma_sample_location_type) may indicate the relative locations of luma and chroma samples for various chroma formats. Such chroma QP mapping tables may be either explicitly defined in a standard and stored in both video encoder 200 and video decoder 300, or signaled in the bitstream by means disclosed in this disclosure or by other methods.
[0163] In another example of this disclosure, video encoder 200 may signal one or more syntax elements to indicate a chroma type with which a chroma QP mapping table is associated. In some instances, more than one syntax element may be used to indicate a chroma type with which a mapping table is associated. For example, video encoder 200 may signal a chroma QP mapping table for chroma_format, chroma_sample_location_type, component id(Cb, Cr), etc.
[0164]
[0162] In some examples, the video encoder 200 and the video decoder 300 may be configured to store one or more chroma QP mapping tables as a set. The video encoder 200 and the video decoder 300 may be further configured to update, add, or remove one or more chroma QP mapping tables in the set, resulting in a dynamic set of chroma QP mapping tables. The process for adding, updating, and / or removing a chroma QP mapping table may be specified by a respective syntax element and / or or syntax element value. From the set of chroma QP mapping tables, the video decoder 300 may derive a subset of the chroma QP mapping table currently associated with the block / sample / region in the mapping table list for the block / sample / region. The video encoder 200 may signal the particular mapping table to be used.
[0165]
[0163] In some examples, one or more syntax elements in the SPS and / or video usability information (VUI) syntax may be used to infer the chroma type to which a chroma QP mapping table applies.
[0166] In some examples, video encoder 200 and video decoder 300 may use different color spaces (e.g., non-constant luminance Y'CbCr, constant luminance Y'CbCr, ICtCp, RGb, etc.) to code video data. In such examples, video encoder 200 may specify one or more chroma QP mapping tables for deriving a QP value for a particular color component that may or may not depend on the QP value of another color component. One or more methods described in this disclosure may be applicable for such color spaces, and the methods and descriptions may be extended accordingly to such applications.
[0167]
[0165] One or more video coding processes of video encoder 200 and video decoder 300 that use a chroma QP may have an associated chroma QP mapping table. For example, video encoder 200 and video decoder 300 may determine various deblocking parameters / decisions using a chroma QP that may be calculated from a chroma QP mapping table. In some examples, video encoder 200 may signal an additional indication (e.g., a syntax element) that associates a chroma QP mapping table with another video coding process (e.g., deblocking).
[0168] In some examples, one or more chroma deblocking filtering decisions or filter strengths (strong filter, weak filter, etc.) may depend on one or more signaled chroma QP mapping tables. These tables may apply to one component (Cb or Cr of joint CbCr) or to two or more components. Video encoder 200 may signal a syntax element to associate the deblocking decision / filter strength to a chroma QP mapping table, or such association may be inferred / derived by a predetermined method.
[0169] In other examples of this disclosure, video encoder 200 and video decoder 300 may be configured to apply separate chroma QP mapping tables to high dynamic range (HDR) and standard dynamic range (SDR) video sequences. In some examples, video encoder 200 may signal additional indications (e.g., syntax elements) that associate the chroma QP mapping table with a type of video content (e.g., HDR content, SDR content, the color gamut of the video content, the primaries of the video content, etc.).
[0170]
[0168] One or more methods described in this disclosure may also rely on other syntax elements signaled in the bitstream, such as QP offset values associated with color components in slice headers, PPSs, and other parts of the bitstream. One or more video coding decisions may use a chroma QP mapping table together with one or more syntax elements. For example, a deblocking filter decision may be based on a chroma QP mapping table and one or more QP offsets associated with one or more color components.
[0171]
[0169] One or more methods disclosed herein may be further constrained by one or more characteristics of the sample to which the chroma QP mapping table is applied. For example, the block shape, aspect ratio, prediction mode used, characteristics of neighboring blocks, and the location of the sample relative to the picture (near or away from a boundary, including picture boundaries, tile boundaries, slice boundaries, brick boundaries, etc.) may be used to determine how and when the chroma QP mapping table is applied.
[0172]
[0170] Some of the methods described above may be applied in video encoder 200, in video decoder 300, or both. Although many of the methods disclosed are for chroma components, the techniques of this disclosure may also be applicable for luma and for components in other color spaces that may be used to represent video data.
[0173]
[0171] The previously described video encoder 200 and video decoder 300 relate to block-based coding techniques that comprise encoding or decoding luma blocks and associated chroma blocks produced by processes of prediction, residual derivation and transformation. The following implementation examples describe various techniques for determining quantization parameter values for use in such block-based video coding techniques, whether HEVC, VVC or other block-based video coding techniques.
[0174]
[0172] Implementation example 1 In some examples, chroma QP-dependent signaling, including a chroma QP mapping table, may be signaled in the APS. The following is a non-limiting example of such communication in the APS Raw Byte Sequence Payload (RBSP) syntax:
[0175]
[0174]
[0176] [Table 2]
[0177] [Table 3]
[0178] [Table 4]
[0179]
[0175] Semantics chroma_qp_table_present_flag equal to 1 specifies that the chroma QP mapping table is signaled in the APS. chroma_qp_table_present_flag equal to 0 specifies that the chroma QP mapping table is not signaled in the APS and Table 8-15 is used to derive the chroma QP value.
[0180] same_qp_table_for_cb_cr equal to 1 specifies that only one chroma QP mapping table is signaled and applies to both Cb and Cr components. same_qp_table_for_cb_cr equal to 0 specifies that two chroma QP mapping tables are signaled in the APS.
[0181] num_points_in_qp_table_minus2[i]+2 specifies the number of points used to represent the chroma QP mapping table. The value of num_points_in_qp_table_minus1[i] ranges from 0 to 69 + QpBdOffset, inclusive. C It is assumed that the measurement is within the range of
[0182] delta_qp_in_val[i][j] specifies the delta value used to derive the input coordinate of the jth pivot point of the ith chroma QP mapping table.
[0183] delta_qp_out_val[i][j]+ specifies the delta value used to derive the output coordinate of the jth pivot point of the ith chroma QP mapping table.
[0184]
[0176] The pivot point for each chroma QP table is indicated by qpVal[ ] and cQPTable[ ]. qpVal[j] and cQPTable[j] specify the two coordinates of the jth pivot point in the chroma QP table. The video encoder 200 and the video decoder 300 derive the variables qpVal[ ] and cQPTable[ ] from delta_qp_in_val[ ][ ] and delta_qp_out_val[ ][ ], respectively. The video encoder 200 and the video decoder 300 set the values of the syntax elements delta_qp_in_val[ ][ ] and delta_qp_out_val[ ][ ] to -QpBdOffsetC Calculate the value of the first pivot point by adding -QpBdOffset C is the minimum QP value allowed for a particular bit depth. C The value of is 6*(bitDepth C -8), where bitDepth C is the bit depth of the corresponding chroma component. For bit depths greater than 8 bits, the QP value range is larger and bit depth dependent. For example, the QP value range is inclusive, from -QpBdOffset C ~69, where the value of QPBdOffset increases with bit depth.
[0185]
[0177] If the first pivot point does not correspond to -QpBdOffset, the video encoder 200 and the video decoder 300 may perform padding with a uniform gradient of 1. For example, if QpBdOffset is equal to 12, qpVal[0]=4, and cQPTable[0]=4, the values of ChromaQpTable[i][k] for the range of -12 to 3 are set equal to -12 to 3, respectively. Similarly, if the last pivot point does not correspond to the value of the maximum QP (i.e., 69 in this example), the video encoder 200 and the video decoder 300 pad the QP values beyond the last pivot point by a function of gradient 1. For all intermediate QPs, for QP values between pivot points, the video encoder 200 and the video decoder 300 derive the QP values by linear interpolation between adjacent pivot point pairs. For example, if there are two pivot points x1=qpVal[j], x2=qpVal[j+1], y1=cQpTable[j], and y2=cQPTable[j+1], for values of x between x1 and x2, the video encoder 200 and the video decoder 300 obtain the chroma mapping table value ChromaQpTable[i][x] by linear interpolation between the two pivot points (x1, y1) and (x2, y2). At one or more locations, the video encoder 200 and the video decoder 300 may align the derived chroma QP value to a valid QP range (in this example, -QpBdOffset C ~69).
[0186]
[0178] In general, the video decoder 300 may be configured to pad QP values in a chroma QP mapping table from the lowest pivot point in a set of pivot points to a minimum QP value using a slope function of unity, and to pad QP values in a chroma QP mapping table from the highest pivot point in a set of pivot points to a maximum QP value using a slope function of unity.
[0187]
[0179] The i-th chroma QP mapping table cQPTable[i] for i=0..same_qp_table_for_cb_cr?0:1 is derived as follows:
[0188]
number
[0189]
[0180] When same_qp_table_for_cb_cr is equal to 1, ChromaQpTable[1][k] is set to k=-QpBdOffset C ..69 is set equal to ChromaQpTable[0][k].
[0190]
[0181] In addition, the following modifications are made to the chroma QP derivation:
[0191]
[0182] The following constraints may be added: The value of qpVal[i][j] shall be greater than the value qpVal[i][j-1] for j=1..num_points_in_qp_table[i].
[0192]
[0183] The following text is deleted from VVC Draft 5:
[0193]
[0184] - If ChromaArrayType is equal to 1, then the variable qP Cb , qP Cr and qP CbCr are respectively qPi Cb , qPi Cr and qPi CbCr Based on the index qPi equal to Qp as specified in Table 8-15 C The value is set equal to the value of
[0194]
[0185] - otherwise, the variable qP Cb , qP Cr and qP CbCr are respectively qPi Cb , qPiCr and qPi CbCr Based on the index qPi being equal to , it is set equal to Min(qPi, 63).
[0195]
[0186] The following text is added to VVC Draft 5:
[0196]
[0187] - If ChromaArrayType is equal to 1, the following applies:
[0197] - If chroma_qp_table_present_flag is equal to 1, the variable qP Cb and qP Cr are ChromaQpTable[0][qPi Cb ] and ChromaQpTable[1][qPi Cr ].
[0198] - Otherwise (chroma_qp_table_present_flag is equal to 0), the variable qP Cb and qP Cr are qPi Cb and qPi Cr Based on the index qPi equal to Qp as specified in Table 8-15 C The value is set equal to the value of
[0199] - variable qP CbCr qPi CbCr Based on the index qPi equal to Qp as specified in Table 8-15 C The value is set equal to the value of
[0200]
[0188] In some examples, signaling of the chroma QP mapping table may also be present in other parameter sets (eg, SPS, PPS, etc.) or in the slice header / data syntax structure.
[0201]
[0189] One or more delta values of QP (delta_qp_in_Val, delta_qp_out_val) may be signaled with minus1 (e.g., after subtracting a value of 1) to indicate that some syntax elements may not be allowed to take the value 0. For example, some delta values may not be allowed to take the value 0, and it is more efficient to signal the syntax element with "minus1". More generally, a syntax element may be signaled with "minusN", where N may be predetermined / signaled.
[0202]
[0190] The number of pivot points in a chroma QP mapping table may be constrained to be at least equal to a threshold T. In such a case, an endpoint may be inferred and the syntax element num_points_in_qp_table may be signaled with minusT (e.g., after subtracting T from the value).
[0203]
[0191] Implementation example 2
[0192] In another example of the present disclosure, an alternative to signaling a chroma QP mapping table is provided. In this example, chroma QP-dependent signaling, including the chroma QP mapping table, is signaled in the SPS. The following is a non-limiting example of such communication in the SPS:
[0204]
[0193]
[0205] [Table 5]
[0206] chroma_qp_table_present_flag equal to 1 specifies that the chroma QP mapping table is signaled in the SPS. chroma_qp_table_present_flag equal to 0 specifies that the chroma QP mapping table is not signaled in the SPS and Table 8-16 is used to derive the chroma QP value.
[0207] same_qp_table_for_chroma equal to 1 specifies that only one chroma QP mapping table is signaled and applies to both Cb and Cr components. same_qp_table_for_chroma equal to 0 specifies that two chroma QP mapping tables, one for Cb and one for Cr, are signaled in the SPS.
[0208] global_offset_flag equal to 1 specifies that the first pivot point in the chroma QP mapping table has at least 16 input coordinates and at least 16 output coordinates. global_offset_flag equal to 0 specifies that there is no restriction on the first pivot point in the chroma QP mapping table.
[0209] num_points_in_qp_table_minus1[i]+1 specifies the number of points used to represent the chroma QP mapping table. The value of num_points_in_qp_table_minus1[i] ranges from 0 to 57+QpBdOffset, inclusive. C It must be within the range of -(global_offset_flag==1?16:0).
[0210] delta_qp_in_val_minus1[i][j]+1 specifies the delta value used to derive the input coordinate of the jth pivot point for the ith chroma QP mapping table.
[0211] delta_qp_out_val[i][j] specifies the delta value used to derive the output coordinate of the jth pivot point of the ith chroma QP mapping table.
[0212]
[0194] The i-th chroma QP mapping table ChromaQpTable[i] for i=0..same_qp_table_for_chroma?0:1 is derived as follows:
[0213]
number
[0214]
[0195] When same_qp_table_for_chroma is equal to 1, ChromaQpTable[1][k] is set to k=-QpBdOffset C ..57 is set equal to ChromaQpTable[0][k].
[0215]
[0196] The values of qpInVal[i][j] and qpOutval[i][j] are -QpBdOffset for i=0..same_qp_table_for_chroma?0:1 and j=0..num_points_in_qp_table_minus1[i], inclusive. C It is a bitstream conformance requirement that it be in the range of ~57.
[0216]
[0197] Table 1 provides bit estimates for several example chroma QP mapping tables defined for use in MPEG Essential Video Coding (EVC) and JVET developments.
[0217] [Table 6]
[0218]
[0198] *The number of bits applies here to the signaling of delta_qp_in_val_minus1 and delta_qp_out_val. Other syntax elements associated with the chroma QP mapping table are similar in all methods described in this disclosure and therefore were not measured.
[0219]
[0199] Figure 4 is a flowchart illustrating an example method for encoding a current block according to the techniques of this disclosure. The current block may comprise a current chroma block. Although described with respect to video encoder 200 (Figures 1 and 2), it should be understood that other devices may be configured to implement a method similar to that of Figure 4.
[0220] In one example of this disclosure, the video encoder 200 may be configured to determine a first chroma QP value for a first chroma block of the video data from the luma QP value and the first chroma QP mapping table (350), and may encode the first chroma block of the video data using the first chroma QP value (352). The video encoder 200 may be further configured to determine the luma QP value and encode a luma block of the video data corresponding to the first chroma block of the video data using the luma QP value. The video encoder 200 may also be configured to signal in the encoded video bitstream a syntax element (e.g., delta_qp_in_val[ ][ ] and delta_qp_out_val[ ][ ]) that describes a set of pivot points that specify a piecewise linear model for the first chroma QP mapping table (354).
[0221] In another example of this disclosure, the first chroma block is a Cb chroma block and the second chroma block is a co-located Cr chroma block. In this example, video encoder 200 may be further configured to signal a syntax element indicating whether the same chroma QP mapping table is used for both the Cb chroma block and the Cr chroma block.
[0222]
[0202] In one example, the same chroma QP mapping table is used for both Cb and Cr chroma blocks. In this example, the video encoder 200 is further configured to determine a second chroma QP value for the Cr chroma block of the video data from the luma QP value and the first chroma QP mapping table. In another example, the same chroma QP mapping table is not used for both Cb and Cr chroma blocks. In this example, the video encoder 200 is configured to determine a second chroma QP value for the Cr chroma block of the video data from the luma QP value and the second chroma QP mapping table, and signal the second chroma QP mapping table in the encoded video bitstream for the Cr chroma block.
[0223]
[0203] In one example, the same chroma QP mapping table is used for both the Cb chroma block, the Cr chroma block, and the joint CbCr chroma block. In this example, the video encoder 200 is further configured to determine a second chroma QP value for the Cr chroma block of the video data from the luma QP value and the first chroma QP mapping table, and to determine a third chroma QP value for the joint CbCr chroma block of the video data from the luma QP and the first chroma QP mapping table. In another example, the same chroma QP mapping table may not be used for the Cb chroma block, the Cr chroma block, and the joint CbCr chroma block. In this example, the video encoder 200 is configured to determine a second chroma QP value for the Cb chroma block of the video data from the luma QP value and the second chroma QP mapping table, and to signal the second chroma QP mapping table in the encoded video bitstream for the Cb chroma block. The video encoder 200 is configured to determine a third chroma QP value for a Cr chroma block of the video data from the luma QP value and the third chroma QP mapping table, and to signal the third chroma QP mapping table in the encoded video bitstream for the Cr chroma block.
[0224] In another example, the same chroma QP mapping table is not used for each of the Cb chroma blocks, the Cr chroma blocks, and the joint CbCr residual. In this example, video encoder 200 may be configured to signal a second chroma QP mapping table in the encoded video bitstream for the Cr chroma blocks and to signal a third chroma QP mapping table in the encoded video bitstream for the joint CbCr residual.
[0225]
[0205] In another example of this disclosure, the first chroma block of video data is a joint CbCr residual.
[0226]
[0206] In another example of this disclosure, the video encoder 200 is configured to signal a chroma QP mapping table in a sequence parameter set (SPS).
[0227]
[0207] In another example of this disclosure, the video encoder 200 is configured to signal a syntax element indicating whether one or more chroma mapping tables are explicitly signaled in the encoded video bitstream.
[0228]
[0208] Figure 5 is a flow chart illustrating an example method for decoding a current block of video data in accordance with the techniques of this disclosure. The current block may comprise a current chroma block. Although described with respect to video decoder 300 (Figures 1 and 3), it should be understood that other devices may be configured to perform a method similar to that of Figure 5.
[0229] In one example of this disclosure, the video decoder 300 may be configured to receive, in an encoded video bitstream, syntax elements (e.g., delta_qp_in_val[ ][ ] and delta_qp_out_val[ ][ ]) that describe a set of pivot points that specify a piecewise linear model for a first chroma quantization parameter (QP) mapping table (370). The video decoder 300 may be configured to determine a first chroma QP value for a first chroma block of the video data from the luma QP value and the first chroma QP mapping table (372) and decode the first chroma block of the video data using the first chroma QP value (374). The video decoder 300 may be further configured to determine the luma QP value and decode a luma block of the video data that corresponds to the first chroma block of the video data using the luma QP value.
[0230]
[0210] In one example of the present disclosure, the video decoder 300 may be configured to pad QP values in a first chroma QP mapping table from a lowest pivot point in a set of pivot points to a minimum QP value using a slope function of 1, and to pad QP values in a first chroma QP mapping table from a highest pivot point in the set of pivot points to a maximum QP value using a slope function of 1.
[0231] In one example of this disclosure, the first chroma block is a Cb chroma block and the second chroma block is a co-located Cr chroma block. In this example, the video decoder 300 may be further configured to receive a syntax element indicating whether the same chroma QP mapping table is used for both the Cb chroma block and the Cr chroma block.
[0232]
[0212] In one example, the syntax element indicates that the same chroma QP mapping table is used for both Cb and Cr chroma blocks. In this example, the video decoder 300 may be further configured to determine a second chroma QP value for the Cr chroma block of the video data from the luma QP value and the first chroma QP mapping table. In another example, the syntax element indicates that the same chroma QP mapping table is not used for both Cb and Cr chroma blocks. In this example, the video decoder 300 may be further configured to receive a second chroma QP mapping table in the encoded video bitstream for the Cb chroma block and determine a second chroma QP value for the Cb chroma block of the video data from the luma QP value and the second chroma QP mapping table.
[0233] In another example, a syntax element may indicate that the same chroma QP mapping table is not used for each of the Cb chroma blocks, the Cr chroma blocks, and the joint CbCr residual. In this example, the video decoder 300 may be configured to receive a second chroma QP mapping table in the encoded video bitstream for the Cr chroma blocks and a third chroma QP mapping table in the encoded video bitstream for the joint CbCr residual.
[0234]
[0214] In another example, the first chroma block of video data is a joint CbCr residual.
[0235]
[0215] In another example, the video decoder 300 may be configured to receive a chroma QP mapping table in a sequence parameter set (SPS).
[0236]
[0216] In another example, the video decoder 300 may be configured to receive a syntax element that indicates whether one or more chroma mapping tables are explicitly signaled in the encoded video bitstream.
[0237]
[0217] In accordance with the above examples, it should be appreciated that some acts or events of any of the techniques described herein may be performed in a different sequence, added, merged, or omitted entirely (e.g., not all described acts or events may be necessary to the practice of the techniques). Moreover, in some examples, acts or events may be performed simultaneously rather than sequentially, for example, through multi-threaded processing, interrupt processing, or multiple processors.
[0238]
[0218] In one or more examples, the described functions may be implemented in hardware, software, firmware, or any combination thereof. If implemented in software, the functions may be stored on or transmitted via a computer-readable medium as one or more instructions or code and executed by a hardware-based processing unit. A computer-readable medium may include a computer-readable storage medium, which corresponds to a tangible medium, such as a data storage medium, or may include a communication medium, including any medium that enables the transfer of a computer program from one place to another, for example, according to a communication protocol. In this manner, a computer-readable medium may generally correspond to (1) a tangible computer-readable storage medium that is non-transitory, or (2) a communication medium, such as a signal or carrier wave. A data storage medium may be any available medium that can be accessed by one or more computers or one or more processors to retrieve instructions, code and / or data structures for implementation of the techniques described in this disclosure. A computer program product may include a computer-readable medium.
[0239]
[0219] By way of example and not limitation, such computer-readable storage media may comprise RAM, ROM, EEPROM, CD-ROM or other optical disk storage, magnetic disk storage or other magnetic storage devices, flash memory, or any other medium that may be used to store desired program code in the form of instructions or data structures and that may be accessed by a computer. Also, any connection is properly referred to as a computer-readable medium. For example, if the instructions are transmitted from a website, server, or other remote source using coaxial cable, fiber optic cable, twisted pair, digital subscriber line (DSL), or wireless technologies such as infrared, radio, and microwave, the coaxial cable, fiber optic cable, twisted pair, DSL, or wireless technologies such as infrared, radio, and microwave are included in the definition of the medium. However, it should be understood that computer-readable storage media and data storage media do not include connections, carrier waves, signals, or other transitory media, but instead cover non-transitory tangible storage media. As used herein, disk and disc include compact disc (CD), laser disc, optical disc, digital versatile disc (DVD), floppy disk and Blu-ray disc, where disks typically reproduce data magnetically and discs reproduce data optically with lasers. Combinations of the above should also be included within the scope of computer readable media.
[0240]
[0220] The instructions may be executed by one or more processors, such as one or more digital signal processors (DSPs), general-purpose microprocessors, application specific integrated circuits (ASICs), field programmable gate arrays (FPGAs), or other equivalent integrated or discrete logic circuits. Thus, the terms "processor" and "processing circuitry" as used herein may refer to any of the above structures, or any other structures suitable for implementing the techniques described herein. Furthermore, in some aspects, the functions described herein may be provided in dedicated hardware and / or software modules configured for encoding and decoding, or incorporated into a composite codec. Also, the techniques may be fully implemented in one or more circuits or logic elements.
[0241]
[0221] The techniques of the present disclosure may be implemented in a wide variety of devices or apparatuses, including wireless handsets, integrated circuits (ICs) or sets of ICs (e.g., chipsets). In this disclosure, various components, modules, or units have been described to highlight functional aspects of devices configured to implement the disclosed techniques, but those components, modules, or units do not necessarily require realization by different hardware units. Rather, as described above, the various units may be combined in a codec hardware unit or provided by a collection of interoperable hardware units, including one or more processors described above, along with suitable software and / or firmware.
[0242]
[0222] Various examples have been described. These and other examples are within the scope of the following claims. The invention as described in the claims of the original application is set forth below. [C1] 1. A method for decoding video data, comprising the steps of: Receiving, in an encoded video bitstream, a syntax element describing a set of pivot points that specify a piecewise linear model for a first chroma quantization parameter (QP) mapping table; determining a first chroma QP value for a first chroma block of the video data from a luma QP value and the first chroma QP mapping table; decoding the first chroma block of video data using the first chroma QP value; A method comprising: [C2] padding QP values in the first chroma QP mapping table from a lowest pivot point in the set of pivot points to a minimum QP value using a slope function of unity; padding QP values in the first chroma QP mapping table from a maximum pivot point in the set of pivot points to a maximum QP value using a function of a slope of unity; The method of C1, further comprising: [C3] the first chroma block is a Cb chroma block and the second chroma block is a collocated Cr chroma block, and the method comprises: receiving a syntax element indicating whether the same chroma QP mapping table is used for both the Cb chroma block and the Cr chroma block; The method of C1, further comprising: [C4] The syntax element indicates that the same chroma QP mapping table is used for the Cb chroma block, the Cr chroma block, and a joint CbCr residual, and the method further comprises: determining a second chroma QP value for the Cr chroma block of video data from the luma QP value and the first chroma QP mapping table; The method of C3, further comprising: [C5] the syntax element indicating that the same chroma QP mapping table is not used for both the Cb chroma block and the Cr chroma block, the method further comprising: receiving, for the Cr chroma block, a second chroma QP mapping table in the encoded video bitstream; determining a second chroma QP value for the Cr chroma block of video data from the luma QP value and the second chroma QP mapping table; The method of C3, further comprising: [C6] The syntax element indicates that the same chroma QP mapping table is not used for each of the Cb chroma block, the Cr chroma block, and a joint CbCr residual, and the method further comprises: receiving, for the Cr chroma block, a second chroma QP mapping table in the encoded video bitstream; receiving, in the encoded video bitstream, a third chroma QP mapping table for the joint CbCr residual; The method of C3, further comprising: [C7] 2. The method of claim 1, wherein the first chroma block of video data is a joint CbCr residual. [C8] determining the luma QP value; decoding a luma block of video data corresponding to the first chroma block of video data using the luma QP value; The method of C1, further comprising: [C9] Receiving the chroma QP mapping table includes: receiving the chroma QP mapping table in a sequence parameter set (SPS); The method of claim C1, comprising: [C10] receiving a syntax element indicating whether one or more chroma QP mapping tables are explicitly signaled in the encoded video bitstream; The method of C1, further comprising: [C11] displaying a picture including the first chroma block of video data; The method of C1, further comprising: [C12] 1. An apparatus configured to decode video data, comprising: a memory configured to store video data; and one or more processors in communication with the memory, the one or more processors comprising: Receiving, in an encoded video bitstream, a syntax element describing a set of pivot points that specify a piecewise linear model for a first chroma quantization parameter (QP) mapping table; determining a first chroma QP value for a first chroma block of the video data from a luma QP value and the first chroma QP mapping table; decoding the first chroma block of video data using the first chroma QP value; An apparatus configured to: [C13] The one or more processors: padding QP values in the first chroma QP mapping table from a lowest pivot point in the set of pivot points to a minimum QP value using a slope function of unity; padding QP values in the first chroma QP mapping table from a maximum pivot point in the set of pivot points to a maximum QP value using a function of a slope of unity; The apparatus of C12, further configured to: [C14] the first chroma block is a Cb chroma block and the second chroma block is a collocated Cr chroma block, receiving a syntax element indicating whether the same chroma QP mapping table is used for both the Cb chroma block and the Cr chroma block; The apparatus of C12, further configured to: [C15] the syntax element indicates that the same chroma QP mapping table is used for the Cb chroma block, the Cr chroma block, and a joint CbCr residual, and the one or more processors: determining a second chroma QP value for the Cr chroma block of video data from the luma QP value and the first chroma QP mapping table; The apparatus of C14, further configured to: [C16] the syntax element indicating that the same chroma QP mapping table is not used for both the Cb chroma block and the Cr chroma block, receiving, for the Cr chroma block, a second chroma QP mapping table in the encoded video bitstream; determining a second chroma QP value for the Cr chroma block of video data from the luma QP value and the second chroma QP mapping table; The apparatus of C14, further configured to: [C17] the syntax element indicates that the same chroma QP mapping table is not used for each of the Cb chroma block, the Cr chroma block, and a joint CbCr residual, receiving, for the Cr chroma block, a second chroma QP mapping table in the encoded video bitstream; receiving, in the encoded video bitstream, a third chroma QP mapping table for the joint CbCr residual; The apparatus of C14, further configured to: [C18] The apparatus of C12, wherein the first chroma block of video data is a joint CbCr residual. [C19] The one or more processors: determining the luma QP value; decoding a luma block of video data corresponding to the first chroma block of video data using the luma QP value; The apparatus of C12, further configured to: [C20] To receive the chroma QP mapping table, the one or more processors: receiving the chroma QP mapping table in a sequence parameter set (SPS); The apparatus of C12, further configured to: [C21] The one or more processors: receiving a syntax element indicating whether one or more chroma QP mapping tables are explicitly signaled in the encoded video bitstream; The apparatus of C12, further configured to: [C22] a display configured to display a picture including the first chroma block of video data. The apparatus of C12, further comprising: [C23] The apparatus of C12, wherein the apparatus is a wireless communication device. [C24] 1. A method for encoding video data, comprising the steps of: determining a first chroma QP value for a first chroma block of the video data from the luma QP value and a first chroma QP mapping table; encoding the first chroma block of video data using the first chroma QP value; signaling, in an encoded video bitstream, a syntax element describing a set of pivot points that specify a piecewise linear model for the first chroma quantization parameter (QP) mapping table; A method comprising: [C25] 1. An apparatus configured to encode video data, comprising: a memory configured to store video data; and one or more processors in communication with the memory, the one or more processors comprising: determining a first chroma QP value for a first chroma block of the video data from the luma QP value and a first chroma QP mapping table; encoding the first chroma block of video data using the first chroma QP value; signaling, in an encoded video bitstream, a syntax element describing a set of pivot points that specify a piecewise linear model for the first chroma quantization parameter (QP) mapping table; An apparatus configured to: [C26] the first chroma block is a Cb chroma block and the second chroma block is a collocated Cr chroma block, signaling a syntax element indicating whether the same chroma QP mapping table is used for both the Cb chroma block and the Cr chroma block; The apparatus of C25, further configured to: [C27] the same chroma QP mapping table is used for the Cb chroma block, the Cr chroma block, and the joint CbCr residual, the one or more processors: determining a second chroma QP value for the Cr chroma block of video data from the luma QP value and the first chroma QP mapping table; The apparatus of C26, further configured to: [C28] the same chroma QP mapping table is not used for both the Cb chroma block and the Cr chroma block, and the one or more processors determining a second chroma QP value for the Cr chroma block of video data from the luma QP value and a second chroma QP mapping table; signaling the second chroma QP mapping table in the encoded video bitstream for the Cr chroma block; and The apparatus of C26, further configured to: [C29] the same chroma QP mapping table is not used for each of the Cb chroma block, the Cr chroma block, and the joint CbCr residual, signaling a second chroma QP mapping table in the encoded video bitstream for the Cr chroma block; and signaling a third chroma QP mapping table in the encoded video bitstream for the joint CbCr residual; and The apparatus of C26, further configured to: [C30] The apparatus of C25, wherein the first chroma block of video data is a joint CbCr residual. [C31] The one or more processors: determining the luma QP value; encoding a luma block of video data corresponding to the first chroma block of video data using the luma QP value; The apparatus of C25, further configured to: [C32] To signal the chroma QP mapping table, the one or more processors: signaling the chroma QP mapping table in a sequence parameter set (SPS); The apparatus of C25, further configured to: [C33] The one or more processors: signaling a syntax element indicating whether one or more chroma QP mapping tables are explicitly signaled in the encoded video bitstream; The apparatus of C25, further configured to: [C34] a camera configured to capture a picture including the first chroma block of video data; The apparatus of C25, further comprising: [C35] The apparatus of C25, wherein the apparatus is a wireless communication device.
Claims
1. 1. A method for decoding video data, comprising the steps of: Receiving, in an encoded video bitstream, a first syntax element describing a set of pivot points specifying a piecewise linear model for a first chroma quantization parameter (QP) mapping table; determining a first chroma QP value for a first chroma block of video data from a luma QP value and the first chroma QP mapping table; receiving a second syntax element indicating whether a same chroma QP mapping table is used for a Cb chroma block, a co-located Cr chroma block, and a joint CbCr residual, where the first chroma block is the Cb chroma block or the joint CbCr residual; decoding the first chroma block of video data using the first chroma QP value; A method comprising:
2. padding QP values in the first chroma QP mapping table from a lowest pivot point in the set of pivot points to a minimum QP value using a gradient function of unity; padding QP values in the first chroma QP mapping table from a maximum pivot point in the set of pivot points to a maximum QP value using a gradient function of unity; The method of claim 1 further comprising:
3. the first chroma block is the Cb chroma block; When the second syntax element indicates that the same chroma QP mapping table is used for the Cb chroma block, the Cr chroma block, and a joint CbCr residual, the method further comprises: determining a second chroma QP value for the Cr chroma block of video data from the luma QP value and the first chroma QP mapping table; The method of claim 1 further comprising:
4. the first chroma block is the Cb chroma block; When the second syntax element indicates that the same chroma QP mapping table is not used for both the Cb chroma block and the Cr chroma block, the method further comprises: receiving, for the Cr chroma block, a second chroma QP mapping table in the encoded video bitstream; determining a second chroma QP value for the Cr chroma block of video data from the luma QP value and the second chroma QP mapping table; The method of claim 1 further comprising:
5. the first chroma block is the Cb chroma block; When the second syntax element indicates that the same chroma QP mapping table is not used for each of the Cb chroma block, the Cr chroma block, and a joint CbCr residual, the method further comprises: receiving, for the Cr chroma block, a second chroma QP mapping table in the encoded video bitstream; receiving, in the encoded video bitstream, a third chroma QP mapping table for the joint CbCr residual; The method of claim 1 further comprising:
6. The method of claim 1 , wherein the first chroma block of video data is a joint CbCr residual.
7. determining the luma QP value; decoding a luma block of video data corresponding to the first chroma block of video data using the luma QP value; The method of claim 1 further comprising:
8. Receiving the chroma QP mapping table includes: receiving the chroma QP mapping table in a sequence parameter set (SPS); The method of claim 1 , comprising:
9. receiving a syntax element indicating whether one or more chroma QP mapping tables are explicitly signaled in the encoded video bitstream; The method of claim 1 further comprising:
10. displaying a picture including the first chroma block of video data; The method of claim 1 further comprising:
11. 1. An apparatus configured to decode video data, comprising: a memory configured to store video data; and one or more processors in communication with the memory, the one or more processors comprising: Receiving, in an encoded video bitstream, a first syntax element describing a set of pivot points specifying a piecewise linear model for a first chroma quantization parameter (QP) mapping table; determining a first chroma QP value for a first chroma block of video data from a luma QP value and the first chroma QP mapping table; receiving a second syntax element indicating whether a same chroma QP mapping table is used for a Cb chroma block, a co-located Cr chroma block, and a joint CbCr residual, where the first chroma block is the Cb chroma block or the joint CbCr residual; decoding the first chroma block of video data using the first chroma QP value; An apparatus configured to:
12. The apparatus of claim 11 , wherein the one or more processors are further configured to perform the method of any one of claims 2 to 10.
13. 1. A method for encoding video data, comprising the steps of: determining a first chroma QP value for a first chroma block of the video data from the luma QP value and a first chroma QP mapping table; encoding the first chroma block of video data using the first chroma QP value; signaling, in an encoded video bitstream, a first syntax element that describes a set of pivot points that specify a piecewise linear model for the first chroma quantization parameter (QP) mapping table; signaling a second syntax element indicating whether the same chroma QP mapping table is used for a Cb chroma block, a collocated Cr chroma block, and a joint CbCr residual, where the first chroma block is the Cb chroma block or the joint CbCr residual. A method comprising:
14. 1. An apparatus configured to encode video data, comprising: a memory configured to store video data; and one or more processors in communication with the memory, the one or more processors comprising: determining a first chroma QP value for a first chroma block of the video data from the luma QP value and a first chroma QP mapping table; encoding the first chroma block of video data using the first chroma QP value; signaling, in an encoded video bitstream, a first syntax element that describes a set of pivot points that specify a piecewise linear model for the first chroma quantization parameter (QP) mapping table; signaling a second syntax element indicating whether the same chroma QP mapping table is used for a Cb chroma block, a collocated Cr chroma block, and a joint CbCr residual, where the first chroma block is the Cb chroma block or the joint CbCr residual. An apparatus configured to:
Citation Information
Patent Citations
Quantization Parameter Signaling
JP2022527435A
Method and apparatus for signaling a mapping function of chroma quantization parameters
JP2022530480A
Method and apparatus for signaling of mapping function of chroma quantization parameter
WO2020216375A1
Quantization parameter signaling
WO2020243206A1
