Block vector difference binarization and coding in video coding

By employing syntax information such as whether the absolute value of the absolute value of the block vector difference is greater than one without signaling during video encoding and decoding, and by using different context models and exponential Golomb codewords to encode BVD, the problems of excessive information and high complexity in existing technologies are solved, thereby improving bandwidth utilization efficiency and encoding efficiency.

CN119013977APending Publication Date: 2024-11-22QUALCOMM INC
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202380030679.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Priority Date
2023-03-02
Filing Date
2023-03-21
Publication Date
2024-11-22

AI Technical Summary

Technical Problem

Existing video coding technologies suffer from excessive information and high complexity when decoding Block Vector Difference (BVD), especially when sending signals and parsing syntax information such as whether the absolute value of the BVD is greater than one, resulting in inefficient bandwidth utilization.

Method used

By employing binarization and inverse binarization techniques to encode and decode BVD values ​​without signaling or parsing syntax information such as whether the absolute value of the block vector difference (BVD) is greater than one, different context models are used to process the horizontal and vertical components respectively, and exponential Golomb codewords are used for encoding, thereby reducing signaling overhead.

Benefits of technology

It effectively reduces the amount of information that needs to be signaled, improves bandwidth utilization efficiency, reduces the complexity of encoding and decoding, and maintains the decoding quality of video data.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119013977A_ABST
    Figure CN119013977A_ABST
Patent Text Reader

Abstract

A method of encoding or decoding video data includes determining that a block vector difference (BVD) value is non-zero, where the BVD value indicates a difference between a block vector of a current block of the video data and a block vector predictor, and where the block vector points to a reference block based on samples located in the same picture as the current block; and encoding or decoding the value of the BVD value without signaling or parsing syntax information indicating whether the absolute value of the BVD value is greater than one.
Need to check novelty before this filing date? Find Prior Art

Description

[0001] This application claims priority to U.S. Patent Application No. 18 / 177,591, filed on March 2, 2023, and U.S. Provisional Application No. 63 / 362,782, filed on April 11, 2022, the entire contents of which are incorporated herein by reference. U.S. Patent Application No. 18 / 177,591, filed on March 2, 2023, claims the benefit of U.S. Provisional Application No. 63 / 362,782, filed on April 11, 2022. Technical Field

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

[0003] 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 gaming devices, video gaming 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), ITU-T H.266 / Versatile Video Coding (VVC), and extensions of such standards, as well as proprietary video codecs / formats such as AOMediaVideo 1 (AV1) developed by the Alliance for Open Media. By implementing such video decoding technology, a video device can send, receive, encode, decode and / or store digital video information more efficiently.

[0004] 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 divided into video blocks, which may also be referred to as coding tree units (CTUs), coding units (CUs), and / or coding nodes. Video blocks in slices of intra-frame decoding (I) of a picture are encoded using spatial predictions of reference samples in neighboring blocks in the same picture. Video blocks in slices of inter-frame decoding (P or B) of a picture may use spatial predictions of reference samples in neighboring blocks in the same picture or temporal predictions of 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

[0005] In general, the present disclosure describes techniques for decoding a block vector difference (BVD). The BVD may indicate the difference between a block vector (e.g., an actual block vector) and a block vector predictor for a current block. A block vector is a vector of a current block that identifies another block in the same picture as the current block. A video encoder may signal the BVD, and a video decoder may receive the BVD. The present disclosure describes example techniques for decoding the BVD that may reduce the amount of information that needs to be signaled and / or reduce the complexity of utilizing the BVD as a decoding tool.

[0006] In one or more examples, the video encoder may signal, and the video decoder may parse, syntax information indicating that the BVD value is non-zero. However, the video encoder may not signal, and the video decoder may not parse, additional syntax information indicating whether the BVD value is greater than one. Because the video encoder does not need to signal, and the video decoder does not need to parse, additional syntax information indicating whether the BVD value is greater than one, the amount of syntax information signaled may be reduced.

[0007] In one example, the present disclosure describes a method of encoding or decoding video data, the method comprising: determining that a block vector difference (BVD) value is non-zero, wherein the BVD value indicates a difference between a block vector and a block vector predictor of a current block of video data, and wherein the block vector points to a reference block based on samples located in the same picture as the current block; and encoding or decoding the value of the BVD value without signaling or parsing syntax information indicating whether an absolute value of the BVD value is greater than one.

[0008] In one example, the present disclosure describes a device for encoding or decoding video data, the device comprising: a memory configured to store video data; and a processing circuit configured to: determine that a block vector difference (BVD) value is non-zero, wherein the BVD value indicates a difference between a block vector and a block vector predictor of a current block of video data, and wherein the block vector points to a reference block based on samples located in the same picture as the current block; and encode or decode the value of the BVD value without signaling or parsing syntax information indicating whether an absolute value of the BVD value is greater than one.

[0009] In one example, the present disclosure describes a computer-readable storage medium storing instructions thereon that, when executed, cause one or more processors to: determine a block vector difference (BVD) value to be non-zero, wherein the BVD value indicates a difference between a block vector and a block vector predictor for a current block of video data, and wherein the block vector points to a reference block based on samples in the same picture as the current block; and encode or decode a value of the BVD value without signaling or parsing syntax information indicating whether an absolute value of the BVD value is greater than one.

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

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

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

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

[0014] Figure 4 is a flowchart illustrating an example method for encoding a current block according to the techniques of this disclosure.

[0015] Figure 5 is a flowchart illustrating an example method for decoding a current block according to techniques of this disclosure.

[0016] Figure 6 is a conceptual diagram illustrating an example of a coding unit (CU) having a matching block identified by a block vector for intra-block copy (IBC).

[0017] Figure 7 is a flowchart illustrating an example method of encoding or decoding video data according to the techniques of this disclosure.

[0018] Figure 8 is a flow chart illustrating an example method of encoding or decoding components of a block vector difference (BVD).

[0019] Fig. 9 is a flow chart illustrating an example method of encoding or decoding a BVD and a motion vector difference (MVD). DETAILED DESCRIPTION

[0020] Video coding includes an intra-block copy (IBC) video coding tool. In IBC, the video encoder determines a block vector for a current block. The block vector identifies another block in the same picture as the current block. The video encoder determines a prediction block from another block in the same picture, and determines a residual (e.g., difference) between the current block and the residual block. The video encoder may signal information indicating the residual.

[0021] In some examples, the video encoder may signal information indicating a block vector. However, to reduce the amount of information signaled, rather than signaling information indicating a block vector, the video encoder may determine a block vector predictor and a difference between the block vector and the block vector predictor. The difference between the block vector and the block vector predictor is referred to as a block vector difference (BVD). The video encoder may signal information indicating a BVD.

[0022] The video decoder may receive residual information (e.g., the difference between the current block and the predicted block) and information indicating the BVD. The video decoder may determine the BVD from the signaled information and determine the block vector predictor using the same technique used by the video encoder to determine the block vector predictor (including based on the information signaled by the video encoder). The video decoder may add the BVD to the block vector predictor to reconstruct the block vector of the current block. Based on the block vector, the video decoder may determine a predicted block. The video decoder may add the predicted block to the residual information to reconstruct the current block.

[0023] There may be various ways in which a video encoder may signal information indicating a BVD. As an example, a video encoder may perform a binarization technique to binarize the value of the BVD. For example, the BVD may include a horizontal component and a vertical component, and in one or more examples, the video encoder may perform a binarization technique to binarize the horizontal and vertical components. The result of the binarization may be a plurality of binary bits. In one or more examples, the video encoder may perform context-based encoding of the values ​​of the one or more binary bits representing the horizontal and vertical components.

[0024] The video decoder may perform a process inverse to that of the video encoder to determine the value of the BVD. For example, the video decoder may perform context-based decoding to determine the values ​​of the binary bits of the horizontal and vertical components of the BVD, thereby determining the binarized value of the BVD. The video decoder may perform inverse binarization to determine the value of the BVD.

[0025] Binarization and debinarization techniques and context-based encoding and decoding techniques can affect the amount of information signaled and the complexity of the encoding and decoding process. The present disclosure describes example binarization and debinarization techniques and context-based encoding and decoding techniques that can facilitate reducing signaling (e.g., by reducing the amount of information that needs to be sent and received) while balancing complexity to ensure timely decoding of video data.

[0026] For example, this disclosure describes example techniques that reduce the amount of information that needs to be signaled relative to other techniques. As described in more detail, instead of signaling the value of a BVD component, a video encoder may signal and a video decoder may parse a flag that indicates whether the absolute value of a BVD value (e.g., the absolute value of one or both of the x and y components of the BVD) is greater than a threshold.

[0027] In one or more examples, the video encoder may signal, and the video decoder may parse a first flag (also referred to as a gt0 flag) indicating whether the absolute value of the BVD value is greater than zero. If the greater than zero flag is true, the BVD value is non-zero. In one or more examples, for a non-zero BVD value, the video encoder may signal, and the video decoder may parse the value of the BVD value (e.g., the value of the BVD value may be equal to the absolute value of the BVD value minus one). In such examples, the video encoder may not signal, and the video decoder may not parse syntax information indicating whether the absolute value of the BVD value is greater than one.

[0028] Some techniques utilize a greater than one flag that indicates whether the BVD value is greater than one. Using the example techniques described in the present disclosure, such a greater than one flag may not be needed, which reduces signaling overhead. In addition, signaling a smaller value tends to require less bandwidth than a larger value. Therefore, the video encoder signals a value of the BVD value (where the value is equal to the absolute value of the BVD value minus one) resulting in the video encoder signaling a smaller value, which in turn results in less bandwidth usage.

[0029] In addition, in one or more examples, the present disclosure describes examples of decoding techniques that can provide bandwidth gain. For example, the value of the BVD value (e.g., the BVD value minus one) can be represented as a codeword (e.g., an exponential Golomb codeword). The video encoder and the video decoder can perform context-based encoding or decoding on the codeword. In some examples, the video encoder and the video decoder can perform context-based encoding or decoding on the first N bits (e.g., 5 bits) of the codeword, and bypass encoding or decoding on the remaining bits of the codeword.

[0030] For context-based decoding, the video encoder and the video decoder may utilize one or more contexts. In some examples, the video encoder and the video decoder may utilize a first set of one or more contexts to encode or decode the horizontal component value of the BVD, and utilize a second set of one or more contexts to encode or decode the vertical component value of the BVD, wherein the first context and the second context are different. As another example, the context used for BVD encoding or decoding may be different from the context used for motion vector difference (MVD) encoding or decoding. The MVD may be similar to the BVD, but indicates the difference between a motion vector and a motion vector predictor, wherein the motion vector points to samples in different pictures. As described in the present disclosure, by utilizing different contexts, the possibility of better compression of the horizontal and / or vertical components of the BVD may be increased compared to techniques that require the same context for the horizontal and vertical components of the BVD and / or the same context for the BVD and the MVD.

