Method and device for video processing and medium

CN118947110APending Publication Date: 2024-11-12DOUYIN CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202380030172.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Priority Date
2022-03-25
Filing Date
2023-03-23
Publication Date
2024-11-12

AI Technical Summary

Technical Problem

In the existing video encoding and decoding technology, the intra-block copy buffer design only supports CTU sizes of 128, 64 or 32, and cannot support CTU sizes larger than 128, and does not support non-square CTU and VPDU sizes greater than 64x64, which limits encoding and decoding. Improved efficiency.

Method used

By adjusting the width and height of the IBC buffer to be 2m times the CTU width or height, the VPDU size is supported to be CTU size, and the appropriate IBC reference area is determined during the encoding and decoding process to improve the encoding and decoding efficiency.

Benefits of technology

Support for CTU sizes and non-square CTUs larger than 128 is realized, which improves the encoding and decoding efficiency, and improves the encoding and decoding performance by dynamically adjusting the IBC buffer parameters.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118947110A_ABST
    Figure CN118947110A_ABST
Patent Text Reader

Abstract

Embodiments of the present disclosure provide a solution for video processing. A method for video processing is presented. The method includes determining, during a transition between a video unit of a video and a bitstream of the video unit, a set of CTUs included in an intra block copy (IBC) buffer or an IBC reference region of the video unit based on a current codec tree unit (CTU), the video unit being applied in an IBC mode; and performing a conversion based on the set of CTUs.
Need to check novelty before this filing date? Find Prior Art

Description

CROSS-REFERENCE TO RELATED APPLICATIONS

[0001] This application claims priority to U.S. Provisional Application No. 63 / 323,855, filed on March 25, 2022, which is assigned to the assignee of the present application, the entire contents of which are incorporated herein by reference. Technical Field

[0002] Embodiments of the present disclosure generally relate to video coding techniques, and more particularly, to intra block copy buffer design. Background Art

[0003] Nowadays, digital video capabilities are being applied to all aspects of people's lives. Various types of video compression technologies, such as 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) standard, and Versatile Video Codec (VVC) standard have been proposed for video encoding / decoding. However, the encoding and decoding efficiency of video encoding and decoding technologies is generally expected to be further improved. Summary of the invention

[0004] Embodiments of the present disclosure provide a solution for video processing.

[0005] In a first aspect, a video processing method is proposed. The method includes: during conversion between a video unit of a video and a bitstream of the video unit, determining a group of CTUs included in an intra-frame block copy (IBC) buffer or an IBC reference area of ​​the video unit based on a current codec tree unit (CTU), and the video unit is applied in IBC mode; and performing conversion based on a group of CTUs. Compared with traditional schemes, embodiments of the present disclosure can advantageously improve codec efficiency.

[0006] In a second aspect, an apparatus for processing video data is provided. The apparatus for processing video data comprises a processor and a non-volatile memory having instructions thereon. The instructions, when executed by the processor, cause the processor to perform the method according to the first aspect.

[0007] In a third aspect, a non-transitory computer-readable storage medium is provided, wherein the non-transitory computer-readable storage medium stores instructions, the instructions causing a processor to execute the method according to the first aspect.

[0008] In a fourth aspect, a non-transitory computer-readable recording medium is provided. The non-transitory computer-readable recording medium stores a bitstream of a video, which is generated by a method performed by a video processing device. The method includes: determining a group of CTUs included in an intra-block copy (IBC) buffer or an IBC reference area of ​​a video unit of the video based on a current codec tree unit (CTU), and the video unit is applied in IBC mode; and generating a bitstream of the video unit based on a group of CTUs.

[0009] In a fifth aspect, a method for storing a bitstream of a video is provided. The method includes: determining a group of CTUs included in an intra-block copy (IBC) buffer or an IBC reference area of ​​a video unit of the video based on a current codec tree unit (CTU), the video unit being applied in an IBC mode; generating a bitstream of the video unit based on the group of CTUs; and storing the bitstream in a non-transitory computer-readable recording medium.

[0010] This summary is provided to introduce some concepts in a simplified form, which are further described in the following detailed description. This summary is not intended to identify key features or essential features of the claimed subject matter, nor is it intended to be used to limit the scope of the claimed subject matter. BRIEF DESCRIPTION OF THE DRAWINGS

[0011] The above and other purposes, features and advantages of the embodiments of the present disclosure will become more apparent through the following detailed description and with reference to the accompanying drawings. In the embodiments of the present disclosure, the same reference numerals generally refer to the same components.

[0012] Figure 1 A block diagram showing an example video encoding and decoding system according to some embodiments of the present disclosure is shown;

[0013] Figure 2 A block diagram illustrating a first example video encoder according to some embodiments of the present disclosure is shown;

[0014] Figure 3 A block diagram of an example video decoder according to some embodiments of the present disclosure is shown;

[0015] Figure 4 A block diagram showing the intra-frame template matching search area used;

[0016] Figure 5 A block diagram of an MMVD search point is shown;

[0017] Figure 6 A schematic diagram showing an example design of an IBC virtual buffer according to an embodiment of the present disclosure;

[0018] Figure 7A schematic diagram showing an example design of an IBC virtual buffer according to an embodiment of the present disclosure;

[0019] Figure 8 A schematic diagram showing an example design of an IBC virtual buffer according to an embodiment of the present disclosure;

[0020] Fig. 9 A schematic diagram showing an example design of an IBC virtual buffer according to an embodiment of the present disclosure;

[0021] Fig.10 A flowchart of a method according to an embodiment of the present disclosure is shown; and

[0022] Fig.11 A block diagram of a computing device is shown in which various embodiments of the present disclosure may be implemented.

[0023] Throughout the drawings, same or similar reference numbers generally refer to same or similar elements. DETAILED DESCRIPTION

[0024] The principles of the present disclosure are now described in conjunction with some embodiments. It should be understood that these embodiments are described only for the purpose of illustrating and helping those skilled in the art to understand and implement the present disclosure, and do not imply any limitation on the scope of the present disclosure. In addition to the methods described below, the disclosure described herein can also be implemented in various ways.

[0025] In the following description and claims, unless defined otherwise, all scientific and technical terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which the present disclosure belongs.

[0026] References in this disclosure to "one embodiment," "an embodiment," "an example embodiment," etc. indicate that the described embodiment may include a particular feature, structure, or characteristic, but not every embodiment must include the particular feature, structure, or characteristic. Furthermore, these phrases do not necessarily refer to the same embodiment. Furthermore, when a particular feature, structure, or characteristic is described in conjunction with an example embodiment, whether or not explicitly described, it is considered to be within the knowledge of those skilled in the art to affect such feature, structure, or characteristic in relation to other embodiments.

[0027] It should be understood that although the terms "first" and "second" etc. can be used to describe various elements, these elements should not be limited to these terms. These terms are only used to distinguish one element from another element. For example, a first element can be referred to as a second element, and similarly, a second element can be referred to as a first element without departing from the scope of the exemplary embodiments. As used herein, the term "and / or" includes any and all combinations of one or more of the listed terms.

[0028] The terms used herein are only used for the purpose of describing specific embodiments and are not intended to limit the exemplary embodiments. As used herein, the singular forms "a", "an", and "the" are also intended to include the plural forms unless the context clearly indicates otherwise. It should also be understood that the terms "including", "comprising", and / or "having" when used herein indicate the presence of the features, elements, and / or components, etc., but do not exclude the presence or addition of one or more other features, elements, components, and / or combinations thereof. Example Environment

[0029] Figure 1 1 is a block diagram illustrating an example video codec system 100 that may utilize the techniques of the present disclosure. As shown, the video codec system 100 may include a source device 110 and a destination device 120. The source device 110 may also be referred to as a video encoding device, and the destination device 120 may also be referred to as a video decoding device. In operation, the source device 110 may be configured to generate encoded video data, and the destination device 120 may be configured to decode the encoded video data generated by the source device 110. The source device 110 may include a video source 112, a video encoder 114, and an input / output (I / O) interface 116.

[0030] Video source 112 may include a source such as a video capture device. Examples of a video capture device include, but are not limited to, an interface that receives video data from a video content provider, a computer graphics system for generating video data, and / or combinations thereof.

[0031] The video data may include one or more pictures. The video encoder 114 encodes the video data from the video source 112 to generate a bit stream. The bit stream may include a bit sequence that forms a coded representation of the video data. The bit stream may include coded pictures and associated data. The coded pictures are coded representations of pictures. The associated data may include sequence parameter sets, picture parameter sets, and other grammatical structures. The I / O interface 116 may include a modulator / demodulator and / or a transmitter. The coded video data may be directly transmitted to the destination device 120 via the network 130A via the I / O interface 116. The coded video data may also be stored on a storage medium / server 130B for access by the destination device 120.

