Intra-block copy merging data syntax for video codecs

By introducing the maximum number of syntax elements of intra-frame block copy merging mode into video coding and decoding technology, the problem of insufficient coding and decoding efficiency in processing different types of content in the existing technology is solved, and efficient coding and decoding of natural and screen content is achieved. , improving the flexibility and efficiency of the encoder and decoder.

CN113748679BActive Publication Date: 2024-10-25QUALCOMM INC
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202080028288.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Priority Date
2020-04-14
Filing Date
2020-04-15
Publication Date
2024-10-25
Estimated Expiration
2040-04-15

AI Technical Summary

Technical Problem

When existing video encoding and decoding technology processes different types of content, the encoding and decoding efficiency of intra-frame block copy merging mode is insufficient, especially the flexibility and efficiency differences between natural content and screen content are large, resulting in encoder-decoder Flexibility and efficiency are limited.

Method used

By introducing a maximum number of syntax elements for intra block copy merging mode, video encoders and decoders are allowed to independently indicate the number of intra block copy merging candidates, dynamically adjusting the number of merging candidates according to content type to improve encoding and decoding efficiency.

Benefits of technology

Improved video encoding and decoding efficiency for natural content and screen content, enhanced flexibility in processing multiple types of content, and improved encoding and decoding performance in intra-block copy mode.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113748679B_ABST
    Figure CN113748679B_ABST
Patent Text Reader

Abstract

A method for encoding and decoding video data, the method comprising: encoding and decoding a first syntax element specifying a value for deriving a maximum number of intra-block copy merge candidates, deriving the maximum number of intra-block copy merge candidates based on the value of the first syntax element, and encoding and decoding a first video data block using an intra-block copy mode according to the maximum number of intra-block copy merge candidates.
Need to check novelty before this filing date? Find Prior Art

Description

[0001] This application claims priority to U.S. Patent Application No. 16 / 847,918, filed on April 14, 2020, which claims the benefit of U.S. Provisional Application No. 62 / 836,208, filed on April 19, 2019, the entire contents of each of which are incorporated herein by reference. Technical Field

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

[0003] Digital video capabilities can be incorporated into a wide range of devices, including digital televisions, digital direct broadcast systems, wireless broadcast systems, personal digital assistants (PDAs), laptop or desktop computers, tablet computers, e-book readers, digital cameras, digital recording devices, digital media players, video game devices, video game consoles, cellular or satellite radio telephones, so-called "smart phones", video teleconferencing devices, video streaming devices, etc. Digital video devices implement video coding (coding) technology, such as those described in the standards defined by MPEG-2, MPEG-4, ITU-TH.263, ITU-TH.264 / MPEG-4, Part 10, Advanced Video Codec (AVC), ITU-TH.265 / High Efficiency Video Codec (HEVC), and extensions of such standards. By implementing such video coding technology, video devices can more efficiently send, receive, encode, decode and / or store digital video information.

[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 codec tree units (CTUs), codec units (CUs), and / or codec nodes. Video blocks in an intra-frame codec (I) slice of a picture are encoded using spatial prediction of reference samples in neighboring blocks in the same picture. Video blocks in an inter-frame codec (P or B) slice of a picture may use spatial prediction of reference samples in neighboring blocks in the same picture or temporal prediction 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 video codecs. More specifically, the present disclosure describes video codec techniques that can improve syntax signaling and / or improve codec efficiency of intra-frame block copy (IBC) merge mode. The techniques of the present disclosure can be used with the multi-function video codec standard currently under development and other future video codec standards.

[0006] Intra block copy merge mode is a motion vector (or block vector) prediction mode for intra block copy mode. In intra block copy mode, the current video data block is predicted from another video data block identified by a motion vector in the same picture as the current video block. This is different from conventional merge inter prediction, which predicts motion vectors for conventional translational inter prediction. In conventional translational inter prediction, the current video data block is predicted from another prediction video data block in a different picture, where the prediction video data block is identified by a motion vector, a reference picture list, and a reference picture index.

[0007] In some examples of the present disclosure, a video codec (e.g., a video encoder and a video decoder) may be configured to encode (i.e., encode or decode) a syntax element that directly or indirectly indicates a maximum number of intra-block copy merge candidates to be used to determine a motion / block vector for encoding and decoding a portion (e.g., a block, a slice, a picture, etc.) of video data. The syntax element is separate from any syntax elements that may indicate a maximum number of merge candidates for other prediction modes (e.g., conventional merge inter prediction). By using a separate syntax element for the maximum number of intra-block copy merge candidates for the intra-block copy mode, the techniques of the present invention may provide greater flexibility and / or higher codec efficiency when encoding and decoding video data using the intra-block copy mode.

[0008] For example, for natural content (e.g., a scene captured by a camera), encoding and decoding video data using the intra-block copy mode can be performed with higher codec efficiency using fewer merge candidates than the conventional merge mode. Conversely, for screen content (e.g., a scene generated by a computer), encoding and decoding video data using the intra-block copy mode can be performed with higher codec efficiency using more merge candidates than the conventional merge mode. Having a separate syntax element indicating the maximum number of intra-block copy merge candidates for the intra-block copy mode can provide flexibility and can improve the codec efficiency of video codecs that handle multiple different types of content (e.g., natural content versus screen content).

[0009] In one example, the present disclosure describes a method of decoding video data, the method comprising: decoding a first syntax element that specifies a value for deriving a maximum number of intra-block copy merge candidates, deriving the maximum number of intra-block copy merge candidates based on the value of the first syntax element, and decoding a first video data block using an intra-block copy mode according to the maximum number of intra-block copy merge candidates.

[0010] In another example, the present disclosure describes an apparatus configured to decode video data, the apparatus comprising: a memory configured to store a first video data block, and one or more processors implemented in circuitry and in communication with the memory, the one or more processors configured to: decode a first syntax element specifying a value for deriving a maximum number of intra-block copy merge candidates, derive the maximum number of intra-block copy merge candidates based on the value of the first syntax element, and decode the first video data block using an intra-block copy mode according to the maximum number of intra-block copy merge candidates.

[0011] In another example, the present disclosure describes an apparatus configured to decode video data, the apparatus comprising: means for decoding a first syntax element specifying a value for deriving a maximum number of intra-block copy merge candidates, means for deriving the maximum number of intra-block copy merge candidates based on the value of the first syntax element, and means for decoding a first video data block using an intra-block copy mode according to the maximum number of intra-block copy merge candidates.

[0012] In another example, the present disclosure describes a non-transitory computer-readable storage medium storing instructions that, when executed, cause one or more processors of a device to be configured to: decode a first syntax element that specifies a value for deriving a maximum number of intra-block copy merge candidates, derive the maximum number of intra-block copy merge candidates based on the value of the first syntax element, and decode a first video data block using an intra-block copy mode according to the maximum number of intra-block copy merge candidates.

[0013] In another example, the present disclosure describes an apparatus configured to encode video data, the apparatus comprising: a memory configured to store a first video data block, and one or more processors implemented in circuitry and in communication with the memory, the one or more processors configured to: determine a maximum number of intra-block copy merge candidates for the first video data block, encode a first syntax element specifying a value for deriving the maximum number of intra-block copy merge candidates, and encode the first video data block using an intra-block copy mode according to the maximum number of intra-block copy merge candidates.

[0014] The details of one or more examples are set forth in the accompanying drawings and the description below. Other features, objects, and advantages will be apparent from the description, drawings, and claims. BRIEF DESCRIPTION OF THE DRAWINGS

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

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

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

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

[0019] Figure 5 is a conceptual diagram illustrating an exemplary merge mode with a motion vector difference search point.

[0020] Figure 6 It is a conceptual diagram showing the location of the inherited affine motion predictor.

[0021] Figure 7 is a conceptual diagram showing inheritance of control point motion vectors.

[0022] Figure 8 is a conceptual diagram showing the positions of candidate positions for constructing an affine merge pattern.

[0023] Fig. 9 is a conceptual diagram showing inter-frame prediction based on triangulation.

[0024] Fig.10 is a conceptual diagram showing spatial and temporal neighboring blocks used to construct a unidirectional prediction candidate list.

[0025] Fig.11 is a flow chart illustrating an exemplary encoding method.

[0026] Fig.12 is a flow chart illustrating an exemplary decoding method.

[0027] Fig.13 is a flow chart illustrating an exemplary decoding method according to the techniques of this disclosure.

[0028] Fig.14is a flowchart illustrating an exemplary encoding method according to the techniques of this disclosure. DETAILED DESCRIPTION

[0029] In general, the present disclosure describes techniques for video codecs. More specifically, the present disclosure describes video codec techniques that can improve syntax signaling and / or improve codec efficiency of intra-frame block copy (IBC) merge mode. The techniques of the present disclosure can be used with the multi-function video codec standard currently under development and other future video codec standards.

[0030] Intra block copy merge mode is a motion vector (or block vector) prediction mode for intra block copy mode. In intra block copy mode, the current video data block is predicted from another video data block identified by a motion vector in the same picture as the current video block. This is different from conventional merge inter prediction, which predicts motion vectors for conventional translational inter prediction. In conventional translational inter prediction, the current video data block is predicted from another prediction video data block in a different picture, where the prediction video data block is identified by a motion vector, a reference picture list, and a reference picture index.

[0031] In some examples of the present disclosure, a video codec (e.g., a video encoder and a video decoder) may be configured to encode (i.e., encode or decode) a syntax element that directly or indirectly indicates a maximum number of intra-block copy merge candidates to be used to determine a motion vector for encoding and decoding a portion of video data (e.g., a block, a slice, a picture, etc.). The syntax element is separate from any syntax elements that may indicate a maximum number of merge candidates for other prediction modes (e.g., conventional merge inter prediction). By using a separate syntax element for the maximum number of intra-block copy merge candidates for the intra-block copy mode, the techniques of the present invention may provide greater flexibility and / or higher codec efficiency when encoding and decoding video data using the intra-block copy mode.

[0032] For example, for natural content, encoding and decoding of video data using the intra-block copy mode can be performed with higher codec efficiency using fewer merge candidates than the conventional merge mode. Conversely, for screen content, encoding and decoding of video data using the intra-block copy mode can be performed with higher codec efficiency using more merge candidates than the conventional merge mode. Having a separate syntax element indicating the maximum number of intra-block copy merge candidates for the intra-block copy mode can provide flexibility and can improve the codec efficiency of video codecs that handle multiple different types of content (e.g., natural content versus screen content).

[0033] As will be explained in more detail below, according to an example of the present disclosure, a video encoder and / or a video decoder may be configured to: encode and decode a first syntax element that specifies a value for deriving a maximum number of intra-block copy merge candidates, derive the maximum number of intra-block copy merge candidates based on the value of the first syntax element, and encode and decode a first video data block using an intra-block copy mode according to the maximum number of intra-block copy merge candidates.

[0034] Figure 1 1 is a block diagram illustrating an exemplary video encoding and decoding system 100 that can perform the techniques of the present disclosure. The techniques of the present invention generally relate to encoding and decoding (encoding and / or decoding) video data. Generally, video data includes any data used to process video. Therefore, video data can include original unencoded video, encoded video, decoded (e.g., reconstructed) video, and video metadata, such as signaling data.

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

[0036] exist Figure 1 In 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 destination 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 destination device 116 can be configured to apply a technique for encoding and decoding video data using an intra-block copy mode. Therefore, the source device 102 represents an example of a video encoding device, and the destination device 116 represents an example of a video decoding device. In other examples, the source device and the destination 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 destination device 116 may interface with an external display device instead of including an integrated display device.

[0037] like Figure 1The system 100 shown is only an example. In general, any digital video encoding and / or decoding device can perform techniques for encoding and decoding video data using an intra-frame block copy mode. The source device 102 and the destination device 116 are only examples of such a codec device, wherein the source device 102 generates codec video data to send to the destination device 116. The present disclosure refers to a "codec" device as a device that performs data encoding and decoding (encoding and / or decoding). Therefore, the video encoder 200 and the video decoder 300 represent examples of codec devices, specifically, examples of video encoders and video decoders, respectively. In some examples, the source device 102 and the destination device 116 can operate in a substantially symmetrical manner, so that each of the source device 102 and the destination device 116 includes 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 destination device 116, for example, for video streaming, video playback, video broadcasting, or video telephony.

[0038] In general, video source 104 represents a source of video data (i.e., original, unencoded video data) and provides a series of sequential pictures (also referred to as "frames") of video data to video encoder 200, which encodes the data of the pictures. Video source 104 of source device 102 may include a video capture device (such as a camera), a video archive containing previously captured original 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 live 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 into a codec order for encoding and decoding according to a receiving order (sometimes referred to as a "display order"). Video encoder 200 may generate a bitstream containing encoded video data. Source device 102 may then output the encoded video data onto computer-readable medium 110 via output interface 108 for receipt and / or retrieval by, for example, input interface 122 of destination device 116 .

[0039] The memory 106 of the source device 102 and the memory 120 of the destination device 116 represent general purpose memories. In some examples, the memories 106, 120 can store original video data, for example, original video from the video source 104 and original, decoded video data from the video decoder 300. Additionally or alternatively, the memories 106, 120 can store software instructions executable 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.

[0040] The computer-readable medium 110 may represent any type of medium or device capable of transmitting the encoded video data from the source device 102 to the destination device 116. In one example, the computer-readable medium 110 represents a communication medium that enables the source device 102 to transmit the encoded video data directly to the destination device 116 in real time, for example, via a radio frequency network or a computer-based network. The output interface 108 may demodulate the transmission signal containing the encoded video data, and the input interface 122 may demodulate the received transmission signal according to a communication standard such as a wireless communication protocol. The communication medium may include any wireless or wired communication medium, such as a radio frequency (RF) spectrum or one or more physical transmission lines. The communication medium may form part of a packet-based network, such as a local area network, a wide area network, or a global network such as the Internet. The communication medium may include a router, a switch, a base station, or any other device that can be used to facilitate communication from the source device 102 to the destination device 116.

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

[0042] 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. Destination device 116 may access the stored video data from file server 114 via streaming or downloading. File server 114 may be any type of server device capable of storing encoded video data and sending the encoded video data to destination device 116. File server 114 may represent a network server (e.g., for a website), a file transfer protocol (FTP) server, a content delivery network device, or a network attached storage (NAS) device. Destination device 116 may access the encoded video data from file server 114 via any standard data connection, including an Internet connection. This may include a wireless channel (e.g., a Wi-Fi connection), a wired connection (e.g., a digital subscriber line (DSL), a cable modem, etc.), or a combination of both that is suitable for accessing the encoded video data stored on file server 114. File server 114 and input interface 122 may be configured to operate according to a streaming protocol, a downloading transmission protocol, or a combination thereof.

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

[0044] The techniques disclosed herein can be applied to support video encoding and decoding for 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 data storage media, decoding of digital video stored on data storage media, or other applications.

[0045] The input interface 122 of the destination device 116 receives the encoded video bitstream from the computer-readable medium 110 (e.g., a communication medium, a storage device 112, a file server 114, etc.). The encoded video bitstream may contain signaling information defined by the video encoder 200, which is also used by the video decoder 300, such as syntax elements with values ​​describing characteristics and / or processing of video blocks or other codec 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.

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

[0047] The video encoder 200 and the video decoder 300 can each be implemented as any of a variety of suitable encoder and / or decoder circuits, such as one or more microprocessors, digital signal processors (DSPs), application specific integrated circuits (ASICs), field programmable gate arrays (FPGAs), separation logic, software, hardware, firmware, or any combination thereof. When these techniques are partially implemented in software, the device can store instructions for the software in a suitable non-transitory computer-readable medium and use one or more processors to execute the instructions in hardware to perform the techniques 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.

[0048] The video encoder 200 and the video decoder 300 may operate according to a video codec standard, such as ITU-T H.265 (also known as High Efficiency Video Codec (HEVC)) or an extension thereof, such as a multi-view and / or scalable video codec extension. Alternatively, the video encoder 200 and the video decoder 300 may operate according to other proprietary or industry standards, such as the Joint Exploration Test Model (JEM) or ITU-T H.266, also known as Versatile Video Codec (VVC). A draft of the VVC standard is described in "Versatile Video Coding (Draft 5)" by Bross et al. at the 14th meeting of the Joint Video Experts Group (JVET) JVET-N1001-v2 of ITU-TSG 16WP3 and ISO / IEC JTC 1 / SC 29 / WG 11 in Geneva, Switzerland from March 19 to 27, 2019 (hereinafter referred to as "VVC Draft 5"). However, the technology of the present disclosure is not limited to any particular codec standard.

[0049] In general, the video encoder 200 and the video decoder 300 can perform block-based encoding and decoding of pictures. The term "block" generally refers to a structure that includes data to be processed (e.g., encoded, decoded, or otherwise used in the encoding and / or decoding process). For example, a block may include a two-dimensional matrix of samples of luminance and / or chrominance data. Typically, the video encoder 200 and the video decoder 300 can encode and decode video data represented in a YUV (e.g., Y, Cb, Cr) format. That is, the video encoder 200 and the video decoder 300 can encode and decode luminance and chrominance components instead of encoding and decoding red, green, and blue (RGB) data of samples of a picture, wherein the chrominance components may include both red hue and blue hue chrominance components. In some examples, the video encoder 200 converts the received RGB 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.

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

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

[0052] 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 encoder (such as the video encoder 200) partitions a picture into a plurality of codec tree units (CTUs). The video encoder 200 may partition the CTU according to a tree structure such as a quadtree-binary tree (QTBT) structure or a multi-type tree (MTT) structure. The QTBT structure eliminates the concept of multiple partition types, such as the separation between CU, PU, ​​and TU of HEVC. The QTBT structure includes two levels: a first level partitioned according to quadtree partitioning, and a second level partitioned according to binary tree partitioning. The root node of the QTBT structure corresponds to the CTU. The leaf nodes of the binary tree correspond to codec units (CUs).

[0053] 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 partitioning is a partitioning of a block into three sub-blocks. In some examples, the ternary tree or ternary tree partitioning divides the block into three sub-blocks without dividing the original block through the center. The partitioning types in MTT (e.g., QT, BT, and TT) can be symmetric or asymmetric.

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

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

[0056] In some examples, a CTU includes a codec tree block (CTB) of luma samples, two corresponding CTBs of chroma samples of a picture with three sample arrays, or a CTB of samples of a monochrome picture or a picture encoded and decoded using three separate color planes and syntax structures for encoding and decoding the samples. A CTB can be an N×N 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 picture in 4:2:0, 4:2:2, or 4:4:4 color format, or an array or a single sample of an array that makes up a picture in monochrome format. In some examples, a codec block is an M×N block of samples for some M and N values, so that the division of a CTB into codec blocks is a partition.

[0057] Blocks (e.g., CTUs or CUs) can 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 whose height is equal to the picture height and whose width is 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 whose height is specified by a syntax element (e.g., such as in a picture parameter set) and whose width is equal to the picture width.

[0058] In some examples, a tile may be partitioned into multiple bricks, each of which may include one or more CTU rows within the tile. A tile that is not partitioned into multiple bricks may also be referred to as a brick. However, a brick that is a true subset of a tile may not be referred to as a tile.

[0059] Tiles in a picture can also be arranged into slices. A slice can be an integer number of tiles that can be contained exclusively in a single network abstraction layer (NAL) unit of a picture. In some examples, a slice includes a continuous sequence of multiple complete tiles or just complete tiles of one tile.

[0060] This disclosure may use "N×N" and "N by N" interchangeably to refer to the sample size of a block (such as a CU or other video block) in terms of vertical and horizontal dimensions, for example, 16×16 samples or 16 by 16 samples. In general, a 16×16 CU will have 16 samples in the vertical direction (y=16) and 16 samples in the horizontal direction (x=16). Similarly, an N×N CU 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 contain N×M samples, where M is not necessarily equal to N.

[0061] The video encoder 200 encodes the video data of the CU representing prediction and / or residual information and other information. The prediction information indicates how the CU will be predicted 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.

[0062] 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 based on data of a previously coded picture, while intra-frame prediction generally refers to predicting a CU based on previously coded data of the same picture. In order to perform inter-frame prediction, the video encoder 200 may generate a prediction block using one or more motion vectors. The video encoder 200 may generally perform a motion search to identify a reference block that closely matches the CU, for example, 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.

[0063] 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).