[0031] 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. The techniques of the present disclosure generally relate to decoding (encoding and / or decoding) video data. Generally speaking, video data includes any data used to process video. Therefore, video data can include unencoded raw video, encoded video, decoded (e.g., reconstructed) video, and video metadata, such as signaling data.

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

[0033] exist Figure 1In the example of, the source device 102 includes a video source 104, a memory 106, a video encoder 200, and an output interface 108. The target device 116 includes an input interface 122, a video decoder 300, a memory 120, and a display device 118. According to the present disclosure, the video encoder 200 of the source device 102 and the video decoder 300 of the target device 116 can be configured to apply the block vector difference (BVD) binarization and decoding technology used in video decoding. Therefore, the source device 102 represents an example of a video encoding device, and the target device 116 represents an example of a video decoding device. In other examples, the source device and the target device may include other components or arrangements. For example, the source device 102 may receive video data from an external video source such as an external camera. Similarly, the target device 116 may be connected to an external display device instead of including an integrated display device.

[0034] like Figure 1 The system 100 shown in is only an example. Generally speaking, any digital video encoding and / or decoding device can perform the technology for BVD binarization and decoding. The source device 102 and the target device 116 are only examples of such decoding devices, wherein the source device 102 generates decoded video data for sending to the target 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, respectively represent video encoders and video decoders. In some examples, the source device 102 and the target device 116 can operate in a substantially symmetrical manner, so that each of the source device 102 and the target device 116 includes a video encoding and decoding component. Therefore, the system 100 can support one-way or two-way video transmission between the source device 102 and the target device 116, for example, for video streaming, video playback, video broadcasting or video telephony.

[0035] Generally speaking, video source 104 represents the source of video data (i.e., uncoded raw video data), and provides a series of pictures (also referred to as "frames") of the order of video data to video encoder 200, which encodes the data for the pictures. Video source 104 of source device 102 may include a video capture device, such as a camera, a video archive containing previously captured raw video, and / or a video feed interface for receiving video from a video content provider. As another alternative, video source 104 may generate computer graphics-based data as source video, or a combination of real-time video, archived video, and computer-generated video. In each case, video encoder 200 encodes captured, pre-captured, or computer-generated video data. Video encoder 200 may rearrange pictures from the received order (sometimes referred to as "display order") into a decoding order for decoding. Video encoder 200 may generate a bitstream including 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 target device 116 .

[0036] The memory 106 of the source device 102 and the memory 120 of the target device 116 represent general purpose memory. 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. Additionally 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 separately 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 memory for functionally similar or equivalent purposes. In addition, the memories 106, 120 can store encoded video data, for example, 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.

[0037] The computer-readable medium 110 may represent any type of medium or device capable of transmitting coded video data from the source device 102 to the target device 116. In one example, the computer-readable medium 110 represents a communication medium that enables the source device 102 to directly transmit coded video data to the target device 116 in real time, for example, via a radio frequency network or a computer-based network. According to a communication standard such as a wireless communication protocol, the output interface 108 may modulate the transmission signal including the coded video data, and the input interface 122 may demodulate the received transmission signal. The communication medium may include any wireless or wired communication medium, such as a radio frequency (RF) spectrum or one or more physical transmission lines. The communication medium may form 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 equipment that may be useful for facilitating communication from the source device 102 to the target device 116.

[0038] In some examples, source device 102 may output the encoded data from output interface 108 to storage device 112. Similarly, target 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.

[0039] In some examples, source device 102 may output the encoded video data to file server 114 or another intermediate storage device that may store the encoded video data generated by source device 102. Target device 116 may access the stored video data from file server 114 via streaming or downloading.

[0040] The file server 114 may be any type of server device capable of storing encoded video data and sending the encoded video data to the target device 116. The file server 114 may represent a web server (e.g., for a website), a server configured to provide a file transfer protocol service (such as the File Transfer Protocol (FTP) or the File Delivery over Unidirectional Transport (FLUTE) protocol), a content delivery network (CDN) device, a hypertext transfer protocol (HTTP) server, a Multimedia Broadcast Multicast Service (MBMS) or an enhanced MBMS (eMBMS) server, and / or a network attached storage (NAS) device. The file server 114 may additionally or alternatively implement one or more HTTP streaming protocols, such as Dynamic Adaptive Streaming over HTTP (DASH), HTTP Live Streaming (HLS), Real Time Streaming Protocol (RTSP), HTTP Dynamic Streaming, etc.

[0041] The target device 116 may access the encoded video data from the file server 114 through any standard data connection, including an Internet connection. This may include a wireless channel (e.g., a Wi-Fi connection), a wired connection (e.g., a digital subscriber line (DSL), a cable modem, etc.), or a combination of both, suitable for accessing the encoded video data stored on the file server 114. The input interface 122 may be configured to operate according to any one or more of the various protocols discussed above for retrieving or receiving media data from the file server 114 or other such protocols for retrieving media data.

[0042] 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 5G, etc.). TM ),Bluetooth TMStandards, etc.) to transmit data (such as encoded video data). In some examples, source device 102 and / or target device 116 may include corresponding system-on-chip (SoC) devices. For example, source device 102 may include a SoC device for performing functionality belonging to video encoder 200 and / or output interface 108, and target device 116 may include a SoC device for performing functionality belonging to video decoder 300 and / or input interface 122.

[0043] The techniques disclosed herein can 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.

[0044] The input interface 122 of the target device 116 receives the encoded video bitstream from the computer-readable medium 110 (e.g., a communication medium, a storage device 112, a file server 114, etc.). The encoded video bitstream may include signaling information defined by the video encoder 200 and also used by the video decoder 300, such as syntax elements with values ​​describing 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 decoded pictures of the decoded video data to a user. The display device 118 may represent any of a variety of display devices, such as a liquid crystal display (LCD), a plasma display, an organic light emitting diode (OLED) display, or another type of display device.

[0045] Despite Figure 1 Not shown, but in some examples, the video encoder 200 and the video decoder 300 can both be integrated with an audio encoder and / or an audio decoder, and can 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.

[0046] The video encoder 200 and the video decoder 300 can 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 an appropriate 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, any of which can be integrated as part of a combined encoder / decoder (codec) in a 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).

[0047] The video encoder 200 and the video decoder 300 may operate according to a video coding standard such as ITU-T H.265 (also known as High Efficiency Video Coding (HEVC)) or an extension thereof such as a 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 ITU-T H.266, also known as Versatile Video Coding (VVC). In other examples, the video encoder 200 and the video decoder 300 may operate according to a proprietary video codec / format such as AOMedia Video 1 (AV1), an extension of AV1, and / or a subsequent version of AV1 (e.g., AV2). In other examples, the video encoder 200 and the video decoder 300 may operate according to other proprietary formats or industry standards. However, the techniques of the present disclosure are not limited to any particular coding standard or format.

[0048] In general, the video encoder 200 and the video decoder 300 can be configured to perform the techniques of the present disclosure in conjunction with any video coding technique that uses intra-block copying (IBC). In IBC, the video encoder 200 determines a block vector for a current block. The block vector identifies another block in the same picture as the current block. The video encoder 200 determines a prediction block from another block in the same picture, and determines a residual (e.g., a difference) between the current block and a residual block. The video encoder 200 can signal information indicating the residual.

[0049] In some examples, the video encoder 200 may signal information indicating a block vector. However, to reduce the amount of information signaled, instead of signaling information indicating a block vector, the video encoder 200 may determine a block vector predictor and a difference between the block vector and the block vector predictor. The difference between the block vector and the block vector predictor is referred to as a block vector difference (BVD). The video encoder 200 may signal information indicating a BVD.

[0050] The video decoder 300 may receive residual information (e.g., the difference between the current block and the predicted block) and information indicating the BVD. The video decoder 300 may determine the BVD from the signaled information and determine the block vector predictor using the same technique used by the video encoder 200 to determine the block vector predictor (including based on the information signaled by the video encoder 200). The video decoder 300 may add the BVD to the block vector predictor to reconstruct the block vector of the current block. Based on the block vector, the video decoder 300 may determine a predicted block. The video decoder 300 may add the predicted block to the residual information to reconstruct the current block.

[0051] Generally speaking, the video encoder 200 and the video decoder 300 may perform block-based decoding of a 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 an encoding and / or decoding process). For example, a block may include a two-dimensional matrix of samples of luminance and / or chrominance data. Generally speaking, the video encoder 200 and the video decoder 300 may 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 may decode luminance components and chrominance components, wherein the chrominance components may include both red hue chrominance components and blue hue chrominance components. In some examples, the video encoder 200 converts the received RGB format data to a YUV representation before encoding, and the video decoder 300 converts the YUV representation to an RGB format. Alternatively, a pre-processing and post-processing unit (not shown) may perform these conversions.

[0052] The present disclosure may generally relate to decoding (e.g., encoding and decoding) a picture to include the process of encoding or decoding data for the picture. Similarly, the present disclosure may relate to decoding 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 generally includes a series of values ​​of syntax elements for representing decoding decisions (e.g., decoding modes) and partitioning of the picture into blocks. Therefore, references to the decoding of a picture or a block should generally be understood as the decoding values ​​of the syntax elements that form the picture or block.

[0053] 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) divides a coding tree unit (CTU) into CUs according to a quadtree structure. That is, the video decoder divides the CTU and the 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 a CU of such a leaf node may include one or more PUs and / or one or more TUs. The video decoder may further divide the PU and TU. For example, in HEVC, a residual quadtree (RQT) represents the division of a TU. In HEVC, a PU represents inter-prediction data, and a TU represents residual data. An intra-predicted CU includes intra-prediction information, such as an intra-mode indication.

[0054] As another example, the video encoder 200 and the video decoder 300 may be configured to operate according to VVC. According to VVC, a video decoder (such as the video encoder 200) divides a picture into a plurality of coding tree units (CTUs). The video encoder 200 may divide 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 separation between CU, PU, ​​and TU of HEVC. The QTBT structure includes two levels: a first level divided according to quadtree partitions, and a second level divided according to binary tree partitions. The root node of the QTBT structure corresponds to the CTU. The leaf nodes of the binary tree correspond to coding units (CUs).

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