[0032] The destination device 120 may include an I / O interface 126, a video decoder 124, and a display device 122. The I / O interface 126 may include a receiver and / or a modem. The I / O interface 126 may obtain encoded video data from the source device 110 or the storage medium / server 130B. The video decoder 124 may decode the encoded video data. The display device 122 may display the decoded video data to the user. The display device 122 may be integrated with the destination device 120, or may be outside the destination device 120, which is configured to be connected to an external display device interface.

[0033] The video encoder 114 and the video decoder 124 may operate according to a video compression standard, such as the High Efficiency Video Codec (HEVC) standard, the Versatile Video Codec (VVC) standard, and other existing and / or further standards.

[0034] Figure 2 is a block diagram showing an example of a video encoder 200 according to some embodiments of the present disclosure, which may be Figure 1 An example of a video encoder 114 in the system 100 is shown.

[0035] Video encoder 200 may be configured to implement any or all of the techniques of this disclosure. Figure 2 In the example of , video encoder 200 includes multiple functional components. The techniques described in this disclosure can be shared between the various components of video encoder 200. In some examples, a processor can be configured to perform any or all of the techniques described in this disclosure.

[0036] In some embodiments, the video encoder 200 may include a partitioning unit 201, a prediction unit 202, a residual generation unit 207, a transformation unit 208, a quantization unit 209, an inverse quantization unit 210, an inverse transformation unit 211, a reconstruction unit 212, a buffer 213 and an entropy coding unit 214, and the prediction unit 202 may include a mode selection unit 203, a motion estimation unit 204, a motion compensation unit 205 and an intra-frame prediction unit 206.

[0037] In other examples, the video encoder 200 may include more, fewer, or different functional components. In one example, the prediction unit 202 may include an intra-block copy (IBC) unit. The IBC unit may perform prediction in an IBC mode, where at least one reference picture is a picture where the current video block is located.

[0038] Furthermore, although some components (such as the motion estimation unit 204 and the motion compensation unit 205) may be integrated, for the purpose of explanation, these components are described in detail below. Figure 2 are shown separately in the example.

[0039] The partitioning unit 201 may partition a picture into one or more video blocks. The video encoder 200 and the video decoder 300 may support various video block sizes.

[0040] The mode selection unit 203 may select one of a plurality of codec modes (intra-frame coding or inter-frame coding), for example, based on the error result, and provide the generated intra-frame codec block or inter-frame codec block to the residual generation unit 207 to generate residual block data, and to the reconstruction unit 212 to reconstruct the codec block for use as a reference picture. In some examples, the mode selection unit 203 may select a combination of intra-frame and inter-frame prediction (CIIP) modes, where the prediction is based on an inter-frame prediction signal and an intra-frame prediction signal. In the case of inter-frame prediction, the mode selection unit 203 may also select a resolution for the motion vector (e.g., sub-pixel precision or integer pixel precision) for the block.

[0041] To perform inter-frame prediction on the current video block, the motion estimation unit 204 may generate motion information for the current video block by comparing the current video block with one or more reference frames from the buffer 213. The motion compensation unit 205 may determine a predicted video block for the current video block based on the motion information and decoded samples of pictures from the buffer 213 other than the picture associated with the current video block.

[0042] The motion estimation unit 204 and the motion compensation unit 205 may perform different operations on the current video block, for example, depending on whether the current video block is in an I slice, a P slice, or a B slice. As used herein, an "I slice" may refer to a portion of a picture consisting of macroblocks, all of which are based on macroblocks within the same picture. Furthermore, as used herein, in some aspects, a "P slice" and a "B slice" may refer to a portion of a picture consisting of macroblocks that are independent of macroblocks in the same picture.

[0043] In some examples, the motion estimation unit 204 may perform unidirectional prediction on the current video block, and the motion estimation unit 204 may search the reference pictures of list 0 or list 1 to find the reference video block for the current video block. The motion estimation unit 204 may then generate a reference index and a motion vector, the reference index indicating the reference picture in list 0 or list 1 containing the reference video block, and the motion vector indicating the spatial displacement between the current video block and the reference video block. The motion estimation unit 204 may output the reference index, the prediction direction indicator, and the motion vector as the motion information of the current video block. The motion compensation unit 205 may generate a predicted video block for the current video block based on the reference video block indicated by the motion information of the current video block.

[0044] Alternatively, in other examples, the motion estimation unit 204 may perform bidirectional prediction on the current video block. The motion estimation unit 204 may search the reference pictures in list 0 for a reference video block for the current video block, and may also search the reference pictures in list 1 for another reference video block for the current video block. The motion estimation unit 204 may then generate a plurality of reference indexes and a plurality of motion vectors, the plurality of reference indexes indicating a plurality of reference pictures in list 0 and list 1 containing a plurality of reference video blocks, and the plurality of motion vectors indicating a plurality of spatial displacements between the plurality of reference video blocks and the current video block. The motion estimation unit 204 may output the plurality of reference indexes and the plurality of motion vectors of the current video block as motion information of the current video block. The motion compensation unit 205 may generate a predicted video block for the current video block based on the plurality of reference video blocks indicated by the motion information of the current video block.

[0045] In some examples, motion estimation unit 204 may output a complete set of motion information for use in a decoding process by a decoder. Alternatively, in some embodiments, motion estimation unit 204 may signal motion information of a current video block with reference to motion information of another video block. For example, motion estimation unit 204 may determine that motion information of a current video block is sufficiently similar to motion information of a neighboring video block.

[0046] In one example, motion estimation unit 204 may indicate to video decoder 300 a value in a syntax structure associated with the current video block that indicates that the current video block has the same motion information as another video block.

[0047] In another example, the motion estimation unit 204 may identify another video block and a motion vector difference (MVD) in a syntax structure associated with the current video block. The motion vector difference indicates the difference between the motion vector of the current video block and the motion vector of the indicated video block. The video decoder 300 may use the motion vector of the indicated video block and the motion vector difference to determine the motion vector of the current video block.

[0048] As discussed above, the video encoder 200 may signal motion vectors in a predictive manner.Two examples of prediction signaling techniques that may be implemented by the video encoder 200 include Advanced Motion Vector Prediction (AMVP) and merge mode signaling.

[0049] The intra prediction unit 206 may perform intra prediction on the current video block. When the intra prediction unit 206 performs intra prediction on the current video block, the intra prediction unit 206 may generate prediction data for the current video block based on decoded samples of other video blocks in the same picture. The prediction data for the current video block may include a prediction video block and various syntax elements.

[0050] The residual generation unit 207 may generate residual data for the current video block by subtracting (e.g., indicated by a minus sign) the prediction video block(s) of the current video block from the current video block. The residual data of the current video block may include residual video blocks corresponding to different sample portions of samples in the current video block.

[0051] In other examples, such as in skip mode, there may be no residual data for the current video block, and the residual generation unit 207 may not perform a subtraction operation.

[0052] Transform processing unit 208 may generate one or more transform coefficient video blocks for a current video block by applying one or more transforms to the residual video block associated with the current video block.

[0053] After transform processing unit 208 generates a transform coefficient video block associated with the current video block, quantization unit 209 may quantize the transform coefficient video block associated with the current video block based on one or more quantization parameter (QP) values ​​associated with the current video block.

[0054] The inverse quantization unit 210 and the inverse transform unit 211 may apply inverse quantization and inverse transform to the transform coefficient video block, respectively, to reconstruct a residual video block from the transform coefficient video block. The reconstruction unit 212 may add the reconstructed residual video block to corresponding samples from one or more prediction video blocks generated by the prediction unit 202 to generate a reconstructed video block associated with the current video block for storage in the buffer 213.

[0055] After reconstruction unit 212 reconstructs the video block, a loop filtering operation may be performed to reduce video blocking artifacts in the video block.

[0056] The entropy coding unit 214 may receive data from other functional components of the video encoder 200. When the entropy coding unit 214 receives data, the entropy coding unit 214 may perform one or more entropy coding operations to generate entropy-coded data and output a bitstream including the entropy-coded data.

[0057] Figure 3 is a block diagram showing an example of a video decoder 300 according to some embodiments of the present disclosure, which may be Figure 1 An example of a video decoder 124 in the system 100 is shown.

[0058] Video decoder 300 may be configured to perform any or all of the techniques of this disclosure. Figure 3In the example of , video decoder 300 includes multiple functional components. The techniques described in this disclosure can be shared between the various components of video decoder 300. In some examples, a processor can be configured to perform any or all of the techniques described in this disclosure.

[0059] exist Figure 3 In the example of , the video decoder 300 includes an entropy decoding unit 301, a motion compensation unit 302, an intra prediction unit 303, an inverse quantization unit 304, an inverse transform unit 305, and a reconstruction unit 306 and a buffer 307. In some examples, the video decoder 300 can perform a decoding process that is generally opposite to the encoding process described with respect to the video encoder 200.