[0064] To perform intra prediction, the video encoder 200 can select an intra prediction mode to generate a prediction block. Some examples of VVC provide 67 intra prediction modes, including various directional modes, as well as planar mode and 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 samples of the current block are predicted. Assuming that the video encoder 200 encodes and decodes CTUs and CUs in a raster scan order (from left to right, from top to bottom), such samples can typically be above, above and to the left, or to the left of the current block in the same picture as the current block.

[0065] 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 can encode data indicating which of the various available inter-frame prediction modes is used, as well as motion information for the corresponding mode. For example, for unidirectional or bidirectional inter-frame prediction, the video encoder 200 can encode the motion vector using advanced motion vector prediction (AMVP) or merge mode. The video encoder 200 can use a similar mode to encode the motion vector for affine motion compensation mode.

[0066] After a prediction such as intra prediction or inter prediction of a block, the video encoder 200 may calculate residual data for the block. The residual data (such as a residual block) represents a sample-by-sample difference between a block and a prediction block of the block formed using a corresponding prediction mode. The video encoder 200 may apply one or more transforms to the residual block to generate transformed data in a transform domain rather than a sample domain. For example, the video encoder 200 may apply a discrete cosine transform (DCT), an integer transform, a wavelet transform, or a conceptually similar transform to the residual video data. In addition, the video encoder 200 may apply a secondary transform after a primary 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.

[0067] As described above, after any transforms that produce transform coefficients, the video encoder 200 may perform quantization of the transform coefficients. Quantization generally refers to the process of quantizing transform coefficients to potentially reduce the amount of data used to represent the transform coefficients, thereby providing further compression. By performing the quantization process, the video encoder 200 may reduce the bit depth associated with some or all transform coefficients. For example, the video encoder 200 may round down an n-bit value to an m-bit value during quantization, where n is greater than m. In some examples, to perform quantization, the video encoder 200 may perform a bitwise right shift on the value to be quantized.

[0068] After quantization, the video encoder 200 can scan the transform coefficients to generate a one-dimensional vector from a two-dimensional matrix including the quantized transform coefficients. The scan can 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 can 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 can perform adaptive scanning. After scanning the quantized transform coefficients to form a one-dimensional vector, the video encoder 200 can entropy encode the one-dimensional vector, for example, according to context adaptive binary arithmetic coding (CABAC). The video encoder 200 can also entropy encode the values ​​of the syntax elements describing the metadata associated with the encoded video data for use by the video decoder 300 when decoding the video data.

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

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

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

[0072] In general, the video decoder 300 performs a process that is reciprocal to 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 of the bitstream in a manner substantially similar to but reciprocal to the CABAC encoding process of the video encoder 200. The syntax elements may define partitioning information for partitioning a picture into CTUs, and partition each CTU according to a corresponding partitioning structure (such as a QTBT structure) to define CUs of the CTU. The syntax elements may also define prediction and residual information for a block (e.g., CU) of video data.

[0073] 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 or inter-frame prediction) and related prediction information (e.g., motion information for inter-frame prediction) to form a prediction block for the block. The video decoder 300 may then combine the prediction block and the residual block (on a sample-by-sample basis) to reproduce the original block. The video decoder 300 may perform additional processing, such as performing a deblocking process to reduce visual artifacts along block boundaries.

[0074] According to the technology of the present disclosure, the video decoder 300 can be configured to: decode a first syntax element that specifies a value for deriving a maximum number of intra-block copy merge candidates, derive the maximum number of intra-block copy merge candidates based on the value of the first syntax element, and decode the first video data block using the intra-block copy mode according to the maximum number of intra-block copy merge candidates. Similarly, in a reciprocal manner, the video encoder 200 can be configured to: determine the maximum number of intra-block copy merge candidates for the first video data block, encode the first syntax element that specifies a value for deriving the maximum number of intra-block copy merge candidates, and encode the first video data block using the intra-block copy mode according to the maximum number of intra-block copy merge candidates.

