Coefficient domain block differential pulse coding modulation in video coding

By using coefficient domain block differential pulse decoding modulation method in video decoding and using unfiltered samples for prediction, the delay and complexity problems caused by reconstructed samples in the prior art are solved, and the video encoding and decoding efficiency is improved .

CN118921465APending Publication Date: 2024-11-08QUALCOMM INC
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411342878.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Priority Date
2020-03-11
Filing Date
2020-03-12
Publication Date
2024-11-08

AI Technical Summary

Technical Problem

In existing video decoding techniques, the use of reconstructed samples during block differential pulse decoding modulation (BDPCM) may lead to delays and complexity of the encoding and decoding processes, affecting efficiency.

Method used

The coefficient domain block differential pulse decoding modulation (BDPCM) method is used to generate prediction values ​​directly using quantized residual values ​​to avoid the use of the predictions on the basis of the intraframe by using unfiltered samples from the upper or left block boundary. Reconstruct the dependencies of samples.

Benefits of technology

It improves the efficiency of the video encoding and decoding process, simplifies the process, reduces delays, and improves the decoding efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118921465A_ABST
    Figure CN118921465A_ABST
Patent Text Reader

Abstract

A video decoder may determine residual quantized samples of a block of video data based on syntax elements in a bitstream that includes an encoded representation of the video data. In addition, the video decoder may determine a quantized residual value based on the residual quantized sample. After determining the quantized residual value, the video decoder may inversely quantize the quantized residual value. A video decoder may generate prediction values by performing intra prediction for a block using unfiltered samples from upper or left block boundary samples. In addition, the video decoder may reconstruct the original sample value of the block based on the inverse quantized residual value and the prediction value.
Need to check novelty before this filing date? Find Prior Art

Description

[0001] This application is a divisional application of a Chinese patent application filed on March 12, 2020, with application number 202080018537.4 and invention name “Coefficient domain block differential pulse decoding modulation in video decoding”.

[0002] This application claims priority to U.S. Patent Application No. 16 / 816,116 filed on March 11, 2020, which claims priority to U.S. Provisional Patent Application 62 / 817,451 filed on March 12, 2019, and the entire contents of the above applications are hereby incorporated by reference. Technical Field

[0003] The present disclosure relates to video encoding and video decoding. Background Art

[0004] Digital video capabilities may be incorporated into a wide variety of devices, including digital televisions, digital live 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 "smart phones"), video teleconferencing devices, video streaming devices, etc. Digital video devices implement video coding techniques (such as those described in the 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 of such standards). By implementing such video coding techniques, video devices may more efficiently send, receive, encode, decode, and / or store digital video information.

[0005] Video coding techniques include spatial (intra-picture) prediction and / or temporal (inter-picture) prediction to reduce or remove redundancy inherent in video sequences. For 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 relative 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 relative to reference samples in neighboring blocks in the same picture or temporal prediction relative to reference samples in other reference pictures. Pictures may be referred to as frames, and reference pictures may be referred to as reference frames. Summary of the invention

[0006] In summary, the present disclosure describes a coefficient domain block differential pulse coding modulation (BDPCM) method and relates to techniques related to a coefficient level prediction method for transform skip coding of residual blocks in a video coding process. The corresponding entropy encoding process (which is the reverse process of entropy decoding) is implicitly specified and is therefore also part of the techniques of the present disclosure. The techniques of the present disclosure can be applied to any existing video codec (such as High Efficiency Video Coding (HEVC)) or as a coding tool to video coding standards currently under development (such as Versatile Video Coding (VVC)) and / or other future video coding standards.

[0007] In one example, the present disclosure describes a method of decoding video data, the method comprising: determining residual quantized samples of a block of the video data based on syntax elements in a bitstream including an encoded representation of the video data; determining a quantized residual value based on the residual quantized samples; after determining the quantized residual value, inverse quantizing the quantized residual value; generating a prediction value by performing intra-frame prediction for the block using unfiltered samples from an upper or left block boundary sample; and reconstructing the original sample value of the block based on the inverse quantized quantized residual value and the prediction value.

[0008] In another example, the present disclosure describes a method of encoding video data, the method comprising: generating a block of prediction values ​​by performing intra-frame prediction on a block of the video data using unfiltered samples from an upper or left block boundary sample; generating residual values ​​based on original sample values ​​of the block and the prediction values; quantizing the residual values; after quantizing the residual values, determining residual quantized samples based on the quantized residual values; and signaling the residual quantized samples.

[0009] In another example, the present disclosure describes a device for decoding video data, the device comprising: a memory configured to store the video data; and one or more processors implemented in a circuit, the one or more processors configured to: determine residual quantized samples of a block of the video data based on syntax elements in a bitstream including an encoded representation of the video data; determine a quantized residual value based on the residual quantized samples; after determining the quantized residual value, inverse quantize the quantized residual value; generate a prediction value by performing intra-frame prediction for the block using unfiltered samples from an upper or left block boundary sample; and reconstruct the original sample value of the block based on the inverse quantized quantized residual value and the prediction value.

[0010] In another example, the present disclosure describes a device for encoding video data, the device comprising: a memory configured to store the video data; and one or more processors implemented in a circuit, the one or more processors configured to: generate a block of prediction values ​​by performing intra-frame prediction on a block of the video data using unfiltered samples from an upper or left block boundary sample; generate residual values ​​based on original sample values ​​of the block and the prediction values; quantize the residual values; after quantizing the residual values, determine residual quantized samples based on the quantized residual values; and signal the residual quantized samples.

[0011] In another example, the present disclosure describes an apparatus for decoding video data, the apparatus comprising: a unit for determining residual quantized samples of a block of the video data based on syntax elements in a bitstream including an encoded representation of the video data; a unit for determining a quantized residual value based on the residual quantized samples; a unit for inverse quantizing the quantized residual value after determining the quantized residual value; a unit for generating a prediction value by performing intra-frame prediction for the block using unfiltered samples from an upper or left block boundary sample; and a unit for reconstructing an original sample value of the block based on the inverse quantized quantized residual value and the prediction value.

[0012] In another example, the present disclosure describes an apparatus for encoding video data, the apparatus comprising: a unit for generating a block of prediction values ​​by performing intra-frame prediction for a block of the video data using unfiltered samples from an upper or left block boundary sample; a unit for generating residual values ​​based on original sample values ​​of the block and the prediction values; a unit for quantizing the residual values; a unit for determining residual quantized samples based on the quantized residual values ​​after quantizing the residual values; and a unit for signaling the residual quantized samples.

[0013] In another example, the present disclosure describes a computer-readable storage medium having instructions stored thereon that, when executed, cause one or more processors to perform the following operations: determine residual quantized samples of a block of video data based on syntax elements in a bitstream that includes an encoded representation of the video data; determine a quantized residual value based on the residual quantized samples; after determining the quantized residual value, inverse quantize the quantized residual value; generate a prediction value by performing intra-frame prediction for the block using unfiltered samples from an upper or left block boundary sample; and reconstruct the original sample value of the block based on the inverse quantized quantized residual value and the prediction value.

[0014] In another example, the present disclosure describes a computer-readable storage medium having instructions stored thereon that, when executed, cause one or more processors to perform the following operations: generate a block of prediction values ​​by performing intra-frame prediction for a block of video data using unfiltered samples from an upper or left block boundary sample; generate residual values ​​based on original sample values ​​of the block and the prediction values; quantize the residual values; after quantizing the residual values, determine residual quantized samples based on the quantized residual values; and signal the residual quantized samples.