[0056] When operating according to the AV1 codec, the video encoder 200 and the video decoder 300 may be configured to decode the video data in blocks. In AV1, the largest decoding block that can be processed is called a super block. In AV1, a super block may be 128x128 luminance samples or 64x64 luminance samples. However, in subsequent video coding formats (e.g., AV2), super blocks may be defined by different (e.g., larger) luminance sample sizes. In some examples, the super block is the top layer of the block quadtree. The video encoder 200 may further divide the super block into smaller decoding blocks. The video encoder 200 may divide the super block and other decoding blocks into smaller blocks using square or non-square partitions. Non-square blocks may include N / 2xN blocks, NxN / 2 blocks, N / 4xN blocks, and NxN / 4 blocks. The video encoder 200 and the video decoder 300 may perform separate prediction and transform processing on each decoding block.

[0057] AV1 also defines tiles of video data. A tile is a rectangular array of super blocks that can be decoded independently of other tiles. That is, the video encoder 200 and the video decoder 300 can encode and decode coded blocks within a tile, respectively, without using video data from other tiles. However, the video encoder 200 and the video decoder 300 can perform filtering across tile boundaries. The size of the tiles can be uniform or non-uniform. Tile-based decoding can enable parallel processing and / or multi-threading of encoder implementations and decoder implementations.

[0058] 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 corresponding chroma components).

[0059] The video encoder 200 and the video decoder 300 may be configured to use quadtree partitioning, QTBT partitioning, MTT partitioning, superblock partitioning, or other partitioning structures.

[0060] In some examples, a CTU includes a coding tree block (CTB) of luma samples, two corresponding CTBs of chroma samples for a picture with three sample arrays, or a CTB of samples for a monochrome picture or a picture coded using three separate color planes and syntax structures for coding the samples. A CTB can be an NxN block of samples for some N value, so that the division of components into CTBs is a partition. A component is an array or a single sample from one of the three arrays (luminance and two chroma) that make up a 4:2:0, 4:2:2, or 4:4:4 color format picture, or an array or a single sample of an array that makes up a monochrome format picture. In some examples, a coding block is an MxN block of samples for some M and N values, so that the division of a CTB into coding blocks is a partition.

[0061] Blocks (e.g., CTUs or CUs) may be grouped in a picture in various ways. As an example, a brick may refer to a rectangular area of ​​a CTU row within a particular tile in a picture. A tile may be a rectangular area of ​​a CTU within a particular tile column and a particular tile row in a picture. A tile column refers to a rectangular area of ​​a CTU having a height equal to the height of the picture and a width specified by a syntax element (e.g., such as in a picture parameter set). A tile row refers to a rectangular area of ​​a CTU having a height specified by a syntax element (e.g., such as in a picture parameter set) and a width equal to the width of the picture.

[0062] In some examples, a tile may be divided into multiple bricks, each of which may include one or more CTU rows within the tile. Tiles that are not divided into multiple bricks may also be referred to as bricks. However, bricks that are true subsets of tiles may not be referred to as tiles. Bricks in a picture may also be arranged in slices. A slice may be an integer number of bricks of a picture that may be uniquely contained in a single network abstraction layer (NAL) unit. In some examples, a slice includes multiple complete tiles or a continuous sequence of complete bricks that include only one tile.

[0063] This disclosure may use "NxN" and "N times 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 times 16 samples. Generally speaking, a 16x16 CU will have 16 samples in the vertical direction (y=16) and 16 samples in the horizontal direction (x=16). Similarly, an NxN CU 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.

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

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

[0066] Some examples of 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).

[0067] To perform intra prediction, the video encoder 200 may select an intra prediction mode to generate a prediction block. Some examples of VVC provide sixty-seven intra prediction modes, including various directional modes, as well as a planar mode and a DC mode. In general, the video encoder 200 selects an intra prediction mode that describes neighboring samples of a current block (e.g., a block of a CU) from which to predict samples of the current block. Assuming that the video encoder 200 decodes CTUs and CUs in raster scan order (from left to right, from top to bottom), such samples may typically be above, above left, or to the left of the current block in the same picture as the current block.

[0068] The video encoder 200 encodes data representing the prediction mode of the current block. For example, for inter-frame prediction mode, the video encoder 200 may encode data indicating which of various available inter-frame prediction modes is used and motion information of the corresponding mode. For example, for unidirectional or bidirectional inter-frame prediction, 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.

[0069] AV1 includes two general techniques for encoding and decoding coded blocks of video data. The two general techniques are intra-frame prediction (e.g., intra-frame prediction or spatial prediction) and inter-frame prediction (e.g., inter-frame prediction or temporal prediction). In the content of AV1, when an intra-frame prediction mode is used to predict a block of a current frame of video data, the video encoder 200 and the video decoder 300 do not use video data from other frames of the video data. For most intra-frame prediction modes, the video encoder 200 encodes a block of the current frame based on the difference between the sample value in the current block and the prediction value generated from the reference sample in the same frame. The video encoder 200 determines the prediction value generated from the reference sample based on the intra-frame prediction mode.

[0070] After prediction (such as intra-frame prediction or inter-frame prediction for a block), the video encoder 200 can 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 can 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 can apply a discrete cosine transform (DCT), an integer transform, a wavelet transform, or a conceptually similar transform to the residual video data. Additionally, the video encoder 200 can apply a secondary transform after the first transform, such as a mode-dependent non-separable secondary transform (MDNSST), a signal-dependent transform, a Karhunen-Loeve transform (KLT), etc. The video encoder 200 generates transform coefficients after applying one or more transforms.

[0071] As noted above, after any transforms that produce transform coefficients, the video encoder 200 may perform quantization of the transform coefficients. Quantization generally refers to a process in which transform coefficients are quantized to possibly reduce the amount of data used to represent the transform coefficients, thereby providing further compression. By performing the quantization process, the video encoder 200 may reduce the bit depth associated with some or all 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 bit-by-bit right shift of the value to be quantized.

[0072] 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 describing the metadata associated with the encoded video data, which is used by the video decoder 300 when decoding the video data.

[0073] 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.

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

[0075] In this way, the video encoder 200 can generate a bitstream including encoded video data, for example, a syntax element describing the partition of a picture into blocks (e.g., CUs) and prediction and / or residual information for the blocks. Finally, the video decoder 300 can receive the bitstream and decode the encoded video data.

[0076] 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 partition information for partitioning a picture into CTUs and partitioning each CTU according to a corresponding partition structure such as a QTBT structure to define CUs of the CTUs. The syntax elements may further define prediction and residual information for a block of video data (e.g., a CU).

[0077] 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 the associated 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.

[0078] The present disclosure may generally involve "signaling" certain information (such as syntax elements). The term "signaling" may generally refer to the communication of values ​​of syntax elements and / or other data used to decode encoded video data. That is, the video encoder 200 may signal the values ​​of syntax elements in a bitstream. Generally speaking, signaling refers to generating values ​​in a bitstream. As noted above, the source device 102 may transmit the bitstream to the target device 116 in substantially real time or in non-real time (such as may occur when storing syntax elements to the storage device 112 for later retrieval by the target device 116).

[0079] According to the technology of the present disclosure, the video encoder 200 and the video decoder 300 can be configured to perform example techniques that can improve the coding efficiency and performance of intra-block copy (IBC) in an enhanced compression model (ECM) other than VVC. The example techniques can be applicable to ECM or other video codecs.

[0080] Intra-block copy (IBC) is one of the coding tools for screen content, as described in C. Pang, J. Sole, L. Guo, M. Karczewicz and R. Joshi, "Non-RCE3: Intra Motion Compensation with 2-D MVs", JCTVC-N0256, Vienna, Austria, August 2013. For the current coding unit (CU), IBC searches all block vectors and finds the best matching block in the reference region as a prediction, such as Figure 6 For example, Figure 6 A picture 400 including a CU 402 is illustrated. A block vector 406 of the CU 402 identifies a matching block 404 within the same picture 400.

[0081] The video encoder 200 may generate a prediction of the selected block vector 406, which is referred to as a block vector predictor. The video encoder 200 may determine the difference between the selected block vector 406 and the predicted block vector (i.e., the block vector predictor). The result of this difference is referred to as a block vector difference (BVD). The video encoder 200 may signal information indicating the BVD in the bitstream.

[0082] In one or more examples, the video encoder 200 can binarize the value of the BVD (e.g., binarize the values ​​of the horizontal and vertical components of the BVD) to generate a codeword. The video decoder 300 can be configured to perform inverse binarization (e.g., convert the codeword back to a value). Fixed length decoding is an example binarization technique. It is known that a number less than a power of 2 can be binarized into a binary number of length N. The number is first converted to binary, and then 0 is appended to the most significant position to make the binarization length N.

[0083] Table 1 provides an example of fixed-length decoding of length 3.

[0084] Table 1. Example of fixed-length decoding of length 3

[0085] number Codeword 0 000 1 001 2 010 3 011 4 100 5 101 6 110 7 111

[0086] Exponential Golomb decoding is also a binarization technique, and exponential Golomb decoding can be generalized to order K. Exponential Golomb decoding may include dividing the entire set of non-negative numbers into groups where each group consists of different numbers. The exponential Golomb binarization technique may include converting a non-negative number into an index of the group to which the number belongs and the position of the number in the group. Exponential Golomb decoding includes two parts, a prefix and a suffix. The prefix is ​​used to represent the index of the group, and the prefix can be decoded using unary decoding. The suffix represents the position within the group and is decoded using fixed-length decoding. The K order indicates that the size of the first group should be 2 K , and the following group size should be 2 K+1 ,2 K+2 ,…

[0087] Table 2 provides an example of exponential Golomb decoding with order 1.

[0088] Table 2. Example of Exponential Golomb Decoding with Order 1

[0089]

[0090]

[0091] There may be some problems with decoding the BVD. In the current ECM software available at https: / / vcgit.hhi.fraunhofer.de / ecm / ECM / - / tree / ECM-4.0, the binarization method for BVD is described as follows. There is a context decoding flag that is signaled to indicate whether the BVD is zero. If the context decoding flag is false, the BVD value is non-zero. If the BVD value is non-zero, there is another context decoding flag that is signaled to indicate whether the absolute value of the BVD is one (e.g., or greater than one). If the absolute value of the BVD is neither zero nor one, two is subtracted from the absolute value, and the remaining value of the absolute BVD is decoded with equal probability using exponential Columbus (EG) decoding of order 1. The sign of the BVD is then signaled with equal probability.

[0092] In some example implementations, the flag for context coding of BVD shares the same context as motion vector difference (MVD), and the coding for horizontal BVD and vertical BVD is independent. MVD can be similar to BVD, except that MVD represents the difference between a motion vector and a motion vector predictor. The motion vector of a block refers to a block in a different picture, unlike the block vector of a block which refers to a block in the same picture.

[0093] The binarization and coding techniques described above may not provide sufficient compression, resulting in inefficient bandwidth utilization. This disclosure describes example binarization and coding techniques that may provide additional compression relative to some other techniques.