[0060] The entropy decoding unit 301 can retrieve the encoded bitstream. The encoded bitstream may include entropy encoded video data (e.g., encoded video data blocks). The entropy decoding unit 301 can decode the entropy encoded and decoded video data, and the motion compensation unit 302 can determine motion information from the entropy decoded video data, the motion information including motion vectors, motion vector precision, reference picture list indexes, and other motion information. The motion compensation unit 302 can determine the information, for example, by performing AMVP and merge mode. AMVP is used, including deriving several most likely candidates based on data and reference pictures of adjacent PBs. The motion information typically includes horizontal and vertical motion vector displacement values, one or two reference picture indexes, and in the case of prediction areas in B strips, also includes an identification of which reference picture list is associated with each index. As used herein, in some aspects, "merge mode" may refer to deriving motion information from blocks adjacent in the spatial or temporal domain.

[0061] The motion compensation unit 302 may generate motion compensated blocks, possibly performing interpolation based on interpolation filters.Identifiers for the interpolation filters used with sub-pixel precision may be included in the syntax elements.

[0062] The motion compensation unit 302 may calculate interpolated values ​​for sub-integer pixels of a reference block using interpolation filters used by the video encoder 200 during encoding of the video block. The motion compensation unit 302 may determine the interpolation filters used by the video encoder 200 based on received syntax information, and the motion compensation unit 302 may use the interpolation filters to generate a prediction block.

[0063] The motion compensation unit 302 may use at least part of the syntax information to determine the size of blocks used to encode (multiple) frames and / or (multiple) slices of the encoded video sequence, partition information describing how each macroblock of a picture of the encoded video sequence is partitioned, a mode indicating how each partition is encoded, one or more reference frames (and reference frame lists) for each inter-frame coding block, and other information for decoding the encoded video sequence. As used herein, in some aspects, a "slice" may refer to a data structure that can be decoded independently of other slices of the same picture in terms of entropy coding, signal prediction, and residual signal reconstruction. A slice may be an entire picture, or it may be a region of a picture.

[0064] The intra prediction unit 303 may use, for example, an intra prediction mode received in the bitstream to form a prediction block from spatially neighboring blocks. The inverse quantization unit 304 inverse quantizes (i.e., dequantizes) the quantized video block coefficients provided in the bitstream and decoded by the entropy decoding unit 301. The inverse transform unit 305 applies an inverse transform.

[0065] The reconstruction unit 306 may obtain the decoded block, for example, by adding the residual block to the corresponding prediction block generated by the motion compensation unit 302 or the intra prediction unit 303. If necessary, a deblocking filter may also be applied to filter the decoded block in order to remove blocking artifacts. The decoded video block is then stored in a buffer 307, which provides reference blocks for subsequent motion compensation / intra prediction, and the buffer 307 also generates the decoded video for presentation on a display device.