[0075] The present disclosure may generally refer to "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 the bitstream. Generally, signaling refers to generating values ​​in the bitstream. As described above, the source device 102 may transmit the bitstream to the destination 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 destination device 116.

[0076] Figure 2A and Figure 2B is a conceptual diagram showing an exemplary quadtree binary tree (QTBT) structure 130 and a corresponding codec tree unit (CTU) 132. Solid lines represent quadtree splits, and dashed lines represent binary tree splits. In each split (i.e., non-leaf) node of the binary tree, a flag is signaled to indicate which split type (i.e., horizontal or vertical) is used, where in this example, 0 represents horizontal splitting and 1 represents vertical splitting. For quadtree splitting, there is no need to indicate the split type because the quadtree node splits a block horizontally and vertically into 4 equally sized sub-blocks. Therefore, the video encoder 200 can encode syntax elements (such as split information) for the region tree level (i.e., solid lines) of the QTBT structure 130 and syntax elements (such as split information) for the prediction tree level (i.e., dashed lines) of the QTBT structure 130 and the video decoder 300 can decode it. For a CU represented by a terminal leaf node of the QTBT structure 130 , the video encoder 200 may encode video data such as prediction and transform data and the video decoder 300 may decode it.

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

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

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

[0080] Figure 3 is a block diagram illustrating an example video encoder 200 that may perform the techniques of this disclosure. Figure 3It is provided for the purpose of explanation and should not be considered as limiting the techniques widely illustrated and described in this disclosure. For the purpose of explanation, this disclosure describes the video encoder 200 according to the techniques of JEM, VVC (ITU-TH.266, under development) and HEVC (ITU-TH.265). However, the techniques of this disclosure can be performed by video encoding devices configured according to other video coding standards.

[0081] exist Figure 3 In the example of , the video encoder 200 includes a video data memory 230, a mode selection unit 202, a residual generation unit 204, a transform processing unit 206, a quantization unit 208, an inverse quantization unit 210, an inverse transform processing unit 212, a reconstruction unit 214, a filter unit 216, a decoded picture buffer (DPB) 218, and an entropy coding unit 220. Any 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 processing circuits. 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 of an FPGA, an ASIC. In addition, the video encoder 200 may include additional or alternative processors or processing circuits to perform these and other functions.

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

[0083] In the present disclosure, references to the video data memory 230 should not be interpreted as limited to memory internal to the video encoder 200, unless specifically described as such, or to memory external to the video encoder 200, unless specifically described as such. Instead, references to the video data memory 230 should be understood as references to memory storing video data received by the video encoder 200 for encoding (e.g., video data of 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 .

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

[0085] 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 where 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) in the video encoder 200 may store such instructions.

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

[0087] Mode selection unit 202 includes motion estimation unit 222, motion compensation unit 224, intra prediction unit 226, and intra block copy (IBC) unit 227. In some examples, IBC unit 227 may be part of motion estimation unit 222 and / or motion compensation unit 224. 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 affine unit, a linear model (LM) unit, etc.

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

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

[0090] In general, the mode selection unit 202 also controls its components (e.g., the motion estimation unit 222, the motion compensation unit 224, the intra prediction unit 226, and the IBC unit 227) 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). For inter prediction of 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 coded pictures stored in the DPB 218). Specifically, the motion estimation unit 222 may calculate a value representing the degree of similarity of the potential reference block to the current block, for example, based on the sum of absolute differences (SAD), the sum of squared differences (SSD), the mean absolute difference (MAD), the mean squared difference (MSD), etc. The motion estimation unit 222 may generally perform these calculations using the sample-by-sample difference between the current block and the reference block under consideration. The motion estimation unit 222 may identify the reference block having the lowest value produced by these calculations, indicating the reference block that most closely matches the current block.

[0091] The motion estimation unit 222 may form one or more motion vectors (MVs) that define the position of the reference block in the reference picture relative to the position of the current block in the current picture. The motion estimation unit 222 may then provide the motion vectors to the motion compensation unit 224. For example, for unidirectional inter prediction, the motion estimation unit 222 may provide a single motion vector, while for bidirectional inter prediction, the motion estimation unit 222 may provide two motion vectors. The motion compensation unit 224 may then use the motion vectors to generate a prediction block. For example, the motion compensation unit 224 may use the motion vectors to retrieve data for the reference block. As another example, if the motion vectors have fractional sample precision, the motion compensation unit 224 may interpolate the values ​​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.

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

[0093] The mode selection unit 202 may also determine to use the IBC unit 227 to encode the video data block using the intra-block copy (IBC) mode. Generally speaking, in the IBC mode, the video encoder 200 may determine a prediction block for a current block, where the prediction block is in the same frame (picture) as the current block. The prediction block may be identified by a motion vector (also referred to as a block vector). In some examples, the location of the prediction block available for the IBC mode is limited to the location of the already encoded block. The IBC unit 227 may be configured to encode the video data using the techniques described in more detail below. For example, the IBC unit 227 may be configured to: determine a maximum number of intra-block copy merge candidates for a first video data block, encode a first syntax element specifying a value for deriving the maximum number of intra-block copy merge candidates, and encode the first video data block using the intra-block copy mode according to the maximum number of intra-block copy merge candidates.

[0094] The mode selection unit 202 provides the prediction block to the residual generation unit 204. The residual generation unit 204 receives the original, uncoded version of the current block from the video data memory 230 and 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 code modulation (RDPCM). In some examples, the residual generation unit 204 may be formed using one or more subtractor circuits that perform binary subtraction.

[0095] In the example where the mode selection unit 202 partitions the CU into PUs, each PU may be associated with a luma prediction unit and a corresponding chroma prediction unit. The video encoder 200 and the video decoder 300 may support PUs of various sizes. As described above, the size of the CU may refer to the size of the luma codec block of the CU, and the size of the PU may refer to the size of the luma prediction unit of the PU. Assuming that the size of a particular CU is 2N×2N, the video encoder 200 may support PU sizes of 2N×2N or N×N for intra-frame prediction, and symmetric PU sizes of 2N×2N, 2N×N, N×2N, N×N or similar sizes for inter-frame prediction. The video encoder 200 and the video decoder 300 may also support asymmetric partitioning of PU sizes of 2N×nU, 2N×nD, nL×2N, and nR×2N for inter-frame prediction.

[0096] In an example where the mode selection unit does not further partition the CU into PUs, each CU may be associated with a luma codec block and a corresponding chroma codec block. As described above, the size of a CU may refer to the size of the luma codec block of the CU. The video encoder 200 and the video decoder 120 may support CU sizes of 2N×2N, 2N×N, or N×2N.

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

[0098] As described above, the residual generation unit 204 receives video data of 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.

[0099] 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 multiple 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.

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

[0101] 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 possibly with a certain 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 of the prediction block generated by the mode selection unit 202 to generate a reconstructed block.

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

[0103] The video encoder 200 stores the reconstructed blocks in the DPB 218. For example, in an example where the operation of the filter unit 216 is not required, the reconstruction unit 214 can store the reconstructed blocks to the DPB 218. In an example where the operation of the filter unit 216 is required, the filter unit 216 can store the filtered reconstructed blocks to 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 inter-predict blocks of subsequent encoded pictures. In addition, the intra-prediction unit 226 and / or the IBC unit 227 can use the reconstructed blocks in the DPB 218 of the current picture to intra-predict other blocks in the current picture.

[0104] In general, the entropy coding unit 220 may entropy encode syntax elements received from other functional components of the video encoder 200. For example, the entropy coding unit 220 may entropy encode a block of quantized transform coefficients from the quantization unit 208. As another example, the entropy coding unit 220 may entropy encode a prediction syntax element (e.g., motion information for inter-frame prediction or intra-frame mode information for intra-frame prediction) from the mode selection unit 202. The entropy coding unit 220 may perform one or more entropy coding operations on syntax elements as another example of video data to generate entropy-encoded data. For example, the entropy coding unit 220 may perform a context-adaptive variable length coding (CAVLC) operation, a CABAC operation, a variable-to-variable (V2V) length coding operation, a syntax-based context-adaptive binary arithmetic coding (SBAC) operation, a probability interval partitioning entropy (PIPE) coding operation, an exponential-Golomb coding operation, or other types of entropy coding operations on the data. In some examples, the entropy coding unit 220 may operate in a bypass mode in which the syntax elements are not entropy encoded.

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

[0106] The operations described above are described for blocks. This description should be understood as operations on luma codec blocks and / or chroma codec blocks. As described above, in some examples, the luma codec block and the chroma codec block are the luma and chroma components of the CU. In some examples, the luma codec block and the chroma codec block are the luma and chroma components of the PU.

[0107] In some examples, the operations performed for the luma codec block do not need to be repeated for the chroma codec block. As an example, the operations of identifying the motion vector (MV) and reference picture for the luma codec block do not need to be repeated to identify the MV and reference picture for the chroma block. Instead, the MV for the luma codec block can be scaled to determine the MV for the chroma block, and the reference picture can be the same. As another example, the intra prediction process can be the same for the luma codec block and the chroma codec block.

[0108] The video encoder 200 represents an example of a device configured to determine a maximum number of intra block copy merge candidates for a first block of video data, encode a first syntax element that specifies a value for deriving the maximum number of intra block copy merge candidates, and encode the first block of video data using an intra block copy mode according to the maximum number of intra block copy merge candidates.

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

[0110] exist Figure 4 In the example of , the video decoder 300 includes a codec 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. In addition, the video decoder 300 may include additional or alternative processors or processing circuits to perform these and other functions.

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

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

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

[0114] Show Figure 4 The various units shown in the figure help to understand the operations performed by the video decoder 300. These units can be implemented as fixed function circuits, programmable circuits, or a combination thereof. Figure 3Similarly, fixed-function circuits refer to circuits that provide specific functions and are pre-set according to the operations that can be performed. Programmable circuits refer to circuits that can be programmed to perform a variety of tasks and provide flexible functions 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 (for example, to receive parameters or output parameters), but the type of operations performed by the fixed-function circuits is generally immutable. In some examples, one or more of the units can be different circuit blocks (fixed function or programmable), and in some examples, one or more of the units can be integrated circuits.

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

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

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

[0118] The entropy decoding unit 302 may entropy decode syntax elements defining quantized transform coefficients of the quantized transform coefficient block and transform information such as a quantization parameter (QP) and / or (multiple) transform mode indications. The inverse quantization unit 306 may use the QP associated with the quantized transform coefficient block to determine a degree of quantization, and likewise, determine a degree of inverse quantization for the inverse quantization unit 306 to apply. The inverse quantization unit 306 may, for example, perform a bitwise left shift operation to inverse quantize the quantized transform coefficients. The inverse quantization unit 306 may thereby form a transform coefficient block including the transform coefficients.

[0119] 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 coefficient block.

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

[0121] As another example, if the prediction information syntax element indicates that the current block is intra-predicted, the intra-prediction unit 318 can generate a prediction block according to the intra-prediction mode indicated by the prediction information syntax element. Similarly, the intra-prediction unit 318 can generally generate a prediction block in the same manner as that for the intra-prediction unit 226 ( Figure 3 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.

[0122] The prediction processing unit 304 may also determine to use the IBC unit 317 to decode the video data block using the intra-block copy (IBC) mode. Generally speaking, in the IBC mode, the video decoder 300 may determine a prediction block for a current block, where the prediction block is in the same frame as the current block. The prediction block may be identified by a block vector. In some examples, the location of the prediction block available for the IBC mode is limited to the location of the already decoded block. The IBC unit 317 may be configured to decode the video data using the techniques described in more detail below. For example, the IBC unit 317 may be configured to: decode a first syntax element specifying a value for deriving a maximum number of intra-block copy merge candidates, derive the maximum number of intra-block copy merge candidates based on the value of the first syntax element, and decode the first video data block using the intra-block copy mode according to the maximum number of intra-block copy merge candidates.

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

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

[0125] The video decoder 300 may store the reconstructed blocks in the DPB 314. As described above, the DPB 314 may provide reference information to the prediction processing unit 304, such as samples of the current picture for intra-frame prediction and previously decoded pictures for subsequent motion compensation. In addition, the video decoder 300 may output decoded pictures from the DPB for subsequent display on a display device such as a Figure 1 is presented on a display device 118).

