Method, device and computer readable medium for video encoding and decoding

By using a history-based block vector prediction table in video encoding to construct a block vector prediction candidate list, the problem of optimizing the compression rate of motion vector prediction at high resolution and high frame rate in the existing technology is solved, and a more efficient Video encoding and storage efficiency.

CN113647101BActive Publication Date: 2024-09-24TENCENT AMERICA LLC
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202080023766.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Priority Date
2020-06-25
Filing Date
2020-06-26
Publication Date
2024-09-24
Estimated Expiration
2040-06-26

AI Technical Summary

Technical Problem

In existing video coding technology, the compression rate optimization of motion vector prediction at high resolution and high frame rate is difficult to meet the requirements for efficient video transmission and storage, especially in terms of bandwidth and storage space.

Method used

The history-based block vector prediction (HBVP) table is used to determine the block vector of the current block. By constructing a block vector prediction candidate list, and storing and selecting appropriate block vectors for prediction in the classified HBVP table, more efficient motion vector coding is achieved. .

Benefits of technology

It improves the compression rate and coding efficiency of video encoding, reduces bandwidth and storage requirements, and is suitable for high-resolution and high-frame-rate video transmission.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113647101B_ABST
    Figure CN113647101B_ABST
Patent Text Reader

Abstract

A device for video decoding includes a processing circuit. The processing circuit can be configured to: receive data of a current block encoded in an intra-frame block copy (IBC) mode in a code stream. A block vector of the current block can be determined according to a history-based block vector prediction (HBVP) table, the HBVP table including one or more entries, each entry corresponding to a previously decoded block. Each entry can include a block vector of a corresponding previously decoded block and a position of the corresponding previously decoded block. The current block can be reconstructed based on the determined block vector of the current block.
Need to check novelty before this filing date? Find Prior Art

Description

[0001] 1.1.1 Incorporation by Reference

[0002] This disclosure claims the benefit of U.S. Patent Application No. 16 / 912,223, filed on June 25, 2020, entitled “Method and Apparatus for Video Coding,” which claims the benefit of U.S. Provisional Application No. 62 / 892,918, filed on August 28, 2019, entitled “History Based Block Vector Prediction for Intra Picture Compensation.” The entire disclosure of the prior application is incorporated herein by reference in its entirety. 1.1.2 Technical Field

[0004] This disclosure describes embodiments generally related to video coding. 1.1.3 Background Technology

[0006] The background description provided herein is for the purpose of generally presenting the context of the present disclosure. To the extent that the work described in this background section, the work of the presently named inventors and aspects of this description that may not otherwise qualify as prior art at the time of filing are neither explicitly nor implicitly admitted as prior art to the present disclosure.

[0007] Video encoding and decoding can be performed using inter-picture prediction with motion compensation. Uncompressed digital video can include a series of pictures, each picture having a spatial size of, for example, 1920x1080 luminance samples and associated chrominance samples. The series of pictures can have a fixed or variable picture rate (also informally referred to as a frame rate) of, for example, 60 pictures per second or 60Hz. Uncompressed video has very high bit rate requirements. For example, 1080p604:2:0 video with 8 bits per sample (1920x1080 luminance sample resolution at 60Hz frame rate) requires a bandwidth of nearly 1.5Gbit / s. One hour of such video requires more than 600GB of storage space.

[0008] One purpose of video encoding and decoding can be to reduce redundancy in the input video signal through compression. Compression can help reduce the above-mentioned bandwidth or storage space requirements, in some cases by two orders of magnitude or more. Lossless compression and lossy compression and their combinations can be used. Lossless compression refers to a technique that can reconstruct an exact copy of the original signal from the compressed original signal. When lossy compression is used, the reconstructed signal may be different from the original signal, but the distortion between the original signal and the reconstructed signal is small enough to make the reconstructed signal usable for the intended application. In the case of video, lossy compression is widely used. The amount of tolerable distortion depends on the application, for example, users of some consumer streaming applications can tolerate higher distortion than users of television distribution applications. The achievable compression rate can reflect that higher allowable / tolerable distortion can produce higher compression rates.

[0009] Motion compensation may be a lossy compression technique and may involve the following technique: a block of sample data from a previously reconstructed picture or part thereof (reference picture) is used to predict a new reconstructed picture or part of a picture after being spatially shifted in a direction indicated by a motion vector (hereafter MV). In some cases, the reference picture may be the same as the picture currently being reconstructed. The MV may have two dimensions, X and Y, or three dimensions, with the third dimension indicating the reference picture being used (the latter may indirectly be the temporal dimension).

[0010] In some video compression techniques, the MV applicable to a region of sample data can be predicted based on other MVs, such as those MVs related to another region of sample data that is spatially adjacent to the region being reconstructed and precedes the MV in decoding order. Doing so can greatly reduce the amount of data required to encode the MV, thereby eliminating redundancy and increasing compression. MV prediction can work effectively, for example, because when encoding an input video signal obtained from a camera (called natural video), there is a statistical probability that a larger area than the area applicable to a single MV moves in a similar direction, so in some cases, similar motion vectors derived from MVs of adjacent areas can be used to predict the larger area. This makes the MV found for a given area similar or identical to the MV predicted from the surrounding MVs, and then after entropy coding, the MV found for the given area can be represented with fewer bits than the number of bits used when directly encoding the MV. In some cases, MV prediction can be an example of lossless compression of a signal (i.e., MV) derived from the original signal (i.e., sample stream). In other cases, MV prediction itself can be lossy, for example due to rounding errors when calculating predicted values ​​based on multiple surrounding MVs.

[0011] Various MV prediction mechanisms are described in H.265 / HEVC (ITU-T Recommendation H.265, "High Efficiency Video Coding", December 2016). Among the various MV prediction mechanisms provided by H.265, this application describes a technique referred to below as "spatial merging".

[0012] Referring to Figure 1, the current block (101) includes samples that have been discovered by the encoder during the motion search process, which can be predicted based on previous blocks of the same size that have been spatially offset. Instead of encoding the MV directly, the MV can be derived from metadata associated with one or more reference pictures. For example, the MV associated with any of the five surrounding samples labeled A0, A1 and B0, B1, B2 (corresponding to 102 to 106, respectively) is used, and the MV is derived from metadata associated with the nearest reference picture (in decoding order). In H.265, MV prediction can use prediction values ​​from the same reference picture being used by neighboring blocks. 1.1.4 Summary of the invention

[0014] Various aspects of the present disclosure provide methods and apparatus for video encoding / decoding. In some examples, the apparatus for video decoding includes a processing circuit. The processing circuit may be configured to: receive data of a current block that has been encoded in an intra-block copy (IBC) mode in a code stream. The block vector of the current block may be determined according to a history-based block vector prediction (HBVP) table, the HBVP table including one or more entries, each entry corresponding to a previously decoded block. Each entry may include a block vector of a corresponding previously decoded block and a position of a corresponding previously decoded block. The current block may be reconstructed based on the determined block vector of the current block. In one embodiment, the block vector, position, width, and height of the current block are stored in the HBVP table.

[0015] Furthermore, each entry may include the x-coordinates and y-coordinates of the corners of the corresponding previously decoded block. In another embodiment, each entry may include the angular position of the corresponding previously decoded block and one of the width and height of the corresponding previously decoded block.

[0016] In one embodiment, the circuit may be configured to construct a block vector prediction (BVP) candidate list based on the HBVP table. The BVP candidate list may include one or more of a first candidate and a second candidate. The first candidate may include a first block vector in the block vectors in the HBVP table. The previously decoded block corresponding to the first block vector has a position to the left of the current block. The second candidate may include a second block vector in the block vectors in the HBVP table. The previously decoded block corresponding to the second block vector has a position above the current block.

[0017] The circuit is configured to classify entries in the HBVP table into different groups, each group being stored in one of the classified HBVP tables. In one example, an entry in the HBVP table is stored in one of the classified HBVP tables when a size of a previously decoded block corresponding to an entry in the HBVP table satisfies a block size condition. The block size condition may be that the number of luma samples of a previously decoded block corresponding to one of the entries in the HBVP table is greater than or equal to a threshold.

[0018] In another example, entries in the HBVP table are sorted into a plurality of sorted HBVP tables based on an x-coordinate, a y-coordinate, or a combination of x-coordinates and y-coordinates of each of the corresponding previously decoded blocks stored in the HBVP table.

[0019] In one embodiment, an index indicating one of a plurality of classified HBVP tables is received. An entry is selected from the indicated classified HBVP table, the selected one of the entries corresponding to a most recently decoded block among the one or more previously decoded blocks of the indicated classified HBVP table. A block vector of the selected one of the entries is used as a block vector predictor for a block vector of a current block.

[0020] In one embodiment, a BVP candidate list is constructed. The BVP candidate list includes one or more BVP candidates, each BVP candidate including a block vector selected from a plurality of classified HBVP tables. A BVP candidate may be selected from the BVP candidate list based on an index received from a bitstream as a block vector predictor for a block vector of a current block. In various embodiments, the current block may be encoded in one of a skip mode, a merge mode, or an advanced motion vector prediction (AMVP) mode.

[0021] Aspects of the present disclosure also provide a non-transitory computer-readable medium storing instructions which, when executed by a computer used for video decoding, cause the computer to perform a method for video decoding. 1.1.5 Description of the Figures

[0023] Other features, properties and various advantages of the disclosed subject matter will become more apparent from the following detailed description and the accompanying drawings, in which:

[0024] FIG. 1 is a schematic diagram of a current block and its surrounding spatial merging candidates in one example.

[0025] Figure 2 is a schematic diagram of a simplified block diagram of a communication system according to one embodiment.

[0026] Figure 3 is a schematic diagram of a simplified block diagram of a communication system according to another embodiment.

[0027] Figure 4 is a schematic diagram of a simplified block diagram of a decoder according to one embodiment.

[0028] Figure 5 is a schematic diagram of a simplified block diagram of an encoder according to one embodiment.

[0029] Figure 6 A block diagram of an encoder according to another embodiment is shown.

[0030] Figure 7 A block diagram of a decoder according to another embodiment is shown.

[0031] Figure 8 An example of intra picture block compensation is shown.

[0032] 9A to 9D An example of intra picture block compensation is shown, where a CTU-sized memory is used to store reconstructed samples.

[0033] Fig.10 Examples of spatial merging candidates for the current block are shown.

[0034] Fig.11 A flowchart outlining a process according to some embodiments of the present disclosure is shown.

[0035] Fig.12 is a schematic diagram of a computer system according to one embodiment. 1.1.6 Specific implementation methods

[0037] I. Video Coding Encoders and Decoders