[0094] Several example techniques that address the above problems are described in this disclosure. The example techniques can be used alone or in any combination.

[0095] In one example, the BVD and MVD use separate contexts. For example, the video encoder 200 and the video decoder 300 may utilize a first set of one or more contexts to decode (e.g., encode or decode) a BVD of a block vector of a first block in a first picture. The block vector of the first block identifies a sample in the first picture, and the BVD indicates the difference between the block vector and the block vector predictor. The video encoder 200 and the video decoder 300 may utilize a second set of one or more contexts to decode (e.g., encode or decode) a motion vector difference (MVD) of a motion vector of a second block in a second picture of the video data. The motion vector of the second block identifies a sample in a picture different from the second picture, and the MVD indicates the difference between the motion vector and the motion vector predictor. In one or more examples, one or more contexts in the first set of contexts and one or more contexts in the second set of contexts are different.

[0096] In one example, it is first checked whether BVD is zero. For example, as part of the rate-distortion calculation, the video encoder 200 can determine a BVD value for the BVD, and the BVD value can be non-zero. From the perspective of the video decoder 300, the video decoder 300 can receive a flag indicating that the BVD value is non-zero.

[0097] EG decoding is then applied directly to BVD without checking whether the absolute value of BVD is one. For example, a flag of context decoding is signaled to indicate whether BVD is zero. EG decoding of, for example, order 1 is then applied to decode the absolute value of BVD minus 1.

[0098] For example, the video encoder 200 or the video decoder 300 may determine whether a block vector difference (BVD) is zero, where the BVD indicates a difference between a block vector and a block vector predictor for a current block of video data. The video encoder 200 and the video decoder 300 may perform context-based decoding (e.g., encoding or decoding) of the BVD based on the BVD being non-zero without determining whether the absolute value of the BVD is one.

[0099] For example, the video encoder 200 may convert a value indicating a BVD value (e.g., an absolute value of the BVD minus one) into a codeword (e.g., an Exponential Golomb codeword). The video encoder 200 may perform context-based encoding on the codeword and signal the resulting encoded codeword. The video decoder 300 may perform context-based decoding on the encoded codeword to determine the codeword. Based on the codeword, the video decoder 300 may determine (e.g., via inverse binarization) a value indicating a BVD value (e.g., an absolute value of the BVD minus one). The video decoder 300 may then add one to the value indicating the BVD value to determine the BVD value. As described, based on the BVD value and the block vector predictor, the video decoder 300 may determine a block vector (e.g., by adding the BVD value and the block vector predictor). Based on the block vector, the video decoder 300 may determine a prediction block, and based on the prediction block and the signaled residual information, the video decoder 300 may reconstruct the block.

[0100] In one example, after checking whether BVD is zero, the absolute value of BVD is compared to a threshold. A flag indicating whether the absolute value is greater than the threshold is signaled. If the absolute value is less than or equal to the threshold, one binarization or inverse binarization technique is applied, otherwise another binarization or inverse binarization technique is applied. As an example, first, check whether BVD is zero and signal a flag. Then, the absolute value of BVD is compared to a threshold (e.g., 4), and if it is less than or equal to 4, a flag of context decoding 0 is signaled, and fixed length decoding is applied to the absolute value of BVD minus 1. Otherwise, a flag of context coding 1 is signaled, and EG (e.g., exponential Golomb) decoding (e.g., with order 3) is applied to the absolute value of BVD minus the threshold.

[0101] In one example, first, check if BVD is zero and signal a flag. Then, compare the absolute value of BVD with a threshold (e.g., 6), and if it is less than or equal to 6, signal a flag of context coding 0, and apply truncated binary coding to the absolute value of BVD minus 1. Otherwise, signal a flag of context coding 1, and apply EG coding (e.g., with 4th order) to the absolute value of BVD minus the threshold.

[0102] For example, the video encoder 200 or the video decoder 300 may determine whether a block vector difference (BVD) is zero, where the BVD indicates a difference between a block vector and a block vector predictor of a current block of video data. Based on the BVD being non-zero, the video encoder 200 and the video decoder 300 may determine whether the BVD is less than or equal to a threshold value (e.g., the video encoder 200 may compare the BVD to the threshold value, and the video decoder 300 may receive signaling indicating whether the BVD is less than or equal to the threshold value). The video encoder 200 and the video decoder 300 may select a binarization or debinarization technique based on whether the BVD is less than or equal to the threshold value, and apply the selected binarization or debinarization technique.

[0103] In one example, the context can be used for the binarization decoding method of BVD, for a portion of the binarized codeword or for the entire codeword. In one example, a portion of the binarized codeword can be the first N binary bits. In another example, the portion of the context decoding can be a prefix (e.g., a prefix portion of EG decoding or a prefix portion of a concatenated codeword). There can be two or more binarized codewords to form a concatenated codeword, where the prefix is ​​a portion of the concatenated codeword.

[0104] For one example, the first 5 bins (e.g., with order 1) of the EG decoding are context-coded, and the remaining codewords are decoded with equal probability, i.e., no context decoding is performed. In another example, the first 5 bins (e.g., with order 1) of the prefix portion of the EG decoding are context-coded, and the remaining codewords are decoded with equal probability (e.g., bypass decoding). In another example, the entire codeword of the fixed-length decoding method is context-coded. In another example, the first N bins (e.g., 5 bins) of the truncated binary decoding method are context-coded.

[0105] In one or more examples, the video encoder 200 and the video decoder 300 may utilize one or more contexts to context code (e.g., encode or decode) a block vector difference (BVD), where the BVD indicates a difference between a block vector and a block vector predictor for a current block of video data. Context coding may include utilizing one or more contexts for a portion of a binarized codeword for the BVD or for the entire binarized codeword for the BVD.

[0106] In one example, the binarization techniques for BVD on the horizontal and vertical components are different. For example, the binarization method for the horizontal BVD component is as follows. First, check whether the BVD is less than or equal to a threshold, such as 8. If the BVD is less than or equal to the threshold, then a fixed length decoding is applied, otherwise, an EG decoding, such as with an order of 3, is applied. The binarization technique for the vertical BVD component includes directly applying an EG decoding, such as with an order of 2, without checking the threshold.

[0107] For example, the video encoder 200 and the video decoder 300 may be configured to binarize or debinarize a horizontal component of a block vector difference (BVD) using a first binarization technique, where the BVD indicates a difference between a block vector and a block vector predictor for a current block of video data. The video encoder 200 and the video decoder 300 may binarize or debinarize a vertical component of the BVD using a second binarization technique different from the first binarization technique.

[0108] In some examples, the video encoder 200 and the video decoder 300 may utilize the same binarization technique to binarize or debinarize horizontal and vertical components of a block vector difference (BVD), where the BVD indicates a difference between a block vector and a block vector predictor for a current block of video data. The video encoder 200 and the video decoder 300 may perform context-based coding (e.g., encoding or decoding) on ​​the horizontal component and perform context-based coding on the horizontal component.

[0109] In one example, the binarization techniques for the BVD horizontal and vertical components are the same, and the horizontal and vertical components share the same context. For example, context-based decoding of the horizontal component and context-based decoding of the vertical component may include utilizing the same context to context-based decoding of the vertical component and the horizontal component.

[0110] In one example, the binarization techniques for the horizontal and vertical components of the BVD are the same, but the horizontal and vertical components use separate contexts. For example, context-based decoding of the horizontal component and context-based decoding of the vertical component may include using different contexts to perform context-based decoding of the vertical component and the horizontal component. As an example, the video encoder 200 may encode the horizontal component value of the BVD based on the non-zero value of the BVD horizontal component using a first group of one or more contexts or the video decoder 300 may decode the horizontal component value of the BVD based on the non-zero value of the BVD horizontal component using a first group of one or more contexts, and the video encoder may encode the vertical component value based on the non-zero value of the BVD vertical component of the BVD using a second group of one or more contexts or the video decoder may decode the vertical component value based on the non-zero value of the BVD vertical component of the BVD using a second group of one or more contexts. One or more contexts in the first group of contexts and one or more contexts in the second group of contexts are different.

[0111] In one example, the binarization technique for the BVD horizontal and vertical components is the same, but the context of one component depends on the other component. For example, context-based decoding of the horizontal component and context-based decoding of the vertical component may include determining the context of the other of the horizontal component or the vertical component based on one of the horizontal component or the vertical component.

[0112] As an example, for the case when the horizontal BVD is greater than zero, equal to zero, or less than zero, the context of the vertical component is separate. In another example, for the case when the horizontal BVD is zero or non-zero, the context of the vertical component is separate.

[0113] In one example, the binarization method of the BVD component depends on the sign of another BVD component. For example, the video encoder 200 and the video decoder 300 may determine a binarization or debinarization technique for a first component of a block vector difference (BVD) based on whether a second component of the BVD is positive or negative, where the BVD indicates a difference between a block vector and a block vector predictor for a current block of video data, and where the first component is one of the horizontal or vertical components of the BVD, and the second component is the other of the horizontal or vertical components of the BVD. The video encoder 200 and the video decoder 300 may apply the determined binarization or debinarization technique.

[0114] As an example, the binarization technique for the vertical BVD depends on the sign of the horizontal BVD component. When the horizontal BVD is positive, the binarization technique for the vertical component may be, for example, EG decoding with an order of 2. When the horizontal BVD component is negative, the binarization technique for the vertical component may be, for example, EG decoding with an order of 1. When the horizontal BVD is zero, the binarization technique for the vertical component may be fixed length decoding.

[0115] In one example, the binarization technique of the BVD component may depend on the value of another component. For example, the video encoder 200 and the video decoder 300 may determine a binarization or debinarization technique for a first component of a block vector difference (BVD) based on the value of a second component of the BVD, where the BVD indicates a difference between a block vector and a block vector predictor for a current block of video data, and where the first component is one of the horizontal or vertical components of the BVD, and the second component is the other of the horizontal or vertical components of the BVD. The video encoder 200 and the video decoder 300 may apply the determined binarization or debinarization technique.

[0116] As an example, the binarization technique of the vertical BVD depends on the magnitude of the horizontal BVD component. When the horizontal BVD is greater than a threshold value (e.g., equal to 8), the binarization technique of the vertical BVD component is, for example, EG decoding with order 1. When the BVD in the horizontal direction is less than the threshold value, the binarization technique of the vertical BVD component may be fixed length decoding.

[0117] In one example, the BVD binarization technique may depend on a combination of signs of the horizontal and vertical BVD components. For example, the video encoder 200 and the video decoder 300 may determine a binarization or debinarization technique for a first component and a second component of a block vector difference (BVD) based on whether the first component and the second component of the BVD are both positive, both negative, or one is positive and the other is negative, wherein the BVD indicates a difference between a block vector and a block vector predictor for a current block of video data, and wherein the first component is one of the horizontal or vertical components of the BVD, and the second component is the other of the horizontal or vertical components of the BVD. The video encoder 200 and the video decoder 300 may apply the determined binarization or debinarization technique.