[0126] In this way, the video decoder 300 represents an example of a video decoding device, which includes a memory configured to store video data and one or more processing units, which are implemented in a circuit and configured to: decode a first syntax element that specifies a value for deriving a maximum number of intra-block copy merge candidates, derive the maximum number of intra-block copy merge candidates based on the value of the first syntax element, and decode a first video data block using an intra-block copy mode according to the maximum number of intra-block copy merge candidates.

[0127] Video coding and decoding techniques related to the present disclosure will be described below. Some exemplary techniques of the present disclosure relate to motion vector prediction, including techniques for motion vector prediction using merge mode. Generally speaking, in merge mode, the video encoder 200 and the video decoder 300 can construct a merge candidate list of motion vector prediction values. The merge candidate list may include one or more merge candidates. For example, the merge candidate may include motion information (e.g., motion vector, reference picture list, reference picture index) from one or more spatial or temporal neighboring blocks of the current block for which the motion vector is being predicted. In other examples, the video encoder 200 and the video decoder 300 may be configured to generate so-called artificial merge candidates.

[0128] In merge mode, the video encoder 200 can select motion information of one of the merge candidates for encoding and decoding the current block. If the merge candidate list is greater than 1 merge candidate, the video encoder 200 can also signal the index of the selected merge candidate to the video decoder 300 (e.g., using the merge index in the merge candidate list). The video decoder 300 will use the same process as the video encoder 200 to build the merge candidate list. The video decoder 300 will select motion information from the merge candidates in the merge candidate list (e.g., based on the signaled merge index). The video decoder 300 will then use the selected motion information to decode the current block. In some examples, as will be described below, the video encoder 200 and the video decoder 300 can be configured to build the merge candidate list based on the maximum number of merge candidates.

[0129] Extended Merger Forecast

[0130] In some examples, the video encoder 200 and the video decoder 300 may be configured to construct a merge candidate list by sequentially including the following five types of merge candidates:

[0131] 1) Spatial motion vector prediction value (MVP) from spatially neighboring CUs;

[0132] 2) Temporal MVP from collocated CU;

[0133] 3) History-based MVP from a first-in-first-out (FIFO) table;

[0134] 4) Pairwise average MVP; and

[0135] 5) Zero motion vector (MV).

[0136] In some examples, the video encoder 200 can be configured to signal the size of the merge candidate list in the slice header. In some examples, the maximum allowed size of the merge candidate list is 6 merge candidates. For each CU in merge mode, the video encoder 200 can encode the index of the best merge candidate (e.g., the selected merge candidate) using truncated unary binarization. The video encoder 200 can encode the first binary number (bin) of the merge index using context (e.g., CABAC), and can use bypass encoding and decoding for other binary numbers.

[0137] Merge mode with motion vector difference (MMVD)

[0138] In addition to the merge mode, the video encoder 200 and the video decoder 300 can also be configured to use a merge mode with motion vector difference (MMVD) when the implicitly derived motion information is directly used to generate the prediction sample of the current CU. MMVD is introduced in VVC. The video encoder 200 can signal the MMVD flag after sending the skip flag and / or the merge flag to specify whether the MMVD mode is used for the CU.

[0139] In MMVD, after selecting a merge candidate, the video decoder 300 can further refine the merge candidate by signaling motion vector difference (MVD) information. Further information includes a merge candidate flag, an index specifying the magnitude of motion, and an index indicating the direction of motion (e.g., a reference picture list). In MMVD mode, one of the first two candidates in the merge list is selected to be used as the MV basis. The video encoder 200 signals a merge candidate flag to specify which of the first two candidates to use.

[0140] The video encoder 200 may encode a distance index that specifies the motion magnitude information and indicates a predefined offset from a starting point. Figure 5 is a conceptual diagram showing an exemplary merge mode with a motion vector difference search point. Figure 5 As shown, the offset is added to the horizontal component or the vertical component of the starting MV of the picture 500 from the reference picture list L0 or the picture 504 from the reference picture list L1. The relationship between the distance index and the predefined offset is as specified in Table 1.

[0141] Table 1 - Relationship between distance index and predefined offset

[0142]

[0143] The direction index indicates the direction of the MVD relative to the starting point. The direction index can indicate four directions, as shown in Table 2. It should be noted that the meaning of the MVD symbol can change according to the information of the (multiple) starting MVs. When the (multiple) starting MVs are bidirectional prediction MVs or unidirectional prediction MVs in which both lists point to the same side of the current picture (i.e., the picture order counts (POCs) of both references are greater than the POC of the current picture, or are less than the POC of the current picture), the sign in Table 2 specifies the sign of the MV offset added to the starting MV. When the starting MV is a bidirectional prediction MV in which two MVs point to different sides of the current picture (i.e., the POC of one reference is greater than the POC of the current picture, and the POC of the other reference is less than the POC of the current picture), the sign in Table 2 specifies the sign of the MV offset added to the list 0 MV component of the starting MV. The signs of the list 1 MV components have opposite values.

[0144] Table 2 - Sign of MV offsets specified by direction index

[0145] Directions to IDX 00 01 10 11 x-axis + – N / A N / A y-axis N / A N / A + –

[0146] Affine Merge Predictions

[0147] In some examples, the video encoder 200 and the video decoder 300 may be configured to apply an affine merge mode (AF_MERGE mode) to a CU whose width and height are both greater than or equal to 8. In the affine merge mode, the video encoder 200 and the video decoder 300 generate a control point motion vector (CPMV) of the current CU based on the motion information of the spatially adjacent CUs. There may be up to five control point motion vector prediction value (CPMVP) candidates. The video encoder 200 signals an index to indicate the CPMVP to be used for the current CU. The following three types of CPMVP candidates are used to form an affine merge candidate list:

[0148] 1) Inherited affine merge candidates extrapolated from the CPMV of the adjacent CU

[0149] 2) Construct affine merged candidate CPMVP derived by using the translation MV of the adjacent CU

[0150] 3) Zero MV

[0151] In some examples, there is a maximum of two inherited affine candidates derived from the affine motion models of neighboring blocks: one inherited affine candidate from the left neighboring CU and one inherited affine candidate from the top neighboring CU. Figure 6 shown. Figure 6 is a conceptual diagram showing the position of the inherited affine motion prediction value relative to the current block 600. For the prediction value on the left, the scanning order is A0->A1, and for the prediction value above, the scanning order is B0->B1->B2. Only the first inherited candidate from each side (i.e., left and above) is selected. No pruning check is performed between inherited affine candidates. When a neighboring affine CU is identified, the video encoder 200 and the video decoder 300 use the associated control point motion vector to derive the CPMVP candidate in the affine merge list of the current CU (e.g., current block 600).

[0152] Figure 7 is a conceptual diagram showing the inheritance of control point motion vectors. Figure 7As shown, if the adjacent lower left block 704 (A) is encoded and decoded in affine mode, the motion vectors v2, v3 and v4 of the upper left corner, upper right corner and lower left corner of the CU 702 containing the block 704 (A) are obtained. When the block 704 (A) is encoded and decoded using the 4-parameter affine model, two CPMVs of the current CU 700 are calculated based on v2 and v3. In the case where the block 704 (A) is encoded and decoded using the 6-parameter affine model, three CPMVs of the current CU 700 are calculated based on v2, v3 and v4.

[0153] Affine candidates are constructed by combining the adjacent translation motion information of each control point. The motion information of the control points is derived from Figure 8 Specify spatial neighbors and temporal neighbors as shown in . Figure 8 8 is a conceptual diagram showing the position of candidate positions for constructing an affine merge pattern relative to the position of the current block 800. k (k=1,2,3,4) represents the kth control point. For CPMV1, B2->B3->A2 blocks are checked in order and the MV of the first available block is used. For CPMV2, B1->B0 blocks are checked in order, and for CPMV3, A1->A0 blocks are checked in order. For the temporal motion vector predictor (TMVP), if the motion information is available, the motion information of block T is used as CPMV4.

[0154] After obtaining the MVs of the four control points, an affine merge candidate is constructed based on the motion information. The following combinations of control point MVs are used to construct affine merge candidates, in order: {CPMV1, CPMV2, CPMV3}, {CPMV1, CPMV2, CPMV4}, {CPMV1, CPMV3, CPMV4}, {CPMV2, CPMV3, CPMV4}, {CPMV1, CPMV2}, {CPMV1, CPMV3}.

[0155] The combination of 3 CPMVs constructs a 6-parameter affine merge candidate, and the combination of 2 CPMVs constructs a 4-parameter affine merge candidate. To avoid the motion scaling process, the relevant combination of control point MVs is discarded if the reference indexes of the control points are different.

[0156] After checking inherited affine merge candidates and constructing affine merge candidates, if the affine merge candidate list is still not full (eg, there are fewer than a specified number of candidates), a zero-valued MV is inserted at the end of the list.

[0157] Triangle Merge Mode

[0158] Triangle partitioning mode has been proposed in VVC for inter-frame prediction. In one example, the video encoder 200 and the video decoder 300 are configured to apply triangle partitioning mode only to CUs that are 8×8 or larger and encoded or decoded in skip or merge mode. For CUs that meet these conditions, the video encoder 200 can signal a CU-level flag to indicate whether to apply triangle partitioning mode.

[0159] When using the triangle partition mode, the video encoder 200 and the video decoder 300 are configured to evenly split the CU into two triangle partitions using diagonal splitting or anti-diagonal splitting. Fig. 9 is a conceptual diagram showing inter-frame prediction based on triangle partitioning. Fig. 9 , CU 900 is partitioned using diagonal splitting, while CU 902 is partitioned using anti-diagonal splitting. Each triangular partition in the CU uses its own motion for inter prediction. Only unidirectional prediction is allowed for each partition. That is, each partition has one motion vector and one reference picture index. Unidirectional prediction motion constraints are applied to ensure that only two motion compensated predictions are required for each CU, as with conventional bidirectional prediction. The unidirectional prediction motion for each partition is derived from a unidirectional prediction candidate list constructed using the process described below in connection with unidirectional prediction candidate list construction.

[0160] If the CU level flag indicates that the current CU is encoded using triangle partitioning mode, an index in the range of [0,39] is further signaled. By using this triangle partitioning index, the direction of the triangle partitioning (diagonal or anti-diagonal) and the motion of each partition can be obtained through a lookup table. After predicting each triangle partition, a hybrid process with adaptive weights is used to adjust the sample values ​​along the diagonal or anti-diagonal edges. This is a prediction signal for the entire CU, and the transformation and quantization process will be applied to the entire CU as in other prediction modes. Finally, the motion field of the CU predicted using the triangle partitioning mode is stored in 4×4 units.

[0161] One-way prediction candidate list construction

[0162] The uni-directional prediction candidate list includes five uni-directional prediction motion vector candidates. Fig.10 1 is a conceptual diagram showing spatial and temporal neighboring blocks relative to the current block 1000 for constructing a unidirectional prediction candidate list. The unidirectional prediction candidate list is derived from seven neighboring blocks ( Fig.10 1-7), including five spatially adjacent blocks ( Fig.10 ) and two temporally collocated blocks ( Fig.106 and 7 in the figure). The video encoder 200 and the video decoder 300 are configured to obtain the motion vectors of the seven neighboring blocks and store them into the unidirectional prediction candidate lists in the following order: first, the motion vectors of the unidirectionally predicted neighboring blocks; then, for the bidirectionally predicted neighboring blocks, the list 0 (L0) motion vectors (i.e., the L0 motion vector part of the bidirectionally predicted MV), the list l (L1) motion vectors (i.e., the L1 motion vector part of the bidirectionally predicted MV), and the average motion vector of the L0 and L1 motion vectors of the bidirectionally predicted MV. If the number of candidates is less than five, the zero-valued motion vector is added to the end of the list.

[0163] Combined Inter and Intra Prediction (CIIP)

[0164] When a CU is encoded and decoded in merge mode, and if the CU contains at least 64 luma samples (i.e., the CU width multiplied by the CU height is equal to or greater than 64), the video encoder 200 may signal an additional flag to indicate whether a combined inter / intra prediction (CIIP) mode is applied to the current CU.