[0066] Some example embodiments of the present disclosure will be described in detail below. It should be noted that the section titles used in this document are for ease of understanding, and the embodiments disclosed in the section are not limited to that section. In addition, although some embodiments are described with reference to general video codecs or other specific video codecs, the disclosed technology is also applicable to other video codec technologies. In addition, although some embodiments describe the video coding and decoding steps in detail, it should be understood that the corresponding decoding steps of the uncoding will be implemented by the decoder. In addition, the term video processing includes video coding or compression, video decoding or decompression, and video transcoding, in which video pixels are represented from one compression format to another compression format or at different compression bit rates. 1. Brief Overview This patent document relates to video coding technology. Specifically, it relates to intra-frame block replication in video coding. The video coding technology can be applied to standards that are being developed or planned, for example, a next-generation video coding standard that exceeds the Versatile Video Coding standard. The video coding technology can also be used for future video coding standards or video codecs. 2. Introduction Video codec standards have evolved primarily through the development of the well-known ITU-T and ISO / IEC standards. ITU-T developed H.261 and H.263, ISO / IEC developed MPEG-1 and MPEG-4 Visual, and the two organizations worked together to develop H.262 / MPEG-2 Video and H.264 / MPEG-4 Advanced Video Codec (AVC), H.265 / HEVC, and the latest H.266 / Versatile Video Codec (VVC) standards. Since H.261, video codec standards have been based on a hybrid video codec structure, where temporal prediction plus transform codec is used. In order to explore future video codec technologies beyond VVC, the Joint Video Exploration Team (JVET) started developing the Enhanced Compression Model in April 2021. Since then, JVET has adopted many new methods and put them into reference software. The latest software can be found at https: / / vcgit.hhi.fraunhofer.de / ecm / ECM / - / tags / ECM-2.0. 2.1 Virtual Pipeline Data Unit A Virtual Pipeline Data Unit (VPDU) is defined as a non-overlapping MxM-luma (L) / NxN-chroma (C) unit in a picture. In a hardware decoder, consecutive VPDUs are processed simultaneously by multiple pipeline stages; different stages process different VPDUs simultaneously. The VPDU size is roughly proportional to the buffer size in most pipeline stages, so it is very important to keep the VPDU size small. In the HEVC hardware decoder, the VPDU size is set to the maximum transform block (TB) size. In VVC, the VPDU size increases to 64x64-luma / 32x32-chroma for the 4:2:0 format. 2.2 Intra-frame Block Copying in VVC To support intra-block copy (IBC) in VVC, the concept of virtual buffer is used for reference buffer management. As in the JVET-2001-v2 document, given the CTU size, i.e., CtbSizeY, the buffer width in luma samples is defined as: IbcBufWidthY=256*128 / CtbSizeY. The corresponding chroma IBC buffer is defined as: IbcBufWidthC=IbcBufWidthY / SubWidthC, Where SubWidthC depends on the chroma format defined in the following table. Table 1. SubWidthC and SubHeightC values ​​derived from sps_chroma_format_idc The height of the buffer in luma samples is CtbSizeY. In VVC, the VPDU concept is applied to achieve parallel decoding between different VPDUs within a CTU to increase decoding throughput. The VPDU size can be derived from the CTU size, as shown in the following table. Table 2. VPDU size derived from CTU size in VVC CTU size VPDU size 128x128 64×64 64×64 64×64 32×32 32×32 VVC only supports CTU sizes of 32x32, 64x64, and 128x128. At the start of decoding a CTU row in a slice, the luma IBC buffer is reset to -1. Before decoding a new VPDU, the luma buffer corresponding to the VPDU is also reset to -1. After the data of the decoded VPDU is completed before loop filtering, the corresponding buffer samples are updated with the VPDU data just reconstructed. After reconstructing the CU, the reconstructed samples before loop filtering are stored in the IBC buffer as follows (as described in the text of JVET-T2001-v2): For i=0..nCurrSw-1, j=0..nCurrSh-1, the following assignments are made: xVb=(xCurr+i)%((cIdx==0)?IbcBufWidthY:IbcBufWidthC) (1197) yVb=(yCurr+j)%((cIdx==0)?CtbSizeY:(CtbSizeY / subHeightC)) (1198) IbcVirBuf[cIdx][xVb][yVb]=recSamples[xCurr+i][yCurr+j] (1199) If the CU uses IBC mode, its prediction is formed as follows: When cIdx is equal to 0, for x=xCb..xCb+cbWidth-1 and y=yCb..yCb+cbHeight-1, the following applies: xVb=(x+(bv[0]>>4))&(IbcBufWidthY-1) (1096) yVb=(y+(bv[1]>>4))&(CtbSizeY-1) (1097) predSamples[x-xCb][y-yCb]=IbcVirBuf[0][xVb][yVb] (1098). When cIdx is not equal to 0, for x=xCb / SubWidthC..xCb / SubWidthC+cbWidth / SubWidthC-1 and y=yCb / SubHeightC..yCb / SubHeightC+cbHeight / SubHeightC-1, the following apply: xVb=(x+(bv[0]>>(3+SubWidthC)))&(IbcBufWidthC-1) (1099) yVb=(y+(bv[1]>>(3+SubHeightC)))&((CtbSizeY / subHeightC)-1) (1100) predSamples[x-(xCb / SubWidthC)][y-(yCb / SubHeightC)]=IbcVirBuf[cIdx][xVb][yVb] (1101). 2.3 Enhanced Compression Model After completing the first version of VVC, JVET began to develop a test model to explore further improvements to VVC's codec efficiency. The test model was named the enhanced compression model. Many new codec tools (e.g., intra-frame temporal matching, dependent quantization with 8 states) were integrated into the VVC test model to improve codec efficiency. It should be noted that in ECM, the CTU size can be extended to 256x256. However, the IBC buffer with the extended CTU size and corresponding processing is undefined. 2.4 General Virtual Buffer In the example solution, several tiles are about CTU size 256x256. They are listed as follows: 11. When the size of CTU / CTB is 256x256, the corresponding IBC virtual buffer can be 64x256 in size to track the availability of reference samples, i.e., ibcBufW=64, ibcBufH=256. a. In one example, before decoding a VPDU with top left position (x0, y0), the corresponding VPDU row (0, y0%256) in the IBC buffer will be set to -1. 12. When the size of CTU / CTB is 256x256, the corresponding IBC virtual buffer can be 128x256 To track the availability of reference samples, ie, ibcBufW=128, ibcBufH=256. a. In one example, except for a specific VPDU row, for each VPDU row in the buffer, only one VPDU may be retained (excluding the current VPDU). i. In one example, except for the last VPDU row, for each VPDU row in the buffer, only one VPDU may be retained (excluding the current VPDU). This paper proposes a more systematic and general design to handle large CTUs. 2.5 Intra-frame Template Matching Intra Template Matching Prediction (Intra TMP) is a special intra prediction mode that copies the best prediction block from the reconstructed part of the current frame, whose L-shaped template matches the current template. For a predefined search range, the encoder searches for the template that is most similar to the current template in the reconstructed part of the current frame and uses the corresponding block as the prediction block. The encoder then signals the use of this mode and performs the same prediction operation on the decoder side. The prediction signal is obtained by combining the L-shaped causal neighborhood of the current block with Figure 4 Another block of predefined search areas in the search is generated to match, including: R1: current CTU, R2: Upper left CTU, R3: Upper CTU, R4: Left CTU. SAD is used as the cost function. In each region, the decoder searches for the template with the minimum SAD relative to the current one and uses its corresponding block as the prediction block. The size of all regions (SearchRange_w, SearchRange_h) is set proportional to the block size (BlkW, BlkH) so that each pixel has a fixed number of SADs. That is: SearchRange_w=a*BlkW SearchRange_h=a*BlkH Where 'a' is a constant that controls the gain / complexity tradeoff. In practice, 'a' is equal to 5. The intra template matching tool is enabled for CUs of size less than or equal to 64 in width and height. This maximum CU size for intra template matching is configurable. Intra template matching prediction mode is signaled at CU level through a dedicated flag. 2.6 Merge Mode with MVD (MMVD) In addition to the merge mode, a merge mode with motion vector difference (MMVD) is introduced in VVC when the implicitly derived motion information is directly used for prediction sample generation of the current CU. The MMVD flag is signaled after sending the regular merge flag to specify whether the MMVD mode is used for the CU. In MMVD, after a merge candidate is selected, it is further refined by the MVD information transmitted by the signal. Further information includes a merge candidate flag, an index for specifying the magnitude of motion, and an index for indicating the direction of motion. In MMVD mode, one of the first two candidates in the merge list is selected to be used as the MV basis. The mmvd candidate flag is transmitted by the signal to specify which one to use between the first and second merge candidates. The distance index specifies the motion magnitude information and indicates a predefined offset from the starting point. Figure 5 As shown, the offset is added to the horizontal component or the vertical component of the starting MV. The relationship between the distance index and the predefined offset is specified in Table 3. Table 3. Relationship between distance index and predefined offset 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 4. It should be noted that the meaning of the MVD sign can change according to the information of the starting MV. When the starting MV is a non-predicted MV or a bidirectional predicted MV with two lists pointing to the same side of the current picture (i.e., the POCs of both references are greater than the POC of the current picture, or both are less than the POC of the current picture), the sign in the table specifies the sign of the MV offset added to the starting MV. When the starting MV is a bidirectional predicted MV with two MVs pointing 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) and the POC difference in list 0 is greater than the POC difference in list 1, the sign in the table specifies the sign of the MV offset added to the list 0 MV component of the starting MV, and the sign of the list 1 MV has an opposite value. Otherwise, if the POC difference in list 1 is greater than list 0, then the sign in the table specifies the sign of the MV offset of the list 1 MV component added to the starting MV, and the sign of the list 0 MV has the opposite value. The MVD is scaled according to the POC difference in each direction. If the POC difference in both lists is the same, no scaling is required. Otherwise, if the POC difference in list 0 is greater than the POC difference in list 1, then the MVD of list 1 is scaled by defining the POC difference of L0 as td and the POC difference of L1 as tb. If the POC difference of L1 is greater than L0, then the MVD of list 0 is scaled in the same way. If the starting MV is unidirectionally predicted, then the MVD is added to the available MVs. Table 4. Sign of MV offset specified by direction index Directions to IDX 00 01 10 11 x-axis + - N / A N / A y-axis N / A N / A + - 3. Potential Problems There are some issues in the current design of IBC buffer design, and improvements are possible to alleviate those issues. 1) The current IBC buffer design only supports CTU sizes of 128, 64, or 32. It does not support CTU sizes greater than 128, such as 256 in ECM. 2) The current IBC buffer design does not support VPDU sizes greater than 64x64. 3) The current IBC buffer design does not support non-square CTUs. 4) The current IBC buffer design does not support non-square VPDUs. 4. Embodiments of the present disclosure In order to solve the above problems, the method outlined below is disclosed. The embodiments should be considered as examples to explain the general concept and should not be interpreted in a narrow manner. In addition, these embodiments can be applied individually or in combination in any way. 1) The width of the IBC buffer can be twice the width of the CTU m times, where m is a positive integer. a. In one example, when the CTU width in luma samples is 256, the IBC buffer width in luma samples may be 256. b. In one example, when the CTU width in luma samples is 256, the IBC buffer width in luma samples may be 512. c. In one example, when the CTU width in luma samples is 384, the IBC buffer width in luma samples may be 384. d. In one example, when the CTU width in luma samples is 384, the IBC buffer width in luma samples may be 384*2. e. In one example, when the CTU width in luma samples is 512, the IBC buffer width in luma samples may be 512. f. In one example, when the CTU width in luma samples is 512, the IBC buffer width in luma samples may be 512*2. 2) The height of the IBC buffer can be 2n times the height of the CTU, where n is a positive integer. a. In one example, when the CTU height in luma samples is 256, the IBC buffer height in luma samples may be 256. b. In one example, when the CTU height in luma samples is 256, the IBC buffer height in luma samples can be 512. 3) The width of the IBC buffer can be 2k times the VPDU width, where k is a positive integer. a. In one example, when the VPDU width in luma samples is 128, the IBC buffer width in luma samples may be 128. b. In one example, when the VPDU width in luma samples is 128, the IBC buffer width in luma samples may be 256. c. In one example, when the VPDU width in luma samples is 128, the IBC buffer width in luma samples may be 512. d. In one example, when the VPDU width in luma samples is 256, the IBC buffer width in luma samples may be 256. e. In one example, when the VPDU width in luma samples is 256, the IBC buffer width in luma samples may be 512. f. In one example, when the VPDU width in luma samples is 256, the IBC buffer width in luma samples may be 1024. 4) The height of the IBC buffer can be 21 times the height of the VPDU, where l is a positive integer. a. In one example, when the VPDU height in luma samples is 128, the IBC buffer height in luma samples may be 128. b. In one example, when the VPDU height in luma samples is 128, the IBC buffer height in luma samples may be 256. c. In one example, when the VPDU height in luma samples is 256, the IBC buffer height in luma samples may be 256. d. In one example, when the VPDU height in luma samples is 256, the IBC buffer height in luma samples may be 512. 5) When IBC buffering is considered, the VPDU size can always be set to the CTU size. a. In one example, the VPDU width may be set to the CTU width. b. In one example, the VPDU height may be set to the CTU height. 6) The validity check of the block vector may depend on the height of the IBC buffer, which may or may not be equal to the CTU height. a. In one example, the validity of a block vector may be determined by whether a reference block derived from an IBC buffer with buffer width and height parameters contains invalid sample values. 7) The resetting of the IBC buffer may depend on the height of the IBC buffer, which may or may not be equal to the CTU height. a. In one example, at the start of decoding a CTU row in a slice, the reset of the IBC buffer applies to all samples within the buffer width and height. b. In one example, after reconstructing the VPDU, the corresponding block derived from the IBC buffer with the buffer width and height parameters may be reset c. In one example, after reconstructing a CU, the corresponding block derived from the IBC buffer with buffer width and height parameters may be reset. d. In one example, after reconstructing a CTU, the corresponding block derived from the IBC buffer with buffer width and height parameters may be reset. 8) In the above examples, the variables m, n, k, l may depend on the CTU width / height. a. Alternatively, the value of the variable or an indication of the width / height of the IBC buffer may be signaled. 9) In the above examples, variables m and n may be set to the same or different values. a. Alternatively, whether to set m and n to the same value may depend on whether the CTU width and height are equal. 10) In the above example, variables k and l may be set to the same or different values. a. Alternatively, whether to set k and l to the same value may depend on whether the VPDU width and height are equal. 11) The reference region of the IBC may be set to correspond to the reference region for intra template matching. a. Alternatively, the reference region for intra template matching may be set to correspond to the reference region for IBC. b. In one example, assuming that the block is encoded in intra template matching mode, the reference area for each IBC block can be set to the largest area including template samples. c. In one example, assuming that the block is encoded in intra template matching mode, the reference area for each IBC block can be set to the largest area that does not include template samples. 12) For a block vector (BVx, BVy) of a block of width W and height H, when BVx is equal to 0, an unsigned integer depending on H can be encoded or decoded to represent BVy. a. In one example, using EG1, can be encoded and decoded and BVy can be reconstructed as -(h+H). 13) For a block vector (BVx, BVy) of a block of width W and height H, when BVy is equal to 0, an unsigned integer depending on W may be encoded or decoded to represent BVx. a. In one example, using EG1, can be encoded and decoded and BVx can be reconstructed as -(w+W). 14) IBC may not be allowed for certain CTU / CTB sizes. a. In one example, when the CTU / CTB width and / or height is equal to or greater than a certain value, IBC may not be allowed. i. In one example, this value is 128. ii. In one example, the value is 256. b. When IBC is not allowed for those CTU sizes, the flag indicating IBC usage may be skipped and inferred to be 0. 15) The reconstructed samples above the current CTU row and within the stripe can be used for IBC reference. a. Alternatively, the reconstructed samples above the current CTU row and within the tile can be used for IBC reference. i. In one example, reconstructed samples outside the current tile should not be used as IBC references. b. Alternatively, the reconstructed samples above the current CTU row and within the sub-picture can be used for IBC reference. i. In one example, reconstructed samples outside the current sub-picture should not be referenced with IBC. 16) The width W of the IBC buffer or IBC reference area may be the picture width, ie, PW. a. Alternatively, W may be equal to m times the CTU width, where m is the smallest integer such that m times the CTU width is not less than PW. b. Alternatively, W may be equal to m times the VPDU width, where m is the smallest integer such that m times the VPDU width is not less than PW. 17) The height H of the IBC buffer or IBC reference area can be n times the height of the CTU, that is, PH. a. Alternatively, H may be equal to n times the CTU height, where n is the smallest integer such that n times the CTU height is not less than PH. b. Alternatively, H may be equal to n times the VPDU height, where n is the smallest integer such that n times the CTU height is not less than PH. c. In one example, n can be 2. 18) The IBC buffer or reference area may contain all CTUs with smaller horizontal indices than the current CTU in the current CTU row within the current slice. a. Alternatively, the IBC buffer or reference area may contain more than the current CTU row in the current tile. A CTU has all CTUs with smaller horizontal indices. b. Alternatively, the IBC buffer or reference area may contain all CTUs with smaller horizontal indices than the current CTU in the current CTU row within the current sub-picture. 19) Assuming the horizontal index of the current CTU is x, the IBC buffer or reference area may contain CTUs whose horizontal index is not less than x in the CTU row just above the current CTU within the current slice and / or current tile and / or current sub-picture. An example is shown in Example 5.7. a. Alternatively, the IBC buffer or reference area may contain all CTUs with horizontal indices greater than x in the CTU row just above the current CTU within the current slice and / or current tile and / or current sub-picture. An example is shown in Embodiment 5.8. b. Alternatively, the IBC buffer or reference area may be contained in the current stripe and / or the current tile and / or the current sub All CTUs with horizontal indices not less than (x-1) in the CTU row directly above the current CTU within the picture. 20) Assuming that the current CTU index is (m,n), where m and n are non-negative integers, when WPP is used, the reference region may include CTUs within the current slice and / or current tile and / or current sub-picture, with CTUs having indices (m,0)…(m,n-1), (m-1,0)…(m-1,n), (m-2,0)…(m-2,n+1), …, (m-1-k)…(n+k). a. Alternatively, the buffering may be the same whether WPP is used or not. 21) Whether an IBC reference area / buffer contains samples from different sub-pictures may depend on decoded information. a. In one example, it may depend on whether filtering cross-sub-pictures is enabled. b. In one example, it may depend on whether independent sub-picture decoding is enabled. 22) The search area for intra template matching including the template and the reference block itself can be restricted to the reference area of ​​the IBC. a. In one example, the search area for intra template matching may be limited to the current CTU row and the CTU row just above the current slice and / or the current tile and / or the current sub-picture. 23) CTU can be replaced by CTB or VPDU or video unit in the above description list of this disclosure, and the idea still applies. 24) Assuming that the current CTU index is (m,n), where m and n are non-negative integers, the reference area may include CTUs within the current slice and / or the current tile and / or the current sub-picture, and the CTUs have indices (m,0)...(m,n-1), (m-1,0)...(m-1,n+k), (m-2,n-2)...(m-2,n+k). a. Alternatively, assuming that the current CTU index is (m,n), where m and n are non-negative integers, the reference area may include CTUs within the current slice and / or the current tile and / or the current sub-picture, and the CTUs have indices (m,0)...(m,n-1), (m-1,n-1)...(m-1,n+k). b. Which reference region is applied may depend on the CTU size. i. In one example, when the CTU size is 128x128, the reference area may include CTUs within the current slice and / or the current tile and / or the current sub-picture, and the CTUs have indexes (m, 0)...(m, n-1), (m-1, n-1)...(m-1, n+k); when the CTU size is 256x256, the reference area may include CTUs within the current slice and / or the current tile and / or the current sub-picture, and the CTUs have indexes (m, 0)...(m, n-1), (m-1, 0)...(m-1, n+k), (m-2, n-2)...(m-2, n+k). 25) The reference area may contain K rows of samples above the current CTU. a. In one example, the reference area may contain 320 rows of luma samples above the current CTU. 26) Alternatively, the reference region should not include rows of samples above the K rows of samples. 5. Examples Without further mention, the following examples are based on the specification text described in JVET-T2001-v2. The most relevant parts that have been added or modified are highlighted, and some deleted parts are highlighted in strikethrough font. There may also be some other changes that are editorial in nature and therefore not highlighted. 5.1 Example #1 When the CTU size in luma samples is 256x256, the following applies: IbcBufWidthC=IbcBufWidthY / SubWidthC (46) VSize=Min(64,CtbSizeY) (47). 5.2 Example #2 When the CTU size in luma samples is 256x256, the following applies: IbcBufWidthC=IbcBufWidthY / SubWidthC (46) VSize=Min(64,CtbSizeY) (47). 5.3 Example #3 When the CTU size in luma samples is 256x256, the following applies: IbcBufWidthC=IbcBufWidthY / SubWidthC (46) VSize=Min(64128,CtbSizeY) (47). 5.4 Example #4 When the CTU size in luma samples is 256x256, the following applies: IbcBufWidthC=IbcBufWidthY / SubWidthC (46) VSize=Min(64256,CtbSizeY) (47). 5.5 Example #5 When the CTU size in luma samples is 256x256, the following applies: IbcBufWidthC=IbcBufWidthY / SubWidthC (46) 5.6 Example #6 When the CTU size in luma samples is 256x256, the following applies: IbcBufWidthY=256*128 / CtbSizeY (45) IbcBufWidthC=IbcBufWidthY / SubWidthC (46) VSize=Min(64,CtbSizeY) (47) IbcBufHeightY=CtbSizeY>>1. 8.6.2 Derivation of Block Vector Components for IBC Blocks 8.6.2.1 General The input to this process is: – The luminance position (xCb, yCb) of the upper left corner sample of the current luminance coding block relative to the upper left corner sample of the current picture, – The variable cbWidth specifies the width of the current codec block in luma samples, – The variable cbHeight specifies the height of the current codec block in luma samples. The output of this process is: – Luma block vector bvL in 1 / 16 fractional sample precision. The luma block vector bvL is derived as follows: – Call the derivation process of the IBC luma block vector prediction as specified in clause 8.6.2.2 with the luma position (xCb, yCb), variables cbWidth and cbHeight as input and the luma block vector bvL as output. – When general_merge_flag[xCb][yCb] is equal to 0, the following applies: 1. The variable bvd is exported as follows: bvd[0]=MvdL0[xCb][yCb][0] (1081) bvd[1]=MvdL0[xCb][yCb][1] (1082) 2. Invoke the rounding process for motion vectors as specified in clause 8.5.2.14, setting mvX equal to bvL, rightShift equal to AmvrShift, and leftShift equal to AmvrShift as input, and the rounded bvL as output. 3. The luminance block vector bvL is modified as follows: u[0]=(bvL[0]+bvd[0])&(2 18 -1) (1083) bvL[0]=(u[0]>=2 17 )? (u[0]-2 18 ):u[0] (1084) u[1]=(bvL[1]+bvd[1])&(2 18 -1) (1085) bvL[1]=(u[1]>=2 17 )? (u[1]-218 ):u[1] (1086) Note that the result values ​​of -bvL[0] and bvL[1] are in the range of -2 17 To 2 17 -1 (including -2 17 and 2 17 -1). When IsGt4by4 is equal to TRUE, the history-based block vector predictor list update process as specified in clause 8.6.2.6 is called with the luma block vector bvL. The bitstream conformance requirement is that the luma block vector bvL shall obey the following constraints: – When x=xCb..xCb+cbWidth-1 and y=yCb..yCb+cbHeight-1, it should not be equal to -1. … xVb=(xCurr+i)%((cIdx==0)?IbcBufWidthY:IbcBufWidthC (1197) IbcVirBuf[cIdx][xVb][yVb]=recSamples[xCurr+i][yCurr+j] (1199) … When cIdx is equal to 0, for x = xCb..xCb+cbWidth-1 and y = yCb..yCb+cbHeight-1, the following applies: xVb=(x+(bv[0]>>4))&(IbcBufWidthY-1) (1096) predSamples[x-xCb][y-yCb]=IbcVirBuf[0][xVb][yVb] (1098) When cIdx is not equal to 0, for x=xCb / SubWidthC..xCb / SubWidthC+cbWidth / SubWidthC-1 and y=yCb / SubHeightC..yCb / SubHeightC+cbHeight / SubHeightC-1, the following applies: xVb=(x+(bv[0]>>(3+SubWidthC)))&(IbcBufWidthC-1) (1099) predSamples[x-(xCb / SubWidthC)][y-(yCb / SubHeightC)]=IbcVir-Buf[cIdx][xVb][yVb] (1101) 5.7 Example #7 Figure 6 FIG. 6 shows an exemplary design of an IBC virtual buffer 600 whose width is not less than the picture width and whose height is twice the CTU height. Figure 6 As shown, the current CTU is represented as 610, and the reference region of the IBC is represented as 620. The invalid reference region of the IBC is represented as 630. 5.8 Example #8 Figure 7 FIG. 7 shows an exemplary design of an IBC virtual buffer 700 whose width is not less than the picture width and whose height is twice the CTU height. Figure 7 As shown, the current CTU is represented as 710, and the reference region of the IBC is represented as 720. The invalid reference region of the IBC is represented as 730. The corresponding text changes to: 7.3.11.1 7.4.3.4 … The variables MinCbLog2SizeY, MinCbSizeY, IbcBufWidthY, IbcBufWidthC, and Vsize are exported as follows: MinCbLog2SizeY=sps_log2_min_luma_coding_block_size_minus2+2 (43) MinCbSizeY=1< <MinCbLog2SizeY (44) IbcBufWidthC=IbcBufWidthY / SubWidthC (46). 7.4.12.5 … When ResetWholeIbcBuf is equal to 1, the following applies: – For x = 0..IbcBufWidthY-1 and y = 0..2*CtbSizeY-1, make the following assignments: IbcVirBuf[0][x][y]=-1 –The variable ResetWholeIbcBuf is set equal to 0. When ResetIbcBuf is equal to 1, the following applies: -for Make the following assignments: IbcVirBuf[0][x][y]=-1 (174) –The variable ResetIbcBuf is set equal to 0. When x0% CtbSizeY equals 0 and y0% When CtbSizeY is equal to 0 and x0 is not less than (CtbSizeY<<1), for and Make the following assignments: IbcVirBuf[0][x+x0-(CtbSizeY<<1)][(y+y0)%(CtbSizeY<<1)]=-1(175) 8.6.2.1 … The bitstream conformance requirement is that the luma block vector bvL shall obey the following constraints: – For x=xCb..xCb+cbWidth-1 and y=yCb..yCb+cbHeight-1, should not be equal to -1. 8.6.3 … When cIdx is equal to 0, for x=xCb..xCb+cbWidth-1 and y=yCb..yCb+cbHeight-1, the following applies: yVb=(y+(bv[1]>>4))&(2*CtbSizeY-1) (1097) predSamples[x-xCb][y-yCb]=IbcVirBuf[0][xVb][yVb] (1098). When cIdx is not equal to 0, for x=xCb / SubWidthC..xCb / SubWidthC+cbWidth / SubWidthC-1 and y=yCb / SubHeightC..yCb / SubHeightC+cbHeight / SubHeightC-1, the following applies: yVb=(y+(bv[1]>>(3+SubHeightC))&((2*CtbSizeY / subHeightC)-1) (1100) predSamples[x-(xCb / SubWidthC)][y-(yCb / SubHeightC)]=IbcVir-Buf[cIdx][xVb][yVb] (1101). 5.9 Example #9 Figure 8 An exemplary design of an IBC virtual buffer 800 is shown. The current CTU / CTB / video unit is denoted 810 and the reference region is denoted 820. It shows an example of embodiment item 20. The invalid reference region of the IBC is denoted 830. 5.10 Example #10 Fig. 9 An exemplary design of an IBC virtual buffer 900 is shown. The current CTU / CTB / video unit is denoted 910, and the reference region is denoted 920. The invalid reference region of the IBC is denoted 930. It shows an example of item 24. The corresponding text changes to: 7.3.11.1 7.4.3.4 … The variables MinCbLog2SizeY, MinCbSizeY, IbcBufWidthY, IbcBufWidthC, and Vsize are exported as follows: MinCbLog2SizeY=sps_log2_min_luma_coding_block_size_minus2+2 (43) MinCbSizeY=1< <MinCbLog2SizeY (44) IbcBufWidthC=IbcBufWidthY / SubWidthC (46). 7.4.12.5 … When ResetWholeIbcBuf is equal to 1, the following applies: – For x = 0..IbcBufWidthY-1 and y = 0..4*CtbSizeY-1, make the following assignments: IbcVirBuf[0][x][y]=-1 –The variable ResetWholeIbcBuf is set equal to 0. When ResetIbcBuf is equal to 1, the following applies: – For x=0..IbcBufWidthY=-1 and Make the following assignments: IbcVirBuf[0][x][y]=-1 (174) –The variable ResetIbcBuf is set equal to 0. When x0% CtbSizeY equals 0 and y0% When CtbSizeY is equal to 0 and x0 is not less than (CtbSizeY<<2), for and Make the following assignments: IbcVirBuf[0][x+x0-(CtbSizeY<<2)][(y+y0)%(CtbSizeY<<2)]=-1 (175) 8.6.2.1 … The bitstream conformance requirement is that the luma block vector bvL shall obey the following constraints: – For x=xCb..xCb+cbWidth-1 and y=yCb..yCb+cbHeight-1, should not be equal to -1. 8.6.3 … When cIdx is equal to 0, for x=xCb..xCb+cbWidth-1 and y=yCb..yCb+cbHeight-1, the following applies: yVb=(y+(bv[1]>>4))&(4*CtbSizeY-1) (1097) predSamples[x-xCb][y-yCb]=IbcVirBuf[0][xVb][yVb] (1098) When cIdx is not equal to 0, for x=xCb / SubWidthC..xCb / SubWidthC+cbWidth / SubWidthC-1 and y=yCb / SubHeightC..yCb / SubHeightC+cbHeight / SubHeightC-1, the following applies: yVb=(y+(bv[1]>>(3+SubHeightC))&((2*CtbSizeY / subHeightC)-1) (1100) predSamples[x-(xCb / SubWidthC)][y-(yCb / SubHeightC)]=IbcVir-Buf[cIdx][xVb][yVb] (1101)