[0118] As an example, when the sign combination of the horizontal and vertical components is (+, +) and (-, -), EG of order 3, for example, may be utilized. When the sign combination is (+, -), the binarization technique for the horizontal component may be, for example, EG decoding of order 2, and the binarization technique for the vertical component may be fixed length decoding. When the sign combination is (-, +), the binarization technique for the horizontal component may be, for example, EG decoding of order 1, and the binarization technique for the vertical component may be, for example, EG decoding of order 2.

[0119] The examples described above can be used to binarize any vector, for example to code an MVD.BVD vectors are used as an example, and the techniques should not be considered limited to BVD.

[0120] Figure 2 is a block diagram illustrating an example video encoder 200 that may perform the techniques of this disclosure. Figure 2 It is provided for the purpose of explanation and should not be considered as limiting the techniques extensively illustrated and described in this disclosure. For the purpose of explanation, this disclosure describes a video encoder 200 according to VVC (ITU-T H.266, under development) and HEVC (ITU-T H.265) techniques. However, the techniques of this disclosure may be performed by video encoding devices configured for other video coding standards and video coding formats, such as AV1 and subsequent formats of the AV1 video coding format.

[0121] exist Figure 2 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 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 can be implemented in one or more processors or in a processing circuit. For example, the units of the video encoder 200 can be implemented as one or more circuits or logic elements as part of a hardware circuit, or as part of a processor, ASIC, or FPGA. In addition, the video encoder 200 may include additional or alternative processors or processing circuits to perform these and other functions.

[0122] Video data memory 230 may store video data to be encoded by components of video encoder 200. Video encoder 200 may receive video data from, for example, video source 104 ( Figure 1) receives video data stored in 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 video encoder 200. Video data memory 230 and DPB 218 can be formed by any memory device in 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 DPB 218 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.

[0123] In the present disclosure, references to the video data memory 230 should not be interpreted as limited to a memory inside the video encoder 200 (unless otherwise specified) or a memory outside the video encoder 200 (unless otherwise specified). 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 .

[0124] Illustrated Figure 2 The various units of the video encoder 200 are provided to help understand the operations performed by the video encoder 200. The units may be implemented as fixed-function circuits, programmable circuits, or a combination thereof. Fixed-function circuits refer to circuits that provide specific functionality and are pre-set for executable operations. Programmable circuits refer to circuits that can be programmed to perform various tasks and provide flexible functionality on executable operations. 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 the units may be different circuit blocks (fixed-function or programmable), and in some examples, one or more of the units may be integrated circuits.

[0125] 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 instructions (eg, 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.

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

[0127] Mode selection unit 202 includes motion estimation unit 222, motion compensation unit 224, and intra prediction unit 226. Mode selection unit 202 may include additional functional units to perform video prediction according to other prediction modes. As an example, mode selection unit 202 may include a palette unit, an intra-block copy (IBC) unit 227, an affine unit, a linear model (LM) unit, etc. In some examples, IBC unit 227 may be part of motion estimation unit 222 and / or motion compensation unit 224.

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

[0129] The video encoder 200 may divide 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 divide the CTUs of the picture according to a tree structure (such as an MTT structure, a QTBT structure, a super block structure, or the above-mentioned quadtree structure). As described above, the video encoder 200 may form one or more CUs by dividing the CTUs according to the tree structure. Such CUs may also be generally referred to as "video blocks" or "blocks".

[0130] In general, the mode selection unit 202 also controls its components (e.g., the motion estimation unit 222, the motion compensation unit 224, and the intra prediction unit 226) to generate a prediction block for the current block (e.g., the current CU, or in HEVC, the overlapping portion of the PU and TU). 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 how similar the potential reference block will be 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 generally perform these calculations using the sample-by-sample differences between the current block and the reference block under consideration. The motion estimation unit 222 may identify the reference block with the lowest value resulting from these calculations to indicate the reference block that best matches the current block.

[0131] 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 vector has fractional sample precision, the motion compensation unit 224 may interpolate the values ​​of 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.

[0132] When operating according to the AV1 video coding format, the motion estimation unit 222 and the motion compensation unit 224 may be configured to encode coding blocks of the video data (e.g., both luma coding blocks and chroma coding blocks) using translational motion compensation, affine motion compensation, overlapped block motion compensation (OBMC), and / or composite inter-intra prediction.

[0133] As another example, for intra prediction or intra prediction coding, the intra prediction unit 226 may generate a prediction block from samples adjacent to the current block. For example, for directional mode, the intra prediction unit 226 may generally mathematically combine the values ​​of the adjacent samples and pad 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 may calculate an average of the adjacent samples of the current block and generate a prediction block to include the resulting average for each sample of the prediction block.

[0134] When operating according to the AV1 video coding format, the intra prediction unit 226 may be configured to encode coding blocks of video data (e.g., both luma coding blocks and chroma coding blocks) using directional intra prediction, non-directional intra prediction, recursive filter intra prediction, chroma from luma (CFL) prediction, intra-block copy (IBC), and / or palette mode. The mode selection unit 202 may include additional functional units for performing video prediction according to other prediction modes.

[0135] As described above, example techniques described in the present disclosure are related to intra-block copy (IBC). Mode selection unit 202 may include IBC unit 227. IBC unit 227 may be configured to determine a block vector for a current block and generate a prediction block for the current block based on the block vector. For example, the block vector may identify a block within the same picture as the current block, and IBC unit 227 may determine the prediction block based on samples within the block identified by the block vector. In one or more examples, IBC unit 227 may be configured to determine a block vector predictor for the block vector and a BVD (e.g., a difference between the block vector and the block vector predictor).

[0136] The mode selection unit 202 provides the prediction block to the residual generation unit 204. The residual generation unit 204 receives the uncoded original 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.

[0137] In an example where the mode selection unit 202 divides 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 a CU may refer to the size of a luma coding block of the CU, and the size of a PU may refer to the size of a 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-prediction, and 2Nx2N, 2NxN, Nx2N, NxN or similar symmetric PU sizes for inter-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-prediction.

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

[0139] For other video coding techniques, such as affine mode coding and linear model (LM) mode coding, as some examples, 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), mode selection unit 202 may not generate a prediction block, but instead generate syntax elements indicating the manner in which the block is reconstructed based on the selected palette. In such modes, mode selection unit 202 may provide these syntax elements to entropy encoding unit 220 for encoding.

[0140] 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.

[0141] 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 may apply various transforms to the residual block to form a transform coefficient block. For example, the transform processing unit 206 may apply a discrete cosine transform (DCT), a directional transform, a Karhunen-Loeve transform (KLT), or a conceptually similar transform to the residual block. In some examples, the transform processing unit 206 may 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.

[0142] When operating according to AV1, the transform processing unit 206 may apply one or more transforms to the residual block to generate a block of transform coefficients (referred to herein as a "transform coefficient block"). The transform processing unit 206 may apply various transforms to the residual block to form a transform coefficient block. For example, the transform processing unit 206 may apply a horizontal / vertical transform combination, which may include a discrete cosine transform (DCT), an asymmetric discrete sine transform (ADST), a flipped ADST (e.g., ADST in reverse order), and an identity transform (IDTX). When the identity transform is used, the transform is skipped in one of the vertical direction or the horizontal direction. In some examples, the transform process may be skipped.

[0143] The quantization unit 208 may quantize the transform coefficients in the transform coefficient block to produce a quantized transform coefficient block. The quantization unit 208 may quantize the transform coefficients of the transform coefficient block according to a quantization parameter (QP) value associated with the current block. The video encoder 200 (e.g., via the mode selection unit 202) may adjust the degree of quantization applied to the transform coefficient block associated with the current block by adjusting the QP value associated with the CU. Quantization may 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.

[0144] 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 a residual block from the transform coefficient block. 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.

[0145] Filter unit 216 may perform one or more filtering operations on the reconstructed block. For example, filter unit 216 may perform a deblocking operation to reduce blocking artifacts along the edges of the CU. In some examples, the operations of filter unit 216 may be skipped.

[0146] When operating according to AV1, filter unit 216 may perform one or more filtering operations on the reconstructed block. For example, filter unit 216 may perform a deblocking operation to reduce blocking artifacts along the edges of the CU. In other examples, filter unit 216 may apply a constrained directional enhancement filter (CDEF), which may be applied after deblocking and may include the application of a non-separable, non-linear, low-pass directional filter based on the estimated edge direction. Filter unit 216 may also include a loop recovery filter applied after CDEF, and may include a separable symmetric normalized Wiener filter or a dual self-guided filter.

[0147] The video encoder 200 stores the reconstructed blocks in the DPB 218. For example, in an example where the operation of the filter unit 216 is not performed, the reconstruction unit 214 can store the reconstructed blocks in the DPB 218. In an example where the operation of the filter unit 216 is performed, the filter unit 216 can store the filtered reconstructed blocks in the DPB 218. The motion estimation unit 222 and the motion compensation unit 224 can retrieve a reference picture formed by the reconstructed (and potentially filtered) blocks from the DPB 218 to perform inter-frame prediction on blocks of 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.