[0165] In order to form the CIIP prediction of the CIIP mode, firstly, the intra prediction mode is derived from two additional syntax elements. Up to four possible intra prediction modes can be used: DC, plane, horizontal or vertical. Then, the video encoder 200 and the video decoder 300 can use conventional intra-frame and inter-frame decoding processes to derive inter-frame prediction and intra-frame prediction signals. Finally, the video encoder 200 and the video decoder 300 can perform weighted averaging of inter-frame and intra-frame prediction signals to obtain the CIIP prediction.

[0166] Derivation of intra prediction modes for CIIP

[0167] Up to 4 intra prediction modes, including DC, planar, horizontal, and vertical modes, can be used to predict the luma component in CIIP mode. If the CU shape is wide (i.e., the width is more than twice the height), the horizontal mode is not allowed. If the CU shape is narrow (i.e., the height is more than twice the width), the vertical mode is not allowed. In these cases, only 3 intra prediction modes are allowed.

[0168] CIIP mode uses 3 most probable modes (MPM) for intra prediction. The CIIP MPM candidate list is formed as follows:

[0169] - The left and top adjacent blocks are set to A and B respectively

[0170] - the intra prediction modes of block A and block B, denoted as intraModeA and intraModeB respectively,

[0171] The derivation is as follows:

[0172] οLet X be A or B

[0173] If 1) block X is not available; or 2) block X is not predicted using CIIP mode or intra mode; 3) block B is outside the current CTU, then intraModeX is set to DC

[0174] Otherwise, 1) if the intra prediction mode of block X is DC or planar, then intraModeX is set to DC or planar; or 2) if the intra prediction mode of block X is a "vertical-like" angular mode (greater than 34), then intraModeX is set to vertical, or 3) if the intra prediction mode of block X is a "horizontal-like" angular mode (less than or equal to 34), then intraModeX is set to horizontal.

[0175] Set to Horizontal

[0176] - If intraModeA and intraModeB are the same:

[0177] οIf intraModeA is planar or DC, the three MPMs are set to {planar, DC, vertical} in order

[0178] Otherwise, the three MPMs will be set to {intraModeA, Planar, DC} in order

[0179] - Otherwise (intraModeA and intraModeB are different):

[0180] The first two MPMs are set to (intraModeA, intraModeB) in order.

[0181] o Check planar, DC and vertical uniqueness for the first two MPM candidate patterns in order;

[0182] Once a unique pattern is found, add it as the third MPM

[0183] If the CU shape is very wide or very narrow, as defined above, the video decoder 300 may infer the MPM flag to be 1 without signaling. Otherwise, the MPM flag is signaled to indicate whether the CIIP intra prediction mode is one of the CIIP MPM candidate modes.

[0184] If the MPM flag is 1, the video encoder 200 further signals an MPM index to indicate which of the MPM candidate modes is used in CIIP intra prediction. Otherwise, if the MPM flag is 0, the intra prediction mode is set to the "missing" mode in the MPM candidate list. For example, if the plane mode is not in the MPM candidate list, the plane is the missing mode and the intra prediction mode is set to the plane. Since 4 possible intra prediction modes are allowed in CIIP and the MPM candidate list contains only 3 intra prediction modes, one of the 4 possible modes must be the missing mode.

[0185] For chroma components, the DM mode is always applied without additional signaling. That is, the video encoder 200 and the video decoder 300 use the same prediction mode for chroma samples as for luma samples.

[0186] The intra prediction mode of the CIIP-encoded CU will be saved and used for the intra mode encoding and decoding of future adjacent CUs.

[0187] Combining inter- and intra-prediction signals

[0188] Inter-frame prediction signal P in CIIP mode inte The intra prediction signal P is derived using the same inter prediction process applied in the normal merge mode. Then, the CIIP intra prediction mode is used to derive the intra prediction signal P according to the normal intra prediction process. intra The intra and inter prediction signals are then combined using a weighted average, where the weights depend on the intra prediction mode and where the sample is located in the codec block, as follows:

[0189] - If the intra prediction mode is DC or planar mode, or if the block width or height is less than 4, equal weights are applied to the intra prediction and inter prediction signals.

[0190] -Otherwise, the weights are determined based on the intra prediction mode (horizontal mode or vertical mode in this case) and the sample position in the block. Take the horizontal prediction mode as an example (the weights for the vertical mode are derived similarly, but in the orthogonal direction). Denote W as the width of the block and H as the height of the block. The codec block is first split into four equal-area parts, each of size (W / 4)×H. Starting from the part closest to the intra prediction reference sample and ending with the part farthest from the intra prediction reference sample, the weight wt for each of the 4 regions is set to 6, 5, 3, and 2, respectively. The final CIIP prediction signal is derived using the following equation:

[0191] P CIIP =((8wt)*P inter +wt*P intra+4)>>3

[0192] Intra Block Copy (IBC)

[0193] In IBC mode, a motion vector (also called a block vector) points to a reference sample that has been reconstructed in the current picture. The intra-block copy (IBC) mode is sometimes referred to as the current picture reference (CPR). The video encoder 200 and the video decoder 300 predict the current block in the IBC mode based on the reconstructed reference sample pointed to by the motion vector (or block vector) in the current picture. Like the conventional merge mode for translational inter-frame prediction, the motion vector used in the IBC mode can also be predicted by the neighboring blocks in the IBC merge mode. For example, the video encoder 200 and the video decoder 300 can construct an intra-block copy merge candidate list for a video data block. In some examples, as will be explained below, the intra-block copy merge candidate list can be constructed based on the maximum number of candidates. The video encoder 200 and the video decoder 300 can determine the intra-block copy merge candidate from the intra-block copy merge candidate list, determine the block vector associated with the intra-block copy merge candidate, and encode and decode the video data block using the determined block vector. That is, the video encoder 200 and the video decoder 300 may use the block vector to locate the prediction block in the same picture as the block being encoded and decoded, and may use the prediction block to perform a prediction process on the block being encoded and decoded.

[0194] Syntax for merging data

[0195] The syntax of the merged data including extended merged data, MMVD data, affine merged data, triangular merged data and CIIP data in VVC draft 4 is shown in Table 3.

[0196] Table 3 - Syntax for merging data

[0197]

[0198]

[0199]

[0200]

[0201] The semantics of merging data is as follows:

[0202] sps_temporal_mvp_enabled_flag equal to 1 specifies that tile_group_temporal_mvp_enabled_flag is present in the tile group header for tile groups in the CVS for tile_group_type not equal to 1. sps_temporal_mvp_enabled_flag equal to 0 specifies that tile_group_temporal_mvp_enabled_flag is not present in the tile group header and the temporal motion vector predictor is not used in the CVS.

[0203] sps_sbtmvp_enabled_flag equal to 1 specifies that subblock based temporal motion vector prediction can be used for decoding pictures with all tile groups in the CVS that have tile_group_type not equal to 1. sps_sbtmvp_enabled_flag equal to 0 specifies that subblock based temporal motion vector prediction is not used in the CVS. When sps_sbtmvp_enabled_flag is not present, it is inferred to be equal to 0.

[0204] sps_ibc_enabled_flag equal to 1 specifies that the current picture reference can be used in decoding pictures in the CVS. sps_ibc_enabled_flag equal to 0 specifies that the current picture reference is not used in the CVS. When sps_ibc_enabled_flag is not present, it is inferred to be equal to 0.

[0205] sps_ciip_enabled_flag specifies that ciip_flag may be present in the codec unit syntax of an inter codec unit. sps_ciip_enabled_flag equal to 0 specifies that ciip_flag is not present in the codec unit syntax of an inter codec unit.

[0206] sps_fpel_mmvd_enabled_flag equal to 1 specifies that merge mode with motion vector differences uses integer sample precision. sps_fpel_mmvd_enabled_flag equal to 0 specifies that merge mode with motion vector differences can use fractional sample precision.

[0207] sps_triangle_enabled_flag specifies whether triangle-based motion compensation can be used for inter prediction. sps_triangle_enabled_flag equal to 0 specifies that the syntax should be constrained so that triangle-based motion compensation is not used in CVS, and merge_triangle_flag, merge_triangle_split_dir, merge_triangle_idx0, and merge_triangle_idx1 are not present in the codec unit syntax of CVS. sps_triangle_enabled_flag equal to 1 specifies that triangle-based motion compensation can be used in CVS.

[0208] tile_group_temporal_mvp_enabled_flag specifies whether the temporal motion vector predictor can be used for inter prediction. If tile_group_temporal_mvp_enabled_flag is equal to 0, the syntax elements of the current picture shall be constrained so that the temporal motion vector predictor is not used in the decoding of the current picture. Otherwise (tile_group_temporal_mvp_enabled_flag is equal to 1), the temporal motion vector predictor can be used for the decoding of the current picture. When not present, the value of tile_group_temporal_mvp_enabled_flag is inferred to be equal to 0.

[0209] mvd_l1_zero_flag equal to 1 indicates that the mvd_coding(x0,y0,1) syntax structure is not parsed and for compIdx=0..1, MvdL1[x0][y0][compIdx] is set equal to 0. mvd_l1_zero_flag equal to 0 indicates that the mvd_coding(x0,y0,1) syntax structure is parsed.

[0210] collocated_from_l0_flag equal to 1 specifies that the collocated picture used for temporal motion vector prediction is derived from reference picture list 0. collocated_from_l0_flag equal to 0 specifies that the collocated picture used for temporal motion vector prediction is derived from reference picture list 1. When collocated_from_l0_flag is not present, it is inferred to be equal to 1.

[0211] six_minus_max_num_merge_cand specifies that the maximum number of merge motion vector prediction (MVP) candidates supported in a tile group is subtracted from 6. The maximum number of merge MVP candidates MaxNumMergeCand is derived as follows:

[0212] MaxNumMergeCand=6-six_minus_max_num_merge_cand

[0213] The value of MaxNumMergeCand should be in the range of 1 to 6, inclusive.

[0214] five_minus_max_num_subblock_merge_cand specifies the maximum number of subblock-based merge motion vector prediction (MVP) candidates supported in a tile group, subtracted from 5. When five_minus_max_num_subblock_merge_cand is not present, it is inferred to be equal to 5-sps_sbtmvp_enabled_flag. The maximum number of subblock-based merge MVP candidates MaxNumSubblockMergeCand is derived as follows:

[0215] MaxNumSubblockMergeCand=5-five_minus_max_num_subblock_merge_cand

[0216] The value of MaxNumSubblockMergeCand should be in the range of 0 to 5, inclusive.

[0217] tile_group_fpel_mmvd_enabled_flag equal to 1 specifies that merge mode with motion vector differences uses integer sample precision in the current tile group. tile_group_fpel_mmvd_enabled_flag equal to 0 specifies that merge mode with motion vector differences may use fractional sample precision in the current tile group. When not present, the value of tile_group_fpel_mmvd_enabled_flag is inferred to be 0.

[0218] mmvd_flag[x0][y0] equal to 1 specifies the use of merge mode with motion vector difference to generate inter prediction parameters for the current codec unit. Array index x0, y0 specifies the position (x0, y0) of the top left luma sample of the considered codec block relative to the top left luma sample of the picture.

[0219] When mmvd_flag[x0][y0] is not present, it is inferred to be equal to 0.

[0220] mmvd_merge_flag[x0][y0] specifies whether to use the first (0) or second (1) candidate in the merge candidate list, using the motion vector difference derived from mmvd_distance_idx[x0][y0] and mmvd_direction_idx[x0][y0]. The array index x0, y0 specifies the position (x0, y0) of the top-left luma sample of the considered codec block relative to the top-left luma sample of the picture.

[0221] mmvd_distance_idx[x0][y0] specifies the index used to derive MmvdDistance[x0][y0] as specified in Table 4. The array index x0, y0 specifies the position (x0, y0) of the top-left luma sample of the considered codec block relative to the top-left luma sample of the picture.

[0222] Table 4 Specification of MmvdDistance[x0][y0] based on mmvd_distance_idx[x0][y0].

[0223]

[0224] mmvd_direction_idx[x0][y0] specifies the index used to derive MmvdSign[x0][y0] as specified in Table 5. The array index x0, y0 specifies the position (x0, y0) of the top-left luma sample of the considered codec block relative to the top-left luma sample of the picture.