[0038] Figure 2 A simplified block diagram of a communication system according to an embodiment of the present disclosure is shown. The communication system (200) includes a plurality of terminal devices that can communicate with each other via, for example, a network (250). For example, the communication system (200) includes a first pair of terminal devices (210) and (220) interconnected via the network (250). Figure 2 In the example, the first terminal device performs unidirectional data transmission between (210) and (220). For example, the terminal device (210) may encode video data (e.g., a video picture stream captured by the terminal device (210)) for transmission to another terminal device (220) via the network (250). The encoded video data is transmitted in the form of one or more encoded video code streams. The terminal device (220) may receive the encoded video data from the network (250), decode the encoded video data to restore the video picture, and display the video picture based on the restored video data. Unidirectional data transmission is more common in applications such as media services.

[0039] In another example, the communication system (200) includes a second pair of terminal devices (230) and (240) that perform bidirectional transmission of encoded video data, which bidirectional transmission may occur, for example, during a video conference. For bidirectional data transmission, in one example, each of the terminal devices (230) and (240) may encode video data (e.g., a video picture stream captured by the terminal device) for transmission to the other of the terminal devices (230) and (240) via a network (250). Each of the terminal devices (230) and (240) may also receive the encoded video data transmitted by the other of the terminal devices (230) and (240), and may decode the encoded video data to restore the video picture, and may display the video picture on an accessible display device based on the restored video data.

[0040] exist Figure 2 In the example of , terminal device (210), terminal device (220), terminal device (230) and terminal device (240) may be shown as a server, a personal computer and a smart phone, but the principles of the present disclosure may not be limited to this. Embodiments of the present disclosure are applicable to laptop computers, tablet computers, media players and / or dedicated video conferencing equipment. Network (250) represents any number of networks that transmit encoded video data between terminal devices (210), terminal devices (220), terminal devices (230) and terminal devices (240), including, for example, wired (wired) and / or wireless communication networks. The communication network (250) can exchange data in circuit switching and / or packet switching channels. Representative networks include telecommunication networks, local area networks, wide area networks and / or the Internet. For the purposes of this discussion, unless explained below, the architecture and topology of the network (250) may be irrelevant to the operation of the present disclosure.

[0041] As examples of applications of the disclosed subject matter, Figure 3 The placement of the video encoder and video decoder in a streaming environment is shown. The disclosed subject matter is equally applicable to other video-enabled applications including, for example, video conferencing, digital TV, storing compressed video on digital media including CDs, DVDs, memory sticks, etc., and the like.

[0042] The streaming system may include an acquisition subsystem (313), which may include a video source (301), such as a digital camera, which creates, for example, an uncompressed video picture stream (302). In an example, the video picture stream (302) includes samples captured by a digital camera. The video picture stream (302), depicted as thick lines to emphasize the high amount of data compared to the encoded video data (304) (or the encoded video bitstream), may be processed by an electronic device (320), which includes a video encoder (303) coupled to the video source (301). The video encoder (303) may include hardware, software, or a combination of hardware and software to implement or implement various aspects of the disclosed subject matter as described in more detail below. The encoded video data (304) (or the encoded video bitstream (304)), depicted as thin lines to emphasize the lower amount of data compared to the video picture stream (302), may be stored on a streaming server (305) for future use. One or more streaming client subsystems, such as Figure 3 A client subsystem (306) and a client subsystem (308) in a streaming server (305) may access a copy (307) and a copy (309) of the encoded video data (304). The client subsystem (306) may include, for example, a video decoder (310) in an electronic device (330). The video decoder (310) decodes the incoming copy (307) of the encoded video data and generates an output video picture stream (311) that can be presented on a display (312) (e.g., a display screen) or another presentation device (not depicted). In some streaming systems, the encoded video data (304), the encoded video data (307), and the encoded video data (309) (e.g., a video bitstream) may be encoded according to certain video encoding / compression standards. Examples of such standards include ITU-T Recommendation H.265. In the example, the video coding standard under development is informally referred to as Versatile Video Coding (VVC), and the disclosed subject matter may be used in the context of VVC.

[0043] It should be noted that the electronic device (320) and the electronic device (330) may include other components (not shown). For example, the electronic device (320) may include a video decoder (not shown), and the electronic device (330) may also include a video encoder (not shown).

[0044] Figure 4 is a block diagram of a video decoder (410) according to an embodiment of the present disclosure. The video decoder (410) may be included in an electronic device (430). The electronic device (430) may include a receiver (431) (eg, a receiving circuit). The video decoder (410) may be used to replace Figure 3A video decoder (310) in an example of FIG.

[0045] The receiver (431) may receive one or more encoded video sequences to be decoded by the video decoder (410); in the same or another embodiment, one encoded video sequence is received at a time, wherein the decoding of each encoded video sequence is independent of the decoding of other encoded video sequences. The encoded video sequence may be received from a channel (401), which may be a hardware / software link to a storage device storing the encoded video data. The receiver (431) may receive the encoded video data and other data, such as encoded audio data and / or auxiliary data streams, which may be forwarded to their respective consuming entities (not depicted). The receiver (431) may separate the encoded video sequence from the other data. To prevent network jitter, a buffer memory (415) may be coupled between the receiver (431) and the entropy decoder / parser (420) (hereinafter referred to as "parser (420)"). In some applications, the buffer memory (415) is part of the video decoder (410). In other cases, the buffer memory (415) may be located external to the video decoder (410) (not depicted). In other cases, a buffer memory (not depicted) may be configured externally of the video decoder (410) to, for example, prevent network jitter, and another buffer memory (415) may be configured internally of the video decoder (410) to, for example, handle broadcast timing. When the receiver (431) receives data from a storage / forward device with sufficient bandwidth and controllability or from an isochronous network, it may not be necessary to configure the buffer memory (415), or the buffer memory may be made smaller. For use on a traffic packet network such as the Internet, a buffer memory (415) may also be required, which may be relatively large and may advantageously have an adaptive size, and may be at least partially implemented in an operating system or similar element (not depicted) external to the video decoder (410).

[0046] The video decoder (410) may include a parser (420) to reconstruct symbols (421) from the encoded video sequence. The categories of these symbols include information for managing the operation of the video decoder (410) and potential information for controlling a display device such as a display device (412) (e.g., a display screen) that is not an integral part of the electronic device (430) but can be coupled to the electronic device (430), such as Figure 4As shown in . The control information for one (or more) display devices may be in the form of a parameter set fragment (not depicted) of Supplemental Enhancement Information (SEI message) or Video Usability Information (VUI). The parser (420) may parse / entropy decode the received coded video sequence. The encoding of the coded video sequence may be performed according to a video coding technique or standard, and may follow various principles, including variable length coding, Huffman coding, arithmetic coding with or without context sensitivity, and the like. The parser (420) may extract a subgroup parameter set for at least one subgroup of the subgroups of pixels in the video decoder from the coded video sequence based on at least one parameter corresponding to the group. The subgroup may include a Group of Pictures (GOP), a picture, a tile, a slice, a macroblock, a Coding Unit (CU), a block, a Transform Unit (TU), a Prediction Unit (PU), and the like. The parser (420) may also extract information from the encoded video sequence, such as transform coefficients, quantizer parameter values, motion vectors, and so on.

[0047] The parser (420) may perform entropy decoding / parsing operations on the video sequence received from the buffer memory (415), thereby creating symbols (421).

[0048] Depending on the type of the coded video picture or a portion of the coded video picture (e.g., inter-frame and intra-frame pictures, inter-frame blocks and intra-frame blocks) and other factors, the reconstruction of the symbol (421) may involve multiple different units. Which units are involved and how they are involved can be controlled by subgroup control information parsed by the parser (420) from the coded video sequence. For clarity, such subgroup control information flow between the parser (420) and the multiple units below is not described.

[0049] In addition to the functional blocks already mentioned, the video decoder (410) can be conceptually subdivided into several functional units as described below. In a practical embodiment operating under commercial constraints, many of these units interact closely with each other and may be at least partially integrated with each other. However, for the purpose of describing the disclosed subject matter, the conceptual subdivision into the following functional units is appropriate.

[0050] The first unit is a sealer / inverse transform unit (451). The sealer / inverse transform unit (451) receives quantized transform coefficients as one (multiple) symbols (421) and control information from the parser (420), including which transform method to use, block size, quantization factor, quantization scaling matrix, etc. The sealer / inverse transform unit (451) can output a block including sample values, which can be input into the aggregator (455).

[0051] In some cases, the output samples of the scaler / inverse transform unit (451) may belong to an intra-coded block; that is, a block that does not use predictive information from a previously reconstructed picture, but may use predictive information from a previously reconstructed portion of the current picture. Such predictive information may be provided by an intra-picture prediction unit (452). In some cases, the intra-picture prediction unit (452) generates a block of the same size and shape as the block being reconstructed using surrounding reconstructed information extracted from a current picture buffer (458). For example, the current picture buffer (458) buffers a partially reconstructed current picture and / or a fully reconstructed current picture. In some cases, the aggregator (455) adds the prediction information generated by the intra-prediction unit (452) to the output sample information provided by the scaler / inverse transform unit (451) on a per-sample basis.

[0052] In other cases, the output samples of the scaler / inverse transform unit (451) may belong to an inter-frame coded and potentially motion compensated block. In this case, the motion compensated prediction unit (453) may access the reference picture memory (457) to extract samples for prediction. After the extracted samples are motion compensated according to the symbols (421) belonging to the block, these samples may be added to the output of the scaler / inverse transform unit (451) (in this case referred to as residual samples or residual signals) by the aggregator (455) to generate output sample information. The acquisition of the predicted samples by the motion compensated prediction unit (453) from the address in the reference picture memory (457) may be controlled by a motion vector, and the motion vector is provided to the motion compensated prediction unit (453) in the form of a symbol (421), which may have, for example, X, Y and reference picture components. Motion compensation may also include interpolation of sample values ​​extracted from the reference picture memory (457) when using sub-sample accurate motion vectors, motion vector prediction mechanisms, and the like.

[0053] The output samples of the aggregator (455) may be subjected to various loop filtering techniques in a loop filter unit (456). The video compression techniques may include in-loop filter techniques controlled by parameters included in the coded video sequence (also referred to as the coded video bitstream) and available to the loop filter unit (456) as symbols (421) from the parser (420), however, the video compression techniques may also be responsive to meta-information obtained during decoding of a coded picture or a previous (in decoding order) portion of the coded video sequence, and to previously reconstructed and loop filtered sample values.

[0054] The output of the loop filter unit (456) may be a sample stream that may be output to a display device (412) and stored in a reference picture memory (457) for subsequent inter-picture prediction.