[0067] As used herein, the term "video unit" used herein may refer to one or more of the following: a color component, a sub-picture, a slice, a tile, a codec tree unit (CTU), a CTU row, a CTU group, a codec unit (CU), a prediction unit (PU), a transform unit (TU), a codec tree block (CTB), a codec block (CB), a prediction block (PB), a transform block (TB), a block, a sub-block of a block, a sub-region within a block, or an area including more than one sample or pixel.

[0068] Fig.10 A flow chart of a method 1000 for video processing according to some embodiments of the present disclosure is shown. The method 1000 is implemented during conversion between bitstreams of blocks.

[0069] like Fig.10 As shown, at block 1010, during conversion between a video unit of a video and a bitstream of the video unit, a set of CTUs included in an intra-block copy (IBC) buffer or an IBC reference area of ​​the video unit is determined based on a current codec tree unit (CTU). The video unit is applied in an intra-block copy (IBC) mode. In some embodiments, in the IBC mode, prediction samples can be derived from blocks of sample values ​​of the same video region as the video region determined by the block vector.

[0070] At block 1020, conversion is performed based on a group of CTUs. In some embodiments, conversion may include encoding the video unit into a bitstream. In some embodiments, conversion may include decoding the video unit from the bitstream.

[0071] According to an embodiment of the present disclosure, a CTU / CTB / VPDCU included in an IBC buffer or an IBC reference area may be determined. Compared with conventional schemes, an embodiment of the present disclosure may advantageously improve coding efficiency.