[0225] Table 5 Specification of MmvdSign[x0][y0] based on mmvd_direction_idx[x0][y0]

[0226] mmvd_direction_idx[x0][y0] MmvdSign[x0][y0][0] MmvdSign[x0][y0][1] 0 +1 0 1 -1 0 2 0 +1 3 0 -1

[0227] The two components of the combined MVD offset MmvdOffset[x0][y0] are derived as follows:

[0228] MmvdOffset[x0][y0][0]=(MmvdDistance[x0][y0]<<2)*MmvdSig n[x0][y0][0]

[0229] MmvdOffset[x0][y0][1]=(MmvdDistance[x0][y0]<<2)*MmvdSig n[x0][y0][1]

[0230] merge_subblock_flag[x0][y0] specifies whether to infer subblock-based inter prediction parameters for the current codec unit from neighboring blocks. Array index x0, y0 specifies the position (x0, y0) of the top-left luma sample of the considered codec block relative to the top-left luma sample of the picture. When merge_subblock_flag[x0][y0] is not present, it is inferred to be equal to 0.

[0231] merge_subblock_idx[x0][y0] specifies the merge candidate index of the sub-block based merge candidate list, where x0, y0 specifies the position (x0, y0) of the top-left luma sample of the considered codec block relative to the top-left luma sample of the picture.

[0232] When merge_subblock_idx[x0][y0] does not exist, it is inferred to be equal to 0.

[0233] ciip_flag[x0][y0] specifies whether combined inter-picture merging and intra-picture prediction are applied for the current codec unit. Array index x0, y0 specifies the position (x0, y0) of the top left luma sample of the considered codec block relative to the top left luma sample of the picture.

[0234] When ciip_flag[x0][y0] is not present, it is inferred to be equal to 0.

[0235] The syntax elements ciip_luma_mpm_flag[x0][y0] and ciip_luma_mpm_idx[x0][y0] specify the intra prediction mode for luma samples for combined inter-picture merging and intra-picture prediction. The array index x0, y0 specifies the position (x0, y0) of the top-left luma sample of the considered codec block relative to the top-left luma sample of the picture. The intra prediction mode is derived according to clause 8.5.6.

[0236] When ciip_luma_mpm_flag[x0][y0] is not present, it is inferred as follows:

[0237] - If cbWidth is greater than 2*cbHeight or cbHeight is greater than 2*cbWidth, ciip_luma_mpm_flag[x0][y0] is inferred to be equal to 1.

[0238] Otherwise, ciip_luma_mpm_flag[x0][y0] is inferred to be equal to 0.

[0239] merge_triangle_flag[x0][y0] equal to 1 specifies that for the current codec unit, triangle-based motion compensation is used to generate prediction samples for the current codec unit when decoding B-tile groups. merge_triangle_flag[x0][y0] equal to 0 specifies that the codec unit is not predicted by triangle-based motion compensation. When merge_triangle_flag[x0][y0] is not present, it is inferred to be equal to 0.

[0240] merge_triangle_split_dir[x0][y0] specifies the split direction of the merge triangle pattern. The array index x0, y0 specifies the position (x0, y0) of the top-left luma sample of the considered codec block relative to the top-left luma sample of the picture.

[0241] When merge_triangle_split_dir[x0][y0] does not exist, it is inferred to be equal to 0.

[0242] merge_triangle_idx0[x0][y0] specifies the first merge candidate index of the triangle-based motion compensation candidate list, where x0, y0 specify the position (x0, y0) of the top-left luma sample of the considered codec block relative to the top-left luma sample of the picture.

[0243] When merge_triangle_idx0[x0][y0] is not present, it is inferred to be equal to 0.

[0244] merge_triangle_idx1[x0][y0] specifies the second merge candidate index of the triangle-based motion compensation candidate list, where x0, y0 specify the position (x0, y0) of the top-left luma sample of the considered codec block relative to the top-left luma sample of the picture.

[0245] When merge_triangle_idx1[x0][y0] is not present, it is inferred to be equal to 0.

[0246] merge_idx[x0][y0] specifies the merge candidate index of the merge candidate list, where x0, y0 specify the position (x0, y0) of the top-left luma sample of the considered codec block relative to the top-left luma sample of the picture.

[0247] When merge_idx[x0][y0] does not exist, it is inferred as follows:

[0248] - If mmvd_flag[x0][y0] is equal to 1, merge_idx[x0][y0] is inferred to be equal to mmvd_merge_flag[x0][y0].

[0249] Otherwise (mmvd_flag[x0][y0] is equal to 0), merge_idx[x0][y0] is inferred to be equal to 0.

[0250] The requirement for bitstream consistency may be: when the reference picture corresponding to ref_idx_l0[x0][y0] of the current codec unit is the current decoding picture, mmvd_flag[x0][y0], merge_subblock_flag[x0][y0], ciip_flag[x0][y0] and merge_triangle_flag[x0][y0] should all be equal to 0.

[0251] question

[0252] In VVC Draft 4, there are slice-level syntax elements to define the maximum number of sub-block merge candidates (e.g., MaxNumSubblockMergeCand) and the maximum number of triangle merge candidates (e.g., MaxNumTriangleMergeCand), in addition to the maximum number of inter-prediction merge candidates for conventional translation inter prediction (e.g., MaxNumMergeCand). A smaller number of merge candidates results in lower implementation complexity at the video encoder 200 and the video decoder 300, and configuring multiple syntax elements of different merge list sizes at the slice level is beneficial to encoder flexibility. However, the maximum number of intra-block copy (IBC) merge candidates, e.g., MaxNumIntraBlockCopyMergeCand, is currently set to the same as the maximum number of inter-prediction merge candidates (i.e., MaxNumMergeCand) in VVC Test Model 5.0 (VTM5.0). This is not an ideal design and may lead to deficiencies in encoder / decoder flexibility and coding efficiency.

[0253] In view of the above, the present disclosure describes techniques including encoding and decoding a new syntax element to indicate a value for a maximum number of intra block copy merge candidates (e.g., MaxNumIntraBlockCopyMergeCand) for deriving an intra block copy mode. As described above, the intra block copy mode is a prediction mode in which a block of video data in a current picture is predicted from other blocks in the current picture, where the prediction block is identified by a block vector (e.g., similar to a motion vector, but pointing to a location in the same picture).

[0254] In some examples of the present disclosure, the video encoder 200 and the video decoder 300 may be configured to encode (i.e., encode or decode, respectively) a syntax element that directly or indirectly indicates a maximum number of intra-block copy merge candidates that will be used to determine a motion / block vector for encoding and decoding a portion of video data (e.g., a block, a slice, a picture, etc.). The syntax element is separate from any syntax elements that may indicate a maximum number of merge candidates for other prediction modes (e.g., conventional merge inter prediction). By using a separate syntax element for the maximum number of intra-block copy merge candidates for the intra-block copy mode, the techniques of the present disclosure may provide greater flexibility and / or higher encoding and decoding efficiency when encoding and decoding video data using the intra-block copy mode.

[0255] For example, for natural content, encoding and decoding of video data using the intra block copy mode can be performed with higher codec efficiency using fewer merge candidates than the conventional merge mode. Conversely, for screen content, encoding and decoding of video data using the intra block copy mode can be performed with higher codec efficiency using more merge candidates than the conventional merge mode. Having a separate syntax element indicating the maximum number of intra block copy merge candidates for the intra block copy mode can provide flexibility and can improve the codec efficiency of video codecs that handle multiple different types of content (e.g., natural content versus screen content).

[0256] Several proposed changes related to VVC draft 4 that may improve the signaling of intra-block copy syntax are described below.

[0257] Technique 1: In one example of the present disclosure, the video encoder 200 and the video decoder 300 may be configured to encode and decode (i.e., encode and decode, respectively) a slice-level (or other level) syntax element constant_minus_max_num_ibc_merge_cand, which specifies the maximum number of intra-block copy merge candidates supported in a slice subtracted from N, where N is a pre-assigned fixed constant, such as 5 or 6. That is, in general, constant_minus_max_num_ibc_merge_cand is a syntax element whose value is used to derive the maximum number of intra-block copy merge candidates. For example, the video decoder 300 may derive the maximum number of intra-block copy merge candidates based on the value of the first syntax element subtracted from N (e.g., 5, 6, or another value). That is, the video decoder 300 derives the maximum number of intra-block copy merge candidates MaxNumIntraBlockCopyMergeCand as follows:

[0258] MaxNumIntraBlockCopyMergeCand=Nconstant_minus_max_num_ibc_merge_cand

[0259] In one example, the value of MaxNumIntraBlockCopyMergeCand is limited to a range of 0 to N, inclusive, and if constant_minus_max_num_ibc_merge_cand is not available, the video decoder 300 is configured to set the value of MaxNumIntraBlockCopyMergeCand to 0. Another example is to set the value of MaxNumIntraBlockCopyMergeCand to a range of 1 to N, inclusive, and if constant_minus_max_num_ibc_merge_cand is not available, the video decoder 300 is configured to set the value of MaxNumIntraBlockCopyMergeCand to 1.

[0260] Therefore, in one example of the present disclosure, the video encoder 200 and the video decoder 300 are configured to encode and decode a first syntax element (e.g., constant_minus_max_num_ibc_merge_cand) that specifies a value for deriving a maximum number of intra-block copy merge candidates. The video decoder 300 may be configured to derive the maximum number of intra-block copy merge candidates based on the value of the first syntax element. In one example, the maximum number of intra-block copy merge candidates ranges from 1 to 6. The video decoder 300 may be configured to subtract the value of the first syntax element from 6 to derive the maximum number of intra-block copy merge candidates. The video encoder 200 and the video decoder 300 may then encode and decode the first video data block using the intra-block copy mode according to the maximum number of intra-block copy merge candidates.

[0261] As shown in the following syntax, in order to encode and decode the first syntax element specifying the value for deriving the maximum number of intra-block copy merge candidates, the video encoder 200 and the video decoder 300 may first be configured to encode and decode the intra-frame copy enable flag (e.g., sps_ibc_enabled_flag). The sps_ibc_enabled_flag indicates whether the intra-frame block copy mode is enabled for the video data block corresponding to the sequence parameter set in which the sps_ibc_enabled_flag is sent. The video encoder 200 and the video decoder 300 may then encode and decode the first syntax element (e.g., constant_minus_max_num_ibc_merge_cand) specifying the value for deriving the maximum number of intra-frame block copy merge candidates based on the intra-frame block copy enable flag indicating that the intra-frame block copy mode is enabled for the first video data block (the video data blocks in the sequence including the first block).

[0262] In order to encode and decode the first video data block, the video encoder 200 and the video decoder 300 can construct an intra-block copy merge candidate list for the first video data block based on the maximum number of intra-block copy merge candidates derived. That is, the video encoder 200 and the video decoder 300 will construct an intra-block copy merge candidate list with the maximum number of merge candidates. The video encoder 200 can also encode and decode a merge index (merge_idx) into the intra-block copy merge candidate list based on the maximum number of intra-block copy merge candidates being greater than one. The merge index indicates which of the intra-block copy merge candidates will be used to obtain a block vector for encoding and decoding the first video data block. If the intra-block copy merge candidate list includes only one candidate, there is no need to encode and decode the merge index because the candidate is known.

[0263] The video encoder 200 and the video decoder 300 can determine the intra-block copy merge candidate from the intra-block copy merge candidate list (e.g., according to merge_idx, or if the merge candidate list has only one candidate, according to a single candidate), determine the block vector associated with the intra-block copy merge candidate, and encode and decode the first video data block using the determined block vector. For example, the video encoder 200 can use the block vector to identify the prediction block. The video encoder 200 can subtract the prediction block from the first block to generate a residual block. The video encoder 200 can then encode the residual block as described above. The video decoder 300 can also use the block vector to identify the prediction block. The video decoder 300 can decode the residual block as described above and add the prediction block to the residual block to obtain a decoded block.

[0264] As can be seen from the following syntax, the first syntax element (e.g., constant_minus_max_num_ibc_merge_cand) that specifies the value for deriving the maximum number of intra-block copy merge candidates is different from the second syntax element (e.g., six_minus_max_num_merge_cand) that specifies the value for deriving the maximum number of inter-prediction merge candidates for conventional translational inter-prediction. In this way, the video encoder 200 and the video decoder 300 can also be configured to encode and decode the second syntax element that specifies the value for deriving the maximum number of inter-prediction merge candidates, and encode and decode the second video data block using the inter-prediction merge mode according to the maximum number of inter-prediction merge candidates specified by the second syntax element.