[0055] Once fully reconstructed, certain coded pictures may be used as reference pictures for future prediction. For example, once a coded picture corresponding to a current picture is fully reconstructed, and the coded picture is identified as a reference picture (e.g., by the parser (420)), the current picture buffer (458) may become part of the reference picture memory (457), and a new current picture buffer may be reallocated before starting reconstruction of a subsequent coded picture.

[0056] The video decoder (410) may perform decoding operations according to a predetermined video compression technique, such as in the ITU-T Recommendation H.265 standard. The encoded video sequence may conform to the syntax specified by the video compression technique or standard used in the sense that the encoded video sequence follows the syntax of the video compression technique or standard and the profile recorded in the video compression technique or standard. Specifically, the profile may select certain tools from all the tools available in the video compression technique or standard as the only tools available for use under the profile. For compliance, the complexity of the encoded video sequence is also required to be within the range defined by the hierarchy of the video compression technique or standard. In some cases, the hierarchy limits the maximum picture size, the maximum frame rate, the maximum reconstruction sampling rate (measured in, for example, mega samples per second), the maximum reference picture size, etc. In some cases, the limits set by the hierarchy may be further limited by the Hypothetical Reference Decoder (HRD) specification and metadata of the HRD buffer management signaled in the encoded video sequence.

[0057] In an embodiment, the receiver (431) may receive additional (redundant) data along with the encoded video. The additional data may be included as part of one or more encoded video sequences. The additional data may be used by the video decoder (410) to properly decode the data and / or more accurately reconstruct the original video data. The additional data may be in the form of, for example, temporal, spatial or signal-to-noise ratio (SNR) enhancement layers, redundant slices, redundant pictures, forward error correction codes, etc.

[0058] Figure 5 A block diagram of a video encoder (503) according to an embodiment of the present disclosure is shown. The video encoder (503) is included in an electronic device (520). The electronic device (520) includes a transmitter (540) (e.g., a transmission circuit). The video encoder (503) can be used to replace Figure 3 A video encoder (303) in an example.