[0072] Embodiments of the present disclosure may be described in terms of the following clauses, and features of these clauses may be combined in any reasonable way.

[0073] In some embodiments, if the first element of the index of the current CTU is m and the second element of the index of the current CTU is n, the IBC buffer or IBC reference area may include a group of CTUs in at least one of the current slice, the current tile, or the current sub-picture, the group of CTUs having indices (m, 0) ... (m, n-1), (m-1, 0) ... (m-1, n+k), (m-2, n-2) ... (m-2, n+k). In this case, m, n, and k may be non-negative integers. Fig. 9 Shown is an exemplary design of an IBC virtual buffer 900. The current CTU / CTB / video unit is denoted 910, and the reference region is denoted 920. The invalid reference region of the IBC is denoted 930.

[0074] In some embodiments, if the first element of the index of the current CTU is m and the second element of the index of the current CTU is n, the IBC buffer or IBC reference area may include a group of CTUs in at least one of the current slice, the current tile, or the current sub-picture, the group of CTUs having indices (m, 0) ... (m, n-1), (m-1, n-1) ... (m-1, n+k). In this case, m, n, and k may be non-negative integers.

[0075] In some embodiments, the target IBC reference area to be applied may be determined based on the CTU size. For example, which reference area to apply may depend on the CTU size. In one example, if the width of the CTU size is 128 luma samples and the height of the CTU size is 128 luma samples, the target IBC reference area may include a group of CTUs within at least one of the current strip, the current tile, or the current sub-picture, the group of CTUs having indexes (m, 0) ... (m, n-1), (m-1, n-1) ... (m-1, n+k). In another example, if the width of the CTU size is 256 luma samples and the height of the CTU size is 256 luma samples, the target IBC reference area may include a group of CTUs within at least one of the current strip, the current tile, or the current sub-picture, the group of CTUs having indexes (m, 0) ... (m, n-1), (m-1, 0) ... (m-1, n+k), (m-2, n-2) ... (m-2, n+k). In this case, m, n, and k may be non-negative integers.