[0265] The following table shows the proposed syntax changes relative to VVC draft 4, where the additions are shown in the tag <add> and< / add> Content removed from VVC Draft 4 is shown in the label <del> and< / del> between.

[0266]

[0267]

[0268]

[0269]

[0270] Technique 2: In another example of the present disclosure, the video encoder 200 and the video decoder 300 are configured to allow different ranges of MaxNumIntraBlockCopyMergeCand for the case where tile_group_type is equal to 1 and the case where tile_group_type is not equal to 1. Tile_group_type equal to 1 indicates that all blocks in the tile are encoded and decoded using intra prediction mode, including intra block copy mode. Based on technique 1, the maximum number of intra block copy merge candidates MaxNumIntraBlockCopyMergeCand is derived as follows:

[0271] MaxNumIntraBlockCopyMergeCand=Nconstant_minus_max_num_ibc_merge_cand,

[0272] where N is a positive constant such as 5 or 6. If tile_group_type is equal to 1, the value of MaxNumIntraBlockCopyMergeCand shall be in the range of 0 to N (inclusive), and if constant_minus_max_num_ibc_merge_cand is not available, MaxNumIntraBlockCopyMergeCand is set to 0. Otherwise (tile_group_type is not equal to 1), the value of MaxNumIntraBlockCopyMergeCand shall be in the range of 1 to N (inclusive), and if constant_minus_max_num_ibc_merge_cand is not available, MaxNumIntraBlockCopyMergeCand is set to 1.

[0273] Another example is as follows: if tile_group_type is equal to 1, the value of MaxNumIntraBlockCopyMergeCand should be in the range of 1 to N (inclusive), and if constant_minus_max_num_ibc_merge_cand is not available, MaxNumIntraBlockCopyMergeCand is set to 1. Otherwise (tile_group_type is not equal to 1), the value of MaxNumIntraBlockCopyMergeCand should be in the range of 0 to N (inclusive), and if constant_minus_max_num_ibc_merge_cand is not available, MaxNumIntraBlockCopyMergeCand is set to 0.

[0274] Technique 3: In another example of the present disclosure, the video encoder 200 and the video decoder 300 are configured to set MaxNumMergeCand to the upper limit of MaxNumIntraBlockCopyMergeCand when tile_group_type is not equal to 1. Based on technique 1, the maximum number of intra-block copy merge candidates MaxNumIntraBlockCopyMergeCand is derived as follows:

[0275] MaxNumIntraBlockCopyMergeCand=Nconstant_minus_max_num_ibc_merge_cand, where N is a positive constant such as 5 or 6 when tile_group_type is equal to 1, and N is set to MaxNumMergeCand when tile_group_type is not equal to 1. If tile_group_type is equal to 1, the value of MaxNumIntraBlockCopyMergeCand should be in the range of 0 to N or 1 to N, as described in the example of technique 1. If tile_group_type is not equal to 1, the value of MaxNumIntraBlockCopyMergeCand should be in the range of 0 to MaxNumMergeCand (including the end value), and if constant_minus_max_num_ibc_merge_cand is not available, MaxNumIntraBlockCopyMergeCand is set to 0.

[0276] The following table shows the proposed syntax changes relative to VVC draft 4, where the additions are shown in the tag <add> and< / add> Content removed from VVC Draft 4 is shown in the label <del> and< / del> between.

[0277]

[0278]

[0279]

[0280]

[0281] In another example of the present disclosure, the maximum number of intra block copy merge candidates MaxNumIntraBlockCopyMergeCand is derived as follows:

[0282] MaxNumIntraBlockCopyMergeCand=Nconstant_minus_max_num_ibc_merge_cand,

[0283] where N is a positive constant such as 5 or 6 when tile_group_type is equal to 1, and is set to MaxNumMergeCand when tile_group_type is not equal to 1. If tile_group_type is not equal to 1, the value of MaxNumIntraBlockCopyMergeCand shall be in the range of 1 to N, inclusive, and if constant_minus_max_num_ibc_merge_cand is not available, MaxNumIntraBlockCopyMergeCand is set to 1. If tile_group_type is not equal to 1, the value of MaxNumIntraBlockCopyMergeCand shall be in the range of 1 to MaxNumMergeCand, inclusive, and if constant_minus_max_num_ibc_merge_cand is not available, MaxNumIntraBlockCopyMergeCand is set to 1. In this example, if MaxNumMergeCand>1 when tile_group_type is not equal to 1, the video decoder only parses the syntax element constant_minus_max_num_ibc_merge_cand.

[0284] The following table shows the proposed syntax changes relative to VVC draft 4, where the additions are shown in the tag <add> and< / add> Content removed from VVC Draft 4 is shown in the label <del> and< / del> between.

[0285]

[0286]

[0287]

[0288]

[0289] Technique 4: In another example of the present disclosure, the video encoder 200 and the video decoder 300 are configured to decouple the signaling of the intra block copy merge candidate index from the conventional merge candidate index. The present disclosure describes two techniques for decoupling the signaling. The first technique for decoupling is that the video encoder 200 and the video decoder 300 use a new context when encoding and decoding the merge data syntax element merge_idx. The second technique for decoupling is to add a new merge data syntax element, defined as ibc_merge_idx.

[0290] The following table shows the proposed syntax changes relative to VVC draft 5, where the additions are shown in the tag <add> and< / add> Content removed from VVC Draft 5 is shown in the label <del> and< / del> between.

[0291]

[0292]

[0293]

[0294]

[0295] The following table shows the proposed syntax changes relative to VVC draft 5 for the second decoupling technique, where the additions are shown in the label <add> and< / add> Content removed from VVC Draft 5 is shown in the label <del> and< / del> between.

[0296]

[0297]

[0298]

[0299]

[0300]

[0301]

[0302] Technique 5: Improved processing can be obtained by combining all or part of techniques 1 to 4. One example is to combine technique 3 using example 2 with technique 4 using example 2.

[0303] Combining Technique 3 of Example 2 and Technique 4 of Example 2:

[0304]

[0305]

[0306]

[0307]

[0308]

[0309]

[0310]

[0311] Fig.11 2 is a flowchart showing an exemplary method for encoding a current block. The current block may include a current CU. Although for the video encoder 200 ( Figure 1 and Figure 3 ), but it should be understood that other devices may be configured to perform the same Fig.11 A similar approach to the one used in this paper.

[0312] In this example, video encoder 200 initially predicts a current block (350). For example, video encoder 200 may form a prediction block for the current block. For example, IBC unit 227 of video encoder 200 may use the above and below references Fig.13 The video encoder 200 may then form a prediction block using the techniques of the present disclosure described herein. The video encoder 200 may then calculate a residual block for the current block (352). To calculate the residual block, the video encoder 200 may calculate the difference between the original uncoded block and the prediction block for the current block. The video encoder 200 may then transform and quantize the 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 coefficients (358). For example, the video encoder 200 may encode the coefficients using CABAC. The video encoder 200 may then output entropy-encoded data of the block (360).

[0313] Fig.12 3 is a flowchart showing an exemplary method for decoding a current video data block. The current block may include a current CU. Although for the video decoder 300 ( Figure 1 and Figure 4 ), but it should be understood that other devices may be configured to perform the same Fig.12 A similar approach to the one used in this paper.

[0314] The video decoder 300 may receive entropy-decoded data for a current block, such as entropy-decoded data corresponding to coefficients of a residual block for the current block and entropy-decoded prediction information (370). The video decoder 300 may entropy decode the entropy-decoded data to determine prediction information for the current block and reproduce the coefficients of the residual block (372). The video decoder 300 may predict the current block (374), for example, using an intra-frame or inter-frame prediction mode, including an intra-frame block copy mode, as indicated by the prediction information for the current block, to calculate a prediction block for the current block. For example, the IBC unit 317 of the video decoder 300 may use the above and below references to Fig.13The video decoder 300 may then inversely scan the reproduced coefficients (376) to create a block of quantized transform coefficients. The video decoder 300 may then inversely quantize and inversely transform the 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).

[0315] Fig.13 is a flowchart illustrating an exemplary decoding method according to the technology of the present disclosure. Video decoder 300 ( Figure 4 ) can be configured to perform Fig.13 technology, including IBC unit 317.

[0316] In one example, the video decoder 300 may be configured to: decode a first syntax element specifying a value for deriving a maximum number of intra-block copy merge candidates (1300), derive the maximum number of intra-block copy merge candidates based on the value of the first syntax element (1302), and decode a first video data block using an intra-block copy mode according to the maximum number of intra-block copy merge candidates (1304).

[0317] Fig.14 is a flowchart illustrating an exemplary encoding method according to the technology of the present disclosure. Video encoder 200 ( Figure 3 ) can be configured to perform Fig.13 technology, including IBC unit 227.

[0318] In one example, the video decoder 300 may be configured to determine a maximum number of intra-block copy merge candidates for a first block of video data (1400), encode a first syntax element specifying a value for deriving the maximum number of intra-block copy merge candidates (1402), and encode the first block of video data using an intra-block copy mode according to the maximum number of intra-block copy merge candidates (1404).

[0319] Other illustrative examples of the present disclosure are described below.

[0320] Example 1 - A method for encoding and decoding video data, the method comprising: encoding and decoding a slice-level syntax element (constant_minus_max_num_ibc_merge_cand) that specifies a maximum number of intra-block copy merge candidates; and encoding and decoding a video data block in a slice according to the slice-level syntax element.

[0321] Example 2 - The method of Example 1, further comprising: determining a maximum number of intra block merging candidates based on a tile group type.

[0322] Example 3 - The method of Example 1, wherein the upper limit of the number of intra block copy merge candidates is the maximum number of merge candidates for a tile group type not equal to I (MaxNumMergeCand).

[0323] Example 4 - The method of Example 1, further comprising encoding and decoding the merge candidate index separately from encoding and decoding the intra block copy merge candidate index.

[0324] Example 5 - The method of any one of Examples 1 to 4, wherein the syntax element specifying the maximum number of intra block copy merge candidates is different from the syntax element specifying the maximum number of normal merge candidates.

[0325] Example 6 - A method according to any one of Examples 1 to 5, wherein encoding and decoding includes decoding.

[0326] Example 7 - A method according to any one of Examples 1 to 5, wherein encoding and decoding includes encoding.

[0327] Example 8 - An apparatus for encoding and decoding video data, the apparatus comprising one or more components for performing the method according to any one of Examples 1 to 7.

[0328] Example 9 - The apparatus of Example 8, wherein the one or more components include one or more processors implemented in circuitry.

[0329] Example 10 - The apparatus of any of Examples 8 and 9, further comprising a memory for storing video data.

[0330] Example 11 - The apparatus of any one of Examples 8 to 10, further comprising a display configured to display the decoded video data.

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

[0332] Example 13 - A device according to any of Examples 8 to 12, wherein the device includes a video decoder.

[0333] Example 14 - A device according to any of Examples 8 to 12, wherein the device includes a video encoder.

[0334] Example 15 - A computer-readable storage medium having instructions stored thereon that, when executed, cause one or more processors to perform a method according to any one of Examples 1 to 7.

[0335] 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 described actions or events are required to practice the techniques). In addition, in some examples, actions or events may be performed simultaneously, e.g., through multithreading, interrupt handling, or multiple processors, rather than sequentially.

[0336] In one or more examples, the described functions can be implemented in hardware, software, firmware, or any combination thereof. If implemented in software, the functions can be stored as one or more instructions or codes in a computer-readable medium or sent via a computer-readable medium and executed by a hardware-based processing unit. Computer-readable media can include computer-readable storage media, which corresponds to tangible media such as data storage media, or communication media, including any media that facilitates the transfer of a computer program from one place to another, for example, according to a communication protocol. In this manner, computer-readable media can generally correspond to (1) tangible computer-readable storage media (which is non-transitory) or (2) communication media (such as signals or carrier waves). Data storage media can be any available media 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 can include a computer-readable medium.