[0148] 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 quantized transform coefficient blocks from the quantization unit 208. As another example, the entropy coding unit 220 may entropy encode prediction syntax elements (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 the syntax elements (the syntax elements are 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 where the syntax elements are not entropy encoded.

[0149] The video encoder 200 may output a bitstream including entropy-encoded syntax elements required to reconstruct a block of a slice or picture. Specifically, the entropy encoding unit 220 may output a bitstream.

[0150] According to AV1, the entropy coding unit 220 may be configured as a symbol-to-symbol adaptive multi-symbol arithmetic decoder. The syntax elements in AV1 include an alphabet of N elements, and the context (e.g., a probability model) includes a set of N probabilities. The entropy coding unit 220 may store the probabilities as an n-bit (e.g., 15-bit) cumulative distribution function (CDF). The entropy coding unit 22 may perform recursive scaling using an update factor based on the size of the alphabet to update the context.

[0151] The operations described above are described for 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.

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

[0153] Video encoder 200 represents an example of a device configured to encode video data, the device including a memory configured to store the video data, and one or more processing units implemented in circuits and configured to perform the example techniques described in this disclosure, such as various techniques for binarizing and encoding information indicative of a BVD.

[0154] For example, the IBC unit 227 may determine that a block vector difference (BVD) value is non-zero. The BVD value indicates a difference between a block vector and a block vector predictor for a current block of video data, and the block vector points to a reference block based on samples in the same picture as the current block. The entropy encoding unit 220 may encode the value of the BVD value without signaling syntax information indicating whether the absolute value of the BVD value is greater than one.

[0155] As an example, the value of the BVD value is equal to the absolute value of the BVD value minus one. The entropy coding unit 220 may encode the value equal to the absolute value of the BVD value minus one. In some examples, the entropy coding unit 220 may perform binarization (e.g., exponential Golomb) to represent the value as a codeword and encode the codeword. For example, the entropy coding unit 220 may perform context-based encoding on the codeword (e.g., the first N bins of the codeword) and bypass encoding on the remaining bins of the codeword.

[0156] In some examples, entropy coding unit 220 may encode the horizontal and vertical components of the BVD using different contexts. For example, entropy coding unit 220 may encode the horizontal component value based on the BVD horizontal component value being non-zero using a first set of one or more contexts, and encode the vertical component value based on the BVD vertical component value being non-zero using a second set of one or more contexts. One or more contexts in the first set of contexts and one or more contexts in the second set of contexts are different.

[0157] As another example, the entropy coding unit 220 may encode the value of the BVD value of the first block in the first picture using the first set of one or more contexts, and encode the motion vector difference (MVD) of the motion vector of the second block in the second picture using the second set of one or more contexts. The motion vector of the second block identifies a block in a different picture from the second picture, and the MVD indicates the difference between the motion vector and the motion vector predictor. In one or more examples, one or more contexts in the first set of contexts and one or more contexts in the second set of contexts are different.

[0158] Figure 3 is a block diagram illustrating an example video decoder 300 that may perform the techniques of this disclosure. Figure 3 It is provided for the purpose of explanation and is not a limitation of the techniques extensively illustrated and described in this disclosure. For the purpose of explanation, this disclosure describes a video decoder 300 according to VVC (ITU-T H.266, under development) and HEVC (ITU-T H.265) techniques. However, the techniques of this disclosure may be performed by video decoding devices configured for other video decoding standards.

[0159] exist Figure 3In 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) 314. Any or all of the CPB memory 320, the entropy decoding unit 302, the prediction processing unit 304, the inverse quantization unit 306, the inverse transform processing unit 308, the reconstruction unit 310, the filter unit 312, and the DPB 314 can be implemented in one or more processors or in processing circuits. For example, the units of the video decoder 300 can be implemented as one or more circuits or logic elements as part of a hardware circuit, or as part of a processor, ASIC, or FPGA. In addition, the video decoder 300 can include additional or alternative processors or processing circuits to perform these and other functions.

[0160] Prediction processing unit 304 includes motion compensation unit 316, intra-block copy (IBC) unit 317, and intra-prediction unit 318. In some examples, IBC unit 317 may be part of motion compensation unit 316. Prediction processing unit 304 may include additional units to perform prediction according to other prediction modes. As an example, prediction processing unit 304 may include a palette unit, an affine unit, a linear model (LM) unit, etc. In other examples, video decoder 300 may include more, fewer, or different functional components.

[0161] As described above, the example techniques described in the present disclosure are related to intra-block copy (IBC). The IBC unit 317 can be configured to determine a block vector for a current block and generate a prediction block for the current block based on the block vector. For example, the block vector can identify a block within the same picture as the current block, and the IBC unit 317 can determine the prediction block based on samples within the block identified by the block vector. In one or more examples, the IBC unit 317 can be configured to determine a block vector predictor for a block vector and receive information indicating a BVD (e.g., a difference between a block vector and a block vector predictor). The IBC unit 317 can add the BVD to the block vector predictor to generate a block vector for the current block, and determine the prediction block for the current block based on the block vector.

[0162] When operating according to AV1, the motion compensation unit 316 may be configured to decode coding blocks of video data (e.g., both luma coding blocks and chroma coding blocks) using translational motion compensation, affine motion compensation, OBMC, and / or composite inter-intra prediction, as described above. As described above, the intra prediction unit 318 may be configured to decode coding blocks of video data (e.g., both luma coding blocks and chroma coding blocks) using directional intra prediction, non-directional intra prediction, recursive filter intra prediction, CFL, intra-block copy (IBC), and / or palette mode.

[0163] 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, which video decoder 300 may output and / or use 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 DRAM (including SDRAM), MRAM, RRAM, or other types of memory devices. CPB memory 320 and DPB 314 may be provided by the same memory device or a separate memory device. In various examples, CPB memory 320 may be on-chip with other components of video decoder 300, or off-chip relative to those components.

[0164] 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, memory 120 may store instructions to be executed by video decoder 300 when some or all of the functionality of video decoder 300 is implemented in software to be executed by processing circuitry of video decoder 300.

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

[0166] 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.

[0167] Entropy decoding unit 302 may receive encoded video data from the CPB and entropy decode the video data to reproduce syntax elements. Prediction processing unit 304, inverse quantization unit 306, inverse transform processing unit 308, reconstruction unit 310, and filter unit 312 may generate decoded video data based on syntax elements extracted from the bitstream.

[0168] Generally speaking, 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").

[0169] 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, a degree of inverse quantization to be applied by the inverse quantization unit 306. 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.

[0170] 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.

[0171] 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 element indicates that the current block is inter-predicted, motion compensation unit 316 can generate the prediction block. In this case, the prediction information syntax element 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 ... Figure 2 )The inter-frame prediction process is performed in a manner substantially similar to that described in the accompanying drawings.