[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 be apparent from the description, drawings, and claims. BRIEF DESCRIPTION OF THE DRAWINGS

[0016] Figure 1 is a block diagram illustrating an example video encoding and decoding system that may perform the techniques of this disclosure.

[0017] Figure 2A and Figure 2B is a conceptual diagram illustrating an example quadtree binary tree (QTBT) structure and a corresponding coding tree unit (CTU).

[0018] Figure 3 is a block diagram illustrating an example video encoder that may perform the techniques of this disclosure.

[0019] Figure 4 is a block diagram illustrating an example video decoder that may perform the techniques of this disclosure.

[0020] Figure 5 is a flow chart illustrating a video encoding process.

[0021] Figure 6 is a flow chart showing the video decoding process.

[0022] Figure 7 is a flow chart illustrating an example video encoding process including coefficient-domain block differential pulse coded modulation (BDPCM), in accordance with one or more techniques of this disclosure.

[0023] Figure 8 is a flow chart illustrating an example video decoding process including coefficient-domain BDPCM, in accordance with one or more techniques of this disclosure. DETAILED DESCRIPTION

[0024] In the case of encoding a current block of video data using intra prediction, it may be advantageous to skip applying a transform that converts residual data for the current block from the sample domain to the frequency domain. Therefore, the video encoder may directly quantize the residual data for the block. The video encoder may then include an encoded syntax element in the bitstream that represents the quantized residual data.

[0025] Block-based incremental pulse coding modulation (BDPCM) can improve the coding efficiency of the residual data of the current block. The video encoder can apply BDPCM in vertical mode or horizontal mode. When the video encoder applies BDPCM in vertical mode, the video encoder generates a prediction residual sample for the first row of the current block by subtracting the original sample value in the first row of the current block from the corresponding reconstructed sample in the bottom row of the adjacent block above the current block. Then, the video encoder can quantize and inverse quantize the prediction residual sample for the first row of the current block. Then, the video encoder reconstructs the first row of the current block based on the inverse quantized residual value for the first row of the current block and the reconstructed sample in the bottom row of the adjacent block above the current block. The video encoder can generate the prediction residual sample of each subsequent row of the current block by subtracting the original sample value of the row from the reconstructed sample of the row above the current block. Then, the video encoder can perform the quantization, inverse quantization and reconstruction process as before. The video encoder repeats this process for each row of the current block. For each row of the current block, the video encoder includes in the bitstream an encoded syntax element representing the quantized residual value for that row.In vertical mode, the video encoder performs a similar process, proceeding from left to right along the columns of the current block.

[0026] The video decoder receives an encoded syntax element representing the quantized residual value of the current block. When the current block is encoded using BDPCM and the vertical mode is used, the video decoder inversely quantizes the quantized residual value of the top row of the current block. Then, the video decoder reconstructs the value of the top row of the current block by adding the inversely quantized residual value of the top row of the current block to the corresponding reconstructed samples of the bottom row of one or more blocks above the neighbors of the current block. For each corresponding subsequent row of the current block, the video decoder inversely quantizes the quantized residual value for the corresponding row of the current block, and then adds the inversely quantized residual value for the row to the reconstructed samples of the row above the corresponding row of the current block, thereby reconstructing the samples of the corresponding row of the current block. When the current block is encoded using BDPCM and the horizontal mode is used, the video decoder performs a similar process, which proceeds from left to right along the columns of the current block.

[0027] There may be one or more problems with the above-described BDPCM process. For example, in the above-described BDPCM process (i.e., a pixel domain BDPCM process), the video encoder subtracts samples in the current row or column from reconstructed samples in adjacent rows or columns, and the video decoder adds samples in the current row or column from reconstructed samples in adjacent rows or columns. It should be understood in the present disclosure that since the video encoder and video decoder may need to wait for inverse quantization and reconstruction before being able to determine a predictor for the current row or column of the current block, the use of reconstructed samples may slow down and complicate the encoding and decoding process. Therefore, according to the technology of the present disclosure, the video encoder and video decoder may use quantized residual values ​​instead of reconstructed samples to determine prediction residual values.

[0028] For example, in one example of the technology according to the present disclosure, a video encoder may generate a block of prediction values ​​by performing intra-frame prediction for a block of video data using samples (e.g., unfiltered samples) from an upper or left block boundary sample. In this example, the video encoder may generate a residual value based on the original sample value of the block and the prediction value. In addition, the video encoder may quantize the residual value. After quantizing the residual value, the video encoder may determine a residual quantized sample based on the quantized residual value. The video encoder may signal the residual quantized sample.

[0029] In another example of the technology according to the present disclosure, a video decoder may determine residual quantized samples of a block of video data based on syntax elements in a bitstream comprising an encoded representation of the video data. In addition, the video decoder may determine a quantized residual value based on the residual quantized samples. After determining the quantized residual value, the video decoder may inverse quantize the quantized residual value. The video decoder may also generate a prediction value by performing intra-frame prediction for the block using unfiltered samples from an upper or left block boundary sample. The video decoder may reconstruct the original sample value of the block based on the inverse quantized quantized residual value and the prediction value.

[0030] Figure 1 1 is a block diagram illustrating an example video encoding and decoding system 100 that can perform the techniques of the present disclosure. In general, the techniques of the present disclosure relate to decoding (encoding and / or decoding) video data. Generally, video data includes any data used to process video. Thus, video data can include original unencoded video, encoded video, decoded (e.g., reconstructed) video, and video metadata (e.g., signaling data).

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

[0032] exist Figure 1 In the example of , source device 102 includes video source 104, memory 106, video encoder 200 and output interface 108. Destination device 116 includes input interface 122, video decoder 300, memory 120 and display device 118. According to the present disclosure, the video encoder 200 of source device 102 and the video decoder 300 of destination device 116 can be configured to apply the technology for coefficient level prediction. Therefore, 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, source device and destination device may include other components or arrangements. For example, source device 102 may receive video data from an external video source such as an external camera. Similarly, destination device 116 may be docked with an external display device instead of including an integrated display device.

[0033] like Figure 1 The system 100 shown is only one example. In general, any digital video encoding and / or decoding device can perform techniques for coefficient-level prediction. The source device 102 and the destination device 116 are only examples of such decoding devices, wherein the source device 102 generates decoded video data for transmission to the destination device 116. The present disclosure refers to a "decoding" device as a device that performs decoding (e.g., encoding and / or decoding) of data. Therefore, the video encoder 200 and the video decoder 300 represent examples of decoding devices (specifically, video encoders and video decoders), respectively. In some examples, the source device 102 and the destination device 116 can operate in a substantially symmetrical manner, so that each of the source device 102 and the destination device 116 includes video encoding and decoding components. Therefore, the system 100 can support one-way or two-way video transmission between the source device 102 and the destination device 116, for example, for video streaming, video playback, video broadcasting, or video telephony.

[0034] Typically, the video source 104 represents the source of video data (i.e., the original, undecoded video data), and provides a series of pictures (also referred to as "frames") of the order 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 camera, a video archive unit containing previously captured original video, and / or a video feed interface for receiving video from a video content provider. As another alternative, the video source 104 may generate computer graphics-based data as the source video, or a combination of real-time video, archived video, and computer-generated video. In each case, the video encoder 200 may encode captured, pre-captured, or computer-generated video data. The video encoder 200 may rearrange the pictures from the received order (sometimes referred to as "display order") to a decoding order for decoding. The video encoder 200 may generate a bitstream comprising encoded video data. Source device 102 may then output the encoded video data onto computer-readable medium 110 via output interface 108 to be received and / or retrieved by, for example, input interface 122 of destination device 116 .

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

[0036] The computer-readable medium 110 may represent any type of medium or device capable of delivering the 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 that enables the source device 102 to directly send the encoded video data to the destination device 116 in real time, for example, via a radio frequency network or a computer-based network. The output interface 108 may modulate the transmission signal including the encoded video data according to a communication standard such as a wireless communication protocol, and the input interface 122 may demodulate the received transmission signal according to a communication standard such as a wireless communication protocol. The communication medium may include any wireless or wired communication medium, for example, a radio frequency (RF) spectrum or one or more physical transmission lines. The communication medium may form a portion 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 a router, a switch, a base station, or any other device that may be useful for facilitating communication from the source device 102 to the destination device 116.

[0037] In some examples, computer-readable medium 110 may include storage device 112. Source device 102 may output the encoded data from output interface 108 to storage device 112. Similarly, destination device 116 may access the encoded data from storage device 112 via input interface 122. Storage device 112 may include any of a variety of distributed or locally accessed data storage media, such as a hard drive, Blu-ray disc, DVD, CD-ROM, flash memory, volatile or non-volatile memory, or any other suitable digital storage medium for storing encoded video data.

[0038] In some examples, the computer-readable medium 110 may include a file server 114 or another intermediate storage device that can store the encoded video data generated by the source device 102. The source device 102 may output the encoded video data to the file server 114 or another intermediate storage device that can store the encoded video generated by the source device 102. The destination device 116 may access the stored video data from the file server 114 via streaming or downloading. The file server 114 may be any type of server device capable of storing the encoded video data and sending the encoded video data to the destination device 116. The file server 114 may represent a web server (e.g., for a website), a file transfer protocol (FTP) server, a content delivery network device, or a network attached storage (NAS) device. The destination device 116 may access the encoded video data from the file server 114 via 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 the two that is suitable for accessing the encoded video data stored on the file server 114. The file server 114 and the input interface 122 may be configured to operate according to: a streaming transfer protocol, a download transfer protocol, or a combination thereof.

[0039] Output interface 108 and input interface 122 may represent wireless transmitters / receivers, modems, wired networking components (e.g., Ethernet cards), wireless communication components that operate according to any of the various IEEE 802.11 standards, or other physical components. In examples where output interface 108 and input interface 122 include wireless components, output interface 108 and input interface 122 may be configured to transmit data (such as encoded video data) according to a cellular communication standard (such as 4G, 4G-LTE (Long Term Evolution), Advanced LTE, 5G, etc.). In some examples where output interface 108 includes a wireless transmitter, output interface 108 and input interface 122 may be configured to transmit data (such as encoded video data) according to other wireless standards (such as IEEE 802.11 specifications, IEEE 802.15 specifications (e.g., ZigBee TM ), Bluetooth TM Standards, etc.) to transmit data (such as encoded video data). In some examples, source device 102 and / or destination device 116 may include corresponding system-on-chip (SoC) devices. For example, source device 102 may include a SoC device for performing the functions assigned to video encoder 200 and / or output interface 108, and destination device 116 may include a SoC device for performing the functions assigned to video decoder 300 and / or input interface 122.

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

[0041] The input interface 122 of the destination device 116 receives the encoded video bitstream from the computer-readable medium 110 (e.g., a communication device, a storage device 112, a file server 114, etc.). The encoded video bitstream may include signaling information such as the following syntax elements defined by the video encoder 200 (which are also used by the video decoder 300): the syntax elements have values ​​that describe the characteristics and / or processing of video blocks or other decoding units (e.g., slices, pictures, groups of pictures, sequences, etc.). The display device 118 displays the decoded pictures of the decoded video data to the user. The display device 118 can represent any of a variety of display devices, such as a cathode ray tube (CRT), a liquid crystal display (LCD), a plasma display, an organic light emitting diode (OLED) display, or another type of display device.

[0042] Despite Figure 1 200 and 300 may each be integrated with an audio encoder and / or an audio decoder and may include appropriate MUX-DEMUX units or other hardware and / or software to handle multiplexed streams including both audio and video in a common data stream. If applicable, the MUX-DEMUX units may follow the ITU H.223 multiplexer protocol or other protocols such as the User Datagram Protocol (UDP).

[0043] The video encoder 200 and the video decoder 300 can each be implemented as any of a variety of suitable encoder and / or decoder circuits, such as one or more microprocessors, digital signal processors (DSPs), application specific integrated circuits (ASICs), field programmable gate arrays (FPGAs), discrete logic, software, hardware, firmware, or any combination thereof. When the technology is partially implemented in software, the device can store instructions for the software in a suitable non-transitory computer-readable medium, and use one or more processors to execute the instructions in hardware to perform the technology of the present disclosure. Each of the video encoder 200 and the video decoder 300 can be included in one or more encoders or decoders, and any of the encoders or decoders can be integrated as part of a combined encoder / decoder (CODEC) in the corresponding device. The device including the video encoder 200 and / or the video decoder 300 can include an integrated circuit, a microprocessor, and / or a wireless communication device (such as a cellular phone).

[0044] The video encoder 200 and the video decoder 300 may operate according to a video coding standard, such as the ITU-T H.265 (also known as the High Efficiency Video Coding (HEVC) standard) or an extension thereof, such as the multi-view and / or scalable video coding extension. Alternatively, the video encoder 200 and the video decoder 300 may operate according to other proprietary or industry standards, such as the Joint Exploration Test Model (JEM) or the ITU-T H.266 standard, also known as Versatile Video Coding (VVC). The latest draft of the VVC standard is described in the following document: Bross et al., “Versatile Video Coding (Draft 4)”, Joint Video Experts Group (JVET) of ITU-T SG 16WP 3 and ISO / IEC JTC 1 / SC 29 / WG 11, 13th Meeting: Marrakech, Morocco, January 9-18, 2019, JVET-M1001-v5 (hereinafter referred to as “VVC Draft 4”). However, the techniques of this disclosure are not limited to any particular coding standard.

[0045] Typically, the video encoder 200 and the video decoder 300 can perform block-based decoding of the picture. The term "block" generally refers to a structure that includes data to be processed (e.g., to be encoded, decoded, or otherwise used in the encoding and / or decoding process). For example, a block may include a two-dimensional matrix of samples of luminance and / or chrominance data. Typically, the video encoder 200 and the video decoder 300 can decode video data represented in a YUV (e.g., Y, Cb, Cr) format. That is, instead of decoding red, green, and blue (RGB) data for samples of a picture, the video encoder 200 and the video decoder 300 can decode luminance and chrominance components, wherein the chrominance components may include both red hue and blue hue chrominance components. In some examples, the video encoder 200 converts the received RGB formatted data to a YUV representation before encoding, and the video decoder 300 converts the YUV representation to an RGB format. Alternatively, a pre-processing unit and a post-processing unit (not shown) can perform these conversions.

[0046] In general, the present disclosure may relate to the decoding (e.g., encoding and decoding) of a picture to include the process of encoding or decoding data for the picture. Similarly, the present disclosure may relate to the decoding of a block of a picture to include the process of encoding or decoding data for the block (e.g., prediction and / or residual decoding). The encoded video bitstream typically includes a series of values ​​for syntax elements that represent decoding decisions (e.g., decoding modes) and partitioning of the picture into blocks. Therefore, references to decoding a picture or block should generally be understood as decoding the values ​​of the syntax elements used to form the picture or block.

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

[0048] As another example, the video encoder 200 and the video decoder 300 may be configured to operate according to JEM or VVC. According to JEM or VVC, a video decoder (such as the video encoder 200) partitions a picture into a plurality of coding tree units (CTUs). The video encoder 200 may partition the CTUs according to a tree structure (such as a quadtree-binary tree (QTBT) structure or a multi-type tree (MTT) structure). The QTBT structure removes the concept of multiple partition types, such as the distinction between CU, PU, ​​and TU of HEVC. The QTBT structure includes two levels: a first level partitioned according to quadtree partitioning, and a second level partitioned according to binary tree partitioning. The root node of the QTBT structure corresponds to the CTU. The leaf nodes of the binary tree correspond to the coding units (CUs).

[0049] In the MTT segmentation structure, blocks can be segmented using quadtree (QT) segmentation, binary tree (BT) segmentation, and one or more types of ternary tree (TT) segmentation. A ternary tree segmentation is a segmentation in which a block is split into three sub-blocks. In some examples, the ternary tree segmentation divides the block into three sub-blocks without dividing the original block through the center. The segmentation types in MTT (e.g., QT, BT, and TT) can be symmetric or asymmetric.

[0050] 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 luma component and the chroma components, while in other examples, the video encoder 200 and the video decoder 300 may use two or more QTBT or MTT structures, such as one QTBT / MTT structure for the luma component and another QTBT / MTT structure for the two chroma components (or two QTBT / MTT structures for the respective chroma components).

[0051] The video encoder 200 and the video decoder 300 may be configured to use quadtree segmentation, QTBT segmentation, MTT segmentation, or other segmentation structures per HEVC. For purposes of explanation, a description of the techniques of the present disclosure is given with respect to QTBT segmentation. However, it should be understood that the techniques of the present disclosure may also be applied to video decoders configured to use quadtree segmentation or also use other types of segmentation.

[0052] This disclosure may use "NxN" and "N by N" interchangeably to refer to the sample size of a block (such as a CU or other video block) in terms of vertical and horizontal dimensions, for example, 16x16 samples or 16 by 16 samples. Typically, a 16x16 CU will have 16 samples in the vertical direction (y=16) and 16 samples in the horizontal direction (x=16). Similarly, an NxNCU typically has N samples in the vertical direction and N samples in the horizontal direction, where N represents a non-negative integer value. The samples in a CU may be arranged in rows and columns. In addition, a CU does not necessarily need to have the same number of samples in the horizontal direction as in the vertical direction. For example, a CU may include NxM samples, where M is not necessarily equal to N.

[0053] The video encoder 200 encodes video data representing prediction and / or residual information and other information for a CU. The prediction information indicates how the CU will be predicted in order to form a prediction block for the CU. The residual information typically represents the sample-by-sample difference between the samples of the CU before encoding and the prediction block.

[0054] In order to predict a CU, the video encoder 200 can generally form a prediction block for the CU by inter-frame prediction or intra-frame prediction. Inter-frame prediction generally refers to predicting a CU based on data of a previously decoded picture, while intra-frame prediction generally refers to predicting a CU based on previously decoded data of the same picture. In order to perform inter-frame prediction, the video encoder 200 can use one or more motion vectors to generate a prediction block. The video encoder 200 can generally perform motion search to identify a reference block that closely matches the CU, for example, in terms of the difference between the CU and the reference block. The video encoder 200 can use the sum of absolute differences (SAD), the sum of squared differences (SSD), the mean absolute difference (MAD), the mean square difference (MSD), or other such difference calculations to calculate a difference metric to determine whether the reference block closely matches the current CU. In some examples, the video encoder 200 can use unidirectional prediction or bidirectional prediction to predict the current CU.

[0055] Some examples of JEM and VVC also provide an affine motion compensation mode, which can be considered an inter-frame prediction mode. In the affine motion compensation mode, the video encoder 200 can determine two or more motion vectors representing non-translational motion (such as zooming in or out, rotation, perspective motion, or other irregular motion types).

[0056] In order to perform intra prediction, the video encoder 200 can select an intra prediction mode to generate a prediction block. Some examples of JEM and VVC provide sixty-seven intra prediction modes, including various directional modes, as well as plane modes and DC modes. Typically, the video encoder 200 selects an intra prediction mode, which describes the neighboring samples of the current block according to which the samples of the current block (e.g., the block of the CU) are predicted. Therefore, such neighboring samples can be referred to as predictors. Assuming that the video encoder 200 decodes the CTU and CU in raster scan order (from left to right, from top to bottom), such samples can typically be above, above left, or to the left of the current block in the same picture as the current block.

[0057] Directional intra prediction modes correspond to different directions, including vertical and horizontal directions. To generate a prediction block for a block using a vertical intra prediction mode, a video decoder (e.g., video encoder 200 or video decoder 300) may determine, for each sample of the block, a prediction value for the sample as a sample in a predictor directly above the sample. To generate a prediction block for a block using horizontal intra prediction, a video decoder (e.g., video encoder 200 or video decoder 300) may determine, for each sample of the block, a prediction value for the sample as a sample in a predictor directly to the left of the sample.

[0058] In some examples, the video decoder may apply one or more filters to the predictor before using the predictor for intra-frame prediction of the block. For example, the video decoder may apply a smoothing filter to the predictor. In some cases, applying such a filter may improve decoding efficiency. However, in other cases, it may be advantageous not to apply such a filter. Therefore, in the case where a filter is not applied to the predictor used in the intra-frame prediction of the block, the samples of the predictor may be referred to as unfiltered samples in the present disclosure.

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

[0060] After a prediction, such as intra prediction or inter prediction of a block, the video encoder 200 may calculate residual data for the block. The residual data, such as a residual block, represents the sample-by-sample difference between the block and a prediction block for the block, which is 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 in a 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. In addition, 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., after the first transform.

[0061] The video encoder 200 generates transform coefficients after applying one or more transforms. In some examples, the video encoder 200 can skip the application of the transform. In such a case, the residual data can be processed in a manner similar to the transform coefficients generated by applying the transform. For ease of explanation, the steps occurring at the video encoder 200 after the moment of applying the transform can be referred to as the transform domain, regardless of whether the video encoder 200 actually applies the transform. For example, when the video encoder 200 applies BDPCM, the video encoder 200 does not apply the transform. Similarly, the steps occurring at the video decoder 300 before the moment of applying the inverse operation of the transform can be referred to as the transform domain, regardless of whether the transform is actually applied. For example, when the video decoder 300 applies BDPCM, the video decoder 300 does not apply the inverse transform.

[0062] As described above, after any transform 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 potentially reduce the amount of data used to represent the transform coefficients, thereby providing further compression. By performing the quantization process, the video encoder 200 may reduce the bit depth associated with some or all transform coefficients. For example, the video encoder 200 may round down 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.

[0063] After quantization, the video encoder 200 may scan the transform coefficients to generate a one-dimensional vector from a two-dimensional matrix including the quantized transform coefficients. The scan may be designed to place the transform coefficients of higher energy (and therefore lower frequency) in front of the vector and the transform coefficients of lower energy (and therefore higher frequency) in the back of the vector. In some examples, the video encoder 200 may scan the quantized transform coefficients using a predefined scan order to generate a serialized vector, and then entropy encode the quantized transform coefficients of the vector. In other examples, the video encoder 200 may perform adaptive scanning. After scanning the quantized transform coefficients to form a one-dimensional vector, the video encoder 200 may entropy encode the one-dimensional vector, for example, according to context adaptive binary arithmetic coding (CABAC). The video encoder 200 may also entropy encode the values ​​of the syntax elements used to describe the metadata associated with the encoded video data for use by the video decoder 300 when decoding the video data.

[0064] To perform CABAC, the video encoder 200 may assign context within a context model to a symbol to be transmitted. The context may relate to, for example, whether neighboring values ​​of the symbol are zero values. The probability determination may be based on the context assigned to the symbol.

[0065] The video encoder 200 may also generate syntax data (such as block-based syntax data, picture-based syntax data, and sequence-based syntax data) for the video decoder 300, for example, in a picture header, a block header, a slice header, or other syntax data (such as a sequence parameter set (SPS), a picture parameter set (PPS), or a video parameter set (VPS). Likewise, the video decoder 300 may decode such syntax data to determine how to decode the corresponding video data.

[0066] In this way, the video encoder 200 can generate a bitstream that includes encoded video data, such as syntax elements describing the partitioning of a picture into blocks (e.g., CUs) and prediction and / or residual information for these blocks. Finally, the video decoder 300 can receive the bitstream and decode the encoded video data.

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

[0068] The residual information may be represented by, for example, quantized transform coefficients. The video decoder 300 may inverse quantize and inverse transform the quantized transform coefficients of the block to reproduce a residual block for the block. The video decoder 300 uses the signaled prediction mode (intra-frame prediction or inter-frame prediction) and related prediction information (e.g., motion information for inter-frame prediction) to form a prediction block for the block. The video decoder 300 may then combine the prediction block and the residual block (on a sample-by-sample basis) to reproduce the original block. The video decoder 300 may perform additional processing, such as performing a deblocking process to reduce visual artifacts along the boundaries of the blocks.

[0069] The following document describes a block differential pulse coded modulation (DPCM) mode that utilizes horizontal or vertical prediction of intra samples in combination with DPCM coding and transform skip coding: Abdoli et al., "CE8: BDPCM with horizontal / vertical predictor and independently decodable areas (test8.3.1b)", Joint Video Experts Group (JVET) of ITU-T SG16WP 3 and ISO / IEC JTC 1 / SC 29 / WG 11, 13th Meeting, Marrakech, Morocco, January 2019, document number JVET-M0057 (hereinafter referred to as "JVET-M0057"). On the encoder side, for vertical prediction, the bottom row of pixels of the top neighboring block is used to perform vertical intra prediction of the first horizontal row of the block using unfiltered predictor samples. The prediction residual is quantized, inverse quantized and added to the predictor to form a predictor for predicting the next row. The video encoder 200 continues this operation until the end of the block. For horizontal prediction, a similar scheme is applied, except that the initial predictor comes from the last column of the left neighboring block, the first column of the block to be decoded is predicted, and the residual is quantized, inverse quantized and added to the predictor to form the predictor for the next column. Additional details are described in JVET-M0057. The direction (horizontal / vertical) of the BDPCM prediction can be signaled at the CU level.

[0070] Instead of predicting in the pixel domain using reconstructed samples from above or from the left as described in JVET-M0057, the present disclosure describes quantization level domain prediction in the same direction. This can be described as follows.

[0071] Consider a block of size M (rows) × N (columns). Let ri,j (0≤i≤M-1, 0≤j≤N-1) be the prediction residual after performing intra prediction horizontally (copying left neighbor pixel values ​​row by row across the prediction block) or vertically (copying the top neighbor row to each row in the prediction block) using unfiltered samples from the upper or left block boundary samples. Assume that the transform is skipped, and let Q(ri,j) (0≤i≤M-1, 0≤j≤N-1) represent the quantized version of the residual ri,j, where the residual is the difference between the original block and the predicted block values. The video encoder 200 can apply BDPCM to the quantized residual samples as follows: When vertical BDPCM is signaled, the video encoder 200 can obtain a matrix with elements according to equation (1) as follows: The modified M×N array

[0072]

[0073] For horizontal prediction, similar rules apply, and the video encoder 200 can obtain the residual quantized samples through equation (2) as follows:

[0074]

[0075] The video encoder 200 may quantize the residual samples Sent to the video decoder 300.

[0076] At the video decoder 300, the above calculation is reversed to produce Q(r i,j ), 0≤i≤M-1,0≤j≤N-1. For the vertical prediction case, it will be the following equation (3):

[0077]

[0078] For the horizontal case, it will be the following equation (4):

[0079]

[0080] The video decoder 300 may convert the inverse quantized quantized residual Q -1 (Q(r i,j )) is added to the original prediction value to produce the reconstructed sample value.

[0081] The techniques described in the previous section may require compensating the decoded transform coefficients using their predictors to derive the coefficient levels to be inverse quantized. This can be done after parsing the entire block. In other words, after the video decoder 300 parses the entire block, the video decoder 300 can compensate the decoded transform coefficients using its predictor. If it is required to perform the compensation operation during parsing (i.e., on the fly), and if in addition to the parsed In addition to the value, no separate buffer is used to store Q(r i,j) values, the dependency of context derivation on adjacent coefficient groups (CGs) (i.e., across CGs) can be disabled for coefficient decoding in transform skip mode for various syntax elements used to represent coefficient values. A CG is an MxN group of non-overlapping sets of transform coefficients within a coefficient block. If part of a context template depends on values ​​that span its own CG, these values ​​will be marked as unavailable and the context will be derived in this manner. A context template is a spatial neighborhood from which a video decoder collects information to determine a decoding context. For example, in an example where a video decoder uses the sum of the absolute values ​​of transform coefficients to determine a decoding context, a context template defines the location of such transform coefficients, e.g., a context template may define an upper neighbor sample and a left neighbor sample as samples to be used to determine the decoding context. This method allows the resolved coefficient values ​​to be overwritten with their compensated (predicted and plus resolved coefficient) values ​​to be inverse quantized in the decoder. Therefore, it may not be necessary for the video decoder 300 to use a separate buffer to store the compensated coefficient values. In some examples, the resolved transform coefficient may be overwritten by its compensated value, and the context for future transform coefficients will use the overwritten value.

[0082] In general, the present disclosure may involve "signaling" certain information (such as syntax elements). The term "signaling" may generally refer to the transmission 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 transmit the bitstream to destination device 116 in substantially real time or not in real time (such as may occur when storing syntax elements to storage device 112 for later retrieval by destination device 116).

[0083] Figure 2A and 2B1 is a conceptual diagram showing an example quadtree binary tree (QTBT) structure 130 and a corresponding coding tree unit (CTU) 132. Solid lines represent quadtree splitting, while dashed lines indicate binary tree splitting. In each split (i.e., non-leaf) node of the binary tree, a flag is signaled to indicate which split type (i.e., horizontal or vertical) is used, where, in this example, 0 indicates horizontal splitting and 1 indicates vertical splitting. For quadtree splitting, since the quadtree node splits the block horizontally and vertically into 4 sub-blocks of equal size, there is no need to indicate the split type. Therefore, the video encoder 200 can encode the following, and the video decoder 300 can decode the following: syntax elements (such as split information) for the regional tree level (i.e., the first level) of the QTBT structure 130 (i.e., solid lines), and syntax elements (such as split information) for the prediction tree level (i.e., the second level) of the QTBT structure 130 (i.e., dashed lines). The video encoder 200 may encode video data (such as prediction and transform data) for a CU represented by a terminal leaf node of the QTBT structure 130 , and the video decoder 300 may decode the video data.

[0084] generally, Figure 2B The CTU 132 may be associated with parameters defining the size of blocks corresponding to nodes at the first and second levels of the QTBT structure 130. These parameters may include a CTU size (indicating the size of the CTU 132 in samples), a minimum quadtree size (MinQTSize, which indicates the minimum allowed quadtree leaf node size), a maximum binary tree size (MaxBTSize, which indicates the maximum allowed binary tree root node size), a maximum binary tree depth (MaxBTDepth, which indicates the maximum allowed binary tree depth), and a minimum binary tree size (MinBTSize, which indicates the minimum allowed binary tree leaf node size).

[0085] The root node of the QTBT structure corresponding to the CTU may have four child nodes at the first level of the QTBT structure, each of which may be segmented according to a quadtree segmentation. That is, the node of the first level is a leaf node (without child nodes) or has four child nodes. The example of the QTBT structure 130 represents such a node as including a parent node and a child node with a solid line branch. If the node of the first level is not larger than the maximum allowed binary tree root node size (MaxBTSize), they may be further segmented by the corresponding binary tree. The binary tree splitting of a node may be iterated until the node generated from the split reaches the minimum allowed binary tree leaf node size (MinBTSize) or the maximum allowed binary tree depth (MaxBTDepth). The example of the QTBT structure 130 represents such a node as having a dotted line branch. The binary tree leaf node is called a coding unit (CU), which is used for prediction (e.g., intra-picture or inter-picture prediction) and transformation without any further segmentation. As discussed above, a CU may also be referred to as a "video block" or "block".

[0086] In one example of a QTBT partitioning structure, the CTU size is set to 128x128 (luminance sample and two corresponding 64x64 chrominance samples), MinQTSize is set to 16x16, MaxBTSize is set to 64x64, MinBTSize (for both width and height) is set to 4, and MaxBTDepth is set to 4. Quadtree partitioning is first applied to the CTU to generate a quadtree leaf node. The quadtree leaf node can have a size from 16x16 (i.e., MinQTSize) to 128x128 (i.e., CTU size). If the quadtree leaf node is 128x128, the quadtree leaf node will not be further split by the binary tree because the size exceeds MaxBTSize (i.e., 64x64 in this example). Otherwise, the quadtree leaf node will be further split by the binary tree. Therefore, the quadtree leaf node is also the root node for the binary tree and has a binary tree depth of 0. When the binary tree depth reaches MaxBTDepth (4 in this example), no further splitting is allowed. When a binary tree node has a width equal to MinBTSize (4 in this example), it means that no further vertical splitting is allowed. Similarly, a binary tree node with a height equal to MinBTSize means that no further horizontal splitting is allowed for the binary tree node. As described above, the leaf nodes of the binary tree are called CUs and are further processed according to prediction and transformation without further segmentation.

[0087] Figure 3 is a block diagram illustrating an example video encoder 200 that may perform the techniques of this disclosure. Figure 3The above description is provided for the purpose of explanation and should not be considered to limit the techniques generally exemplified and described in this disclosure. For the purpose of explanation, this disclosure describes the video encoder 200 in the context of video coding standards such as the HEVC video coding standard and the developing H.266 (VVC) video coding standard. However, the techniques of this disclosure are not limited to these video coding standards and are generally applicable to video encoding and decoding.

[0088] exist Figure 3 In the example of , the video encoder 200 includes a video data memory 230, a mode selection unit 202, a residual generation unit 204, a transform processing unit 206, a quantization unit 208, an inverse quantization unit 210, an inverse transform processing unit 212, a reconstruction unit 214, a filter unit 216, a decoded picture buffer (DPB) 218, and an entropy coding unit 220. Any one or all of the video data memory 230, the mode selection unit 202, the residual generation unit 204, the transform processing unit 206, the quantization unit 208, the inverse quantization unit 210, the inverse transform processing unit 212, the reconstruction unit 214, the filter unit 216, the DPB 218, and the entropy coding unit 220 may be implemented in one or more processors or in processing circuits. In addition, the video encoder 200 may include additional or alternative processors or processing circuits to perform these and other functions.

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

[0090] In the present disclosure, references to the video data memory 230 should not be interpreted as limited to memory internal to the video encoder 200 (unless specifically described as such), or to memory external to the video encoder 200 (unless specifically described as such). Rather, references to the video data memory 230 should be understood as a reference memory that stores video data received by the video encoder 200 for encoding (e.g., video data for a current block to be encoded). Figure 1 The memory 106 may also provide temporary storage for outputs from the various units of the video encoder 200 .

[0091] Explained Figure 3 The various units of the video encoder 200 are provided to help understand the operations performed by the video encoder 200. These units may be implemented as fixed-function circuits, programmable circuits, or a combination thereof. Fixed-function circuits refer to circuits that provide specific functions and are pre-set with respect to the operations that can be performed. Programmable circuits refer to circuits that can be programmed to perform various tasks and provide flexible functions with the operations that can 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 instructions of the software or firmware. Fixed-function circuits may execute software instructions (e.g., to receive parameters or output parameters), but the types of operations performed by fixed-function circuits are generally immutable. In some examples, one or more of these units may be different circuit blocks (fixed-function or programmable), and in some examples, one or more units may be integrated circuits.

[0092] The video encoder 200 may include an arithmetic logic unit (ALU), an elementary function unit (EFU), a digital circuit, an analog circuit, and / or a programmable core formed by a programmable circuit. In an example in which the operation of the video encoder 200 is performed using software executed by a programmable circuit, the memory 106 ( Figure 1 ) may store object code for software received and executed by the video encoder 200, or another memory (not shown) within the video encoder 200 may store such instructions.

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

[0094] 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 that perform video prediction according to other prediction modes. As an example, the mode selection unit 202 may include a palette unit, an intra block copy unit (which may be part of the motion estimation unit 222 and / or the motion compensation unit 224), an affine unit, a linear model (LM) unit, etc.

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

[0096] The video encoder 200 may partition the picture retrieved from the video data memory 230 into a series of CTUs, and encapsulate one or more CTUs in a slice. The mode selection unit 202 may partition the CTUs of the picture according to a tree structure (such as the QTBT structure or quadtree structure of HEVC described above). As described above, the video encoder 200 may form one or more CUs by partitioning the CTUs according to the tree structure. Such CUs may also be generally referred to as "video blocks" or "blocks".

[0097] Typically, 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 the current block (e.g., the current CU, or the overlapping portion of the PU and TU in HEVC). In order to inter-predict the current block, the motion estimation unit 222 may perform a motion search to identify one or more closely matching reference blocks in one or more reference pictures (e.g., one or more previously decoded pictures stored in the DPB 218). Specifically, the motion estimation unit 222 may calculate a value representing the degree of similarity of the potential reference block to the current block, for example, based on the sum of absolute differences (SAD), the sum of squared differences (SSD), the mean absolute difference (MAD), the mean squared difference (MSD), etc. The motion estimation unit 222 may typically perform these calculations using the sample-by-sample difference between the current block and the reference block under consideration. The motion estimation unit 222 may identify the reference block with the lowest value obtained from these calculations, which indicates the reference block that most closely matches the current block.

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

[0099] As another example, for intra prediction or intra prediction decoding, the intra prediction unit 226 can generate a prediction block based on samples adjacent to the current block. For example, for directional mode, the intra prediction unit 226 can generally mathematically combine the values ​​of adjacent samples and fill these calculated values ​​across the current block in a defined direction to produce a prediction block. As another example, for DC mode, the intra prediction unit 226 can calculate the average of adjacent samples of the current block and generate a prediction block to include the resulting average for each sample of the prediction block.

[0100] The mode selection unit 202 provides the prediction block to the residual generation unit 204. The residual generation unit 204 receives the original undecoded 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 the sample-by-sample difference between the current block and the prediction block. The resulting sample-by-sample difference defines a residual block for the current block. In some examples, the residual generation unit 204 may also determine the difference between the sample values ​​in the residual block to generate the residual block using residual differential pulse coding modulation (RDPCM). In some examples, the residual generation unit 204 may be formed using one or more subtractor circuits that perform binary subtraction.

[0101] In an example where the mode selection unit 202 partitions the 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 of various sizes. As noted above, the size of the CU may refer to the size of the luma coding block of the CU, and the size of the PU may refer to the size of the luma prediction unit of the PU. Assuming that the size of a particular CU is 2Nx2N, the video encoder 200 may support PU sizes of 2Nx2N or NxN for intra-frame prediction, and 2Nx2N, 2NxN, Nx2N, NxN or similar symmetrical PU sizes for inter-frame prediction. The video encoder 200 and the video decoder 300 may also support asymmetric partitioning for PU sizes of 2NxnU, 2NxnD, nLx2N, and nRx2N for inter-frame prediction.

[0102] In an example where the mode selection unit does not further split the CU into PUs, each CU may be associated with a luma coding block and a corresponding chroma coding block. As described above, the size of a CU may refer to the size of the luma coding block of the CU. The video encoder 200 and the video decoder 300 may support a CU size of 2Nx2N, 2NxN, or Nx2N.

[0103] For other video coding techniques (such as intra block copy mode coding, affine mode coding, and linear model (LM) mode coding, to name a few examples), the mode selection unit 202 generates a prediction block for the current block being encoded via a corresponding unit associated with the coding technique. In some examples (such as palette mode coding), the mode selection unit 202 may not generate a prediction block, but instead generate syntax elements indicating how to reconstruct the block based on the selected palette. In such a mode, the mode selection unit 202 may provide these syntax elements to the entropy coding unit 220 for encoding.

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

[0105] The 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"). The transform processing unit 206 can apply various transforms to the residual block to form a transform coefficient block. For example, the transform processing unit 206 can 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, the transform processing unit 206 can perform a variety of transforms on the residual block, for example, a primary transform and a secondary transform (such as a rotation transform). In some examples, the transform processing unit 206 does not apply a transform to the residual block. For example, in an example where the block is decoded using coefficient domain BDPCM, the transform processing unit 206 can skip applying a transform to the residual values ​​generated by the residual generation unit 204.

[0106] 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 coefficient block associated with the current block by adjusting the QP value associated with the CU. Quantization may cause a loss of information, and therefore, the quantized transform coefficients may have a lower precision than the original transform coefficients produced by the transform processing unit 206.

[0107] According to one or more techniques of the present disclosure, the quantization unit 208 may use coefficient domain BDPCM to determine residual quantized samples based on the quantized residual values. For example, the quantization unit 208 may use equation (1) or (2) above to determine the residual quantized samples. The quantization unit 208 may determine whether the intra-frame prediction unit 226 uses a vertical intra-frame prediction mode or a horizontal intra-frame prediction mode to generate a prediction block used by the residual generation unit 204 to generate residual values. If the intra-frame prediction unit 226 uses a vertical intra-frame prediction mode (i.e., the intra-frame prediction is a vertical prediction), the quantization unit 208 may use equation (1). If the intra-frame prediction unit 226 uses a horizontal intra-frame prediction mode (i.e., the intra-frame prediction is a horizontal prediction), the quantization unit 208 may use equation (2). For example, the quantization unit 208 may determine whether vertical prediction or horizontal prediction produces greater decoding efficiency.

[0108] The inverse quantization unit 210 and the inverse transform processing unit 212 may apply inverse quantization and inverse transform, respectively, to the quantized transform coefficient block to reconstruct the residual block from the transform coefficient block. According to one or more examples of the present disclosure, if the block is decoded using coefficient domain BDPCM, the inverse quantization unit 210 may determine the quantized residual value based on the residual quantization sample, for example, by applying equation (3) or equation (4). More specifically, if the block is decoded using a vertical intra prediction mode, the inverse quantization unit 210 may apply equation (3). If the block is decoded using a horizontal intra prediction mode, the inverse quantization unit 210 may apply equation (4). After determining the quantized residual value, the inverse quantization unit 210 may inverse quantize the quantized residual value.

[0109] After inverse quantization unit 210 forms the transform coefficient block, inverse transform processing unit 212 may apply one or more inverse transforms to the transform coefficient block to generate a residual block associated with the current block. For example, inverse transform processing unit 212 may apply an inverse DCT, an inverse integer transform, an inverse Karhunen-Loeve transform (KLT), an inverse rotational transform, an inverse directional transform, or another inverse transform to the coefficient block. In examples where the block is coded using coefficient domain BDPCM, inverse transform processing unit 212 may skip applying the inverse transform.

[0110] The reconstruction unit 214 may generate a reconstructed block corresponding to the current block (although potentially with some degree of distortion) based on the reconstructed residual block and the prediction block generated by the mode selection unit 202. For example, the reconstruction unit 214 may add samples of the reconstructed residual block to corresponding samples from the prediction block generated by the mode selection unit 202 to generate a reconstructed block.

[0111] 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 blocking artifacts along the edge of the CU. In some examples, the operations of filter unit 216 may be skipped.

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

[0113] In general, the entropy coding unit 220 may entropy encode syntax elements received from other functional components of the video encoder 200. For example, the entropy coding unit 220 may entropy encode a quantized transform coefficient block from the quantization unit 208. As another example, the entropy coding unit 220 may entropy encode a prediction syntax element (e.g., motion information for inter-frame prediction or intra-frame mode information for intra-frame prediction) from the mode selection unit 202. The entropy coding unit 220 may perform one or more entropy coding operations on syntax elements as another example of video data to generate entropy-encoded data. For example, the entropy coding 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 coding unit 220 may operate in a bypass mode in which the syntax elements are not entropy encoded.

[0114] The video encoder 200 may output a bitstream that includes the entropy-coded syntax elements required to reconstruct the blocks of a slice or picture. Figure 3 In an example of the present disclosure, the entropy coding unit 220 may output a bitstream. According to one or more examples of the present disclosure, the video encoder 200 may signal the residual quantized samples in the bitstream. For example, the entropy coding unit 220 may entropy encode the syntax elements representing the residual quantized samples and include the entropy encoded syntax elements in the bitstream.

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

[0116] In some examples, operations performed with respect to luma coding blocks need not be repeated for chroma coding blocks. As an example, operations for identifying motion vectors (MVs) and reference pictures for luma coding blocks need not be repeated to identify MVs and reference pictures for chroma blocks. Specifically, the MVs for luma coding blocks may be scaled to determine MVs for chroma blocks, and the reference pictures may be the same. As another example, the intra prediction process may be the same for luma coding blocks and chroma coding blocks.

[0117] The video encoder 200 represents an example of a device configured to encode video data, the device comprising: a memory configured to store the video data; and one or more processing units implemented in a circuit and configured to: generate a prediction value by performing intra-frame prediction for a block of the video data using unfiltered samples from an upper or left block boundary sample; generate a residual value based on the original sample value of the block and the prediction value; quantize the residual value; and determine a residual quantized sample based on the quantized residual value.

[0118] Figure 4 is a block diagram illustrating an example video decoder 300 that may perform the techniques of this disclosure. Figure 4 It is provided for the purpose of explanation and does not limit the techniques generally illustrated and described in this disclosure. For the purpose of explanation, this disclosure describes the video decoder 300 according to the techniques of JEM, VVC and HEVC. However, the techniques of this disclosure can be performed by a video decoding device configured for other video decoding standards.

[0119] exist Figure 4 In the example of , 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) 134. 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 134 may be implemented in one or more processors or in processing circuitry. Furthermore, the video decoder 300 may include additional or alternative processors or processing circuitry to perform these and other functions.

[0120] The prediction processing unit 304 includes a motion compensation unit 316 and an intra prediction unit 318. The prediction processing unit 304 may include an addition unit that performs predictions according to other prediction modes. As an example, the prediction processing unit 304 may include a palette unit, an intra block copy unit (which may form part of the motion compensation unit 316), an affine unit, a linear model (LM) unit, etc. In other examples, the video decoder 300 may include more, fewer, or different functional components.

[0121] CPB memory 320 may store video data, such as an encoded video bitstream, to be decoded by components of video decoder 300. For example, the video bitstream may be obtained from computer readable medium 110 ( Figure 1 ) obtains video data stored in CPB memory 320. CPB memory 320 may include a CPB that stores encoded video data (e.g., syntax elements) from an encoded video bitstream. In addition, CPB memory 320 may store video data other than syntax elements of decoded pictures, such as temporary data representing outputs from various units of video decoder 300. DPB 314 typically stores decoded pictures, and video decoder 300 may output decoded pictures and / or use decoded pictures as reference video data when decoding subsequent data or pictures of the encoded video bitstream. CPB memory 320 and DPB 314 may be formed by any of a variety of memory devices, such as dynamic random access memory (DRAM), including synchronous DRAM (SDRAM), magnetoresistive RAM (MRAM), resistive RAM (RRAM), or other types of memory devices. CPB memory 320 and DPB 314 may be provided by the same memory device or separate memory devices. In various examples, CPB memory 320 can be on-chip with other components of video decoder 300 , or off-chip relative to those components.

[0122] Additionally or alternatively, in some examples, video decoder 300 may retrieve the video from memory 120 ( Figure 1 ) to retrieve the decoded video data. That is, memory 120 may utilize CPB memory 320 to store data as discussed above. Likewise, when some or all of the functions of video decoder 300 are implemented in software to be executed by processing circuitry of video decoder 300, memory 120 may store instructions to be executed by video decoder 300.

[0123] Explained in Figure 4 The various units shown in FIG. 3 are used to help understand the operations performed by the video decoder 300. These units may be implemented as fixed function circuits, programmable circuits, or a combination thereof. Figure 3, fixed-function circuits refer to circuits that provide specific functions and are pre-set with respect to the operations that can be performed. Programmable circuits refer to circuits that can be programmed to perform various tasks and provide flexible functions with respect to the operations that can be performed. For example, a programmable circuit can execute software or firmware that causes the programmable circuit to operate in a manner defined by the instructions of the software or firmware. Fixed-function circuits can execute software instructions (e.g., to receive parameters or output parameters), but the types of operations performed by fixed-function circuits are generally immutable. In some examples, one or more of these units may be different circuit blocks (fixed-function or programmable), and in some examples, one or more units may be integrated circuits.

[0124] The video decoder 300 may include an ALU, an EFU, a digital circuit, an analog circuit, and / or a programmable core formed by a programmable circuit. In an example where the operation of the video decoder 300 is performed by software executed on the programmable circuit, an on-chip or off-chip memory may store instructions (e.g., object code) of the software received and executed by the video decoder 300.

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

[0126] Generally, the video decoder 300 reconstructs a picture block by block. The video decoder 300 may perform a reconstruction operation on each block individually (wherein a block currently being reconstructed (ie, decoded) may be referred to as a "current block").

[0127] The entropy decoding unit 302 may entropy decode syntax elements defining the quantized transform coefficients of the quantized transform coefficient block and 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 a degree of quantization and, likewise, determine a degree of inverse quantization for the inverse quantization unit 306 to apply. The inverse quantization unit 306 may, for example, perform 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.

[0128] According to one or more techniques of the present disclosure, the inverse quantization unit 306 may determine residual quantized samples of a block of video data based on syntax elements obtained from the bitstream by the entropy decoding unit 302. In addition, the inverse quantization unit 306 may determine a quantized residual value based on the residual quantized samples. For example, the inverse quantization unit 306 may apply equation (3) or (4) to determine the quantized residual value. More specifically, if the block is decoded using a vertical intra-frame prediction mode, the inverse quantization unit 306 may apply equation (3). If the block is decoded using a horizontal intra-frame prediction mode, the inverse quantization unit 306 may apply equation (4). After determining the quantized residual value, the inverse quantization unit 306 may inverse quantize the quantized residual value.

[0129] 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 directional transform, or another inverse transform to the transform coefficient block. In examples where the block is coded using coefficient domain BDPCM, the inverse transform processing unit 308 may skip applying the inverse transform.

[0130] In addition, prediction processing unit 304 generates a prediction block based on the prediction information syntax elements entropy decoded by entropy decoding unit 302. For example, if the prediction information syntax elements indicate that the current block is inter-predicted, motion compensation unit 316 can generate a prediction block. In this case, the prediction information syntax elements can indicate a reference picture in DPB 314 from which to retrieve the reference block, and a motion vector that identifies the position of the reference block in the reference picture relative to the position of the current block in the current picture. Motion compensation unit 316 can generally generate a prediction block in the same manner as described for motion compensation unit 224 ( Figure 3 )The inter-frame prediction process is performed in a manner substantially similar to that described in detail above.

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

[0132] The reconstruction unit 310 may reconstruct the current block using the prediction block and the residual block. For example, the reconstruction unit 310 may reconstruct the current block by adding samples of the residual block to corresponding samples of the prediction block.

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

[0134] The video decoder 300 may store the reconstructed block in the DPB 314. For example, in examples where the operation of the filter unit 312 is not performed, the reconstruction unit 310 may store the reconstructed block to the DPB 314. In examples where the operation of the filter unit 312 is performed, the filter unit 312 may store the filtered reconstructed block to the DPB 314. As discussed above, the DPB 314 may provide reference information (such as samples of the current picture for intra-frame prediction and previously decoded pictures for subsequent motion compensation) to the prediction processing unit 304. In addition, the video decoder 300 may output the decoded picture from the DPB for use in, for example, Figure 1 Subsequent presentation on a display device such as display device 118.

[0135] In this manner, the video decoder 300 represents an example of a video decoding device comprising: a memory configured to store video data; and one or more processing units implemented in circuits and configured to: determine residual quantized samples of a block of video data based on syntax elements in a bitstream comprising an encoded representation of the video data; determine quantized residual values ​​based on the residual quantized samples; inverse quantize the quantized residual values; generate prediction values ​​by performing intra-frame prediction for the block using unfiltered samples from upper or left block boundary samples; and reconstruct the original sample values ​​of the block based on the inverse quantized quantized residual and the prediction values.

[0136] exist Figure 4 In the example of , the entropy decoding unit 302 of the video decoder 300 may determine residual quantized samples of a block of video data based on syntax elements in a bitstream including an encoded representation of the video data. Figure 4 In the example of , the video decoder 300 can determine a quantized residual value based on the residual quantized sample; inverse quantize the quantized residual value; generate a prediction value by performing intra-frame prediction for the block using unfiltered samples from the upper or left block boundary samples; and reconstruct the original sample value of the block based on the inverse quantized quantized residual and the prediction value.

[0137] Figure 52 is a flowchart illustrating an example method for encoding a current block. The current block may include a current CU. Although with respect to the video encoder 200 ( Figure 1 and 2), but it should be understood that other devices may be configured to perform the same Figure 5 A similar approach to the one used in this paper.

[0138] In this example, the video encoder 200 initially predicts the current block (350). For example, the video encoder 200 may form a prediction block for the current block. The video encoder 200 may then calculate a residual block for the current block (352). To calculate the residual block, the video encoder 200 may calculate the difference between the original, uncoded block and the prediction block for the current block. The video encoder 200 may then transform the difference to produce transform coefficients and quantize the transform coefficients of the residual block (354). According to the techniques of the present disclosure, the video encoder 200 may skip applying the transform and may perform coefficient domain BDPCM using the quantized residual values. Next, the video encoder 200 may scan the quantized transform coefficients (or quantized residual values ​​when the video encoder 200 applies coefficient domain BDPCM) of the residual block (356). During or after the scan, the video encoder 200 may entropy encode the transform coefficients (or quantized residual values ​​when the video encoder 200 applies coefficient domain BDPCM) (358). For example, video encoder 200 may encode the transform coefficients (or quantized residual values ​​when video encoder 200 applies coefficient domain BDPCM) using CAVLC or CABAC. Video encoder 200 may then output entropy encoded data for the block (360). Thus, in examples where video encoder 200 applies coefficient domain BDPCM, video encoder 200 may signal residual quantized values.

[0139] Figure 6 is a flowchart illustrating an example method for decoding a current block of video data. The current block may include a current CU. Although with respect to the video decoder 300 ( Figure 1 and 3 ), but it should be understood that other devices may be configured to perform the same Figure 6 A similar approach to the one used in this paper.

[0140] The video decoder 300 may receive entropy coded data for a current block (e.g., entropy coded prediction information and entropy coded data for transform coefficients of a residual block corresponding to the current block) (370). The video decoder 300 may entropy decode the entropy coded data to determine the prediction information for the current block and reproduce the transform coefficients of the residual block (372). The video decoder 300 may predict the current block (374), for example, using an intra-frame or inter-frame prediction mode indicated by the prediction information for the current block to calculate the prediction block for the current block. The video decoder 300 may then inverse scan the reproduced transform coefficients (376) to create a block of quantized transform coefficients. The video decoder 300 may then inverse quantize the transform coefficients and apply an inverse transform thereto to produce a residual block (378). The video decoder 300 may perform the techniques of the present disclosure for coefficient domain BDPCM as part of the step of producing a residual block. Finally, the video decoder 300 may decode the current block by combining the prediction block and the residual block ( 380 ).

[0141] Figure 7 is a flow chart illustrating an example video encoding process including coefficient-domain block differential pulse coded modulation (BDPCM), in accordance with one or more techniques of this disclosure. Figure 7 Can be Figure 5 A more specific example of the operation of , where the video encoder 200 uses coefficient domain BDPCM. Figure 7 In the example of , the video encoder 200 can generate a block of prediction values ​​by performing intra-frame prediction for a block of video data using unfiltered samples from an upper or left block boundary sample (700). For example, the video encoder 200 can perform intra-frame prediction according to any of the examples provided elsewhere in this disclosure.

[0142] In addition, the video encoder 200 may generate residual values ​​based on the original sample values ​​and the prediction values ​​of the block (702). Each of the residual values ​​may indicate a difference between one of the original sample values ​​of the block and a corresponding prediction value.

[0143] In addition, Figure 7 In the example of , video encoder 200 can quantize the residual value (704). For example, video encoder 200 can quantize the residual value according to any of the examples for quantization described elsewhere in this disclosure.

[0144] After quantizing the residual value, the video encoder 200 may determine the residual quantized samples based on the quantized residual value (706). In an example where the intra prediction is vertical prediction, the video encoder 200 may determine the residual quantized samples as:

[0145]

[0146] in, is the residual quantized sample at position i, j, Q(r i,j ) and Q(r (i-1),j ) is the quantized residual value, M is the number of rows of the block, and N is the number of columns of the block. In an example where the intra prediction is horizontal prediction, the video encoder 200 may determine the residual quantized samples as:

[0147]

[0148] in, is the residual quantized sample at position i, j, Q(r i,j ) and Q(r (i-1),j ) is the quantized residual value, M is the number of rows of the block, and N is the number of columns of the block.

[0149] Video encoder 200 may signal the residual quantized samples (708).For example, video encoder 200 may include entropy encoded syntax elements in the bitstream that represent the residual quantized samples.

[0150] Figure 8 is a flow chart illustrating an example video decoding process including coefficient-domain BDPCM, in accordance with one or more techniques of this disclosure. Figure 8 Can be Figure 5 A more specific example of the operation of , where the video encoder 200 uses coefficient domain BDPCM. Figure 8 In the example of , video decoder 300 may determine residual quantized samples of a block of video data based on syntax elements in a bitstream that includes an encoded representation of the video data (800). For example, video decoder 300 may use entropy decoding to decode syntax elements in the bitstream that indicate residual quantized samples of the block.

[0151] In addition, Figure 8 In an example where the intra prediction is vertical prediction, the video decoder 300 may determine the quantized residual value based on the residual quantized sample (802). In an example where the intra prediction is vertical prediction, the video decoder 300 may determine the quantized residual value as:

[0152]

[0153] Among them, Q(r i,j ) is the quantized residual value at position i, j, is a residual quantized sample in the residual quantized samples, M is the number of rows of the block, and N is the number of columns of the block. In an example where the intra prediction is horizontal prediction, the video decoder 300 may determine the quantized residual value as:

[0154]

[0155] Among them, Q(r i,j ) is the quantized residual value at position i, j, is one of the residual quantized samples, M is the number of rows of the block, and N is the number of columns of the block.

[0156] After determining the quantized residual value, the video decoder 300 may inverse quantize the quantized residual value 804. For example, the video decoder 300 may inverse quantize the quantized residual value by reversing any of the examples of quantization provided elsewhere in this disclosure.

[0157] The video decoder 300 may generate a prediction value by performing intra prediction for the block using unfiltered samples from the upper or left block boundary samples (806). For example, the video decoder 300 may perform intra prediction according to any of the examples provided elsewhere in this disclosure.

[0158] The video decoder 300 may reconstruct the original sample values ​​of the block based on the inverse quantized quantized residual values ​​and the prediction values ​​(808). For example, the video decoder 300 may add the inverse quantized quantized residual values ​​to the corresponding prediction values ​​to reconstruct the original sample values.

[0159] The following paragraphs provide a non-limiting list of examples enumerated according to the techniques of the present disclosure.

[0160] Example 1. A method for decoding video data, the method comprising: determining residual quantized samples of a block of the video data based on syntax elements in a bitstream including an encoded representation of the video data; determining a quantized residual value based on the residual quantized samples; inverse quantizing the quantized residual value; generating a prediction value by performing intra-frame prediction for the block using unfiltered samples from an upper or left block boundary sample; and reconstructing the original sample value of the block based on the inverse quantized quantized residual and the prediction value.

[0161] Example 2. The method according to Example 1, wherein determining the quantized residual value comprises: determining the quantized residual value as follows based on that the intra prediction is a vertical prediction:

[0162]

[0163] Among them, Q(r i,j ) is the quantized residual value at position i, j, is one of the residual quantized samples, M is the number of rows of the block, and N is the number of columns of the block.

[0164] Example 3. The method according to Example 1, wherein determining the quantized residual value comprises: determining the quantized residual value as follows based on that the intra prediction is a horizontal prediction:

[0165]

[0166] Among them, Q(r i,j ) is the quantized residual value at position i, j, is one of the residual quantized samples, M is the number of rows of the block, and N is the number of columns of the block.

[0167] Example 4. A method for encoding video data, the method comprising: generating a prediction value by performing intra-frame prediction for a block of the video data using unfiltered samples from an upper or left block boundary sample; generating a residual value based on an original sample value of the block and the prediction value; quantizing the residual value; and determining a residual quantization sample based on the quantized residual value.

[0168] Example 5. The method according to Example 4, wherein determining the residual quantized sample comprises: determining the quantized residual as: based on the intra prediction being a vertical prediction:

[0169]

[0170] in, is the residual quantized sample at position i, j, Q(r i,j ) and Q(r (i-1),j ) is the quantized residual value, M is the number of rows of the block, and N is the number of columns of the block.

[0171] Example 6. The method of Example 4, wherein determining the quantized residual comprises: determining the quantized residual as: based on the intra prediction being a horizontal prediction:

[0172]

[0173] in, is the residual quantized sample at position i, j, Q(r i,j ) and Q(r (i-1),j ) is the quantized residual value, M is the number of rows of the block, and N is the number of columns of the block.

[0174] Example 7. An apparatus for decoding video data, the apparatus comprising one or more units for performing the method according to any one of Examples 1-6.

[0175] Example 8. An apparatus according to Example 7, wherein the one or more units include one or more processors implemented in a circuit.

[0176] Example 9. The device according to any one of Examples 7 and 8 further includes: a memory for storing the video data.

[0177] Example 10. The apparatus of any one of Examples 7-9, further comprising: a display configured to display the decoded video data.

[0178] Example 11. A device according to any of Examples 7-10, wherein the device includes one or more of a camera, a computer, a mobile device, a broadcast receiver device, or a set-top box.

[0179] Example 12. A device according to any of Examples 7-11, wherein the device includes a video decoder.

[0180] Example 13. A device according to any of Examples 7-12, wherein the device includes a video encoder.

[0181] Example 14. A computer-readable storage medium having instructions stored thereon, which instructions, when executed, cause one or more processors to perform a method according to any one of Examples 1-6.

[0182] Example 15. A device for encoding video data, the device comprising means for performing the method according to any one of Examples 1-6.

[0183] It is to be appreciated that, according to examples, certain actions or events of any of the techniques described herein may be performed in a different order, may be added, combined, or omitted entirely (e.g., not all described actions or events are necessary to implement the techniques). In addition, in some examples, actions or events may be performed concurrently rather than sequentially, such as through multithreading, interrupt handling, or multiple processors.

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

[0185] By way of example and not limitation, such computer-readable storage media may include RAM, ROM, EEPROM, CD-ROM or other optical disk storage, disk storage or other magnetic storage devices, flash memory, or any other medium that can be used to store desired program code in the form of instructions or data structures and can be accessed by a computer. In addition, any connection is appropriately referred to as a computer-readable medium. For example, if instructions are sent from a website, server or other remote source using a coaxial cable, fiber optic cable, twisted pair, digital subscriber line (DSL) or wireless technology (e.g., infrared, radio and microwave), coaxial cable, fiber optic cable, twisted pair, DSL or wireless technology (e.g., 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 temporary media, but are instead directed to non-temporary tangible storage media. As used herein, disks and optical disks include compact disks (CDs), laser optical disks, optical disks, digital versatile disks (DVDs), floppy disks and blue-ray disks, wherein disks usually copy data magnetically, while optical disks use lasers to optically copy data. Combinations of the above should also be included within the scope of computer-readable media.

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

[0187] The techniques of the present disclosure may be implemented in a wide variety of devices or apparatuses, including a wireless handset, an integrated circuit (IC), or a set of ICs (e.g., a chipset). Various components, modules, or units are described in the present disclosure to emphasize the functional aspects of a device configured to perform the disclosed techniques, but do not necessarily need to be implemented by different hardware units. Specifically, 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 as described above) in combination with appropriate software and / or firmware.

[0188] Various examples have been described. These and other examples are within the scope of the following claims.

Claims

1. A method for decoding video data, the method comprising: determining residual quantized samples of a block of the video data based on syntax elements in a bitstream comprising an encoded representation of the video data; determining a quantized residual value based on the residual quantized samples; After determining the quantized residual value, inverse quantizing the quantized residual value; generating a prediction value by performing intra prediction for the block using unfiltered samples from an upper or left block boundary sample; as well as Original sample values ​​of the block are reconstructed based on the inverse quantized quantized residual values ​​and the prediction values.

2. The method according to claim 1, wherein: Determining the quantized residual value includes: The quantized residual value is determined based on that the intra prediction is a vertical prediction as: Among them, Q(r i,j ) is the quantized residual value at position i, j, is one of the residual quantized samples, M is the number of rows of the block, and N is the number of columns of the block.

3. The method according to claim 1, wherein: Determining the quantized residual value includes: The quantized residual value is determined based on that the intra prediction is horizontal prediction as: Among them, Q(r i,j ) is the quantized residual value at position i, j, is one of the residual quantized samples, M is the number of rows of the block, and N is the number of columns of the block.

4. A method for encoding video data, the method comprising: generating a block of prediction values ​​by performing intra prediction for the block of video data using unfiltered samples from an above or left block boundary sample; generating a residual value based on the original sample value of the block and the predicted value; quantizing the residual value; After quantizing the residual value, determining a residual quantized sample based on the quantized residual value; as well as The residual quantized samples are signaled.

5. The method according to claim 4, wherein: Determining the residual quantization sample comprises: The residual quantized samples are determined based on that the intra prediction is vertical prediction as: in, is the residual quantized sample at position i, j, Q(r i,j ) and Q(r (i-1),j ) is the quantized residual value, M is the number of rows of the block, and N is the number of columns of the block.

6. The method according to claim 4, wherein: Determining the quantized residual value includes: The residual quantized samples are determined based on that the intra prediction is horizontal prediction as: in, is the residual quantized sample at position i, j, Q(r i,j ) and Q(r (i-1),j ) is the quantized residual value, M is the number of rows of the block, and N is the number of columns of the block.

7. A device for decoding video data, the device comprising: a memory configured to store the video data; as well as One or more processors implemented in circuitry, the one or more processors configured to: determining residual quantized samples of a block of the video data based on syntax elements in a bitstream comprising an encoded representation of the video data; determining a quantized residual value based on the residual quantized samples; After determining the quantized residual value, inverse quantizing the quantized residual value; generating a prediction value by performing intra prediction for the block using unfiltered samples from an above or left block boundary sample; as well as Original sample values ​​of the block are reconstructed based on the inverse quantized quantized residual values ​​and the prediction values.

8. The device according to claim 7, wherein: The one or more processors are configured such that, as part of determining the quantized residual value, the one or more processors perform the following operations: The quantized residual value is determined based on that the intra prediction is a vertical prediction as: Among them, Q(r i,j ) is the quantized residual value at position i, j, is one of the residual quantized samples, M is the number of rows of the block, and N is the number of columns of the block.

9. The device according to claim 7, wherein: The one or more processors are configured such that, as part of determining the quantized residual value, the one or more processors perform the following operations: The quantized residual value is determined based on that the intra prediction is horizontal prediction as: Among them, Q(r i,j ) is the quantized residual value at position i, j, is one of the residual quantized samples, M is the number of rows of the block, and N is the number of columns of the block.

10. The device according to claim 7, further comprising: A display configured to display the decoded video data.

11. The device according to claim 7, wherein: The device includes one or more of a camera, a computer, a mobile device, a broadcast receiver device, or a set-top box.

12. A device for encoding video data, the device comprising: a memory configured to store the video data; as well as One or more processors implemented in circuitry, the one or more processors configured to: generating a block of prediction values ​​by performing intra prediction for the block of video data using unfiltered samples from an above or left block boundary sample; generating a residual value based on the original sample value of the block and the predicted value; quantizing the residual value; After quantizing the residual value, determining a residual quantized sample based on the quantized residual value; as well as The residual quantized samples are signaled.

13. The device according to claim 12, wherein: The one or more processors are configured such that, as part of determining the residual quantized samples, the one or more processors perform the following operations: The residual quantized samples are determined based on that the intra prediction is vertical prediction as: in, is the residual quantized sample at position i, j, Q(r i,j ) and Q(r (i-1),j ) is the quantized residual value, M is the number of rows of the block, and N is the number of columns of the block.

14. The apparatus according to claim 12, wherein: The one or more processors are configured such that, as part of determining the quantized residual value, the one or more processors perform the following operations: The residual quantized samples are determined based on that the intra prediction is horizontal prediction as: in, is the residual quantized sample at position i, j, Q(r i,j ) and Q(r (i-1),j ) is the quantized residual value, M is the number of rows of the block, and N is the number of columns of the block.

15. The apparatus according to claim 12, wherein: The device includes one or more of a camera, a computer, a mobile device, a broadcast receiver device, or a set-top box.

16. A device for decoding video data, the device comprising: means for determining residual quantized samples of a block of the video data based on syntax elements in a bitstream comprising an encoded representation of the video data; means for determining a quantized residual value based on the residual quantized samples; means for inverse quantizing the quantized residual value after determining the quantized residual value; means for generating a prediction value by performing intra prediction for the block using unfiltered samples from an above or left block boundary sample; as well as Means for reconstructing original sample values ​​of the block based on the inverse quantized quantized residual values ​​and the prediction values.

17. The apparatus according to claim 16, wherein: The means for determining the quantized residual value comprises: means for determining, based on the intra prediction being a vertical prediction, the quantized residual value as: Among them, Q(r i,j ) is the quantized residual value at position i, j, is one of the residual quantized samples, M is the number of rows of the block, and N is the number of columns of the block.

18. The apparatus according to claim 16, wherein: The means for determining the quantized residual value comprises: means for determining, based on the intra prediction being horizontal prediction, the quantized residual value as: Among them, Q(r i,j ) is the quantized residual value at position i, j, is one of the residual quantized samples, M is the number of rows of the block, and N is the number of columns of the block.

19. A device for encoding video data, the device comprising: means for generating a block of prediction values ​​by performing intra prediction for the block of video data using unfiltered samples from an above or left block boundary sample; means for generating a residual value based on original sample values ​​of the block and the predicted value; a unit for quantizing the residual value; means for determining residual quantized samples based on the quantized residual values ​​after quantizing the residual values; as well as Means for signaling said residual quantized samples.

20. The apparatus of claim 19, wherein: The unit for determining the residual quantized sample comprises: means for determining, based on the intra prediction being a vertical prediction, the residual quantized samples as: in, is the residual quantized sample at position i, j, Q(r, j) and Q(r(i-1), j) are the quantized residual values, M is the number of rows of the block, and N is the number of columns of the block.

21. The apparatus of claim 19, wherein: The means for determining the quantized residual value comprises: means for determining, based on the intra prediction being horizontal prediction, the residual quantized samples as: in, is the residual quantized sample at position i, j, Q(r i,j ) and Q(r (i-1),j ) is the quantized residual value, M is the number of rows of the block, and N is the number of columns of the block.

22. A computer-readable storage medium having stored thereon instructions that, when executed, cause one or more processors to: determining residual quantized samples of a block of the video data based on syntax elements in a bitstream comprising an encoded representation of the video data; determining a quantized residual value based on the residual quantized samples; After determining the quantized residual value, inverse quantizing the quantized residual value; generating a prediction value by performing intra prediction for the block using unfiltered samples from an above or left block boundary sample; as well as Original sample values ​​of the block are reconstructed based on the inverse quantized quantized residual values ​​and the prediction values.

23. A computer-readable storage medium having stored thereon instructions that, when executed, cause one or more processors to: generating a block of prediction values ​​by performing intra prediction for the block of video data using unfiltered samples from an above or left block boundary sample; generating a residual value based on the original sample value of the block and the predicted value; quantizing the residual value; After quantizing the residual value, determining a residual quantized sample based on the quantized residual value; as well as The residual quantized samples are signaled.