[0337] 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 required 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, fiber optic cable, twisted pair, digital subscriber line (DSL) or wireless technologies such as infrared, radio and microwave, coaxial cable, fiber optic cable, twisted pair, DSL or wireless technologies such as infrared, radio and microwave can be included in the definition of the medium. However, it should be understood that computer-readable storage media and data storage media do not include connections, carrier waves, signals or other temporary media, but rather relate to non-temporary, tangible storage media. As used herein, disks and optical disks include optical disks (CDs), laser optical disks, optical optical disks, digital versatile optical disks (DVDs), floppy disks and blue-ray disks, wherein disks usually copy data magnetically, and optical disks copy data optically using lasers. The above combination should also be included in the scope of computer-readable media.

[0338] Instructions may be executed by one or more processors, such as one or more digital signal processors (DSPs), general-purpose microprocessors, application-specific integrated circuits (ASICs), field programmable gate arrays (FPGAs), or other equivalent integrated or discrete logic circuits. Therefore, the terms "processor" and "processing circuitry" as used herein may refer to any of the foregoing structures or any other structure suitable for implementing the techniques described herein. In addition, in some aspects, the functions 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.

[0339] The techniques of the present disclosure may be implemented in a variety of devices or apparatuses, including wireless handsets, integrated circuits (ICs), or collections of ICs (e.g., chipsets). 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 need to be implemented by different hardware units. Instead, as described above, the various units may be combined with appropriate software and / or firmware in any codec hardware unit, or provided by a collection of interoperable hardware units including one or more processors as described above.

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

Claims

1. A method for decoding video data, the method comprising: decoding a first syntax element specifying a value for deriving a maximum number of intra block copy merge candidates for an intra block copy mode; deriving the maximum number of intra block copy merge candidates based on the value of the first syntax element; constructing an intra block copy merging candidate list for the first block of video data based on the maximum number of intra block copy merging candidates; Determine a binarization parameter cMax for a merge index based on that the prediction mode for the first video data block is the intra block copy mode and the maximum number of intra block copy merge candidates; decoding the merge index of the intra block copy merge candidate list based on that the maximum number of intra block copy merge candidates is greater than one and using the binarization parameter; Determining an intra block copy merge candidate in the intra block copy merge candidate list based on the merge index; as well as The first block of video data is decoded using the intra block copy mode and the intra block copy merge candidate.

2. The method according to claim 1, further comprising: Decodes the intra block copy enable flag; as well as Based on the intra block copy enable flag indicating that the intra block copy mode is enabled for the first block of video data, a first syntax element specifying the value for deriving the maximum number of intra block copy merge candidates is decoded.

3. The method according to claim 1, wherein: Determining the binarization parameter cMax for the merge index based on the prediction mode for the first video data block being the intra block copy mode and the maximum number of intra block copy merge candidates comprises: The binarization parameter cMax is determined based on the following equation: cMax=(CuPredMode[x0][y0]==MODE_IBC)? MaxNumIntraBlockCopyMergeCand-1:MaxNumMergeCand-1, where CuPredMode is a prediction mode variable, MODE_IBC is the intra block copy mode, MaxNumIntraBlockCopyMergeCand is the maximum number of intra block copy merge candidates, and MaxNumMergeCand is the maximum number of inter prediction merge candidates.

4. The method according to claim 1, wherein: Decoding the first video data block using the intra block copy mode and the intra block copy merge candidate includes: determining a block vector associated with the intra block copy merge candidate; and The first block of video data is decoded using the determined block vector.

5. The method according to claim 1, wherein: The maximum number of intra block copy merging candidates ranges from 1 to 6.

6. The method according to claim 1, wherein: Deriving the maximum number of intra block copy merge candidates based on the value of the first syntax element comprises: The value of the first syntax element is subtracted from 6 to derive the maximum number of intra block copy merge candidates.

7. The method according to claim 1, wherein: The first syntax element specifying the value for deriving the maximum number of intra block copy merge candidates is different from the second syntax element specifying the value for deriving the maximum number of inter prediction merge candidates.

8. The method according to claim 7, further comprising: decoding the second syntax element specifying a value for deriving the maximum number of inter prediction merge candidates; as well as The second block of video data is decoded using an inter-prediction merge mode according to the maximum number of inter-prediction merge candidates specified by the second syntax element.

9. The method according to claim 1, further comprising: A picture including the first block of video data is displayed.

10. An apparatus configured to decode video data, the apparatus comprising: A memory configured to store a first video data block; as well as one or more processors implemented in circuitry and in communication with the memory, the one or more processors being configured to: decoding a first syntax element specifying a value for deriving a maximum number of intra block copy merge candidates for an intra block copy mode; deriving the maximum number of intra block copy merge candidates based on the value of the first syntax element; constructing an intra block copy merging candidate list for the first block of video data based on the maximum number of intra block copy merging candidates; Determine a binarization parameter cMax for a merge index based on that the prediction mode for the first video data block is the intra block copy mode and the maximum number of intra block copy merge candidates; decoding the merge index of the intra block copy merge candidate list based on that the maximum number of intra block copy merge candidates is greater than one and using the binarization parameter; Determining an intra block copy merge candidate in the intra block copy merge candidate list based on the merge index; as well as The first block of video data is decoded using the intra block copy mode and the intra block copy merge candidate.

11. The device according to claim 10, wherein: The one or more processors are further configured to: decoding an intra block copy enable flag; and Based on the intra block copy enable flag indicating that the intra block copy mode is enabled for the first block of video data, a first syntax element specifying a value for deriving the maximum number of intra block copy merge candidates is decoded.

12. The device according to claim 10, wherein: In order to determine the binarization parameter cMax for the merge index based on the prediction mode for the first video data block being the intra block copy mode and the maximum number of intra block copy merge candidates, the one or more processors are further configured to: The binarization parameter cMax is determined based on the following equation: cMax=(CuPredMode[x0][y0]==MODE_IBC)? MaxNumIntraBlockCopyMergeCand-1:MaxNumMergeCand-1, where CuPredMode is a prediction mode variable, MODE_IBC is the intra block copy mode, MaxNumIntraBlockCopyMergeCand is the maximum number of intra block copy merge candidates, and MaxNumMergeCand is the maximum number of inter prediction merge candidates.

13. The device according to claim 10, wherein: To decode the first block of video data using the intra block copy mode and the intra block copy merge candidate, the one or more processors are further configured to: determining a block vector associated with the intra block copy merge candidate; and The first block of video data is decoded using the determined block vector.

14. The device according to claim 10, wherein: The maximum number of intra block copy merging candidates ranges from 1 to 6.

15. The device according to claim 10, wherein: To derive the maximum number of intra block copy merging candidates based on the value of the first syntax element, the one or more processors are further configured to: The value of the first syntax element is subtracted from 6 to derive the maximum number of intra block copy merge candidates.

16. The device according to claim 10, wherein: The first syntax element specifying the value for deriving the maximum number of intra block copy merge candidates is different from a second syntax element specifying the value for deriving the maximum number of inter prediction merge candidates.

17. The device according to claim 16, wherein: The one or more processors are further configured to: decoding the second syntax element specifying a value for deriving the maximum number of inter prediction merge candidates; as well as The second block of video data is decoded using an inter-prediction merge mode according to the maximum number of inter-prediction merge candidates specified by the second syntax element.

18. The apparatus according to claim 10, further comprising: The display is configured to display a picture including the first video data block.

19. An apparatus configured to encode and decode video data, the apparatus comprising: means for encoding and decoding a first syntax element specifying a value for deriving a maximum number of intra block copy merging candidates for an intra block copy mode; means for deriving the maximum number of the intra block copy merge candidates based on the value of the first syntax element; means for constructing an intra block copy merging candidate list for the first block of video data based on said maximum number of intra block copy merging candidates; means for determining a binarization parameter cMax for a merge index based on the prediction mode for the first video data block being the intra block copy mode and the maximum number of intra block copy merge candidates; means for encoding and decoding the merge index of the intra block copy merge candidate list based on the maximum number of intra block copy merge candidates being greater than one and using the binarization parameter; means for determining an intra block copy merge candidate in the intra block copy merge candidate list based on the merge index; as well as Means for encoding and decoding the first block of video data using the intra block copy mode and the intra block copy merge candidate.

20. A non-transitory computer-readable storage medium storing instructions that, when executed, cause one or more processors of a device configured to encode and decode video data: encoding and decoding a first syntax element specifying a value for deriving a maximum number of intra block copy merging candidates for an intra block copy mode; deriving the maximum number of intra block copy merge candidates based on the value of the first syntax element; constructing an intra block copy merging candidate list for the first block of video data based on the maximum number of intra block copy merging candidates; Determine a binarization parameter cMax for a merge index based on that the prediction mode for the first video data block is the intra block copy mode and the maximum number of intra block copy merge candidates; decoding the merge index of the intra block copy merge candidate list based on that the maximum number of intra block copy merge candidates is greater than one and using the binarization parameter; Determining an intra block copy merge candidate in the intra block copy merge candidate list based on the merge index; as well as The first block of video data is encoded and decoded using the intra block copy mode and the intra block copy merge candidate.

21. An apparatus for encoding video data, the apparatus comprising: A memory configured to store a first video data block; as well as one or more processors implemented in circuitry and in communication with the memory, the one or more processors being configured to: determining a maximum number of intra block copy merging candidates for the first block of video data; encoding a first syntax element specifying a value for deriving the maximum number of intra block copy merge candidates; constructing an intra block copy merging candidate list for the first block of video data based on the maximum number of intra block copy merging candidates; Determining an intra block copy merging candidate in the intra block copy merging candidate list; Determining a merge index for the intra block copy merge candidate; Determining a binarization parameter cMax for the merge index based on that the prediction mode for the first video data block is an intra block copy mode and the maximum number of intra block copy merge candidates; encoding the merge index of the intra block copy merge candidate list based on that the maximum number of intra block copy merge candidates is greater than one and using the binarization parameter; as well as The first block of video data is encoded using the intra block copy mode and the intra block copy merge candidate.

22. The device according to claim 21, wherein The one or more processors are further configured to: Encodes an intra block copy enable flag; as well as Based on the intra block copy enable flag indicating that an intra block copy mode is enabled for the first block of video data, the first syntax element specifying the value for deriving the maximum number of intra block copy merge candidates is encoded.

23. The device according to claim 21, wherein To determine the binarization parameter for the merge index based on the prediction mode for the first video data block being the intra block copy mode and the maximum number of intra block copy merge candidates, the one or more processors are further configured to: The binarization parameter cMax is determined based on the following equation: cMax=(CuPredMode[x0][y0]==MODE_IBC)? MaxNumIntraBlockCopyMergeCand-1:MaxNumMergeCand-1, where CuPredMode is a prediction mode variable, MODE_IBC is the intra block copy mode, MaxNumIntraBlockCopyMergeCand is the maximum number of intra block copy merge candidates, and MaxNumMergeCand is the maximum number of inter prediction merge candidates.

24. The device according to claim 21, wherein To encode the first block of video data using the intra block copy mode and the intra block copy merge candidate, the one or more processors are further configured to: determining a block vector associated with the intra block copy merge candidate; and The first block of video data is encoded using the determined block vector.

25. The device according to claim 21, wherein The maximum number of intra block copy merging candidates ranges from 1 to 6.

26. The device according to claim 21, wherein The first syntax element specifying the value for deriving the maximum number of intra block copy merge candidates is different from a second syntax element specifying a value for deriving the maximum number of inter prediction merge candidates.

27. The device according to claim 26, wherein: The one or more processors are further configured to: encoding the second syntax element specifying a value for deriving the maximum number of inter prediction merge candidates; as well as The second block of video data is encoded using an inter-prediction merging mode according to the maximum number of inter-prediction merging candidates.

28. The apparatus of claim 21, further comprising: A camera is configured to capture a picture including the first video data block.

Citation Information

Patent Citations

  • Intra block copy merging data syntax for video coding

    US20200336735A1

  • Methods and systems for intra block copy coding with block vector derivation

    CN106576178A

  • Method of intra picture block copy for screen content and video coding

    CN107079161A

  • Method and apparatus for intra chroma coding in image and video coding

    CN109792516A