[0172] 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. Similarly, the intra-prediction unit 318 is generally capable of generating a prediction block in accordance with the same method as for the intra-prediction unit 226 ( Figure 2 The intra prediction process is performed in a manner substantially similar to that described in the foregoing description. The intra prediction unit 318 may retrieve data of neighboring samples of the current block from the DPB 314.

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

[0174] The filter unit 312 may perform one or more filtering 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.

[0175] 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 in 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 in 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 a decoded picture (e.g., a decoded video) from the DPB 314 for use in, for example, Figure 1 Subsequent presentation on a display device 118 of the display device.

[0176] In this manner, video decoder 300 represents an example of a video decoding device that includes a memory configured to store video data, and one or more processing units implemented in circuits and configured to perform the example techniques described in this disclosure, such as various techniques for debinarizing and decoding information indicative of a BVD.

[0177] For example, the IBC unit 317 may determine that a block vector difference (BVD) value is non-zero. The BVD value indicates a difference between a block vector and a block vector predictor for a current block of video data, and the block vector points to a reference block based on samples in the same picture as the current block. The entropy decoding unit 302 may decode the value of the BVD value without parsing syntax information indicating whether the absolute value of the BVD value is greater than one.

[0178] As an example, the value of the BVD value is equal to the absolute value of the BVD value minus one. The entropy decoding unit 302 may decode a value equal to the absolute value of the BVD value minus one. The IBC unit 317 may add one to the value to determine the BVD value. Based on the BVD value, the IBC unit 317 may determine a block vector (e.g., by adding the BVD value to a block vector predictor signaled by the video encoder 200). Based on the block vector, the IBC unit 317 may determine a prediction block, which the IBC unit 317 outputs to the reconstruction unit 310 to reconstruct the current block.

[0179] In some examples, the entropy decoding unit 302 can perform inverse binarization (e.g., Exponential Golomb), such as in examples where the values ​​are represented as codewords and the codewords are decoded. For example, the entropy decoding unit 302 can perform context-based decoding on the codeword (e.g., the first N bins of the codeword) and bypass decode the remaining bins of the codeword.

[0180] In some examples, entropy decoding unit 302 can utilize different contexts to decode the horizontal and vertical components of the BVD. For example, entropy decoding unit 302 can utilize a first set of one or more contexts to decode the horizontal component value based on the BVD horizontal component value being non-zero, and utilize a second set of one or more contexts to decode the vertical component value based on the BVD vertical component value being non-zero. One or more contexts in the first set of contexts and one or more contexts in the second set of contexts are different.

[0181] As another example, the entropy decoding unit 302 can utilize the first set of one or more contexts to decode the value of the BVD value of the first block in the first picture, and utilize the second set of one or more contexts to decode the motion vector difference (MVD) of the motion vector of the second block in the second picture. The motion vector of the second block identifies a block in a different picture than the second picture, and the MVD indicates the difference between the motion vector and the motion vector predictor. In one or more examples, one or more contexts in the first set of contexts and one or more contexts in the second set of contexts are different.

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

[0183] 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 (e.g., a block vector based on IBC). 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 unencoded original block and the prediction block for the current block. The video encoder 200 may then transform the residual block and quantize the transform coefficients of the residual block (354). Next, the video encoder 200 may scan the quantized transform coefficients of the residual block (356). During or after the scan, the video encoder 200 may entropy encode the transform coefficients (358). For example, the video encoder 200 may encode the transform coefficients using CAVLC or CABAC. The video encoder 200 may then output entropy encoded data for the block (360).

[0184] Figure 5 1 is a flowchart illustrating an example method for decoding a current block of video data according to the techniques of the present disclosure. The current block may include a current CU. Although for the video decoder 300 ( Figure 1 and Figure 3 ), 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.

[0185] The video decoder 300 may receive entropy coded data for a current block, such as 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 prediction information for the current block and reproduce transform coefficients of the residual block (372). The video decoder 300 may predict the current block (374), for example, using an IBC mode as indicated by the prediction information of the current block, to calculate a 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 to the transform coefficients to produce a residual block (378). The video decoder 300 may ultimately decode the current block by combining the prediction block and the residual block (380).

[0186] Figure 7 is a flow chart illustrating an example method of encoding or decoding video data according to the techniques of the present disclosure. The video encoder 200 and the video decoder 300 may determine that a block vector difference (BVD) value is non-zero (700). For example, based on a rate-distortion calculation, the video encoder 200 may determine that an optimal BVD is non-zero. The video decoder 300 may parse a first flag indicating that the BVD value is non-zero. As described, the BVD value indicates a difference between a block vector and a block vector predictor for a current block of video data, and the block vector points to a reference block based on samples in the same picture as the current block.

[0187] Video encoder 200 and video decoder 300 may encode or decode the value of the BVD value without signaling or parsing syntax information indicating whether the absolute value of the BVD value is greater than one (702). For example, video decoder 300 may decode the value without parsing a second flag indicating whether the absolute value of the BVD value is greater than one. The value (e.g., the value of the BVD value) may be equal to the absolute value of the BVD value minus one. In some

[0188] In some examples, the value is represented as a codeword (e.g., an Exponential Golomb codeword). In such examples, the video encoder 200 and the video decoder 300 may perform context-based encoding or decoding on the codeword. As an example, to perform context-based encoding or decoding on the codeword, the video encoder 200 and the video decoder 300 may perform context-based encoding or decoding on the first N bits of the codeword and bypass encoding or decoding on the remaining bits of the codeword. As an example, the first N bits are the first 5 bits of the codeword.

[0189] Figure 8 1 is a flow chart illustrating an example method for encoding or decoding components of a block vector difference (BVD). The video encoder 200 and the video decoder 300 may encode or decode horizontal component values ​​of the BVD based on the BVD horizontal component value being non-zero (800) using a first set of one or more contexts. The video encoder 200 and the video decoder 300 may encode or decode vertical component values ​​based on the BVD vertical component value being non-zero (802) using a second set of one or more contexts. In one or more examples, one or more contexts in the first set of contexts and one or more contexts in the second set of contexts are different.

[0190] Fig. 9 2 is a flow chart illustrating an example method for encoding or decoding a BVD and a motion vector difference (MVD). The video encoder 200 and the video decoder 300 may encode or decode (900) a BVD value of a BVD of a block vector of a first block in a first picture using a first set of one or more contexts. The BVD value is for a block vector of a first block pointing to a reference block in the first picture. The video encoder 200 and the video decoder 300 may encode or decode (902) an MVD value of an MVD of a motion vector of a second block in a second picture using a second set of one or more contexts. The motion vector of the second block identifies a block in a picture different from the second picture, and the MVD indicates a difference between the motion vector and a motion vector predictor.

[0191] One or more example techniques according to examples described in this disclosure are described below.

[0192] Clause 1. A method for decoding video data, the method comprising: decoding a motion vector difference (MVD) of a motion vector of a first block in a first picture of the video data using a first set of one or more contexts, wherein the motion vector of the first block identifies a block in a picture different from the first picture, and wherein the MVD indicates a difference between the motion vector and a motion vector predictor; and decoding a block vector difference (BVD) of a block vector of a second block in a second picture of the video data using a second set of one or more contexts, wherein the block vector of the second block identifies a block in the second picture, and wherein the BVD indicates a difference between the block vector and a block vector predictor, wherein one or more contexts in the first set of contexts and one or more contexts in the second set of contexts are different.

[0193] Clause 2. A method for decoding video data, the method comprising: determining whether a block vector difference (BVD) is zero, wherein the BVD indicates a difference between a block vector and a block vector predictor of a current block of the video data; and, without determining whether an absolute value of the BVD is one, performing context-based decoding on the BVD based on the BVD being non-zero.

[0194] Clause 3. A method for decoding video data, the method comprising: determining whether a block vector difference (BVD) is zero, wherein the BVD indicates a difference between a block vector and a block vector predictor of a current block of the video data; based on the BVD being non-zero, determining whether the BVD is less than or equal to a threshold; selecting a binarization or debinarization technique based on whether the BVD is less than or equal to the threshold; and applying the selected binarization or debinarization technique.

[0195] Clause 4. A method for decoding video data, the method comprising: utilizing one or more contexts to perform context decoding on a block vector difference (BVD), wherein the BVD indicates a difference between a block vector and a block vector predictor of a current block of the video data, wherein performing context decoding comprises utilizing the one or more contexts for a portion of a binarized codeword for the BVD or for the entire binarized codeword for the BVD.

[0196] Item 5. A method for decoding video data, the method comprising: using a first binarization technique to binarize or debinarize a horizontal component of a block vector difference (BVD), wherein the BVD indicates a difference between a block vector and a block vector predictor of a current block of the video data; and using a second binarization technique different from the first binarization technique to binarize or debinarize a vertical component of the BVD.

[0197] Clause 6. A method for decoding video data, the method comprising: using the same binarization technique to binarize or debinarize horizontal and vertical components of a block vector difference (BVD), wherein the BVD indicates the difference between a block vector and a block vector predictor of a current block of the video data; performing context-based decoding on the horizontal component; and performing context-based decoding on the horizontal component.

[0198] Clause 7. The method of clause 6, wherein context-based coding the horizontal component and context-based coding the vertical component comprises utilizing the same context to context-based code the vertical component and the horizontal component.

[0199] Clause 8. The method of clause 6, wherein context-based coding the horizontal component and context-based coding the vertical component comprises context-based coding the vertical component and the horizontal component using different contexts.

[0200] Clause 9. The method of clause 6, wherein context-based coding of the horizontal component and context-based coding of the vertical component comprises determining a context of the other of the horizontal component or the vertical component based on one of the horizontal component or the vertical component.

[0201] Item 10. A method for decoding video data, the method comprising: determining a binarization or debinarization technique for a first component of a block vector difference (BVD) based on whether a second component of the BVD is positive or negative, wherein the BVD indicates a difference between a block vector and a block vector predictor of a current block of the video data, and wherein the first component is one of a horizontal or vertical component of the BVD and the second component is the other of the horizontal or vertical components of the BVD; and applying the determined binarization or debinarization technique.

[0202] Item 11. A method for decoding video data, the method comprising: determining a binarization or debinarization technique for a first component of a block vector difference (BVD) based on the value of a second component of the BVD, wherein the BVD indicates a difference between a block vector and a block vector predictor of a current block of the video data, and wherein the first component is one of a horizontal or vertical component of the BVD and the second component is the other of the horizontal or vertical components of the BVD; and applying the determined binarization or debinarization technique.

[0203] Clause 12. A method for decoding video data, the method comprising: determining a binarization or debinarization technique for a first component of a block vector difference (BVD) and a second component of the BVD based on whether the first component and the second component of the BVD are both positive, both negative, or one is positive and the other is negative, and wherein the BVD indicates a difference between a block vector and a block vector predictor of a current block of the video data, wherein the first component is one of a horizontal or vertical component of the BVD and the second component is the other of the horizontal or vertical components of the BVD; and applying the determined binarization or debinarization technique.

[0204] Clause 13. A method according to any one of clauses 1 to 12, wherein the method comprises a method of decoding video data.

[0205] Clause 14. A method according to any one of clauses 1 to 12, wherein the method comprises a method of encoding video data.

[0206] Clause 15. An apparatus for decoding video data, the apparatus comprising: a memory configured to store the video data; and a processing circuit configured to perform the method according to any one of clauses 1 to 14.

[0207] Clause 16. The device of clause 15, further comprising a display configured to display the decoded video data.

[0208] Clause 17. The device of any of clauses 15 and 16, wherein the device comprises one or more of a camera, a computer, a mobile device, a broadcast receiver device, or a set-top box.

[0209] Clause 18. The apparatus of any of clauses 15 to 17, wherein the apparatus comprises a video decoder.

[0210] Clause 19. The apparatus of any one of clauses 15 to 17, wherein the apparatus comprises a video encoder.

[0211] Clause 20. A computer-readable storage medium having stored thereon instructions that, when executed, cause one or more processors to perform the method of any one of clauses 1 to 14.

[0212] Clause 21. An apparatus for decoding video data, the apparatus comprising means for performing the method of any of clauses 1 to 14.

[0213] Clause 1A. A method of encoding or decoding video data, the method comprising: determining that a block vector difference (BVD) value is non-zero, wherein the BVD value indicates a difference between a block vector and a block vector predictor of a current block of the video data, and wherein the block vector points to a reference block based on samples in the same picture as the current block; and encoding or decoding the value of the BVD value without signaling or parsing syntax information indicating whether an absolute value of the BVD value is greater than one.

[0214] Clause 2A. The method of Clause 1A, wherein the value is equal to the absolute value of the BVD value minus one.

[0215] Clause 3A. The method of any of clauses 1A and 2A, wherein the value is represented as a codeword, wherein encoding or decoding the value comprises context-based encoding or decoding of the codeword.

[0216] Clause 4A. The method of clause 3A, wherein context-based encoding or decoding of the codeword comprises context-based encoding or decoding of first N bins of the codeword and bypass encoding or decoding of remaining bins of the codeword.

[0217] Clause 5A. The method of Clause 4A, wherein the first N bins comprise the first 5 bins of the codeword.

[0218] Clause 6A. The method of any of clauses 3A to 5A, wherein the codeword is an Exponential Golomb codeword.

[0219] Clause 7A. A method according to any one of clauses 1A to 6A, wherein determining that the BVD value is non-zero includes parsing a first flag indicating that the BVD value is non-zero, and wherein encoding or decoding the value based on the BVD value being non-zero without signaling or parsing syntax information indicating whether the absolute value of the BVD value is greater than one includes decoding the value without parsing a second flag indicating whether the absolute value of the BVD value is greater than one.

[0220] Clause 8A. A method according to any one of clauses 1A to 7A, wherein the BVD value is a BVD horizontal component value, wherein the value is a horizontal component value, and wherein encoding or decoding the value based on the BVD value being non-zero includes encoding or decoding the horizontal component value based on the BVD horizontal component value being non-zero using a first set of one or more contexts, and the method also includes encoding or decoding the vertical component value based on the BVD vertical component value being non-zero using a second set of one or more contexts, wherein one or more contexts in the first set of contexts and one or more contexts in the second set of contexts are different.

[0221] Clause 9A. A method according to any one of clauses 1A to 8A, wherein the picture including the current block includes a first picture, wherein the current block is the first block, and wherein encoding or decoding the value includes encoding or decoding the value using a first set of one or more contexts, the method further comprising: encoding or decoding a motion vector difference (MVD) of a motion vector of a second block in a second picture using a second set of one or more contexts, wherein the motion vector of the second block identifies a block in a picture different from the second picture, and wherein the MVD indicates a difference between the motion vector and a motion vector predictor, wherein one or more contexts in the first set of contexts and one or more contexts in the second set of contexts are different.

[0222] Clause 10A. A method according to any one of clauses 1A to 9A, wherein encoding or decoding the value includes decoding the value, and the method further includes: determining the block vector of the current block based on the BVD value; determining a prediction block based on the block vector; receiving residual information indicating the difference between the prediction block and the current block; and reconstructing the current block based on the residual information and the prediction block.

[0223] Item 11A. A device for encoding or decoding video data, the device comprising: a memory configured to store video data; and a processing circuit configured to: determine that a block vector difference (BVD) value is non-zero, wherein the BVD value indicates a difference between a block vector and a block vector predictor of a current block of the video data, and wherein the block vector points to a reference block based on samples in the same picture as the current block; and encode or decode the value of the BVD value without signaling or parsing syntax information indicating whether the absolute value of the BVD value is greater than one.

[0224] Clause 12A. The apparatus of Clause 11A, wherein the value is equal to the absolute value of the BVD value minus one.

[0225] Clause 13A. The apparatus of any of Clauses 11A and 12A, wherein the value is represented as a codeword, wherein to encode or decode the value, the processing circuit is configured to perform context-based encoding or decoding of the codeword.

[0226] Clause 14A. An apparatus according to Clause 13A, wherein to perform context-based encoding or decoding on the codeword, the processing circuit is configured to perform context-based encoding or decoding on the first N bins of the codeword and to bypass encode or decode the remaining bins of the codeword.

[0227] Clause 15A. The apparatus of clause 14A, wherein the first N bins comprise first 5 bins of the codeword.

[0228] Clause 16A. The apparatus of any of clauses 13A to 15A, wherein the codeword is an Exponential Golomb codeword.

[0229] Clause 17A. An apparatus according to any one of clauses 11A to 16A, wherein in order to determine that the BVD value is non-zero, the processing circuit is configured to parse a first flag indicating that the BVD value is non-zero, and wherein in order to encode or decode the value based on the BVD value being non-zero without signaling or parsing syntax information indicating whether the absolute value of the BVD value is greater than one, the processing circuit is configured to decode the value without parsing a second flag indicating whether the absolute value of the BVD value is greater than one.

[0230] Clause 18A. A device according to any one of clauses 11A to 17A, wherein the BVD value is a BVD horizontal component value, wherein the value is a horizontal component value, and wherein in order to encode or decode the value based on the BVD value being non-zero, the processing circuit is configured to encode or decode the horizontal component value based on the BVD horizontal component value being non-zero using a first set of one or more contexts, wherein the processing circuit is further configured to encode or decode the vertical component value based on the BVD vertical component value being non-zero using a second set of one or more contexts, wherein one or more contexts in the first set of contexts and one or more contexts in the second set of contexts are different.

[0231] Clause 19A. A device according to any one of clauses 11A to 18A, wherein the picture including the current block includes a first picture, wherein the current block is the first block, and wherein in order to encode or decode the value, the processing circuit is configured to encode or decode the value using a first set of one or more contexts, wherein the processing circuit is further configured to: encode or decode a motion vector difference (MVD) of a motion vector of a second block in a second picture using a second set of one or more contexts, wherein the motion vector of the second block identifies a block in a picture different from the second picture, and wherein the MVD indicates a difference between the motion vector and a motion vector predictor, wherein one or more contexts in the first set of contexts and one or more contexts in the second set of contexts are different.

[0232] Item 20A. A computer-readable storage medium storing thereon instructions that, when executed, cause one or more processors to: determine that a block vector difference (BVD) value is non-zero, wherein the BVD value indicates a difference between a block vector and a block vector predictor for a current block of video data, and wherein the block vector points to a reference block based on samples in the same picture as the current block; and encode or decode the value of the BVD value without signaling or parsing syntax information indicating whether the absolute value of the BVD value is greater than one.

[0233] Clause 21A. The computer-readable storage medium of clause 20A, further comprising instructions that cause the one or more processors to perform the method of any of clauses 1A to 10A.

[0234] Clause 22A. An apparatus comprising means for performing the method of any of Clauses 1A to 10A.

[0235] It should 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 actions or events described are necessary to practice the technique). In addition, in some examples, actions or events may be performed concurrently (e.g., by multithreading, interrupt handling, or multiple processors) rather than sequentially.