[0076] In some embodiments, the IBC buffer or IBC reference area may include multiple rows of samples above the current CTU. In other words, the IBC reference area may contain K rows of samples above the current CTU. In one example, the IBC buffer or IBC reference area may include 320 rows of luminance samples above the current CTU. Alternatively, the IBC buffer or IBC reference area may not include rows of samples above the multiple rows of samples.

[0077] In some embodiments, a set of CTUs included in an intra-block copy (IBC) buffer or an IBC reference area of ​​a video unit of a video is determined based on a current codec tree unit (CTU). The video unit is applied in IBC mode. A bitstream of the video unit is generated based on a set of CTUs.

[0078] In some embodiments, a group of CTUs included in an intra-block copy (IBC) buffer or an IBC reference area of ​​a video unit of a video is determined based on a current codec tree unit (CTU). The video unit is applied in IBC mode. A bitstream of the video unit is generated based on a group of CTUs. The bitstream is stored in a non-transitory computer-readable recording medium.

[0079] A non-transitory computer-readable recording medium stores a bitstream of a video, the bitstream being generated by a method performed by a video processing device. The method includes: determining a group of CTUs included in an intra-block copy (IBC) buffer or an IBC reference area of ​​a video unit of the video based on a current codec tree unit (CTU), the video unit being applied in an IBC mode; and generating a bitstream of the video unit based on the group of CTUs.

[0080] A method for storing a video bitstream includes: determining a group of intra-block copy (IBC) buffers or IBC reference areas of a video unit of a video based on a current codec tree unit (CTU), the video unit being applied in an IBC mode; generating a bitstream of the video unit based on the group of CTUs; and storing the bitstream in a non-transitory computer-readable recording medium.

[0081] In some example embodiments, the derivation process for the block vector components of the IBC block may be as shown in Table 5. Table 5

[0082] The embodiments of the present disclosure may be implemented individually. Alternatively, the embodiments of the present disclosure may be implemented in any appropriate combination. The embodiments of the present disclosure may be described according to the following clauses, and their features may be combined in any reasonable manner.

[0083] Clause 1. A video processing method, comprising: during conversion between a video unit of a video and a bitstream of the video unit, determining a group of CTUs included in an intra-block copy (IBC) buffer or an IBC reference area of ​​the video unit based on a current codec tree unit (CTU), the video unit being applied in IBC mode; and performing the conversion based on the group of CTUs.

[0084] Clause 2. A method according to clause 1, wherein if the first element of the index of the current CTU is m and the second element of the index of the current CTU is n, then the IBC buffer or the IBC reference area includes a group of CTUs within at least one of the current slice, the current tile or the current sub-picture, the group of CTUs having indexes (m,0)…(m,n-1), (m-1,0)…(m-1,n+k), (m-2,n-2)…(m-2,n+k), and wherein m, n and k are non-negative integers.

[0085] Clause 3. The method according to clause 1, wherein if the first element of the index of the current CTU is m and the second element of the index of the current CTU is n, then the IBC buffer or the IBC reference area includes a group of CTUs within at least one of the current slice, the current tile or the current sub-picture, the group of CTUs having indices (m,0)…(m,n-1), (m-1,n-1)…(m-1,n+k), and wherein m, n and k are non-negative integers.

[0086] Clause 4. The method of clause 1, further comprising: determining a target IBC reference region to be applied based on a CTU size.

[0087] Clause 5. A method according to clause 4, wherein if the width of the CTU size is 128 luma samples and the height of the CTU size is 128 luma samples, the target IBC reference area includes a set of CTUs within at least one of the current slice, the current tile, or the current sub-picture, the set of CTUs having indices (m,0)…(m,n-1), (m-1,n-1)…(m-1,n+k), and wherein m, n, and k are non-negative integers.

[0088] Clause 6. A method according to clause 4, wherein if the width of the CTU size is 256 luma samples and the height of the CTU size is 256 luma samples, the target IBC reference area includes a set of CTUs within at least one of the current slice, the current tile, or the current sub-picture, the set of CTUs having indices (m,0)…(m,n-1), (m-1,0)…(m-1,n+k), (m-2,n-2)…(m-2,n+k), and wherein m, n, and k are non-negative integers.

[0089] Clause 7. The method of clause 1, wherein the IBC buffer or the IBC reference region includes multiple rows of samples above the current CTU.

[0090] Clause 8. The method of clause 7, wherein the IBC buffer or the IBC reference region includes 320 rows of luma samples above the current CTU.

[0091] Clause 9. The method of Clause 7, wherein the IBC buffer or the IBC reference region does not include rows of samples above the plurality of rows of samples.

[0092] Clause 10. A method according to any of clauses 1 to 9, wherein in the IBC mode, prediction samples are derived from a block of sample values ​​of the same video area as the video area determined by the block vector.

[0093] Clause 11. A method according to any one of clauses 1 to 10, wherein the converting comprises encoding a target block into the bitstream.

[0094] Clause 12. A method according to any one of clauses 1 to 10, wherein the converting comprises decoding a target block from the bitstream.

[0095] Clause 13. An apparatus for processing video data, comprising a processor and a non-transitory memory having instructions thereon, wherein the instructions, when executed by the processor, cause the processor to perform the method of any one of clauses 1 to 12.

[0096] Clause 14. A non-transitory computer-readable storage medium storing instructions that cause a processor to perform the method of any one of clauses 1 to 12.

[0097] Item 15. A non-transitory computer-readable recording medium storing a bitstream of a video, the bitstream being generated by a method performed by a video processing device, wherein the method comprises: determining, based on a current codec tree unit (CTU), a group of CTUs included in an intra-block copy (IBC) buffer or an IBC reference area of ​​a video unit of the video, the video unit being applied in IBC mode; and generating a bitstream of the video unit based on the group of CTUs.

[0098] Clause 16. A method for storing a bitstream of a video, comprising: determining, based on a current codec tree unit (CTU), a set of CTUs included in an intra-block copy (IBC) buffer or an IBC reference area of ​​a video unit of the video, the video unit being applied in IBC mode; generating a bitstream of the video unit based on the set of CTUs; and storing the bitstream in a non-transitory computer-readable recording medium. Device Examples

[0099] Fig.11 A block diagram of a computing device 1100 in which various embodiments of the present disclosure may be implemented is shown. The computing device 1100 may be implemented as a source device 110 (or video encoder 114 or 200) or a destination device 120 (or video decoder 124 or 300), or may be included in a source device 110 (or video encoder 114 or 200) or a destination device 120 (or video decoder 124 or 300).

[0100] It should be understood that Fig.11 The computing device 1100 shown in FIG. 1 is for illustrative purposes only and is not intended to in any way imply any limitation on the functionality and scope of the embodiments of the present disclosure.

[0101] like Fig.11 As shown, computing device 1100 includes a general computing device 1100. Computing device 1100 may include at least one or more processors or processing units 1110, memory 1120, storage unit 1130, one or more communication units 1140, one or more input devices 1150, and one or more output devices 1160.