[0059] The video encoder (503) can be used to obtain a video source (501) (not Figure 5 In another example, the video source (501) is a part of the electronic device (520) to receive video samples, the video source can capture one (a plurality of) video images to be encoded by the video encoder (503). In another example, the video source (501) is a part of the electronic device (520).

[0060] The video source (501) may provide a source video sequence in the form of a digital video sample stream to be encoded by a video encoder (503), the digital video sample stream may have any suitable bit depth (e.g., 8-bit, 10-bit, 12-bit, ...), any color space (e.g., BT.601 Y CrCB, RGB, ...), and any suitable sample structure (e.g., Y CrCb 4:2:0, Y CrCb 4:4:4). In a media service system, the video source (501) may be a storage device storing previously prepared videos. In a video conferencing system, the video source (501) may be a camera that captures local image information as a video sequence. The video data may be provided as a plurality of separate pictures that are given motion when viewed sequentially. The pictures themselves may be constructed as a spatial pixel array, wherein each pixel may include one or more samples depending on the sampling structure, color space, etc. used. The relationship between pixels and samples may be easily understood by a person skilled in the art. The following description focuses on the samples.

[0061] According to an embodiment, the video encoder (503) may encode and compress pictures of a source video sequence into an encoded video sequence (543) in real time or under any other time constraints required by the application. Implementing an appropriate encoding speed is a function of the controller (550). In some embodiments, the controller (550) controls other functional units as described below and is functionally coupled to the other functional units. For the sake of brevity, coupling is not indicated in the figure. The parameters set by the controller (550) may include rate control related parameters (picture skipping, quantizer, lambda value of rate distortion optimization technology...), picture size, picture group (GOP) layout, maximum motion vector search range, etc. The controller (550) may be configured to have other suitable functions that relate to a video encoder (503) optimized for a certain system design.

[0062] In some embodiments, the video encoder (503) is configured to operate in an encoding loop. As a simple description, in an example, the encoding loop may include a source encoder (530) (e.g., responsible for creating symbols, such as a symbol stream, based on an input picture to be encoded and one (multiple) reference pictures) and a (local) decoder (533) embedded in the video encoder (503). The decoder (533) reconstructs the symbols to create sample data in a manner similar to that in which the (remote) decoder may also create sample data (because in the video compression techniques considered by the disclosed subject matter, any compression between the symbols and the encoded video bitstream is lossless). The reconstructed sample stream (sample data) is input to a reference picture memory (534). Since the decoding of the symbol stream produces bit-accurate results that are independent of the decoder location (local or remote), the contents of the reference picture memory (534) are also bit-accurately corresponding between the local encoder and the remote encoder. In other words, the reference picture samples "seen" by the prediction part of the encoder are exactly the same as the sample values ​​that the decoder will "see" when using the prediction during decoding. This basic principle of reference picture synchronization (and the drift that occurs when synchronization cannot be maintained, eg due to channel errors) is also used in some related techniques.

[0063] The operation of the "local" decoder (533) can be combined with, for example, Figure 4 The video decoder (410) described in detail is identical to the "remote" decoder. However, additional brief reference is made to Figure 4 , when symbols are available and the entropy encoder (545) and parser (420) are capable of losslessly encoding / decoding the symbols into an encoded video sequence, the entropy decoding portion of the video decoder (410), including the buffer memory (415) and the parser (420), may not be fully implemented in the local decoder (533).

[0064] At this point, it can be observed that any decoder technology other than the parsing / entropy decoding present in the decoder must also be present in the corresponding encoder in substantially the same functional form. For this reason, the disclosed subject matter focuses on the decoder operation. The description of encoder technology can be simplified because encoder technology is mutually inverse to the decoder technology described comprehensively. A more detailed description is only needed in certain areas and is provided below.

[0065] During operation, in some examples, the source encoder (530) may perform motion compensated predictive coding. The motion compensated predictive coding predictively encodes an input picture with reference to one or more previously encoded pictures from a video sequence designated as "reference pictures". In this manner, the encoding engine (532) encodes the difference between a pixel block of the input picture and a pixel block of one (or more) reference pictures that may be selected as one (or more) prediction references for the input picture.

[0066] The local video decoder (533) may decode the encoded video data of the picture that may be designated as the reference picture based on the symbol created by the source encoder (530). The operation of the encoding engine (532) may advantageously be a lossy process. When the encoded video data is available at the video decoder ( Figure 5 When decoded at a remote video decoder (not shown), the reconstructed video sequence may typically be a copy of the source video sequence with some errors. The local video decoder (533) replicates the decoding process that may be performed by the video decoder on the reference picture and may cause the reconstructed reference picture to be stored in the reference picture cache (534). In this way, the video encoder (503) may store a copy of the reconstructed reference picture locally that has common content (absent transmission errors) with the reconstructed reference picture to be obtained by the remote video decoder.

[0067] The predictor (535) may perform a prediction search for the encoding engine (532). That is, for a new picture to be encoded, the predictor (535) may search the reference picture memory (534) for sample data (as candidate reference pixel blocks) or certain metadata, such as reference picture motion vectors, block shapes, etc., that may serve as appropriate prediction references for the new picture. The predictor (535) may operate on a pixel block by pixel block basis to find a suitable prediction reference. In some cases, as determined by the search results obtained by the predictor (535), the input picture may have prediction references taken from multiple reference pictures stored in the reference picture memory (534).

[0068] The controller (550) may manage encoding operations of the source encoder (530), including, for example, setting parameters and subgroup parameters for encoding video data.

[0069] The outputs of all the above functional units may be entropy encoded in an entropy encoder (545). The entropy encoder (545) performs lossless compression on the symbols generated by the various functional units according to techniques such as Huffman coding, variable length coding, arithmetic coding, etc., thereby converting the symbols into a coded video sequence.

[0070] The transmitter (540) may buffer the encoded video sequence(s) created by the entropy encoder (545) in preparation for transmission over a communication channel (560), which may be a hardware / software link to a storage device where the encoded video data will be stored. The transmitter (540) may combine the encoded video data from the video encoder (503) with other data to be transmitted, such as encoded audio data and / or auxiliary data streams (source not shown).

[0071] The controller (550) may manage the operation of the video encoder (503). During encoding, the controller (550) may assign a certain coded picture type to each coded picture, but this may affect the coding techniques that may be applied to the corresponding picture. For example, a picture may generally be assigned to any of the following picture types:

[0072] An intra picture (I picture) may be a picture that can be encoded and decoded without using any other picture in the sequence as a prediction source. Some video codecs allow different types of intra pictures, including, for example, Independent Decoder Refresh ("IDR") pictures. Those skilled in the art are aware of the variations of I pictures and their corresponding applications and features.

[0073] A predictive picture (P picture), which may be a picture that can be encoded and decoded using intra prediction or inter prediction, which uses at most one motion vector and a reference index to predict sample values ​​for each block.

[0074] Bidirectional predictive pictures (B pictures), which can be pictures that can be encoded and decoded using intra prediction or inter prediction, which uses up to two motion vectors and reference indices to predict the sample values ​​of each block. Similarly, multiple predictive pictures can use more than two reference pictures and associated metadata for reconstructing a single block.

[0075] The source picture may typically be spatially subdivided into blocks of samples (e.g., blocks of 4×4, 8×8, 4×8, or 16×16 samples) and encoded block by block. These blocks may be predictively coded with reference to other (already coded) blocks, which are determined by the coding allocation applied to the block's corresponding picture. For example, a block of an I picture may be non-predictively coded, or the block may be predictively coded (spatial prediction or intra-frame prediction) with reference to already coded blocks of the same picture. A block of a P picture may be predictively coded by spatial prediction with reference to one previously coded reference picture or by temporal prediction. A block of a B picture may be predictively coded by spatial prediction with reference to one or two previously coded reference pictures or by temporal prediction.

[0076] The video encoder (503) may perform encoding operations according to a predetermined video encoding technique or standard, such as ITU-T Recommendation H.265. In operation, the video encoder (503) may perform various compression operations, including predictive encoding operations that exploit temporal and spatial redundancy in an input video sequence. Thus, the encoded video data may conform to the syntax specified by the video encoding technique or standard used.

[0077] In an embodiment, the transmitter (540) may transmit additional data when transmitting the encoded video. The source encoder (530) may include such data as part of the encoded video sequence. The additional data may include other forms of redundant data such as temporal / spatial / SNR enhancement layers, redundant pictures and slices, SEI messages, VUI parameter set fragments, etc.

[0078] The captured video may be taken as a plurality of source pictures (video pictures) in a temporal sequence. Intra-picture prediction (often simplified to intra-prediction) exploits spatial correlations in a given picture, while inter-picture prediction exploits (temporal or other) correlations between pictures. In the example, the particular picture being encoded / decoded is divided into blocks, and the particular picture being encoded / decoded is referred to as the current picture. When a block in the current picture is similar to a reference block in a reference picture that was previously encoded in the video and is still buffered, the block in the current picture may be encoded by a vector called a motion vector. The motion vector points to a reference block in a reference picture, and in the case where multiple reference pictures are used, the motion vector may have a third dimension that identifies the reference picture.

[0079] In some embodiments, bidirectional prediction techniques may be used in inter-picture prediction. According to the bidirectional prediction technique, two reference pictures are used, for example, a first reference picture and a second reference picture that are both before the current picture in the video in decoding order (but may be in the past and future, respectively, in display order). A block in the current picture may be encoded by a first motion vector pointing to a first reference block in the first reference picture and a second motion vector pointing to a second reference block in the second reference picture. The block may be predicted by a combination of the first reference block and the second reference block.

[0080] In addition, merge mode technology can be used in inter-picture prediction to improve coding efficiency.

[0081] According to some embodiments of the present disclosure, predictions such as inter-picture prediction and intra-picture prediction are performed in units of blocks. For example, according to the HEVC standard, a picture in a video picture sequence is divided into coding tree units (CTUs) for compression, and the CTUs in the picture have the same size, such as 64×64 pixels, 32×32 pixels, or 16×16 pixels. In general, a CTU includes three coding tree blocks (CTBs), which are a luminance CTB and two chrominance CTBs. Each CTU can also be recursively split into one or more coding units (CUs) using a quadtree. For example, a 64×64 pixel CTU can be split into a 64×64 pixel CU, or 4 32×32 pixel CUs, or 16 16×16 pixel CUs. In the example, each CU is analyzed to determine a prediction type for the CU, such as an inter-prediction type or an intra-prediction type. Depending on temporal and / or spatial predictability, the CU is split into one or more prediction units (PUs). Typically, each PU includes a luma prediction block (PB) and two chroma PBs. In an embodiment, the prediction operation in encoding (encoding / decoding) is performed in units of prediction blocks. Taking the luma prediction block as an example of a prediction block, the prediction block includes a matrix of values ​​(e.g., luma values) for pixels, such as 8×8 pixels, 16×16 pixels, 8×16 pixels, 16×8 pixels, and the like.

[0082] Figure 6 A diagram of a video encoder (603) according to another embodiment of the present disclosure is shown. The video encoder (603) is configured to receive a processed block (e.g., a prediction block) of sample values ​​within a current video picture in a sequence of video pictures and encode the processed block into an encoded picture that is part of an encoded video sequence. In an example, the video encoder (603) is used instead of Figure 3 A video encoder (303) in an example.

[0083] In the HEVC example, a video encoder (603) receives a matrix of sample values ​​for a processing block, such as a prediction block of 8×8 samples. The video encoder (603) uses, for example, rate-distortion (RD) optimization to determine whether to use intra mode, inter mode, or bidirectional prediction mode to best encode the processing block. When encoding the processing block in intra mode, the video encoder (603) may use intra prediction techniques to encode the processing block into an encoded picture; and when encoding the processing block in inter mode or bidirectional prediction mode, the video encoder (603) may use inter prediction or bidirectional prediction techniques to encode the processing block into an encoded picture, respectively. In some video coding techniques, the merge mode may be an inter-picture prediction submode, in which motion vectors are derived from one or more motion vector predictors without the aid of encoded motion vector components external to the predictor. In some other video coding techniques, there may be motion vector components applicable to the subject block. In the example, the video encoder (603) includes other components, such as a mode decision module (not shown) for determining the mode of the processing block.

[0084] exist Figure 6 In the example of , the video encoder (603) includes Figure 6 Shown are an inter-frame encoder (630), an intra-frame encoder (622), a residual calculator (623), a switch (626), a residual encoder (624), a common controller (621), and an entropy encoder (625) coupled together.

[0085] The inter-frame encoder (630) is configured to receive samples of a current block (e.g., a processing block), compare the block with one or more reference blocks in a reference picture (e.g., blocks in a previous picture and a subsequent picture), generate inter-frame prediction information (e.g., redundant information description according to an inter-frame coding technique, motion vectors, merge mode information), and calculate an inter-frame prediction result (e.g., a predicted block) based on the inter-frame prediction information using any suitable technique. In some examples, the reference picture is a decoded reference picture decoded based on the encoded video information.

[0086] The intra encoder (622) is configured to receive samples of a current block (e.g., a processing block), compare the block with an encoded block in the same picture in some cases, generate quantization coefficients after transformation, and in some cases also generate intra prediction information (e.g., generate intra prediction direction information according to one or more intra coding techniques). In an example, the intra encoder (622) also calculates an intra prediction result (e.g., a predicted block) based on the intra prediction information and a reference block in the same picture.

[0087] The general controller (621) is configured to determine general control data and control other components of the video encoder (603) based on the general control data. In an example, the general controller (621) determines the mode of the block and provides a control signal to the switch (626) based on the mode. For example, when the mode is an intra-frame mode, the general controller (621) controls the switch (626) to select the intra-frame mode result for use by the residual calculator (623), and controls the entropy encoder (625) to select the intra-frame prediction information and include the intra-frame prediction information in the bitstream; and when the mode is an inter-frame mode, the general controller (621) controls the switch (626) to select the inter-frame prediction result for use by the residual calculator (623), and controls the entropy encoder (625) to select the inter-frame prediction information and include the inter-frame prediction information in the bitstream.

[0088] The residual calculator (623) is configured to calculate the difference (residual data) between the received block and the prediction result selected from the intra encoder (622) or the inter encoder (630). The residual encoder (624) is configured to operate based on the residual data to encode the residual data to generate transform coefficients. In an example, the residual encoder (624) is configured to convert the residual data from the spatial domain to the frequency domain and generate transform coefficients. The transform coefficients are then subjected to quantization to obtain quantized transform coefficients. In various embodiments, the video encoder (603) also includes a residual decoder (628). The residual decoder (628) is configured to perform an inverse transform and generate decoded residual data. The decoded residual data can be used appropriately by the intra encoder (622) and the inter encoder (630). For example, the inter encoder (630) may generate a decoded block based on the decoded residual data and the inter prediction information, and the intra encoder (622) may generate a decoded block based on the decoded residual data and the intra prediction information. The decoded blocks are appropriately processed to generate a decoded picture, and in some examples, the decoded picture may be buffered in a memory circuit (not shown) and used as a reference picture.

[0089] The entropy encoder (625) is configured to format the codestream to include the encoded blocks. The entropy encoder (625) is configured to include various information according to a suitable standard, such as the HEVC standard. In an example, the entropy encoder (625) is configured to include general control data, selected prediction information (such as intra-frame prediction information or inter-frame prediction information), residual information, and other suitable information in the codestream. It should be noted that according to the disclosed subject matter, when the block is encoded in the inter-frame mode or the merge sub-mode of the bidirectional prediction mode, there is no residual information.

[0090] Figure 7A diagram of a video decoder (710) according to another embodiment of the present disclosure is shown. The video decoder (710) is configured to receive an encoded picture as part of an encoded video sequence and decode the encoded picture to generate a reconstructed picture. In an example, the video decoder (710) is used instead of Figure 3 A video decoder (310) in an example of FIG.

[0091] exist Figure 7 In the example of , the video decoder (710) includes Figure 7 An entropy decoder (771), an inter-frame decoder (780), a residual decoder (773), a reconstruction module (774) and an intra-frame decoder (772) coupled together are shown in FIG.

[0092] The entropy decoder (771) may be configured to reconstruct certain symbols from the encoded picture, which represent syntax elements constituting the encoded picture. Such symbols may include, for example, a mode for encoding the block (e.g., intra mode, inter mode, bidirectional prediction mode, a merged sub-mode of the latter two, or another sub-mode), prediction information (e.g., intra prediction information or inter prediction information) that can identify certain samples or metadata for use by the intra decoder (772) or the inter decoder (780) for prediction, respectively, residual information in the form of, for example, quantized transform coefficients, and the like. In an example, when the prediction mode is an inter or bidirectional prediction mode, the inter prediction information is provided to the inter decoder (780); and when the prediction type is an intra prediction type, the intra prediction information is provided to the intra decoder (772). The residual information may be subjected to inverse quantization and provided to the residual decoder (773).

[0093] The inter-frame decoder (780) is configured to receive inter-frame prediction information and generate an inter-frame prediction result based on the inter-frame prediction information.

[0094] The intra decoder (772) is configured to receive intra prediction information and generate a prediction result based on the intra prediction information.

[0095] The residual decoder (773) is configured to perform inverse quantization to extract dequantized transform coefficients, and process the dequantized transform coefficients to convert the residual from the frequency domain to the spatial domain. The residual decoder (773) may also require certain control information (including quantizer parameters QP), and this information may be provided by the entropy decoder (771) (the data path is not indicated because this is only low-volume control information).

[0096] The reconstruction module (774) is configured to combine the residual output by the residual decoder (773) with the prediction result (which may be output by the inter-frame prediction module or the intra-frame prediction module, as the case may be) in the spatial domain to form a reconstructed block, which may be part of a reconstructed picture, which in turn may be part of a reconstructed video. It should be noted that other suitable operations such as deblocking operations may be performed to improve visual quality.

[0097] It should be noted that the video encoder (303), video encoder (503) and video encoder (603) and video decoder (310), video decoder (410) and video decoder (710) may be implemented using any suitable technology. In an embodiment, the video encoder (303), video encoder (503) and video encoder (603) and video decoder (310), video decoder (410) and video decoder (710) may be implemented using one or more integrated circuits. In another embodiment, the video encoder (303), video encoder (503) and video encoder (503) and video decoder (310), video decoder (410) and video decoder (710) may be implemented using one or more processors that execute software instructions.

[0098] II. Intra-frame Block Copy

[0099] For hybrid block-based video coding, motion compensation based on different pictures (inter-picture motion compensation) is well known. Similarly, motion compensation can also be performed based on previously reconstructed areas within the same picture. This type of motion compensation is called intra-picture block compensation, current picture reference (CPR) or intra-block copy (IBC). In IBC, the displacement vector indicating the offset between the current block and the reference block is called a block vector (BV). Unlike the motion vector in motion compensation based on different pictures, which can be any value (positive or negative, in x or y direction), the block vector has several constraints to ensure that the reference block pointed to is available and reconstructed. In addition, for parallel processing considerations, some reference areas that are tile boundaries or wavefront trapezoid boundaries are also excluded for IBC.

[0100] The encoding of block vectors can be explicit or implicit. In explicit mode (or in inter-coding, known as Advanced Motion Vector Prediction (AMVP) mode), the difference between a block vector and its predictor is signaled. In implicit mode, the block vector is recovered entirely from its predicted value, in a manner similar to how motion vectors are obtained in merge mode. In some implementations, the resolution of block vectors is restricted to integer positions; in other systems, the resolution of block vectors may be allowed to point to fractional positions.

[0101] In one embodiment, a block level flag called IBC flag may be used to signal the use of IBC at the block level. In one example, the IBC flag is signaled when the current block is not encoded in merge mode. In another example, the use of IBC may be signaled by a reference indexing method, and the current decoded picture is considered as a reference picture. For example, in HEVC screen content coding (SCC), such a reference picture is placed at the last position of the reference picture list. This special reference picture is also managed in the decoded picture buffer (DPB) along with other temporal reference pictures.

[0102] There are also some variants for IBC, such as treating IBC as a third mode different from intra-frame prediction mode or inter-frame prediction mode. By doing so, the block vector prediction in merge mode and AMVP mode for IBC is separated from the regular inter-frame mode. For example, a separate merge candidate list is defined for IBC mode, and all entries in the list are block vectors. Similarly, the block vector prediction list in IBC AMVP mode consists of block vectors. The general rules that apply to both lists are: in terms of the candidate derivation process, the rules can follow the same logic as the inter-frame merge candidate list or AMVP predictor list. For example, accessing 5 spatial neighboring positions in HEVC or VVC inter-frame merge mode (in Fig.10 ) to derive a merge candidate list for IBC.

[0103] Figure 8 An example of intra-picture block compensation is shown. The picture being processed (810) (referred to as the current picture) is divided into multiple CTUs (811-825). The CTUs (811-822) have been decoded. The current CTU (823) is being processed. In order to decode the IBC-encoded current block (801) in the current CTU (823), a block vector (803) may first be determined. Based on the block vector (803), a reference block (802) (also referred to as a prediction block or prediction value block) in the CTU (817) may be located. Therefore, the current block (801) may be reconstructed by combining the reference block (802) with the residual of the current block (801). As shown, the reference block (802) and the current block (801) are located in the same current picture (810).

[0104] 9A to 9DAn example of intra picture block compensation is shown, where one CTU-sized memory is used to store the reconstructed samples. In the first example, the search range of the IBC mode can be limited to the current CTU. Therefore, the effective memory requirement for storing reference samples for the IBC mode is one CTU-sized sample. As an example, a 128×128 current CTU can be divided into four 64×64 regions. Considering that the existing reference sample memory stores the reconstructed samples in the current 64×64 region, an additional 3 64×64-sized reference sample memories are required. Based on this fact, in the second example, while the total memory requirement for storing reference pixels remains unchanged (1 CTU size, a total of 4 64×64 reference sample memories), the effective search range of the IBC mode can be extended to a part of the left CTU.

[0105] 9A to 9D It is shown how a memory of one CTU size can be reused for searching the left CTU. 9A to 9D The left and right CTUs are each shown with a size of 128×128 samples. Each CTU is divided into four 64×64 regions. Fig.9A In , the reconstructed area (901-903) in the left CTU and the current area 904 being processed can be stored in a memory of the size of one CTU. Fig. 9B In , two reconstructed regions (911-912) in the left CTU, one reconstructed region (913) in the current CTU, and the current region (914) can be stored in a memory of the size of one CTU. Fig. 9C In , the reconstructed area (921) in the left CTU, the two reconstructed areas (922-923) in the current CTU, and the current area 924 can be stored in a memory of the size of one CTU. Fig.9D In the present embodiment, three reconstructed regions (931-933) in the current CTU and the current region 934 can be stored in a memory of the size of a CTU.

[0106] In some embodiments, the block vectors signaled in the codestream are required to follow a set of codestream conformance conditions. As an example, a valid luma block vector at 1 / 16 pixel resolution, denoted by mvL, should follow the following codestream conformance conditions.

[0107] A1: When the derivation process for block availability is called with as input the neighboring luma position (xCb + (mvL[0] >> 4), yCb + (mvL[1] >> 4)) and the current luma position (xCurr, yCurr) set equal to (xCb, yCb), the output shall be equal to "true" (meaning the block has been constructed and is therefore available). The derivation process for block availability is also known as the neighboring block availability check process. Condition A1 verifies that the top left corner sample of the reference block at position (xCb + (mvL[0] >> 4), yCb + (mvL[1] >> 4)) is available (reconstructed).

[0108] A2: When the derivation process for block availability is called with as input the neighboring luma position (xCb + (mvL[0] >> 4) + cbWidth-1, yCb + (mvL[1] >> 4 + cbHeight-1)) and the current luma position (xCurr, yCurr) set equal to (xCb, yCb), the output shall be equal to "true". Condition A2 verifies that the bottom right corner sample of the reference block at position (xCb + (mvL[0] >> 4) + cbWidth-1, yCb + (mvL[1] >> 4 + cbHeight-1)) is available.

[0109] B1: One or both of the following conditions should be true: the value of (mvL[0]>>4)+cbWidth is less than or equal to 0; and the value of (mvL[1]>>4)+cbHeight is less than or equal to 0. Condition B1 verifies that the reference block does not overlap with the current block.

[0110] C1: The following conditions should be true:

[0111] (yCb+(mvL[1]>>4))>>CtbLog2SizeY = yCb>>CtbLog2SizeY;

[0112] (yCb+(mvL[1]>>4)+cbHeight-1)>>CtbLog2SizeY = yCb>>CtbLog2SizeY;)

[0113] (xCb + (mvL[0] >> 4)) >> CtbLog2SizeY > = (xCb >> CtbLog2SizeY) - 1; and

[0114] (xCb+(mvL[0]>>4)+cbWidth-1)>>CtbLog2SizeY<= (xCb>>CtbLog2SizeY).

[0115] Condition C1 verifies that the reference block is located in the current CTU or the left CTU of the current CTU.

[0116] C2: When (xCb+(mvL[0]>>4))>>CtbLog2SizeY is equal to (xCb>>CtbLog2SizeY)-1, the derivation process for block availability is called with the neighboring luma positions (((xCb+(mvL[0]>>4)+CtbSizeY)>>(CtbLog2SizeY-1))<<(CtbLog2SizeY-1), ((yCb+(mvL[1]>>4))>>(CtbLog2SizeY-1))<<(CtbLog2SizeY-1)) and the current luma position (xCurr, yCurr) set equal to (xCb, yCb), then the output shall be equal to "false" (not yet constructed). Condition C2 verifies that the reference region in the left CTU (e.g., Fig. 9C The area in (921) corresponds to the area that has not been constructed in the current CTU.

[0117] III. Spatial merging candidates for the current block

[0118] Fig.10 Five spatial merge candidates for the current block are shown. The spatial merge candidates may be used to construct a list of prediction values ​​for block vector prediction of the current block (1010). For example, the current block (1010) is being constructed using skip mode, merge mode, or AMVP mode. A candidate list may be constructed. The candidates on the candidate list may be selected from spatial candidate positions A1, A0, B2, B0, and B1. In one example, the availability of the spatial candidate positions is checked in the order A0, B0, B1, A1, and B2. When the candidate position is available, the motion information at the candidate position may be added to the candidate list as a candidate. An index to the candidate list may be received in the bitstream. The candidate corresponding to the index may be used as a motion vector predictor (or predictor) to determine the motion vector of the current block 1010.

[0119] IV. History-based Motion Vector Prediction (HMVP)

[0120] In some examples, a block is encoded using a history-based motion vector prediction (HMVP) scheme. For example, after the spatial motion vector prediction (SMVP) candidate and the temporal motion vector prediction (TMVP) candidate, the HMVP merge candidate is added to the merge list. In this method, the motion information of the previously encoded block is stored in a table (referred to as the HMVP table) and used as the motion vector predictor (MVP) of the current CU. During the encoding or decoding process, an HMVP table with multiple HMVP candidates is maintained. In some examples, the HMVP table is reset (cleared) when a new CTU row is encountered. In some examples, whenever there is a non-sub-block inter-coded CU, the associated motion information is added to the last entry of the HMVP table as a new HMVP candidate.

[0121] In one embodiment, the size S of the HMVP table is set to 6, which indicates that at most 6 HMVP candidates can be added to the HMVP table. When a new motion candidate is inserted into the HMVP table, a constrained first-in-first-out (FIFO) rule is used. First, a redundancy check is applied to find if there is an identical HMVP in the HMVP table. If found, the identical HMVP is removed from the table, and then all HMVP candidates behind are moved forward.

[0122] The HMVP candidate can be used in the merge candidate list construction process. In one example, the latest several HMVP candidates in the HMVP table are checked in order and inserted into the candidate list after the TMVP candidate. For spatial or temporal merge candidates, a redundancy check is applied to the HMVP candidate.

[0123] In one embodiment, in order to reduce the number of redundant check operations, the following simplifications are introduced. (1) The number of HMVP candidates used for merge list generation is set to (N<= 4) × M: (8-N), where N represents the number of existing candidates in the merge list, and M represents the number of available HMVP candidates in the HMVP table. (2) In one example, once the total number of available merge candidates reaches the maximum allowed merge candidate minus 1, the merge candidate list construction process according to HMVP is terminated.

[0124] V. Intra-block copying (IBC) based on HBVP table

[0125] In various embodiments, the IBC mode is operated as a separate mode from the inter-frame mode (motion compensation from a picture different from the current picture). A separate history buffer (referred to as a history-based block vector prediction (HBVP) buffer) is used to store previously processed (encoded on the encoder side / decoded on the decoder side) IBC block vectors. When a current block that has been encoded in the IBC mode is processed on the encoder side or the decoder side, the block vector of the current block can be determined based on the HBVP buffer. The HBVP buffer can also be referred to as an HBVP table or an HBVP list. In the specific embodiments of this document, the HBVP buffer, HBVP table, and HBVP list can be used interchangeably.

[0126] The embodiments described herein may be used alone or in combination in any order. In addition, each of the method (or embodiment), encoder, and decoder may be implemented by a processing circuit (e.g., one or more processors or one or more integrated circuits). In one example, one or more processors execute a program stored in a non-transitory computer-readable medium. In the detailed description, the term "block" may be interpreted as a prediction block, a coding block, or a coding unit (CU).

[0127] Example A

[0128] When the block vector of the processed block is added to the HBVP table, the position (or location) information of the processed block can be recorded in the HBVP table. In other words, for each entry in the HBVP table, in addition to storing the block vector information, the position of the coded block (previously encoded or decoded block) associated with the block vector is also stored.

[0129] In one example, since the position of each of the plurality of coded blocks is different, when a new block vector and the associated position information are added to the HBVP table, a redundancy check is not performed. In another example, when a new block vector and the associated position information are added to the HBVP table, a redundancy check is performed. For example, the new block vector is compared with a block vector previously stored in the HBVP table. If a similar or identical old block vector is found, the old entry including the old block vector may be removed, and the entry including the new block vector and the associated position information may be added to the HBVP table as a nearest candidate.

[0130] In various examples, the position of the coding block may be represented by one of the four corners of the coding block. For example, the x and y coordinates of the corners of the coding block may be used to indicate the position. In one example, the position of the coding block is represented by the position of the lower right corner of the coding block. In another example, the position of the coding block may be represented by the position of the lower left corner of the coding block.

[0131] In one example, the position of the coding block may be represented by the position of one of the four corners of the coding block plus size (eg, width and height) information of the coding block.

[0132] In one example, the HBVP table is reset (e.g., cleared) at the beginning of each CTU row. In this configuration, for the y coordinate of each corresponding coded block, the position information of each entry in the HBVP table may be recorded using the relative y offset from the upper edge of the corresponding CTU. In another embodiment, the HBVP table is reset at the beginning of each CTU. Therefore, for the x and y coordinates of each corresponding coded block, the position information of each entry in the HBVP may be recorded using the relative x and y offsets from the origin of the corresponding CTU. In another example, when recording the x and y coordinates of the entry in the HBVP table, the offset from the origin of the corresponding CTU of the corresponding coded block is recorded regardless of the HBVP table reset operation.

[0133] Example B

[0134] In some examples, a block vector prediction (BVP) candidate list is constructed based on the HBVP table. When selecting an entry from the HBVP as a BVP candidate on the BVP candidate list, the location (or position) of the entry is considered (referring to the location of the coded block corresponding to the corresponding entry).

[0135] In one example, the position of the current block is compared with the position of the entry. If the position of the entry is at the lower right position of the current block, the position information of the entry is adjusted. Based on the adjusted position information, the position relationship between the coding block and the current block can be determined.

[0136] For example, when calculating the relative position of the current block to an entry in the HBVP table, if the x and y coordinates of the current block are smaller than the x and y coordinates of the entry, respectively (meaning that the previously coded block is located at the bottom right position relative to the current block, which is impossible), then when performing the calculation, an offset of (-CTU width, 0) is added to the coordinates of the entry. Thus, this entry is moved to the left of the current block (meaning that the corresponding block vector is now pointing from the CTU to the left of the current CTU).

[0137] In one example, an entry located to the left of the current block can be selected from the HBVP table and used as a block vector prediction value (e.g., added to the BVP candidate list). For example, the entry in the HBVP table includes an x-coordinate corresponding to the upper left corner of the coded block. If the x-coordinate is less than the coordinate of the upper left corner of the current block, it can be determined that the entry (or the corresponding coded block) is located to the left of the current block.

[0138] Similarly, a block vector above the current block may be selected from the HBVP table. For example, an entry in the HBVP table includes a y coordinate corresponding to the upper left corner of the coded block. If the y coordinate is less than the y coordinate of the upper left corner of the current block, it may be determined that the entry (or the corresponding coded block) is located above the current block.

[0139] Thus, in some examples, a BVP candidate list may be constructed based on entries selected from the HBVP table that are located to the left or above the current block.

[0140] In some examples, a maximum number of 2×N prediction values ​​are used (e.g., the prediction values ​​are added to the BVP candidate list) to predict the block vector of the current block. In one example, N = 1, then one of the 2×N prediction values ​​comes from the entry on the left in the HBVP table (referring to the entry on the left of the current block), and another of the 2×N prediction values ​​comes from the entry on the top in the HBVP table (referring to the entry on the top of the current block). In another example, N = 2, then the order of predictors in the BVP candidate list can be: first left -> first top -> second left -> second top (assuming there are enough entries in the HBVP table). When there are not enough entries in the HBVP table, the corresponding item in the prediction value list (BVP candidate list) can be empty and filled with the next item.

[0141] In some examples, starting from the most recently encoded entry in the HBVP table, the first entry to the left of the current block is selected as the left prediction value. The next entry to the left of the current block is selected as the second left prediction value. In this way, the left prediction values ​​can be selected continuously.

[0142] In some examples, starting from the most recently encoded entry in the HBVP table, the first entry above the current block may be selected as the first upper prediction value. The next entry above the current block may be selected as the second upper prediction value. In this way, upper prediction values ​​may be selected continuously.

[0143] In one example, a two-dimensional candidate prediction value list (BVP candidate list) is constructed by scanning the first N HBVP entries in the HBVP table. In different examples, the first N entries can be the most recently encoded N entries, or can be the first N entries encoded. For example, N can be less than the size S of the HBVP table. The first entry to the left of the current block can be put into the prediction value list as the first candidate. The first entry above the current block can be put into the prediction value list as the second candidate. If there are only upper candidates or only left candidates in the HBVP table, the first two available entries can be selected as prediction values.

[0144] Example C

[0145] In some embodiments, the BVP candidate list (prediction list) may be constructed as follows. If a block vector in the HBVP table has an associated position adjacent to the current block, then the block vector is derived as a prediction value. For example, the entries in the HBVP table may be scanned in order, such as from newest to oldest. If the entry is adjacent to the current block (the entry includes a position adjacent to the current block), then the block vector of the entry is placed in the prediction list. This process may continue until the maximum number of candidates in the prediction list is reached. For example, in Fig.10 In the HBVP table, the 5 spatially adjacent positions are considered to be adjacent to the current block (1010). Fig.10 The entries of the positions corresponding to the five positions in are selected as candidates in the prediction value list according to a certain order (for example, A0, B0, B1, A1, and B2).

[0146] In one example, if the block vector in the HBVP buffer is not adjacent to the current block, the block vector in the HBVP buffer may be placed in a later position in the prediction value list after the spatially adjacent entry. In another example, if the block vector in the HBVP buffer is not adjacent to the current block, the block vector may not be used in the prediction value list.

[0147] Example D

[0148] In some examples, when a block vector is placed into a predictor list, a redundancy check may be performed to ensure that the new prediction value is different from other existing prediction values ​​in the predictor list.

[0149] Example E

[0150] In various examples, a prediction value list may be constructed based on the HBVP table and used in merge mode, skip mode, or AMVP mode (differentially coded vector prediction) to encode a block vector of a current block (block vector prediction).

[0151] Example F

[0152] In one embodiment, multiple HBVP tables may be maintained during the decoding process. Each HBVP table may be associated with a different criterion for obtaining a new coded block vector (a block vector of a previously decoded block). In this way, the block vectors of a coded block may be classified into different groups and stored in corresponding HBVP tables. When encoding the current IBC-coded block, one or more block vectors may be selected from those individual HBVP tables, and the selected one or more block vectors may be used as a prediction value for encoding the block vector of the current block. Similarly, the entries in these HBVP tables may each include a block vector of the coded block, the position of the coded block (x and y coordinates), the size of the coded block (width and height), or other relevant information.

[0153] In a first example, for one of the HBVP tables, a criterion for obtaining a new block vector for a coded block is that the coded block satisfies a block size condition. The block size of a coded block can be measured in various ways. For example, the block size can be the number of luma samples in the coded block calculated by multiplying the width and height of the coded block. In one example, the block size condition is that the block size is greater than or equal to a threshold value T_size1 and less than another threshold value T_size2. In one example, the block size condition is that the block size is greater than or equal to a threshold value.

[0154] In the second example, for one of the HBVP tables, the criterion for obtaining a new block vector of the coded block is that the x coordinate xc of the upper left corner of the coded block satisfies the following condition: xc%ctuSizeY is greater than or equal to a threshold value T_x0 and less than another threshold value T_x1. The symbol % represents a modulo operation, and ctuSizeY represents the size of the CTU.

[0155] In the third embodiment, for one of the HBVP tables, the criterion for obtaining a new block vector of the encoded block is that the y coordinate yc of the upper left corner of the encoded block satisfies the following condition: yc%ctuSizeY is greater than or equal to a threshold T_y0 and less than another threshold T_y1.

[0156] In a fourth example, for one of the HBVP tables, the criterion for obtaining a new block vector of the encoded block is that the x coordinate xc of the lower right corner of the encoded block satisfies the following condition: xc%ctuSizeY is greater than or equal to a threshold T_x0 and less than another threshold T_x1.

[0157] In the fifth example, for one of the HBVP tables, the criterion for obtaining a new block vector of the encoded block is that the y coordinate yc of the lower right corner of the encoded block satisfies the following condition: yc%ctuSizeY is greater than or equal to a threshold T_y0 and less than another threshold T_y1.

[0158] In the above example, when a new block vector is placed into the HBVP table, a pruning process may be applied. For example, when an entry with the same block vector value as the block vector value of the new block vector is found in the HBVP table, the entry may be removed. The new entry including the new block vector may be placed in the location used to store the entry including the block vector of the most recently encoded block.

[0159] Example G

[0160] In one embodiment, one or more HBVP tables are maintained for block vector prediction of IBC coded blocks. Each HBVP table is associated with a specific criterion for obtaining a new block vector. Assume that a total of N HBVP tables are created and maintained. N is a positive integer and is greater than or equal to 1.

[0161] In a first example, for each HBVP table that does not store any entries, a set of default block vector prediction values ​​are used to populate the HBVP table. For example, the default block vector prediction value may be a zero-valued block vector (x and y coordinates are zero).

[0162] In a second example, an index pointing to one of the N HBVP tables may be received from a bitstream at a decoder. In response, an entry in the HBVP table indicated by the index may be selected for block vector prediction of a current block. For example, the most recent entry (most recently added entry) in the HBVP table indicated by the index may be selected as the block vector prediction value for the current IBC coded block. For another example, the earliest entry (earliest encoded entry) in the HBVP table indicated by the index is selected as the block vector prediction value for the current IBC coded block.

[0163] Example H

[0164] In one embodiment, a single HBVP table HBVP0 is maintained during the decoding process at the decoder. When decoding the current IBC coded block, in order to determine the block vector prediction value of the current block, the entries in HBVP0 are classified into different groups. Each group is stored in a separate HBVP table called a classified HBVP table. Each classified HBVP table can be assigned specific criteria for obtaining entries from HBVP0. Therefore, the classification operation can be based on those criteria.

[0165] For example, the size of HBVP0 may be M. The number of classified HBVP tables may be N which is less than or equal to M. The classified HBVP tables may be represented from HBVP1 to HBVPN.

[0166] For example, the criteria for classifying new coded block vectors as described in Embodiment F may be used to classify entries of HBVP0 from table HBVP1 to table HBVPN. In other examples, criteria different from those in Embodiment F may be used. When placing new entries into the HBVPx table (x = 0, 1, .., N), a pruning process may be applied. For example, when there is an old entry in HBVPx having the same block vector value as the block vector value of the new entry, the old entry may be removed and the new entry may be placed in a location for storing information of the most recently coded block.

[0167] In one example, after generating the tables HBVP1 to HBVPN, an entry may be selected from one of the tables HBVP1 to HBVPN according to an index received from a code stream. The block vector in the selected entry may be used as a block vector prediction value of the current block.

[0168] In the first case, the index may indicate one of the tables HBVP1 to HBVPN. In response to receiving the index, the newest entry (most recent entry) may be selected from the HBVP table indicated by the index.

[0169] In the second case, a prediction value list may first be constructed by selecting entries from table HBVP1 to table HBVPN according to some rules (e.g., as described in embodiment C). An index may indicate a candidate on the prediction value list. In response to receiving the index, a candidate on the prediction value list may be used as a block vector prediction value for the current block.

[0170] VI. Example of IBC mode decoding process based on HBVP table

[0171] Fig.11 A flowchart summarizing a process according to some embodiments of the present disclosure is shown. The process (1100) may be used to reconstruct an IBC coded block to generate a prediction block for the block being reconstructed. In various embodiments, the process (1100) is performed by a processing circuit such as a processing circuit in a terminal device (210), a terminal device (220), a terminal device (230), and a terminal device (240), a processing circuit that performs the functions of a video decoder (310), or a processing circuit that performs the functions of a video decoder (410). In some embodiments, the process (1100) is implemented in software instructions, so when the processing circuit executes the software instructions, the processing circuit performs the process (1100). The process starts at (S1101) and proceeds to (S1110).

[0172] At (S1110), the HBVP table may be maintained during the process of decoding the picture at the decoder. For example, the HBVP table may include one or more entries, each entry corresponding to a previously decoded IBC coded block. Each entry may include a block vector of the corresponding previously decoded block and the position of the corresponding previously decoded block. The position may be the x-coordinate and y-coordinate of one of the four corners of the previously encoded block. In one example, each entry may also include size information (e.g., width and height) of the corresponding previously decoded block.

[0173] At (S1120), data of a current block encoded in IBC mode may be received in a codestream. For example, the data may include a set of block-level syntax elements corresponding to the current block. One of the syntax elements may indicate that the current block is encoded in IBC mode.

[0174] At (S1130), a block vector of the current block may be determined based on the HBVP table. In order to determine the block vector of the current block, a block vector prediction value of the block vector of the current block may be determined first.

[0175] In one example, a BVP candidate list may be constructed based on a HBVP table. Then, a candidate is selected from the BVP candidate list, for example, based on an index of a candidate on the BVP candidate list received in a bitstream. The selected candidate may include a block vector used as a block vector prediction value. The BVP candidate list may include one or more of a first candidate and a second candidate. The first candidate may include a first block vector among the block vectors in the HBVP table. The corresponding previously decoded block of the first block vector has a position to the left of the current block. The second candidate may include a second block vector among the block vectors in the HBVP table. The corresponding previously decoded block of the second block vector may have a position above the current block.

[0176] In some examples, to determine a block vector prediction value, the entries in the HBVP table are first classified into different groups, and each group is stored in a classified HBVP table. Each classified HBVP table can be associated with a criterion for obtaining a new entry. For example, when the size of a previously decoded block corresponding to one of the entries of the HBVP table meets a block size condition, the entry of the HBVP table is stored in one of the multiple classified HBVP tables. For example, the block size condition can be that the number of luminance samples of the previously decoded block corresponding to one of the entries of the HBVP table is greater than or equal to a threshold.

[0177] For another example, the entries in the HBVP table may be classified into classified HBVP tables based on the x-coordinate, y-coordinate, or a combination of the x-coordinate and the y-coordinate of each corresponding previously decoded block stored in the HBVP table. Thus, entries of coded blocks located at different positions relative to the current block may be stored in different classified tables.

[0178] The block vector prediction value may be determined based on a plurality of classification HBVP tables. In one example, an index indicating one of the classification HBVP tables may be received in a code stream. Thus, an entry may be selected from the indicated classification HBVP table. The selected entry may correspond to the nearest decoded block among the decoded blocks of the entry in the indicated classification HBVP table. The block vector of the selected entry may be used as a block vector prediction value for the block vector of the current block.

[0179] In another example, a BVP candidate list may be constructed based on the classified HBVP table. The BVP candidate list may include one or more BVP candidates, each BVP candidate including a block vector selected from the classified HBVP table. Subsequently, a BVP candidate may be selected from the BVP candidate list based on an index received from the bitstream as a block vector prediction value of a block vector of a current block.

[0180] After determining the block vector prediction value, the block vector of the current block may be determined accordingly. For example, the current block may be encoded in IBC mode in one of the skip mode, merge mode, or AMVP mode. For the skip mode and merge mode, the block vector prediction value may be used as the block vector of the current block. For the AMVP mode, a vector difference may be received in a bitstream and added to the block vector prediction value to form a block vector of the current block.

[0181] At (S1140), the current block may be reconstructed based on the determined block vector of the current block. For example, a reference block may be determined in a decoded area of ​​the picture based on the block vector, and the reference block may be combined with a residual of the current block to form a reconstructed block.

[0182] At (S1150), the HBVP table may be updated using the block vector of the current block. For example, the block vector of the current block, the position, width, and height of the current block may be stored in the HBVP table. When the HBVP table is updated, a redundancy check may be performed. Then, the process (1100) may proceed to (S1199) and terminate at (S1199).

[0183] VII. Computer System

[0184] The above techniques may be implemented as computer software using computer-readable instructions and physically stored in one or more computer-readable media. Fig.12 A computer system (1200) suitable for implementing certain embodiments of the disclosed subject matter is shown.

[0185] Computer software may be encoded using any suitable machine code or computer language that may be subjected to assembly, compilation, linking or similar mechanisms to create code comprising instructions that may be executed directly by one or more computer central processing units (CPUs), graphics processing units (GPUs), etc., or through interpretation, microcode, etc.

[0186] The instructions may be executed on various types of computers or components thereof, including, for example, personal computers, tablet computers, servers, smart phones, gaming devices, IoT devices, etc.

[0187] Fig.12 The components of the computer system (1200) shown are exemplary in nature and are not intended to suggest any limitation on the scope of use or functionality of computer software implementing embodiments of the present disclosure. Neither should the configuration of the components be interpreted as having any dependency or requirement relating to any one or combination of components shown in the exemplary embodiment of the computer system (1200).

[0188] The computer system (1200) may include certain human-machine interface input devices. Such human-machine interface input devices may respond to input from one or more human users, for example, through: tactile input (e.g., keystrokes, swipes, data glove movements), audio input (e.g., voice, clapping), visual input (e.g., gestures), olfactory input (not depicted). The human-machine interface device may also be used to capture certain media that are not necessarily directly related to human conscious input, such as audio (e.g., voice, music, ambient sounds), images (e.g., scanned images, photographic images obtained from a still image camera), video (e.g., two-dimensional video, three-dimensional video including stereoscopic video), etc.

[0189] The input human-machine interface device may include one or more of the following (only one of each is shown): keyboard (1201), mouse (1202), touch pad (1203), touch screen (1210), data gloves (not shown), joystick (1205), microphone (1206), scanner (1207), camera (1208).

[0190] The computer system (1200) may also include certain human-machine interface output devices. Such human-machine interface output devices may, for example, stimulate one or more human user senses through tactile output, sound, light, and smell / taste. Such human-machine interface output devices may include tactile output devices (e.g., tactile feedback of a touch screen (1210), a data glove (not shown), or a joystick (1205), but may also be a tactile feedback device that is not an input device), an audio output device (e.g., a speaker (1209), a headset (not shown)), a visual output device (e.g., a screen (1210) including a CRT screen, an LCD screen, a plasma screen, an OLED screen, each with or without touch screen input capabilities, each with or without tactile feedback capabilities - some of which are capable of outputting two-dimensional visual output or more than three-dimensional output through devices such as stereoscopic image output, virtual reality glasses (not depicted), holographic displays and smoke boxes (not depicted), and printers (not depicted).

[0191] The computer system (1200) may also include human-accessible storage devices and their associated media: for example, optical media including CD / DVD ROM / RW (1220) with CD / DVD etc. media (1221), thumb drives (1222), removable hard drives or solid-state drives (1223), traditional magnetic media such as tapes and floppy disks (not shown), dedicated ROM / ASIC / PLD based devices such as security dongles (not shown), etc.

[0192] Those skilled in the art should also understand that the term "computer-readable media" used in connection with the presently disclosed subject matter does not encompass transmission media, carrier waves, or other transient signals.

[0193] The computer system (1200) may also include an interface (1254) to one or more communication networks (1255). The network may be, for example, a wireless network, a wired network, an optical network. The network may further be a local network, a wide area network, a metropolitan area network, a vehicle and industrial network, a real-time network, a delay-tolerant network, etc. Examples of networks include local area networks such as Ethernet, wireless LANs, cellular networks including GSM, 3G, 4G, 5G, LTE, etc., television wired or wireless wide area digital networks including cable television, satellite television, and terrestrial broadcast television, vehicle and industrial television including CANBus, etc. Some networks typically require an external network interface adapter connected to some common data port or peripheral bus (1249) (e.g., a USB port of the computer system (1200)); as described below, other network interfaces are typically integrated into the kernel of the computer system (1200) by connecting to the system bus (e.g., connecting to an Ethernet interface in a PC computer system or connecting to a cellular network interface in a smartphone computer system). The computer system (1200) can use any of these networks to communicate with other entities. Such communications may be one-way receive only (e.g., broadcast television), one-way send only (e.g., a CANbus connected to certain CANbus devices), or bidirectional, for example, connecting to other computer systems using a LAN or WAN digital network. As described above, certain protocols and protocol stacks may be used on each of those networks and network interfaces.

[0194] The above-mentioned human-machine interface device, human-machine accessible storage device, and network interface may be attached to the kernel ( 1240 ) of the computer system ( 1200 ).

[0195] The core (1240) may include one or more central processing units (CPUs) (1241), graphics processing units (GPUs) (1242), dedicated programmable processing units in the form of field programmable gate arrays (FPGAs) (1243), hardware accelerators (1244) for certain tasks, a graphics adapter (1250), and the like. These devices as well as read-only memory (ROM) (1245), random access memory (1246), internal mass storage (1247) such as an internal non-user accessible hard drive, SSD, and the like may be connected via a system bus (1248). In some computer systems, the system bus (1248) may be accessible in the form of one or more physical plugs to enable expansion by additional CPUs, GPUs, and the like. Peripheral devices may be connected directly to the core's system bus (1248) or to the core's system bus (1248) via a peripheral bus (1249). In Fig.12 In the example, the screen (1210) is connected to the graphics adapter (1250). The architecture of the peripheral bus includes PCI, USB, etc.

[0196] The CPU (1241), GPU (1242), FPGA (1243) and accelerator (1244) can execute certain instructions, which can be combined to constitute the above-mentioned computer code. The computer code can be stored in ROM (1245) or RAM (1246). Transition data can also be stored in RAM (1246), while permanent data can be stored, for example, in internal mass storage (1247). Fast storage and retrieval to any storage device can be performed by using a cache, which can be closely associated with the following: one or more CPUs (1241), GPUs (1242), mass storage (1247), ROM (1245), RAM (1246), etc.

[0197] The computer readable medium may have thereon computer codes for performing various computer-implemented operations. The medium and computer codes may be those specially designed and constructed for the purposes of the present disclosure, or the medium and computer codes may be of a type well known and available to those skilled in the art of computer software.

[0198] As a non-limiting example, a computer system having the architecture (1200), in particular the kernel (1240), can provide functionality due to one or more processors (including CPUs, GPUs, FPGAs, accelerators, etc.) executing software contained in one or more tangible computer-readable media. Such computer-readable media can be media associated with a user-accessible mass storage as described above, as well as some non-transitory memory of the kernel (1240), such as a kernel internal mass storage (1247) or ROM (1245). Software implementing various embodiments of the present disclosure can be stored in such devices and executed by the kernel (1240). Depending on specific needs, the computer-readable medium may include one or more storage devices or chips. The software can cause the kernel (1240), in particular the processors therein (including CPUs, GPUs, FPGAs, etc.) to perform specific processes or specific parts of specific processes described herein, including defining data structures stored in RAM (1246) and modifying such data structures according to processes defined by the software. Additionally or alternatively, the computer system may provide functionality due to logic hardwired or otherwise embodied in circuitry (e.g., accelerator (1244)) that may replace software or operate in conjunction with software to perform a particular process or a particular portion of a particular process described herein. Where appropriate, references to portions of software may include logic and vice versa. Where appropriate, references to portions of computer-readable media may include circuits (e.g., integrated circuits (ICs)) storing software for execution, circuits embodying logic for execution, or both. The present disclosure includes any suitable combination of hardware and software.

[0199] Appendix A: Abbreviations

[0200] AMVP: Advanced Motion Vector Prediction

[0201] ASIC: Application-Specific Integrated Circuit

[0202] BMS: Benchmark Set

[0203] BV: Block Vector

[0204] CANBus: Controller Area Network Bus

[0205] CD: compact disc

[0206] CPR: Current Picture Reference

[0207] CPU: Central Processing Unit

[0208] CRT: cathode ray tube

[0209] CTB: Coding Tree Block

[0210] CTU: Coding Tree Unit

[0211] Cu: Coding Unit

[0212] DPB: Decoded Picture Buffer

[0213] DVD: Digital Video Disc

[0214] FIFO: First In First Out

[0215] FPGA: Field Programmable Gate Array

[0216] GOP: Group of Pictures

[0217] GPU: Graphics Processing Unit

[0218] GSM: Global System for Mobile Communications

[0219] HBVP: History-based Block Vector Prediction

[0220] HEVC SCC: HEVC Screen Content Coding

[0221] HEVC: High Efficiency Video Coding

[0222] HMVP: History-based Motion Vector Prediction

[0223] HRD: Hypothesized Reference Decoder

[0224] IBC: Intra Block Copy

[0225] IC: Integrated Circuit

[0226] JEM: Joint Exploration Model

[0227] LAN: Local Area Network

[0228] LCD: Liquid Crystal Display

[0229] LTE: Long Term Evolution

[0230] MV: Motion Vector

[0231] MVP: Motion Vector Predictor

[0232] OLED: Organic Light Emitting Diode

[0233] PB: prediction block

[0234] PCI: Peripheral Component Interconnect

[0235] PLD: Programmable Logic Device

[0236] PU: prediction unit

[0237] RAM: Random Access Memory

[0238] ROM: Read Only Memory

[0239] SEI: Supplemental Enhancement Information

[0240] SNR: Signal to Noise Ratio

[0241] SSD: Solid State Drive

[0242] TMVP: Temporal Motion Vector Prediction

[0243] TU: Transform Unit

[0244] USB: Universal Serial Bus

[0245] VTM: VVC Test Model

[0246] VUI: Video Availability Information

[0247] VVC: Next Generation Video Coding

[0248] Although the present disclosure has described a number of exemplary embodiments, there are modifications, permutations, and various replacement equivalents that fall within the scope of the present disclosure. Therefore, it should be understood that those skilled in the art will be able to design many systems and methods that, although not explicitly shown or described herein, embody the principles of the present disclosure and therefore fall within the spirit and scope of the present disclosure.

Claims

1. A method for video decoding, comprising: Receiving data of a current block encoded in an intra block copy (IBC) mode in a bitstream; Classifying entries in a history-based block vector prediction HBVP table into different groups, each group being stored in a classified HBVP table, wherein the HBVP table includes one or more entries, each entry corresponding to a previously decoded block, each entry including a block vector, size information, and a position of the corresponding previously decoded block; Determining a block vector of the current block based on the plurality of classified HBVP tables, wherein the block vector prediction value of the current block is determined by: constructing a BVP candidate list including one or more BVP candidates, each BVP candidate including a block vector selected from the plurality of classified HBVP tables, and selecting a BVP candidate from the BVP candidate list as a block vector prediction value of the block vector of the current block based on an index received from the code stream; and The current block is reconstructed based on the determined block vector of the current block.

2. The method according to claim 1, further comprising: The block vector, position, width and height of the current block are stored in the HBVP table.

3. The method according to claim 1 or 2, wherein: Classifying the entries in the HBVP table into different groups, each group being stored in a classified HBVP table further comprising: When the size of a previously decoded block corresponding to one of the entries of the HBVP table satisfies a block size condition, the one of the entries of the HBVP table is stored in one of the multiple classified HBVP tables.

4. The method according to claim 3, wherein: The block size condition is satisfied when the number of luma samples of the previously decoded block corresponding to the one of the entries of the HBVP table is greater than or equal to a threshold.

5. The method according to claim 1 or 2, wherein: Classifying the entries in the HBVP table into different groups, each group being stored in a classified HBVP table further comprising: The entries in the HBVP table are sorted into the plurality of sorted HBVP tables based on an x-coordinate, a y-coordinate, or a combination of x-coordinates and y-coordinates of each of the corresponding previously decoded blocks stored in the HBVP table.

6. A method of video encoding, for use in an encoder including a local decoder, the method comprising: Receiving data of a current block decoded in an intra block copy (IBC) mode; Classifying entries in a history-based block vector prediction HBVP table into different groups, each group being stored in a classified HBVP table, wherein the HBVP table includes one or more entries, each entry corresponding to a previously encoded block, each entry including a block vector, size information, and a position of the corresponding previously encoded block; Determining a block vector of the current block based on the plurality of classified HBVP tables, wherein the block vector prediction value of the current block is determined by: constructing a BVP candidate list including one or more BVP candidates, each BVP candidate including a block vector selected from the plurality of classified HBVP tables, and selecting a BVP candidate from the BVP candidate list as a block vector prediction value of the block vector of the current block based on an index received from the code stream; and The current block is encoded based on the determined block vector of the current block.

7. An apparatus for video decoding comprising a circuit, the circuit being configured to: Receiving data of a current block encoded in an intra block copy (IBC) mode in a bitstream; Classifying entries in a history-based block vector prediction HBVP table into different groups, each group being stored in a classified HBVP table, wherein the HBVP table includes one or more entries, each entry corresponding to a previously decoded block, each entry including a block vector, size information, and a position of the corresponding previously decoded block; The block vector of the current block is determined based on a plurality of the classified HBVP tables, wherein: Determining a block vector prediction value of the current block by: constructing a BVP candidate list including one or more BVP candidates, each BVP candidate including a block vector selected from the plurality of classified HBVP tables, and selecting a BVP candidate from the BVP candidate list as a block vector prediction value of the block vector of the current block based on an index received from the code stream; and The current block is reconstructed based on the determined block vector of the current block.

8. The device according to claim 7, wherein: The circuit is also configured to: The block vector, position, width and height of the current block are stored in the HBVP table.

9. The device according to claim 7 or 8, wherein: The circuit is also configured to: When the size of a previously decoded block corresponding to one of the entries of the HBVP table satisfies a block size condition, the one of the entries of the HBVP table is stored in one of the multiple classified HBVP tables.

10. The device according to claim 9, wherein: The block size condition is satisfied when the number of luma samples of the previously decoded block corresponding to the one of the entries of the HBVP table is greater than or equal to a threshold.

11. The device according to claim 7 or 8, wherein: The circuit is also configured to: The entries in the HBVP table are sorted into the plurality of sorted HBVP tables based on an x-coordinate, a y-coordinate, or a combination of x-coordinates and y-coordinates of each of the corresponding previously decoded blocks stored in the HBVP table.

12. A non-transitory computer-readable medium storing instructions, which, when executed by a processor, cause the processor to perform the method according to any one of claims 1 to 6.

13. A method for processing a code stream, characterized in that: A video code stream is stored on a non-transitory computer-readable medium, wherein the video code stream is generated according to the encoding method according to claim 6, or is decoded based on the decoding method according to any one of claims 1 to 5.

14. A video decoding device, comprising: A receiving module, used for receiving data of a current block encoded in an intra-block copy (IBC) mode in a bitstream; a classification module, configured to classify entries in a history-based block vector prediction HBVP table into different groups, each group being stored in a classified HBVP table, wherein the HBVP table includes one or more entries, each entry corresponding to a previously decoded block, each entry including a block vector of the corresponding previously decoded block, size information, and a position of the corresponding previously decoded block; a determination module, configured to determine a block vector of the current block based on the plurality of classified HBVP tables, wherein the block vector prediction value of the current block is determined by: constructing a BVP candidate list including one or more BVP candidates, each BVP candidate including a block vector selected from the plurality of classified HBVP tables, and selecting a BVP candidate from the BVP candidate list as a block vector prediction value of the block vector of the current block based on an index received from the code stream; and A reconstruction module is used to reconstruct the current block based on the determined block vector of the current block.