[0236] In one or more examples, the described functionality may be implemented in hardware, software, firmware, or any combination thereof. If implemented in software, the functionality may be stored as one or more instructions or codes on a computer-readable medium or sent via a computer-readable medium and executed by a hardware-based processing unit. A computer-readable medium may include a computer-readable storage medium (which corresponds to a tangible medium such as a data storage medium) or a communication medium, which includes, for example, any medium that facilitates the transmission 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-transient 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 retrieve 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.

[0237] By way of example and not limitation, such computer-readable storage media may include RAM, ROM, EEPROM, CD-ROM or other optical disk storage devices, magnetic disk storage devices or other magnetic storage devices, flash memory, or any other medium that can be used to store the 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 the instruction is sent from a website, server or other remote source using a coaxial cable, optical fiber cable, twisted pair, digital subscriber line (DSL) or wireless technology (such as infrared, radio and microwave), the coaxial cable, optical fiber cable, twisted pair, DSL or wireless technology (such as infrared, radio and microwave) is 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 transient media, but are instead directed to non-transient tangible storage media. As used herein, disks and optical disks include compact disks (CDs), laser optical disks, optical optical disks, digital versatile disks (DVDs), floppy disks and blue-ray disks, wherein disks usually reproduce data magnetically, while optical disks reproduce data optically using lasers. Combinations of the above should also be included within the scope of computer-readable media.

[0238] Instructions may be executed by one or more processors, such as one or more DSPs, general-purpose microprocessors, ASICs, FPGAs, or other equivalent integrated or discrete logic circuits. Therefore, the terms "processor" and "processing circuit" 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, these techniques may be fully implemented in one or more circuits or logic elements.

[0239] The techniques of the present disclosure may be implemented in a 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 functional aspects of devices configured to perform the disclosed techniques, but do not necessarily require implementation by different hardware units. Specifically, as described above, the various units may be combined in a codec hardware unit, or the various units may be provided by a collection of interoperable hardware units (including one or more processors as described above) in combination with appropriate software and / or firmware.

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

Claims

1. A method for encoding or decoding video data, the method comprising: determining a block vector difference (BVD) value to be non-zero, wherein the BVD value indicates a difference between a block vector and a block vector predictor for a current block of the video data, and wherein the block vector points to a reference block based on samples in the same picture as the current block; as well as The value of the BVD value is encoded or decoded without signaling or parsing syntax information indicating whether the absolute value of the BVD value is greater than one.

2. The method of claim 1, wherein the value is equal to the absolute value of the BVD value minus one. 3 . The method of claim 1 , wherein the value is represented as a codeword, wherein encoding or decoding the value comprises context-based encoding or decoding of the codeword.

4. The method of claim 3, wherein context-based encoding or decoding of the codeword comprises context-based encoding or decoding of first N bins of the codeword and bypass encoding or decoding of remaining bins of the codeword.

5. The method of claim 4, wherein the first N bits comprise first 5 bits of the codeword. The method of claim 3 , wherein the codeword is an Exponential Golomb codeword.

7. The method according to claim 1, wherein determining that the BVD value is non-zero comprises parsing a first flag indicating that the BVD value is non-zero, and Wherein encoding or decoding the value based on the BVD value being non-zero without signaling or parsing syntax information indicating whether the absolute value of the BVD value is greater than one includes decoding the value without parsing a second flag indicating whether the absolute value of the BVD value is greater than one.

8. The method according to claim 1, wherein the BVD value is a BVD horizontal component value, where the values ​​are horizontal component values, and wherein encoding or decoding the value based on the BVD value being non-zero comprises encoding or decoding the horizontal component value based on the BVD horizontal component value being non-zero using a first set of one or more contexts, The method also includes encoding or decoding the vertical component value based on the BVD vertical component value being non-zero using a second set of one or more contexts, One or more contexts in the first set of contexts and one or more contexts in the second set of contexts are different.

9. The method of claim 1, wherein the picture including the current block includes a first picture, wherein the current block is a first block, and wherein encoding or decoding the value includes encoding or decoding the value using a first set of one or more contexts, the method further comprising: encoding or decoding a motion vector difference (MVD) of a motion vector for a second block in a second picture using a second set of one or more contexts, wherein the motion vector for the second block identifies a block in a different picture than the second picture, and wherein the MVD indicates a difference between the motion vector and a motion vector predictor, One or more contexts in the first set of contexts and one or more contexts in the second set of contexts are different.

10. The method of claim 1, wherein encoding or decoding the value comprises decoding the value, the method further comprising: determining the block vector of the current block based on the BVD value; determining a prediction block based on the block vector; receiving residual information indicating a difference between the predicted block and the current block; as well as The current block is reconstructed based on the residual information and the prediction block.

11. A device for encoding or decoding video data, the device comprising: a memory configured to store video data; and A processing circuit, the processing circuit being configured to: determining a block vector difference (BVD) value to be non-zero, wherein the BVD value indicates a difference between a block vector and a block vector predictor for a current block of the video data, and wherein the block vector points to a reference block based on samples in the same picture as the current block; as well as The value of the BVD value is encoded or decoded without signaling or parsing syntax information indicating whether the absolute value of the BVD value is greater than one.

12. The apparatus of claim 11, wherein the value is equal to the absolute value of the BVD value minus one.

13. The apparatus of claim 11, wherein the value is represented as a codeword, wherein to encode or decode the value, the processing circuit is configured to perform context-based encoding or decoding on the codeword.

14. The apparatus of claim 13, wherein to perform context-based encoding or decoding on the codeword, the processing circuit is configured to perform context-based encoding or decoding on the first N bins of the codeword, and to bypass encode or decode the remaining bins of the codeword.

15. The apparatus of claim 14, wherein the first N bins comprise first 5 bins of the codeword.

16. The apparatus of claim 13, wherein the codeword is an Exponential Golomb codeword.

17. The device according to claim 11, Wherein, in order to determine that the BVD value is non-zero, the processing circuit is configured to parse a first flag indicating that the BVD value is non-zero, and Wherein, in order to encode or decode the value based on the BVD value being non-zero without signaling or parsing syntax information indicating whether the absolute value of the BVD value is greater than one, the processing circuit is configured to decode the value without parsing a second flag indicating whether the absolute value of the BVD value is greater than one.

18. The device according to claim 11, wherein the BVD value is a BVD horizontal component value, where the values ​​are horizontal component values, and wherein in order to encode or decode the value based on the BVD value being non-zero, the processing circuit is configured to encode or decode the horizontal component value based on the BVD horizontal component value being non-zero using a first set of one or more contexts, wherein the processing circuit is further configured to encode or decode the vertical component value based on the BVD vertical component value being non-zero using a second set of one or more contexts, One or more contexts in the first set of contexts and one or more contexts in the second set of contexts are different.

19. The apparatus of claim 11, wherein the picture including the current block includes a first picture, wherein the current block is a first block, and wherein to encode or decode the value, the processing circuit is configured to encode or decode the value using a first set of one or more contexts, wherein the processing circuit is further configured to: encoding or decoding a motion vector difference (MVD) of a motion vector for a second block in a second picture using a second set of one or more contexts, wherein the motion vector for the second block identifies a block in a different picture than the second picture, and wherein the MVD indicates a difference between the motion vector and a motion vector predictor, One or more contexts in the first set of contexts and one or more contexts in the second set of contexts are different.

20. A computer-readable storage medium having stored thereon instructions which, when executed, cause one or more processors to: determining that a block vector difference (BVD) value is non-zero, wherein the BVD value indicates a difference between a block vector and a block vector predictor for a current block of video data, and wherein the block vector points to a reference block based on samples in the same picture as the current block; and The value of the BVD value is encoded or decoded without signaling or parsing syntax information indicating whether the absolute value of the BVD value is greater than one.