[0102] In some embodiments, the computing device 1100 can be implemented as any user terminal or server terminal with computing capabilities. The server terminal can be a server provided by a service provider, a large computing device, etc. The user terminal can be, for example, any type of mobile terminal, fixed terminal or portable terminal, including a mobile phone, a station, a unit, a device, a multimedia computer, a multimedia tablet computer, an Internet node, a communicator, a desktop computer, a laptop computer, a notebook computer, a netbook computer, a personal communication system (PCS) device, a personal navigation device, a personal digital assistant (PDA), an audio / video player, a digital camera / camcorder, a positioning device, a television receiver, a radio broadcast receiver, an electronic book device, a gaming device, or any combination thereof, and includes accessories and peripherals of these devices, or any combination thereof. It is conceivable that the computing device 1100 can support any type of interface to the user (such as a "wearable" circuit device, etc.).

[0103] The processing unit 1110 may be a physical processor or a virtual processor and may implement various processes based on a program stored in the memory 1120. In a multi-processor system, multiple processing units execute computer executable instructions in parallel to improve the parallel processing capability of the computing device 1100. The processing unit 1110 may also be referred to as a central processing unit (CPU), a microprocessor, a controller, or a microcontroller.

[0104] The computing device 1100 typically includes various computer storage media. Such media can be any media accessible by the computing device 1100, including but not limited to volatile media and non-volatile media, or removable media and non-removable media. The memory 1120 can be a volatile memory (e.g., a register, a cache, a random access memory (RAM)), a non-volatile memory (such as a read-only memory (ROM), an electrically erasable programmable read-only memory (EEPROM) or flash memory) or any combination thereof. The storage unit 1130 can be any removable or non-removable medium, and can include machine-readable media, such as a memory, a flash drive, a disk, or other media that can be used to store information and / or data and can be accessed in the computing device 1100.

[0105] The computing device 1100 may also include additional removable / non-removable storage media, volatile / non-volatile storage media. Fig.11 Although not shown in the figure, a magnetic disk drive for reading from and / or writing to a removable nonvolatile magnetic disk and an optical disk drive for reading from and / or writing to a removable nonvolatile optical disk may be provided. In this case, each drive may be connected to the bus (not shown) via one or more data medium interfaces.

[0106] The communication unit 1140 communicates with another computing device via a communication medium. In addition, the functionality of the components in the computing device 1100 can be implemented by a single computing cluster or multiple computing machines that can communicate via a communication connection. Therefore, the computing device 1100 can operate in a networked environment using logical connections to one or more other servers, networked personal computers (PCs), or other general network nodes.

[0107] The input device 1150 may be one or more of various input devices, such as a mouse, keyboard, trackball, voice input device, etc. The output device 1160 may be one or more of various output devices, such as a display, a speaker, a printer, etc. With the help of the communication unit 1140, the computing device 1100 may also communicate with one or more external devices (not shown), such as storage devices and display devices, and the computing device 1100 may also communicate with one or more devices that enable a user to interact with the computing device 1100, or any device that enables the computing device 1100 to communicate with one or more other computing devices (e.g., a network card, a modem, etc.), if necessary. Such communication may be performed via an input / output (I / O) interface (not shown).

[0108] In some embodiments, some or all components of the computing device 1100 may also be arranged in a cloud computing architecture rather than being integrated in a single device. In a cloud computing architecture, components may be provided remotely and work together to implement the functions described in the present disclosure. In some embodiments, cloud computing provides computing, software, data access and storage services, which will not require the end user to know the physical location or configuration of the system or hardware that provides these services. In various embodiments, cloud computing provides services via a wide area network (e.g., the Internet) using a suitable protocol. For example, a cloud computing provider provides applications via a wide area network, which can be accessed through a web browser or any other computing component. The software or components of the cloud computing architecture and the corresponding data may be stored on a remote server. The computing resources in a cloud computing environment may be merged or distributed at the location of a remote data center. Cloud computing infrastructures may provide services through a shared data center, although they appear as a single access point for users. Therefore, cloud computing architectures may be used to provide components and functions described herein from a service provider at a remote location. Alternatively, they may be provided by a conventional server, or installed directly or otherwise on a client device.

[0109] In an embodiment of the present disclosure, the computing device 1100 may be used to implement video encoding / decoding. The memory 1120 may include one or more video encoding / decoding modules 1125 having one or more program instructions. These modules can be accessed and executed by the processing unit 1110 to perform the functions of the various embodiments described herein.

[0110] In an example embodiment performing video encoding, input device 1150 may receive video data as input to be encoded 1170. The video data may be processed, for example, by video codec module 1125 to generate an encoded bitstream. The encoded bitstream may be provided as output 1180 via output device 1160.

[0111] In an example embodiment performing video encoding, input device 1150 may receive video data as input 1170 to be encoded. The video data may be processed by, for example, video codec module 1125 to generate an encoded bitstream. The encoded bitstream may be provided as output 1180 via output device 1160.

[0112] Although the present disclosure has been specifically shown and described with reference to the preferred embodiments of the present disclosure, it will be understood by those skilled in the art that various changes can be made in form and detail without departing from the spirit and scope of the present application as defined by the appended claims. These changes are intended to be encompassed by the scope of the present application. Therefore, the foregoing description of the embodiments of the present application is not intended to be limiting.

Claims

1. A video processing method, comprising: During conversion between a video unit of a video and a bitstream of the video unit, determining a set of CTUs included in an intra block copy (IBC) buffer or an IBC reference area of ​​the video unit based on a current codec tree unit (CTU), the video unit being applied in an IBC mode; as well as The conversion is performed based on the set of CTUs.

2. The method according to claim 1, wherein if the first element of the index of the current CTU is m and the second element of the index of the current CTU is n, then The IBC buffer or the IBC reference region includes a set of CTUs within at least one of a current slice, a current tile, or a current sub-picture, the set of CTUs having indices (m,0) ... (m,n-1), (m-1,0) ... (m-1,n+k), (m-2,n-2) ... (m-2,n+k), and Where m, n and k are non-negative integers.

3. The method according to claim 1, wherein if the first element of the index of the current CTU is m and the second element of the index of the current CTU is n, then The IBC buffer or the IBC reference region includes a set of CTUs within at least one of a current slice, a current tile, or a current sub-picture, the set of CTUs having indices (m,0) ... (m,n-1), (m-1,n-1) ... (m-1,n+k), and Where m, n and k are non-negative integers.

4. The method according to claim 1, further comprising: The target IBC reference region to be applied is determined based on the CTU size.

5. The method of claim 4, wherein if the width of the CTU size is 128 luma samples and the height of the CTU size is 128 luma samples, the target IBC reference area comprises a set of CTUs within at least one of a current slice, a current tile, or a current sub-picture, the set of CTUs having indices (m, 0) ... (m, n-1), (m-1, n-1) ... (m-1, n+k), and Where m, n and k are non-negative integers.

6. The method of claim 4, wherein if the width of the CTU size is 256 luma samples and the height of the CTU size is 256 luma samples, the target IBC reference area comprises a set of CTUs within at least one of a current slice, a current tile, or a current sub-picture, the set of CTUs having indices (m,0) ... (m,n-1), (m-1,0) ... (m-1,n+k), (m-2,n-2) ... (m-2,n+k), and Where m, n and k are non-negative integers. 7 . The method of claim 1 , wherein the IBC buffer or the IBC reference area includes a plurality of rows of samples above the current CTU.

8. The method of claim 7, wherein the IBC buffer or the IBC reference area includes 320 rows of luma samples above the current CTU. 9 . The method of claim 7 , wherein the IBC buffer or the IBC reference area does not include rows of samples above the plurality of rows of samples.

10. A method according to any one of claims 1 to 9, wherein in the IBC mode prediction samples are derived from a block of sample values ​​of the same video area as that determined by the block vector.

11. The method according to any one of claims 1 to 10, wherein the converting comprises encoding a target block into the bitstream.

12. The method according to any one of claims 1 to 10, wherein the converting comprises decoding a target block from the bitstream.

13. An apparatus for processing video data, comprising a processor and a non-transitory memory having instructions thereon, wherein the instructions, when executed by the processor, cause the processor to perform the method according to any one of claims 1 to 12.

14. A non-transitory computer-readable storage medium storing instructions, the instructions causing a processor to execute the method according to any one of claims 1 to 12.

15. A non-transitory computer-readable recording medium storing a bit stream of a video, the bit stream being generated by a method performed by a video processing device, wherein the method comprises: Determining, based on a current codec tree unit (CTU), a set of CTUs included in an intra block copy (IBC) buffer or an IBC reference area of ​​a video unit of the video, the video unit being applied in an IBC mode; as well as A bitstream for the video unit is generated based on the set of CTUs.

16. A method for storing a bitstream of a video, comprising: Determining, based on a current codec tree unit (CTU), a set of CTUs included in an intra block copy (IBC) buffer or an IBC reference area of ​​a video unit of the video, the video unit being applied in an IBC mode; generating a bitstream of the video unit based on the set of CTUs; as well as The bit stream is stored in a non-transitory computer-readable recording medium.