Intra block copy prediction for overlapping reference blocks
Prediction mode encoding and intra-frame block copy mode are performed through block vectors, which solves the problem of low motion compensation efficiency of overlapping reference blocks in the existing technology, and improves the coding efficiency and accuracy of video encoding.
Patent Information
- Application Number
- CN202380015020.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Priority Date
- 2023-10-03
- Filing Date
- 2023-10-04
- Publication Date
- 2024-09-10
AI Technical Summary
Existing video coding technology is difficult to efficiently perform motion compensation and prediction when processing overlapping reference blocks, resulting in low coding efficiency.
Block vector (BV) is used for prediction mode encoding, by copying the prediction samples in the reference block to fill the unreconstructed samples in the overlapping area, using the block vector to reconstruct the sample values in the overlapping area, and in the intra block copy (IBC) mode Applicable in intra-frame template matching prediction (IntraTMP) mode.
It improves the coding efficiency of video coding, reduces the computational complexity and storage requirements in the coding process, and enhances the prediction accuracy of overlapping areas.
Smart Images

Figure CN118633286A_ABST
Abstract
Description
[0001] Incorporation by reference
[0002] This application claims the benefit of priority to U.S. Patent Application No. 18 / 376,345, filed on October 3, 2023, entitled “INTRA BLOCK COPY PREDICTION FOR OVERLAPPED REFERENCE BLOCK,” which claims the benefit of priority to U.S. Provisional Application No. 63 / 438,239, filed on January 10, 2023, entitled “Motion compensation of overlapped reference block for IBC prediction.” The disclosure of the prior application is incorporated herein by reference in its entirety. Technical Field
[0003] This disclosure describes embodiments generally related to video encoding. Background Art
[0004] The background description provided herein is for the purpose of generally presenting the context of the present disclosure. To the extent that the work of the presently named inventors described in this background section and in various aspects of this specification was performed, it does not indicate that it qualifies as prior art at the time of filing, and it is never explicitly or implicitly admitted that it is prior art to the present disclosure.
[0005] Image / video compression can help transmit image / video data between different devices, storages, and networks in a manner that minimizes quality degradation. In some examples, video codec techniques can compress video based on spatial redundancy and temporal redundancy. In one example, a video codec can use a technique called intra-frame prediction, which can compress an image based on spatial redundancy. For example, intra-frame prediction can use reference data from a current image being reconstructed for sample prediction. In another example, a video codec can use a technique called inter-frame prediction, which can compress an image based on temporal redundancy. For example, inter-frame prediction can predict samples in a current image from an image previously reconstructed using motion compensation. Motion compensation can be indicated by a motion vector (MV). Summary of the invention
[0006] Aspects of the present disclosure include methods and apparatus for video encoding / decoding. In some examples, an apparatus for video decoding includes a processing circuit that receives a code stream of a current block in an image. The code stream includes encoding information indicating that the current block is encoded according to a prediction mode using a block vector (BV). The processing circuit determines a reference block in the image based on the BV of the current block. The reference block and the current block may have an overlapping area. The reference block includes (i) unreconstructed samples in the overlapping area and (ii) reconstructed samples located outside the overlapping area. The processing circuit reconstructs the overlapping area in the current block based on the reconstructed samples in the reference block located outside the overlapping area.
[0007] In one embodiment, the processing circuit determines prediction values of unreconstructed samples in the overlapped region by copying corresponding prediction samples indicated by BV in the reference block, and reconstructs the overlapped region based on the prediction values of the unreconstructed samples in the overlapped region.
[0008] In one example, the processing circuitry performs motion compensation on the current block by reconstructing the overlapped region in the current block based on reconstructed samples in the reference block that are outside the overlapped region.
[0009] In one example, the width of the overlapped area and the height of the overlapped area are multiples of four.
[0010] In one embodiment, the processing circuit determines a prediction value P'(x, y) of an unreconstructed sample at position (x, y) of the unreconstructed samples by copying the reconstructed sample value P(x+bvX, y+bvY) of the corresponding prediction sample at position (x+bvX, y+bvY). P'(x, y) is equal to P(x+bvX, y+bvY). bvX is the x component of BV and bvY is the y component of BV.
[0011] In one embodiment, the processing circuit copies corresponding prediction samples in the reference block as prediction values of the unreconstructed samples in the overlapped area in a copy unit of size M×N samples. At least one of M and N is greater than 1.
[0012] In one example, at least one of the following exists: the width of the overlapped area is a multiple of M, or the height of the overlapped area is a multiple of N.
[0013] In one example, the size of the M×N samples of the replication unit depends on the color components associated with the current block.
[0014] In one example, the x component of the BV is less than or equal to 0, the y component of the BV is less than or equal to 0, and one of the x component of the BV and the y component of the BV is not equal to 0.
[0015] In one example, BV is represented by a vector (bvX, bvY), bw is the width of the current block, bh is the height of the current block, the overlapping area is a rectangle, the upper left coordinate of the overlapping area is (bx, by), and the lower right coordinate of the overlapping area is (bx+bw-1+bvX, by+bh-1+bvY).
[0016] In one example, the current block includes a first region and a second region outside the first region. The BV points from the first region to the overlapping region. The processing circuit determines the prediction value of the first region by copying the corresponding prediction sample indicated by 2×BV in the reference block, and reconstructs the overlapping region based on the prediction value of the first region.
[0017] In one example, the current block is a first subblock among the subblocks in the coding block, and a BV of the first subblock is different from another BV of a second subblock among the subblocks in the coding block.
[0018] Aspects of the present disclosure also provide a non-transitory computer-readable medium storing instructions, which, when executed by a computer, cause the computer to perform a method for video encoding / decoding. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] Further 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:
[0020] Figure 1 is a schematic diagram of an exemplary block diagram of a communication system (100).
[0021] Figure 2 is a schematic diagram of an exemplary block diagram of a decoder.
[0022] Figure 3 is a schematic diagram of an exemplary block diagram of an encoder.
[0023] Figure 4 The BV associated with the current CU ( 401 ) according to an embodiment of the present disclosure is shown.
[0024] Figure 5 A reference sample memory (RSM) update process at four intermediate times during a reconstruction process according to an embodiment of the present disclosure is shown.
[0025] Figure 6 The left neighboring CTU and the current CTU representing the valid reference area according to an embodiment of the present disclosure are shown.
[0026] Figure 7 An example of a prediction region of an intra block copy (IntraBC) mode in super block prediction according to an embodiment of the present disclosure is shown.
[0027] Figure 8 An example of a memory reuse mechanism or a memory update process in an RSM during decoding of a CTU or SB in a current picture according to an embodiment of the present disclosure is shown.
[0028] Fig. 9A and Fig. 9B FIG. 4 shows (a) using horizontal partitioning at the SB root according to an embodiment of the present disclosure. Fig. 9A ) or (b) using vertical partitioning at the root of the SB ( Fig. 9B )An example of the memory update process in the RSM during decoding of the current SB (or CTU).
[0029] Fig.10 An example of an intra template matching prediction (IntraTMP) mode according to an embodiment of the present disclosure is shown.
[0030] Fig.11 An example of an intra block copy (IBC) mode or an IntraTMP mode for encoding a current block in a current image when a reference block of the current block overlaps with the current block according to an embodiment of the present disclosure is shown.
[0031] Fig.12 It is shown that according to an embodiment of the present disclosure, corresponding prediction samples of unreconstructed samples are replicated in units of replication units with a size of M×N samples as an example of prediction values of unreconstructed samples in an overlapping area.
[0032] Fig.13 An example of performing the IBC mode or the IntraTMP mode on a sub-block in a current block when the current block overlaps with a reference block according to an embodiment of the present disclosure is shown.
[0033] Fig.14 An example of performing the IBC mode or the IntraTMP mode on a sub-block in a current block when the current block overlaps with a reference block according to an embodiment of the present disclosure is shown.
[0034] Fig.15 A flow chart outlining a decoding process according to some embodiments of the present disclosure is shown.
[0035] Fig.16 A flowchart outlining an encoding process according to some embodiments of the present disclosure is shown.
[0036] Fig.17 A flow chart outlining a decoding process according to some embodiments of the present disclosure is shown.
[0037] Fig.18 A flowchart outlining an encoding process according to some embodiments of the present disclosure is shown.
[0038] Fig.19 is a schematic diagram of a computer system according to an embodiment. DETAILED DESCRIPTION
[0039] Figure 1 A block diagram of a video processing system (100) in some examples is shown. The video processing system (100) is an example of an application of the disclosed subject matter, being a video encoder and a video decoder in a streaming environment. The disclosed subject matter is equally applicable to other video-enabled applications, including, for example, video conferencing, digital TV, streaming services, storing compressed video on digital media including CDs, DVDs, memory sticks, etc., and the like.
[0040] The video processing system (100) includes an acquisition subsystem (113), which may include a video source (101), such as a digital camera, which creates, for example, an uncompressed video image stream (102). In one example, the video image stream (102) includes samples recorded by the digital camera. The video image stream (102), which is depicted as a thick line to emphasize the high amount of data compared to the encoded video data (104) (or the encoded video bitstream), can be processed by an electronic device (120), which includes a video encoder (103) coupled to the video source (101). The video encoder (103) 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 (104) (or the encoded video bitstream), which is depicted as a thin line to emphasize the lower amount of data compared to the video image stream (102), can be stored on a streaming server (105) for future use. One or more streaming client subsystems, such as Figure 1 A client subsystem (106) and a client subsystem (108) in a streaming server (105) may access a copy (107) and a copy (109) of the encoded video data (104). The client subsystem (106) may include, for example, a video decoder (110) in an electronic device (130). The video decoder (110) decodes the incoming copy (107) of the encoded video data and creates an output video image stream (111) that can be presented on a display (112) (e.g., a display screen) or other presentation device (not depicted). In some streaming systems, the encoded video data (104), (107), and (109) (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 one example, the video coding standard under development is informally referred to as Next Generation Video Coding (VVC). The disclosed subject matter may be used in the context of VVC.
[0041] It should be noted that the electronic device (120) and the electronic device (130) may include other components (not shown). For example, the electronic device (120) may include a video decoder (not shown), and the electronic device (130) may also include a video encoder (not shown).
[0042] Figure 2 An exemplary block diagram of a video decoder (210) is shown. The video decoder (210) may be included in an electronic device (230). The electronic device (230) may include a receiver (231) (e.g., a receiving circuit). The video decoder (210) may be used to replace Figure 1 A video decoder (110) in an example of FIG.
[0043] The receiver (231) may receive one or more encoded video sequences, such as in a bitstream, to be decoded by the video decoder (210). In one embodiment, the encoded video sequences are received one at a time, wherein the decoding of each encoded video sequence is independent of the decoding of the other encoded video sequences. The encoded video sequence may be received from a channel (201), which may be a hardware / software link leading to a storage device storing the encoded video data. The receiver (231) 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 (231) may separate the encoded video sequence from the other data. To prevent network jitter, a buffer memory (215) may be coupled between the receiver (231) and the entropy decoder / parser (220) (hereinafter referred to as "parser (220)"). In some applications, the buffer memory (215) is part of the video decoder (210). In other applications, the buffer memory (215) may be located outside the video decoder (210) (not depicted). In still other applications, a buffer memory (not depicted) may be provided outside the video decoder (210) to, for example, prevent network jitter, and another buffer memory (215) may be provided inside the video decoder (210) to, for example, handle playback timing. When the receiver (231) receives data from a storage / forward device with sufficient bandwidth and controllability or from an isochronous network, the buffer memory (215) may not be required, or the buffer memory (215) may be made smaller. For use on a traffic packet network such as the Internet, the buffer memory (215) may be required, and the buffer memory (215) may be relatively large, advantageously may have an adaptive size, and may be implemented at least partially in an operating system or similar element (not depicted) external to the video decoder (210).
[0044] The video decoder (210) may include a parser (220) to reconstruct symbols (221) from the encoded video sequence. The categories of these symbols include information for managing the operation of the video decoder (210) and potential information for controlling a presentation device such as a presentation device (212) (e.g., a display screen) that is not an integral part of the electronic device (230) but can be coupled to the electronic device (230), such as Figure 2 As shown. The control information for the rendering device may be in the form of an auxiliary enhancement information (SEI) message or a video usability information (VUI) parameter set fragment (not depicted). The parser (220) 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, etc. The parser (220) 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), etc. The parser (220) may also extract information such as transform coefficients, quantizer parameter values, motion vectors, etc. from the coded video sequence.
[0045] The parser (220) may perform entropy decoding / parsing operations on the video sequence received from the buffer memory (215) to create symbols (221).
[0046] Depending on the type of coded video picture or part of 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 (221) may involve multiple different units. Which units are involved and how they are involved can be controlled by the parser (220) through subgroup control information parsed from the coded video sequence. For clarity, such subgroup control information flow between the parser (220) and the multiple units below is not depicted.
[0047] In addition to the functional blocks already mentioned, the video decoder (210) can be conceptually subdivided into a number of functional units as described below. In actual implementations 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 a number of functional units is appropriate in the following.
[0048] The first unit is a sealer / inverse transform unit (251). The sealer / inverse transform unit (251) receives quantized transform coefficients as symbols (221) from the parser (220) and control information including which transform to use, block size, quantization factor, quantization scaling matrix, etc. The sealer / inverse transform unit (251) may output a block including sample values, which may be input into an aggregator (255).
[0049] In some cases, the output samples of the scaler / inverse transform unit (251) may belong to an intra-coded block. An intra-coded block is a block that does not use prediction information from a previously reconstructed image, but may use prediction information from a previously reconstructed portion of a current image. Such prediction information may be provided by an intra-image prediction unit (252). In some cases, the intra-image prediction unit (252) uses surrounding reconstructed information extracted from a current image buffer (258) to generate a block of the same size and shape as the block being reconstructed. For example, the current image buffer (258) buffers a partially reconstructed current image and / or a fully reconstructed current image. In some cases, the aggregator (255) adds the prediction information generated by the intra-frame prediction unit (252) to the output sample information provided by the scaler / inverse transform unit (251) on a per-sample basis.
[0050] In other cases, the output samples of the scaler / inverse transform unit (251) may belong to a block that is inter-coded and potentially motion compensated. In this case, the motion compensated prediction unit (253) may access the reference image memory (257) to extract samples for prediction. After the extracted samples are motion compensated according to the symbols (221) belonging to the block, these samples may be added to the output of the scaler / inverse transform unit (251) (in this case, referred to as residual samples or residual signals) by the aggregator (255) to generate output sample information. The extraction of prediction samples by the motion compensated prediction unit (253) from the address in the reference image memory (257) may be controlled by a motion vector, which may be provided to the motion compensated prediction unit (253) in the form of symbols (221), which may have, for example, an X component, a Y component and a reference image component. Motion compensation may also include interpolation of sample values extracted from the reference image memory (257) when using sub-sample accurate motion vectors, motion vector prediction mechanisms, etc.
[0051] The output samples of the aggregator (255) may be subjected to various loop filtering techniques in a loop filter unit (256). 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 (256) as symbols (221) from the parser (220). The video compression may also be responsive to meta-information obtained during decoding of a previous (in decoding order) portion of a coded picture or coded video sequence, and to previously reconstructed and loop filtered sample values.
[0052] The output of the loop filter unit (256) may be a sample stream that may be output to a rendering device (212) and stored in a reference picture memory (257) for future inter-picture prediction.
[0053] Once fully reconstructed, certain coded pictures may be used as reference pictures for future prediction. For example, once the coded picture corresponding to the current picture is fully reconstructed, and the coded picture is identified as a reference picture (e.g., by the parser (220)), the current picture buffer (258) may become part of the reference picture memory (257), and a new current picture buffer may be reallocated before starting reconstruction of a subsequent coded picture.
[0054] The video decoder (210) may perform decoding operations according to a predetermined video compression technology or standard, such as ITU-T H.265 Recommendation. The encoded video sequence may conform to the syntax specified by the video compression technology or standard used, in the sense that the encoded video sequence follows the syntax of the video compression technology or standard and the profile recorded in the video compression technology or standard. Specifically, the profile may select certain tools from all the tools available in the video compression technology or standard as the only tools available for use under the profile. For compliance, the complexity of the encoded video sequence may also be required to be within the range defined by the hierarchy of the video compression technology 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.
[0055] In one embodiment, the receiver (231) may receive additional (redundant) data when receiving the encoded video. The additional data may be included as part of the encoded video sequence. The additional data may be used by the video decoder (210) to properly decode the data and / or more accurately reconstruct the original video data. The additional data may take the form of, for example, temporal, spatial or signal-to-noise ratio (SNR) enhancement layers, redundant slices, redundant images, forward error correction codes, etc.
[0056] Figure 3 An exemplary block diagram of a video encoder (303) is shown. The video encoder (303) is included in an electronic device (320). The electronic device (320) includes a transmitter (340) (e.g., a transmission circuit). The video encoder (303) can be used to replace Figure 1 A video encoder (103) in an example of FIG.
[0057] The video encoder (303) can be used to obtain the video source (301) (not Figure 3 In an example, the video source (301) is a part of the electronic device (320) to receive video samples, and the video source (301) can capture video images to be encoded by the video encoder (303). In another example, the video source (301) is a part of the electronic device (320).
[0058] The video source (301) may provide a source video sequence in the form of a digital video sample stream to be encoded by the video encoder (303), which 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 sampling structure (e.g., Y CrCb 4:2:0, YCrCb 4:4:4). In a media service system, the video source (301) may be a storage device storing previously prepared videos. In a video conferencing system, the video source (301) may be a camera that captures local image information as a video sequence. The video data may be provided as multiple separate images that are given motion when viewed sequentially. The images themselves may be organized into a spatial pixel array, where each pixel may include one or more samples depending on the sampling structure, color space, etc. used. The following description focuses on samples.
[0059] According to one embodiment, the video encoder (303) may encode and compress the images of the source video sequence into an encoded video sequence (343) in real time or under any other time constraints as required. Implementing the appropriate encoding speed is a function of the controller (350). In some embodiments, the controller (350) controls other functional units as described below and is functionally coupled to the other functional units described. For clarity, the coupling is not depicted in the figure. The parameters set by the controller (350) may include rate control related parameters (image skipping, quantizer, lambda value of rate distortion optimization techniques, etc.), image size, group of pictures (GOP) layout, maximum motion vector search range, etc. The controller (350) may be configured to have other suitable functions that are related to the video encoder (303) optimized for a certain system design.
[0060] In some embodiments, the video encoder (303) is configured to operate in an encoding loop. As an oversimplified description, in one example, the encoding loop may include a source encoder (330) (e.g., responsible for creating symbols, such as a symbol stream, based on an input image to be encoded and a reference image) and a (local) decoder (333) embedded in the video encoder (303). The decoder (333) reconstructs the symbols to create sample data in a similar manner to how the (remote) decoder may also create sample data. The reconstructed sample stream (sample data) is input to a reference image memory (334). 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 image memory (334) are also bit-accurate between the local encoder and the remote encoder. In other words, the reference image 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 image synchronization (and the drift that occurs when synchronization cannot be maintained, such as due to channel errors) is also used in some related technologies.
[0061] The operation of the "local" decoder (333) may be similar to that described above in conjunction with Figure 2 The "remote" decoder of the video decoder (210) described in detail is identical. However, additional brief reference is made to Figure 2 , since the symbols are available and the entropy encoder (345) and the parser (220) can losslessly encode / decode the symbols into an encoded video sequence, the entropy decoding portion of the video decoder (210) including the buffer memory (215) and the parser (220) may not be fully implemented in the local decoder (333).
[0062] In one embodiment, decoder techniques other than parsing / entropy decoding present in a decoder are present in a corresponding encoder in the same or substantially the same functional form. Therefore, the disclosed subject matter focuses on decoder operation. The description of encoder techniques can be simplified because encoder techniques are mutually inverse to the decoder techniques described comprehensively. In some areas, a more detailed description is provided below.
[0063] During operation, in some examples, the source encoder (330) may perform motion compensated predictive coding that predictively encodes an input image by referencing one or more previously encoded images from a video sequence designated as "reference images." In this manner, the encoding engine (332) encodes the differences between pixel blocks of the input image and pixel blocks of a reference image that may be selected as a prediction reference for the input image.
[0064] The local video decoder (333) may decode the encoded video data of the picture that may be designated as the reference picture based on the symbols created by the source encoder (330). The operation of the encoding engine (332) may advantageously be a lossy process. When the encoded video data may be decoded at the video decoder ( Figure 3 When the video encoder (303) is 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 (333) 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 memory (334). In this way, the video encoder (303) 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.
[0065] The predictor (335) may perform a prediction search for the encoding engine (332). That is, for a new image to be encoded, the predictor (335) may search the reference image memory (334) for sample data (as candidate reference pixel blocks) or certain metadata, such as reference image motion vectors, block shapes, etc., that may be used as appropriate prediction references for the new image. The predictor (335) 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 (335), the input image may have prediction references taken from multiple reference images stored in the reference image memory (334).
[0066] The controller (350) may manage encoding operations of the source encoder (330), including, for example, setting parameters and subgroup parameters for encoding video data.
[0067] The outputs of all the above functional units may be entropy encoded in an entropy encoder (345). The entropy encoder (345) applies lossless compression to 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.
[0068] The transmitter (340) may buffer the encoded video sequence created by the entropy encoder (345) in preparation for transmission over a communication channel (360), which may be a hardware / software link to a storage device that may store the encoded video data. The transmitter (340) may combine the encoded video data from the video encoder (303) with other data to be transmitted, such as encoded audio data and / or ancillary data streams (source not shown).
[0069] The controller (350) may manage the operation of the video encoder (303). During encoding, the controller (350) may assign a certain coded picture type to each coded picture, but this may affect the coding techniques that can be applied to the corresponding picture. For example, a picture may generally be assigned to any of the following picture types:
[0070] An intra picture (I 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.
[0071] Predictive pictures (P pictures), which can be encoded and decoded using intra prediction or inter prediction, which uses motion vectors and reference indices to predict sample values for each block.
[0072] Bi-directional predictive pictures (B pictures), which can be encoded and decoded using intra-frame prediction or inter-frame prediction, which uses two motion vectors and reference indices to predict the sample values of each block. Similarly, multiple predictive pictures can be used to reconstruct a single block using more than two reference pictures and associated metadata.
[0073] 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 coded 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 corresponding picture of the block. For example, blocks of an I picture may be non-predictively coded, or blocks of an I picture may be predictively coded (spatial prediction or intra prediction) with reference to already coded blocks of the same picture. Blocks of pixels of a P picture may be predictively coded by spatial prediction with reference to one previously coded reference picture or by temporal prediction. Blocks 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.
[0074] The video encoder (303) may perform encoding operations according to a predetermined video encoding technique or standard, such as ITU-T H.265 Recommendation. In operation, the video encoder (303) 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.
[0075] In one embodiment, the transmitter (340) may transmit additional data when transmitting the encoded video. The source encoder (330) may include such data as part of the encoded video sequence. The additional data may include temporal / spatial / SNR enhancement layers, other forms of redundant data such as redundant pictures and slices, SEI messages, VUI parameter set fragments, etc.
[0076] The acquired video may be taken as a plurality of source images (video images) in a temporal sequence. Intra-image prediction (often simplified to intra-prediction) exploits spatial correlations in a given image, while inter-image prediction exploits (temporal or other) correlations between images. In one example, a particular image being encoded / decoded is divided into blocks, and the particular image being encoded / decoded is referred to as the current image. When a block in the current image is similar to a reference block in a reference image that was previously encoded in the video and is still buffered, the block in the current image may be encoded by a vector called a motion vector. The motion vector points to a reference block in a reference image, and in the case where multiple reference images are used, the motion vector may have a third dimension that identifies the reference image.
[0077] In some embodiments, a bidirectional prediction technique may be used for inter-frame image prediction. According to the bidirectional prediction technique, two reference images are used, such as a first reference image and a second reference image that precede the current image in the video in decoding order (but may be in the past and future, respectively, in display order). A block in the current image may be encoded by a first motion vector pointing to a first reference block in the first reference image and a second motion vector pointing to a second reference block in the second reference image. The block may be predicted by a combination of the first reference block and the second reference block.
[0078] In addition, merge mode technology can be used for inter-picture prediction to improve coding efficiency.
[0079] According to some embodiments of the present disclosure, predictions such as inter-image prediction and intra-image prediction are performed in units of blocks. For example, according to the HEVC standard, an image in a video image sequence is divided into coding tree units (CTUs) for compression, and the CTUs in the image have the same size, such as 64×64 pixels, 32×32 pixels, or 16×16 pixels. Typically, a CTU includes three coding tree blocks (CTBs), which are a luminance CTB and two chrominance CTBs. Each CTU can be recursively divided into one or more coding units (CUs) in a quadtree. For example, a 64×64 pixel CTU can be divided into a 64×64 pixel CU, or 4 32×32 pixel CUs, or 16 16×16 pixel CUs. In one example, each CU is analyzed to determine a prediction type for the CU, such as an inter-frame prediction type or an intra-frame prediction type. The CU is divided into one or more prediction units (PUs) based on temporal and / or spatial predictability. Typically, each PU includes a luminance prediction block (PB) and two chrominance PBs. In one embodiment, the prediction operation in encoding (encoding / decoding) is performed in units of prediction blocks. Using a 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, etc.
[0080] It should be noted that the video encoder (103) and the video encoder (303) and the video decoder (110) and the video decoder (210) may be implemented using any suitable technology. In one embodiment, the video encoder (103) and the video encoder (303) and the video decoder (110) and the video decoder (210) may be implemented using one or more integrated circuits. In another embodiment, the video encoder (103) and the video encoder (303) and the video decoder (110) and the video decoder (210) may be implemented using one or more processors that execute software instructions.
[0081] An example of an intra block copy mode (also referred to as IntraBC mode or IBC mode) such as used in HEVC and VVC is described below.
[0082] Some IBC coding tools are used as current picture reference (CPR) in the HEVC screen content coding (SCC) extension. The IBC mode can use coding techniques for inter-frame prediction, wherein, in the IBC mode, the current image (also referred to as the current frame) is used as a reference image (also referred to as a reference frame). The benefit of using the IBC mode is the reference structure of the IBC mode, wherein a two-dimensional (2D) space vector can be used as a representation of the addressing mechanism for reference samples. The benefit of the architecture of the IBC mode is that the integration of IBC requires relatively minor changes to the specification, which can reduce the implementation burden if the manufacturer has implemented certain prediction techniques (such as HEVC version 1). The CPR in the HEVC SCC extension can be a special inter-frame prediction mode, resulting in a syntax structure that is the same or similar to the syntax structure of the inter-frame prediction mode, and a decoding process similar to the decoding process of the inter-frame prediction mode.
[0083] The IBC mode can be integrated into the inter-frame prediction process. In some examples, the IBC mode (or CPR) is an inter-frame prediction mode, and only slices predicted by intra-frames will become prediction slices that allow the use of the IBC mode. When the IBC mode is applicable, the encoder can extend the reference image list by one entry so that the pointer points to the current image. For example, the current image uses a buffer of the size of an image of the shared decoded picture buffer (DPB). IBC mode signaling can be implicit. For example, when the selected reference image points to the current image, the CU can adopt the IBC mode. In various embodiments, the reference samples used in the IBC process are not filtered, which is different from conventional inter-frame prediction. The corresponding reference image used in the IBC process is a long-term reference. In order to minimize memory requirements, the encoder can release the buffer after reconstructing the current image, for example, the encoder releases the buffer immediately after reconstructing the current image. When the reconstructed image is a reference image, the encoder can put the filtered version of the reconstructed image back into the DPB as a short-term reference.
[0084] In block vector (BV) coding, reference to reconstructed regions may be performed by 2D BVs, which are similar to MVs used in inter prediction. The prediction and coding of BVs may reuse MV prediction and coding in the inter prediction process. In some examples, luma BVs are at integer resolutions, rather than at 1 / 4 (or 1 / 4 pixel) precision as MVs used for conventional inter-coded CTUs.
[0085] Figure 4The BV associated with the current CU (401) according to an embodiment of the present disclosure is shown. Each square (400) may represent a CTU. The gray shaded area represents an encoded area or an encoded region, and the white non-shaded area represents an area or a region to be encoded. The current CTU (400 (4)) being reconstructed includes the current CU (401), the encoded region (402), and the region to be encoded (403). In one example, after the current CU (401) is encoded, the region (403) will be encoded.
[0086] In one example, for example, in HEVC, the gray shaded area excluding the two CTUs (400(1) and 400(2)) located above and to the right of the current CTU (400(4)) can be used as a reference area in IBC mode to allow wavefront parallel processing (WPP). The BV allowed in HEVC may point to a block within the reference area (e.g., the gray shaded area excluding the two CTUs (400(1) and 400(2))). For example, the BV (405) allowed in HEVC points to the reference block (411).
[0087] In one example, for example in VVC, in addition to the current CTU (400(4)), only the left neighboring CTU (400(3)) located on the left side of the current CTU (400(4)) is allowed as a reference area in the IBC mode. In one example, the reference area used in the IBC mode in VVC is located within the dotted area (415) and includes coded samples. For example, the BV (406) allowed in VVC points to the reference block (412). In one example, the decoded motion vector difference (MVD) or block vector difference (BVD) of the BV is shifted left (e.g., 2 bits) and then added to the BV predictor to determine the final BV.
[0088] The IBC mode may be different from the inter-frame prediction mode, so special processing may be used for implementation and performance reasons as described below. In one embodiment, the IBC reference samples are not filtered, for example, the reconstructed samples before the loop filtering process (including but not limited to the deblocking filter (DBF) and the sample adaptive offset (SAO) filter) are used as reference samples in the IBC mode, where other inter-frame prediction modes such as those used in HEVC use filtered samples as reference samples. In one embodiment, for the IBC mode, there is no luma sample interpolation. In one embodiment, when the chroma BV is derived from the luma BV, chroma sample interpolation is used when the chroma BV is non-integer. In one embodiment, the chroma BV is non-integer and the reference block is close to the boundary of the available area. For example, the surrounding reconstructed samples are located outside the boundary to perform chroma sample interpolation. BVs pointing to a single line close to the boundary may not be able to avoid this situation.
[0089] An exemplary IBC architecture, such as used in VVC, can be described as follows. The valid reference area of an IBC mode, such as used in the HEVC SCC extension, may include almost the entire reconstructed area of the current picture, with some exceptions for parallel processing purposes, such as Figure 4 Described in . Figure 4 The reference area for IBC mode in HEVC and configuration in VVC is shown. For example, reference Figure 4 , only the CTU (400(3)) located to the left of the current CTU (400(4)) can be used as a reference sample area at the beginning of the reconstruction process of the current CTU (400(4)). In some examples, a disadvantage of the concept in HEVC is that additional memory is required in the DPB, for which the hardware implementation uses external memory. In one example, the additional access to the external memory leads to an increase in memory bandwidth, making the use of DPB less attractive. In some embodiments, for example, the IBC mode in VVC can use fixed memory that can be implemented on-chip, thereby significantly reducing the complexity of implementing the IBC mode in the hardware architecture. In one embodiment, an important modification addresses the deviation from the integrated signaling concept in the inter-frame prediction process, for example in the HEVC SCC extension.
[0090] Figure 5 The reference sample memory (RSM) (510) update process at four intermediate times (501) to (504) during the reconstruction process according to an embodiment of the present disclosure is shown. The light gray shaded area may represent the reference sample of the left neighboring CTU. The dark gray shaded area may represent the reference sample of the current CTU. The white non-shaded area may represent the area to be encoded (e.g., the upcoming encoding area).
[0091] Examples of the syntax and semantics of the IBC mode used, for example, in VVC may be described as follows. For example, the IBC architecture used in VVC may form a dedicated coding mode, in which the IBC mode is a third prediction mode in addition to the intra prediction mode and the inter prediction mode. For example, when the block size is 64×64 or smaller, the codestream may carry an IBC syntax element (e.g., an sIBC syntax element) indicating the IBC mode of the coding unit. In one embodiment, the maximum CU size of the IBC mode is 64×64 to implement the continuous memory update mechanism of the RSM. By representing a two-dimensional offset and reusing a vector encoding process for the inter prediction mode, the reference sample addressing mechanism can be the same as that used in the HEVC SCC extension. In one example, the chroma separation tree (CST) is active and the encoder cannot derive the chroma BV from the luma BV, resulting in the use of the IBC mode only for luma coding blocks.
[0092] For example, the reference area and sample memory in the IBC mode used in VVC can be described as follows. For example, the IBC design used in VVC can use a fixed memory size (e.g., 128×128) for each color component to store reference samples, making it possible to implement on-chip placement in hardware. In one example, the maximum CTU size in VVC is 128×128. In one embodiment, when the maximum CTU size configuration is equal to 128×128, the RSM can store samples of a single CTU. In one example, features of the RSM include a continuous update mechanism that can replace the reconstructed samples of the left adjacent CTU with the reconstructed samples of the current CTU.
[0093] Figure 5 An RSM example (eg, a simplified RSM example) of an update mechanism at four intermediate times (501) to (504) during a rebuild process is shown. Figure 5 , at the first intermediate time (501) indicating the start of reconstruction of the current CTU, in one example, the RSM (510) includes only reference samples of the left adjacent CTU. In the other three intermediate times (502) to (504), the reconstruction process has replaced samples of the left adjacent CTU with a variant of the current CTU. An implicit partitioning of the RSM (510) may be applied, and the RSM (510) may be divided into four non-overlapping 64×64 regions (511) to (514). When the encoder processes the first coding unit that may be located in the corresponding region when mapping the RSM to the CTU, a reset of the region may occur, thereby alleviating the effort of the hardware implementation.
[0094] exist Figure 5 In the example shown, a fixed memory (e.g., RSM (510)) may be allocated to store reference regions used in IBC mode. A portion of the RSM may be updated at different intermediate times (e.g., (501) to (504)) during an encoding process (e.g., an encoding process or a reconstruction process). Figure 5 Reference areas for IBC mode in VVC and configuration in VVC are shown.
[0095] refer to Figure 5 , the RSM (510) may include a portion of the current CTU and / or a portion of the left adjacent CTU. Figure 5 In the example shown, the size of the RSM is equal to the size of the CTU. The RSM (510) may include parts (511) to (514).
[0096] At a first intermediate time (501) of the encoding process, which is the start of the encoding process of the current CTU, the RSM (510) includes the entire left neighboring CTU, and the entire left neighboring CTU can be used as a reference area in the IBC mode at the start of the encoding process of the current CTU. At the start of the encoding process of the current CTU, the RSM (510) does not include the current CTU, and the parts (511) to (514) include reconstructed samples of the left neighboring CTU.
[0097] At a second intermediate time (502) of the encoding process of the current CTU, a sub-region (531) of the upper left region in the current CTU has been encoded (e.g., encoded or reconstructed), the sub-region (532) of the upper left region in the current CTU is the current CU being encoded (e.g., being encoded or reconstructed), and the sub-region (533) of the upper left region in the current CTU is subsequently encoded. The RSM (510) is updated to include a portion of the left neighboring CTU and a portion of the current CTU. For example, portions (512) to (514) in the RSM (510) store reconstructed samples in the same left neighboring CTU as the first intermediate time (501), while portion (511) is updated to store the sub-region (531) of the current CTU. The reference region at the second intermediate time (502) may include the reconstructed samples of the left neighboring CTU stored in portions (512) to (514) and the reconstructed samples of the sub-region (531) of the current CTU stored in portion (511).
[0098] At the third intermediate time (503) of the encoding process of the current CTU, the upper left area of the current CTU has been reconstructed. The upper right area of the current CTU includes sub-areas (541) to (543). Sub-area (541) (dark gray shading) has been encoded (e.g., encoded or reconstructed), sub-area (542) is the current CU being encoded (e.g., being encoded or being reconstructed), and sub-area (543) (white, non-shaded) is subsequently encoded. Portions (513) and (514) in the RSM (510) store the reconstructed samples in the same left adjacent CTU as the first intermediate time (501), and portions (511) and (512) are updated at the same time, so that portion (511) stores the reconstructed samples of the upper left area of the current CTU, and portion (512) stores the sub-area (541) of the current CTU. The reference area at the third intermediate time (503) may include (i) reconstructed samples of the left adjacent CTU stored in portions (513) and (514) and (ii) reconstructed samples of the upper left area of the current CTU stored in portion (511) and a sub-area (541) of the current CTU stored in portion (512).
[0099] At the fourth intermediate time (504) of the encoding process of the current CTU, the upper left area, the upper right area and the lower left area of the current CTU have been reconstructed. The lower right area of the current CTU includes sub-areas (551) to (553). Sub-area (551) (dark gray shading) has been encoded (e.g., encoded or reconstructed), sub-area (552) is the current CU being encoded (e.g., being encoded or being reconstructed), and sub-area (553) (white, non-shaded) is subsequently encoded. Portion (511) stores the reconstructed samples of the upper left area in the same current CTU as the third intermediate time (503), and portions (512) to (514) are updated so that portions (512) and (513) store the reconstructed samples of the upper right area and the lower left area of the current CTU, respectively, and portion (514) stores sub-area (551) of the current CTU. The reference region at the fourth intermediate time (504) may include reconstructed samples of the current CTU stored in portions (511) to (514). At the fourth intermediate time (504), the RSM (510) does not include a region in the left neighboring CTU.
[0100] Figure 6 The left neighboring CTU (601) and the current CTU (602) are shown to represent the valid reference area due to the RSM design and continuous update mechanism. The left neighboring CTU (601) may include areas (611) to (614). The current CTU (602) may include areas (621) to (624). The area (623) in the current CTU (602) includes the current CU (603) being encoded, the encoded sub-area (651), and the sub-area to be encoded (653). The gray shaded area may include samples stored in the RSM, and the white non-shaded area may include replaced samples or unreconstructed samples.
[0101] Figure 6 An example of the continuous update concept of RSM is shown in space. Figure 6 At reconstruction time in the example shown, the RSM update process has replaced samples covered by white non-shaded areas (611) to (613) in the left neighboring CTU (601) with gray shaded areas (e.g., areas (621) and (622) and sub-area (651)) of the current CTU (602). Figure 6 , the RSM may include (i) the region (614) in the left adjacent CTU (601) and (ii) the regions (621) and (622) and the sub-region (651) of the current CTU (602).
[0102] For example, when the maximum CTU size is smaller than the RSM size (e.g., 128×128), the RSM may include more than one left-neighboring CTU, and in IBC mode, multiple left-neighboring CTUs may be used as reference regions. For example, when the maximum CTU size is equal to 32×32, an RSM of size 128×128 may store samples of 15 left-neighboring CTUs.
[0103] The following describes an exemplary block vector (BV) encoding of the IBC mode used, for example, in VVC. BV encoding may use a process specified for inter-frame prediction. BV encoding of the IBC mode may use simpler rules to construct a candidate list. For example, the candidate list constructed for inter-frame prediction may include five spatial candidates, one temporal candidate, and six history-based candidates. In inter-frame prediction, multiple candidate comparisons are used for history-based candidates to avoid duplicate entries in the final candidate list. In addition, in inter-frame prediction, candidate list construction may include pair-wise averaged candidates. In one embodiment, the IBC list construction process considers only the BVs of two spatial neighbors and five history-based BVs (HBVPs), where only the first HBVP is compared with the spatial candidate when added to the candidate list. Although conventional inter-frame prediction may use two different candidate lists, one candidate list for merge mode and the other candidate list for regular mode, the candidate list in the IBC mode applies to both cases. In IBC mode, merge mode may use up to six candidates in the candidate list, while regular mode only uses the first two candidates in the candidate list. Block vector difference (BVD) encoding in IBC mode may use the motion vector difference (MVD) process used in inter prediction to produce a final BV of any suitable magnitude. In one embodiment, the reconstructed BV may point to an area outside the reference sample area, so a correction is performed on the reconstructed BV, for example, by removing the absolute offset in each direction (e.g., each of the horizontal and vertical directions) using a modulo operation of the width and height of the RSM.
[0104] The derivation process of chroma BV may include the following. When the current coding tree type is SINGLE_TREE, the chroma block corresponds to the luma block. By considering the chroma sampling format (e.g., 4:2:0, 4:2:2) and the appropriate scaling of the chroma BV precision, the BV of the chroma block encoded using the IBC mode can be derived from the BV of the luma block. The derivation process can be described as follows. The input of the process may include a luma BV at a 1 / 16 fractional sampling precision bvL. The output of the process may include a chroma BV at a 1 / 32 fractional sampling precision bvC. The chroma BV can be derived from the corresponding luma BV. The chroma BV bvC can be derived as follows:
[0105] bvC[0]=((bvL[0]>>(3+SubWidthC))*32 Equation (1)
[0106] bvC[1]=((bvL[1]>>(3+SubHeightC))*32 Equation (2)
[0107] The variables SubWidthC and SubHeightC may be specified in Table 1 according to the chroma format sampling structure, which may be specified by sps_chroma_format_idc.
[0108] Table 1: SubWidthC and SubHeightC values derived from sps_chroma_format_idc
[0109] sps_chroma_format_idc Chroma Format SubWidthC SubHeightC 0 monochrome 1 1 1 4:2:0 2 2 2 4:2:2 2 1 3 4:4:4 1 1
[0110] In monochrome sampling (eg, the chroma format is monochrome), there is only one sample array, which is nominally considered to be the luma array.
[0111] In 4:2:0 sampling, each of the two chroma arrays may have half the height and half the width of the luma array.
[0112] In 4:2:2 sampling, each of the two chroma arrays may have the same height and half the width of the luma array.
[0113] In 4:4:4 sampling, each of the two chroma arrays may have the same height and width as the luma array.
[0114] The number of bits required to represent each sample in the luma array and chroma array in a video sequence may be in the range of 8 to 16, inclusive.
[0115] The following describes the IntraBC mode used, for example, in AV1. In one embodiment, for example in AV1, the intra block copy (IntraBC) mode may use a vector to locate a prediction block in the same image of the current block. The vector is called a block vector (BV). The BV may be signaled in the bitstream, and the precision of representing the BV may be an integer point. The prediction process in the IntraBC mode is similar to inter-image prediction. The difference between the IntraBC mode and inter-frame prediction is that in the IntraBC mode, a prediction block may be formed from reconstructed samples of the current image before loop filtering is applied. Therefore, the IntraBC mode may be considered to be "motion compensation" within the current image using the BV as the MV.
[0116] For the current block, a flag indicating whether the IntraBC mode is enabled for the current block may first be transmitted in the bitstream. Then, if the current block is encoded using the IntraBC mode, the BV difference may be derived by subtracting the predicted BV from the current BV. The BV difference may be classified into multiple types (e.g., four types) according to the horizontal component and the vertical component of the BV difference. The type information may be represented by a signal in the bitstream, and then the BV difference of the two components (horizontal and vertical) may be represented by a signal.
[0117] The IntraBC mode can be very effective for encoding certain content (e.g., screen content). In one example, the IntraBC mode also poses a challenge to hardware design. To facilitate hardware design, the following modifications can be adopted. When the IntraBC mode is allowed, the loop filter is disabled. The loop filter may include DBF, a constraint direction enhancement filter (CDEF), a loop recovery (LR) filter, etc. By disabling the loop filter, a second image buffer dedicated to enabling the IntraBC mode can be avoided.
[0118] To facilitate parallel decoding, the prediction cannot exceed the restricted area. In one embodiment, for a super block or CTU, if the coordinates of the upper left position of the super block (or CTU) are (x0, y0), the prediction at position (x, y) can be accessed through the IntraBC mode only if the vertical coordinate is less than y0 and the horizontal coordinate is less than x0+2(y0-y).
[0119] To allow for hardware writeback latency, the IntraBC prediction cannot access the immediate reconstruction area. The restricted immediate reconstruction area can be 1 to n super blocks (or CTUs). Therefore, in addition to the above modifications, if the coordinates of the upper left position of the super block (or CTU) are (x0, y0), then the prediction at position (x, y) can be accessed by the IntraBC mode if the vertical coordinate is less than y0 and the horizontal coordinate is less than x0+2(y0-y)-D, where D represents the restricted immediate reconstruction area for the IntraBC mode. When D is two super blocks such as specified in AVM, the prediction area is as follows: Figure 7 shown.
[0120] Figure 7An example of a prediction area of the IntraBC mode in a super-block prediction according to an embodiment of the present disclosure is shown. Each square may represent a super-block or CTU. The gray shaded area may include an allowed search area, for example, a search area accessible in the IBC mode for the corresponding current super-block (710) being reconstructed. For example, when D includes two super-blocks (or two CTUs), the black shaded area may include an unallowed search area that is inaccessible in the IBC mode for the corresponding current super-block (710). The white non-shaded area includes a super-block to be encoded (e.g., reconstructed). In one example, for the current super-block (710 (1)), the immediate reconstruction area includes two super-blocks (721) and (722) located to the left of the current super-block (710 (1)) (e.g., D is 2 super-blocks). For the current super-block (710 (1)), super-blocks (721) and (722) are not accessible. For the current super-block (710 (1)), an allowed search area (730) is accessible.
[0121] The IntraBC mode with local reference ranges, e.g., in AV1, can be described as follows. The IntraBC mode can be used with local reference ranges, e.g., in the AV1 codec. In one embodiment, an "on-chip" memory (called RSM) of superblock (SB) size is allocated to store reference samples, wherein a 64×64 based memory reuse mechanism is applied, e.g. Figure 8 , Fig. 9A and Fig. 9B As shown. For example, the following changes (1) to (3) are made based on the design of the IntraBC mode in AV1. (1) The maximum block size in the IntraBC mode can be limited to 64×64. (2) The reference block and the current block are located in the same SB row. In one example, the reference block can only be located in the current SB or in an SB to the left of the current SB. (3) When starting to update any 64×64 unit reference sample memory using reconstructed samples from the current SB, the previously stored reference samples in the entire 64×64 unit (for example, from the left SB) are marked as cannot be used to generate prediction samples for the IntraBC mode.
[0122] Figure 8An example of a memory reuse mechanism or a memory update process in an RSM during decoding of a CTU or SB (e.g., current SB (801)) in a current image according to an embodiment of the present disclosure is shown. Rows 1 and 2 show examples from the perspective of the RSM. Row 1 shows an RSM (810) in state (0). Row 2 shows an RSM (810) in states (1) to (4). Row 3 shows an example from the perspective of an image, such as a current SB (801) being encoded and a left adjacent SB (802) in states (0) to (4) in the current image. Quadtree partitioning can be used at the root of the SB. The SB may include four regions. In one example, the size of each of the four regions is 64×64. In one example, the current SB (801) includes four regions 4 to 7, and the left adjacent SB (802) includes four regions 0 to 3.
[0123] refer to Figure 8 , at the beginning of encoding each SB (state (0)), the RSM stores samples of the previously encoded SB (e.g., the left adjacent SB (802)). When the current block is located in one of the four regions (e.g., four 64×64 regions) in the current SB (801) (e.g., shown as being in one of the states (1) to (4)), the corresponding region in the RSM (810) can be cleared and used to store samples of the current encoding region (e.g., the current 64×64 encoding region). Therefore, the samples in the RSM (810) can be gradually updated by the samples in the current SB (801), for example, shown as from state (1) to state (4).
[0124] Referring to state (1), the current block (811) is located in region 4 in the current SB (801), and the corresponding region (e.g., the upper left region) in the RSM (810) can be cleared and used to store samples of region 4, which is the current region being encoded. Referring to row 3, a BV (e.g., an encoded BV or a decoded BV) (821) can point from the current block (811) to a reference block (831) located within a search range (841) of the current block (811) (the boundary of the search range (841) is marked by a dotted line). Referring to row 2, a corresponding offset (851) in the RSM (810) can point from the current block (811) to a reference block (831) in the RSM (810). In state (1), the search range (841) includes regions 1 to 3 in the left adjacent SB (802) and the encoded sub-region (861) in region 4. The search range (841) does not include region 0 in the left adjacent SB (802).
[0125] Referring to state (2), the current block (811) is located in region 5 in the current SB (801), and the corresponding region (e.g., the upper right region) in the RSM (810) can be cleared and used to store samples of region 5, which is the current region being encoded. The BV (822) can point from the current block (812) to a reference block (832) located within a search range (842) of the current block (812) (the boundary of the search range (842) is marked by a dotted line). The corresponding offset (852) in the RSM (810) can point from the current block (812) to the reference block (832) in the RSM (810). In state (2), the search range (842) includes (i) regions 2 and 3 in the left adjacent SB (802) and (ii) the encoded sub-regions (862) in regions 4 and 5 in the current SB (801). The search range (842) does not include regions 0 and 1 in the left adjacent SB (802).
[0126] Referring to state (3), the current block (813) is located in region 6 in the current SB (801), and the corresponding region (e.g., the lower left region) in the RSM (810) can be cleared and used to store samples of region 6, which is the current region being encoded. The BV (823) can point from the current block (813) to a reference block (833) located within a search range (843) of the current block (813) (the boundary of the search range (843) is marked by a dotted line). The corresponding offset (853) in the RSM (810) can point from the current block (813) to the reference block (833) in the RSM (810). In state (3), the search range (843) includes (i) region 3 in the left adjacent SB (802) and (ii) the encoded sub-region (863) in regions 4 and 5 and region 6 in the current SB (801). The search range (843) does not include regions 0 to 2 in the left adjacent SB (802).
[0127] Referring to state (4), the current block (814) is located in region 7 in the current SB (801), and the corresponding region (e.g., the lower right region) in the RSM (810) can be cleared and used to store samples of region 7, which is the current region being encoded. The BV (824) can point from the current block (814) to a reference block (834) located within a search range (844) of the current block (814) (the boundary of the search range (844) is marked by a dotted line). The corresponding offset (854) in the RSM (810) can point from the current block (814) to the reference block (834) in the RSM (810). In state (4), the search range (844) includes regions 4 to 6 and the encoded sub-region (864) in region 7 located in the current SB (801). The search range (844) does not include regions 0 to 3 in the left adjacent SB (802).
[0128] When the current SB (801) has been completely encoded (state (4)), the entire RSM (810) may be filled with samples (eg, all samples) of the current SB (801).
[0129] exist Figure 8 In the example shown, quadtree partitioning is first used to segment the current SB (801). The coding order of the four 64×64 regions may be the upper left region (e.g., region 4), the upper right region (e.g., region 5), the lower left region (e.g., region 6), and the lower right region (e.g., region 7), wherein the upper left region is encoded first, and the lower right region is encoded after the upper left region, the upper right region, and the lower left region are encoded. In the example Fig. 9B In the other block partitioning decisions shown, the RSM update process can be similar, for example, using the reconstructed samples in the current SB to replace the corresponding areas in the RSM.
[0130] Fig. 9A and Fig. 9B FIG. 4 shows (a) using horizontal partitioning at the SB root according to an embodiment of the present disclosure. Fig. 9A ) or (b) using vertical partitioning at the root of the SB ( Fig. 9B ) An example of a memory update process in the RSM during decoding of the current SB (or CTU) (901).
[0131] exist Fig. 9A and Fig. 9B , the left adjacent SB (902) has been encoded. The current SB (901) is being encoded (e.g., encoded or decoded). In one example, the size of each of the current SB (901) and the left adjacent SB (902) is 128×128. Each of the current SB (901) and the left adjacent SB (902) may include four regions (e.g., four blocks) of a size of 64×64. The current SB (901) may include blocks 4 to 7, and the left adjacent SB (902) may include blocks 0 to 3.
[0132] exist Fig. 9A In the example, horizontal splitting is performed at the SB root, followed by vertical splitting. The current SB (901) may include four blocks: an upper left block (e.g., block 4), a lower left block (e.g., block 6), an upper right block (e.g., block 5), and a lower right block (e.g., block 7). The coding order of the current SB (901) may be an upper left block (state 1), an upper right block (state 2), a lower left block (state 3), and a lower right block (state 4).
[0133] exist Fig. 9BIn the example, vertical splitting is performed at the SB root, followed by horizontal splitting. The coding order of the current SB (901) may be the upper left block (state 1), the lower left block (state 2), the upper right block (state 3), and the lower right block (state 4).
[0134] refer to Fig. 9A and Fig. 9B , depending on the position of the current coding block relative to the current SB (901), the following situations may apply:
[0135] 1.Reference Fig. 9A and Fig. 9B In state (1) in , if the current block (931) falls within the upper left block (e.g., block 4) (e.g., 64×64 block) of the current SB (901), in addition to the reconstructed samples in block (961) in the current SB (901), the current block (931) may also refer to reference samples in lower right block 3 (e.g., 64×64 block), lower left block 2 (e.g., 64×64 block), and upper right block 1 (e.g., 64×64 block) of the left SB (902). The search range of the current block (931) may include blocks 1 to 3 and block (961).
[0136] 2.Reference Fig. 9A Status (2) or Fig. 9B In state (3), if the current block (932) falls within the upper right block 5 (e.g., 64×64 block) of the current SB (901), then in addition to the reconstructed samples in the current SB (901), (a) if the luma sample at (0, 64) relative to the current SB (901) has not been reconstructed (e.g. Fig. 9A (b) Otherwise, if the luma sample at the upper left corner (e.g., at (0, 64) relative to the current SB (901)) has been reconstructed (e.g., Fig. 9B As shown in state (3) in ), the current block (932) may also refer to the reference sample in the lower right block 3 (e.g., a 64×64 block) of the left SB (902), and the search range of the current block (932) may include blocks 3, 4, 6, and block (962).
[0137] 3.Reference Fig. 9A Status (3) or Fig. 9B In state (2), if the current block (933) falls within the lower left block of the current SB (901), then in addition to the reconstructed samples in the current SB (901), (a) if the luminance position (64, 0) relative to the current SB (901) has not been reconstructed (e.g. Fig. 9B (b) Otherwise, if the luminance sample at the upper left corner of block 5 (for example, at (64, 0) relative to the current SB (901)) has been reconstructed (for example, Fig. 9A As shown in state (3) in ), the current block (933) may also refer to the reference sample in the lower right block 3 (e.g., a 64×64 block) of the left SB (902), and the search range of the current block (933) may include blocks 3 to 5 and block (963).
[0138] 4. If the current block (934) falls within the lower right block 7 of the current SB (901), the current block (934) can only refer to the reconstructed samples in the current SB (901), such as the reconstructed samples in blocks 4 to 6 and block (964), and the search range of the current block (934) may include blocks 4 to 6 and block (964).
[0139] Fig.10 An example of an intra-frame template matching prediction (IntraTMP) mode according to an embodiment of the present disclosure is shown. In one embodiment, for example in ECM software, IntraTMP is a special intra-frame prediction mode that can copy the best prediction block (1021) from the reconstructed portion of the current frame (or current image), wherein the template (e.g., L-shaped template) (1020) of the best prediction block (1021) can match the current template (1010) of the current block (1011). For a predetermined search range, the encoder can search for the template (1020) that is most similar to the current template (1010) in the reconstructed portion of the current frame, and can use the corresponding block (1021) as the prediction block. The encoder can signal the use of the IntraTMP mode, and can perform the same prediction operation on the decoder side.
[0140] The prediction signal may be generated by matching a current template (1010) (eg, an L-shaped causal neighbor of the current block (1011)) with a template (eg, (1020)) of another block (eg, (1021)) in a predetermined search area. Fig.10 The exemplary search area shown may include multiple CTUs (or SBs). Fig.10 , the search area may include the current CTU R1 (eg, a portion of the current CTU R1), the upper left CTU R2, the upper CTU R3, and the left CTU R4. The cost function may include any suitable cost function, such as the sum of absolute differences (SAD).
[0141] Within each region, the decoder may search for a template (eg, (1020)) having a minimum cost (eg, minimum SAD) relative to the current template (1010), and may use a block (eg, (1021)) associated with the template having the minimum SAD as a prediction block.
[0142] The dimensions of the region indicated by (SearchRange_w, SearchRange_h) can be set to be proportional to the block dimensions (BlkW, BlkH) to have a fixed number of SAD comparisons per pixel.
[0143] SearchRange_w = a*BlkW Equation (3)
[0144] SearchRange_h = a*BlkH Equation (4)
[0145] The parameter 'a' may be a constant that controls the trade-off between gain and complexity. In one example, 'a' is 5.
[0146] The intra template matching tool may be enabled for CUs of a certain size, eg, CUs with width and height dimensions less than or equal to 64. The maximum CU size for IntraTMP mode may be configurable.
[0147] When decoder-side intra mode derivation (DIMD) is not used for the current CU, the IntraTMP mode may be signaled at the CU level, for example, through a dedicated flag.
[0148] In some examples, such as in ECM, prediction techniques that use a current frame (also referred to as a current image) as a reference frame are used, such as the IBC mode and the IntraTMP mode. The prediction mode may determine a reference block based on a block vector (BV), and may perform IBC prediction or IntraTMP prediction to derive a prediction value for a current block in a current image. In various examples, a reference block of a prediction mode may not overlap with a current block, for example, if a reference block overlaps with a current block, the IBC mode and the IntraTMP mode are not used. Removing the restriction (i.e., the reference block may not overlap with the current block) may allow a larger reference area (or a larger reference range) to be used in the IBC mode, the IntraTMP mode, or a mode in which a current block is predicted based on a reference block in the same image, which may be beneficial to encoding performance.
[0149] The present disclosure includes aspects related to an IBC mode, an IntraTMP mode, or a mode in which a current block in an image may be encoded based on a reference block in the same image when a reference block of the current block to be encoded overlaps with the current block. The disclosed embodiments may be used in an IBC mode, an IntraTMP mode, or other prediction mode using compensation techniques or compression techniques with a current frame as a reference frame.
[0150] These embodiments may be used for coding blocks. For processing purposes, a coding block may include a set of pixels (or samples). A coding block may be referred to as a prediction block, a transform block, a coding unit, a prediction unit, a transform unit, etc.
[0151] For the current coding block, bv=(bvX, bvY) represents the block vector. (bx, by) represents the upper left position, and (bw, bh) represents the width and height. The x component of BV is bvX, and the y component of BV is bvY. The upper left position of the current block can be represented as (bx, by), the width of the current block is represented as bw, and the height of the current block is represented as bh.
[0152] In one aspect of the present disclosure, when a reference block overlaps with a current block, motion compensation is performed to fill unreconstructed samples in the overlapping area by copying predicted samples of the unreconstructed samples. Then, motion compensation is performed on the current block. For example, the disclosed method according to an embodiment of the present disclosure may determine a reference block in an image based on the BV of the current block, the reference block and the current block having an overlapping area, the reference block including (i) unreconstructed samples in the overlapping area and (ii) reconstructed samples located outside the overlapping area. In addition, the disclosed method may perform motion compensation on the current block by reconstructing the overlapping area in the current block based on the reconstructed samples in the reference block located outside the overlapping area.
[0153] According to an embodiment of the present disclosure, when a reference block overlaps with a current block, a prediction mode using a block vector (BV), such as an IBC mode, an IntraTMP mode, or a mode in which the current block in an image can be encoded based on a reference block in the same image (e.g., motion compensation in the current image) may be performed. Unreconstructed samples in an overlapping area (also referred to as an overlapping region or an overlapping location) may be filled. For example, the unreconstructed samples may be filled by copying corresponding prediction samples. For example, IBC prediction or IntraTMP prediction of the current block (e.g., motion compensation in the current image) may then be performed.
[0154] Fig.11An example of an IBC mode or an IntraTMP mode for encoding (e.g., encoding or reconstructing) a current block (1111) in a current image (1101) when a reference block (1112) of the current block (1111) overlaps with the current block (1111) according to an embodiment of the present disclosure is shown. The reference block (1112) in the current image (1101) may be determined based on a BV (1113) of the current block (1111). The BV (1113) may point from the current block (1111) to the reference block (1112) in the current image (1101). The reference block (1112) and the current block (1111) overlap in an overlapping region (1120) (grey shading). The reference block (1112) may include (i) uncoded samples (e.g., unreconstructed samples) in the overlapping region (1120) and (ii) coded samples (e.g., reconstructed samples) outside the overlapping region (1120). For example, the current block (1111) may be encoded (eg, coded or reconstructed) based on the reconstructed samples and the BV (1113) located outside the overlap region (1120).
[0155] In one embodiment, the unreconstructed samples in the overlap region (1120) may be determined as follows. The predicted values of the unreconstructed samples in the overlap region (1120) may be determined based on the corresponding predicted samples of the unreconstructed samples. Fig.11 , for example, by copying the corresponding prediction sample (e.g., the reconstructed sample (1122) in the reference block (1112)) of the unreconstructed sample (1121) to determine the prediction value of the unreconstructed sample (1121) in the overlapped area (1120). Each prediction sample can be one of the reconstructed samples (e.g., (1122)) in the reference block (1112) and can be indicated by a BV (1113) from the corresponding unreconstructed sample (e.g., (1121)). For example, the BV (1113) can point from the unreconstructed sample (1121) to the reconstructed sample (or prediction sample) (1122).
[0156] The current block (1111) may be encoded (e.g., coded or reconstructed) based on the reference block (1112) as follows: the current block (1111) may be reconstructed based on (i) prediction values of unreconstructed samples in the overlap region (1120) and reconstructed samples outside the overlap region (1120) and (ii) BV (1113). For example, the reference block (1112) may be encoded (e.g., coded or reconstructed) as follows: Fig.11, the current block (1111) includes a first area (1140) and a second area outside the first area (1140). The first area (1140) has the same shape (e.g., a rectangle) and the same size as the overlapping area (1120). The first area (1140) may be reconstructed based on (i) the prediction values of the unreconstructed samples in the overlapping area (1120) and (ii) the BV (1113), for example, using the IBC mode, the IntraTMP mode, etc. The unreconstructed samples in the overlapping area (1120) may have corresponding prediction values, for example, the unreconstructed samples (1121) have prediction values that are sample values of the reconstructed samples (1122). The second area may be reconstructed based on (i) the reconstructed samples in the reference block (1112) and (ii) the BV (1113), for example, using the IBC mode, the IntraTMP mode, etc.
[0157] In one aspect of the present disclosure, this method can be applied only when both bvX and bvY are less than or equal to 0. However, bvX and bvY should not be equal to 0 at the same time. In this case, the overlap area is a rectangle with the following upper left and lower right coordinates:
[0158] (i) the upper left coordinate of the overlapping region is (x, y), and
[0159] (ii) The lower right coordinates of the overlapping area are (bx+bw-1+bvX, by+bh-1+bvY).
[0160] In one example, only when bvX and bvY are both less than or equal to 0, the method of performing the IBC mode or the IntraTMP mode on the current block when the reference block overlaps the current block can be applied. In addition, bvX and bvY are not equal to 0 at the same time. Fig.11 , when the x component (bvX) of BV (1113) is less than or equal to 0, the y component (bvY) of BV (1113) is less than or equal to 0, and one of the x component (bvX) of BV (1113) and the y component (bvY) of BV (1113) is not equal to 0, the current block (1111) can be encoded using the IBC mode or the IntraTMP mode when the reference block (1112) overlaps with the current block (1111). In this case, the reference Fig.11 , the overlapping area (1120) is a rectangle. The upper left (or upper left corner) coordinate and the lower right (or lower right corner) coordinate of the overlapping area (1120) may be described as follows. The upper left coordinate of the overlapping area (1120) may be (bx, by). The lower right coordinate of the overlapping area (1120) may be (bx+bw-1+bvX, by+bh-1+bvY). As described above, bw and bh may represent the width of the current block (1111) and the height of the current block (1111), respectively.
[0161] In one aspect of the present disclosure, the unreconstructed samples in the overlapped region may be filled by copying the predicted samples of the unreconstructed samples in the following equation:
[0162] P'(x, y) = P(x + BVx, y + BVy) Equation (5)
[0163] Where P'(x, y) is the padded sample at position (x, y) and P(x+bvX, y+bvY) is the predicted sample.
[0164] In one example, the unreconstructed sample (1121) in the overlapped region (1120) may be obtained by copying the predicted sample (e.g., filling), such as shown in equation (5) above. P'(x, y) may be a predicted value (e.g., a copied sample or a padded sample) at position (x, y), and P(x+bvX, y+bvY) may be a predicted sample (1122) used to predict the unreconstructed sample (1121).
[0165] refer to Fig.11 , the predicted value P'(x, y) of the unreconstructed sample (1121) at position (x, y) can be determined by copying the reconstructed sample value P(x+bvX, y+bvY) of the corresponding predicted sample (or reconstructed sample) (1122) at position (x+bvX, y+bvY), as shown in equation (5).
[0166] In one example, unreconstructed samples in the overlap region (1120) are predicted based on reconstructed samples in the region (1130), such as described above. The BV (1113) points from the overlap region (1120) to the region (1130). After predicting the unreconstructed samples in the overlap region (1120), the first region (1140) can be reconstructed based on the predicted overlap region (1120).
[0167] In another example, the first region (1140) may be predicted directly from the region (1130) based on a vector of 2×BV (1113). For example, the sample (1123) may be predicted directly from the sample (1122) using the vector 2×BV (1113). According to an embodiment of the present disclosure, the current block (1111) may be reconstructed as follows. A prediction value of the second region in the current block (1111) may be determined based on a reconstructed sample in a reference block (1112) and a BV (1113). A prediction value of the first region (1140) may be determined by copying a corresponding prediction sample (e.g., a reconstructed sample) in the region (1130). Each prediction sample may be one of the reconstructed samples in the reference block (1112) (e.g., a reconstructed sample in the region (1130)) and may be indicated by a BV (1113) from a corresponding unreconstructed sample in the overlapping region (1120). The current block (1111) may be reconstructed based on the prediction value of the first region (1140) and the prediction value of the second region. In an example, the reconstructed samples in the current block (1111) may be the prediction value of the first region (1140) and the prediction value of the second region in the current block (1111). In an example, the reconstructed samples in the current block (1111) may be (i) the prediction value of the first region (1140) and the prediction value of the second region in the current block (1111) and (ii) the sum of the remaining samples.
[0168] In one aspect of the present disclosure, the padding method is performed in units of M×N blocks (referred to as basic padding units). In one example, M is a multiple of 4 and N is a multiple of 4. Compared with performing padding in units of samples, this method can perform padding in a more efficient manner and is convenient for hardware implementation. Constraints are applied to ensure that the overlapping area can be divided into multiple complete basic padding units, which means that the following conditions should be met:
[0169] (i) the width of the overlapping area should be an integer multiple of the width of the basic packing unit, and / or
[0170] (ii) The height of the overlapping area should be an integer multiple of the height of the basic packing unit.
[0171] In one example, the replication method (or padding method) can be performed in units of M×N blocks (or referred to as basic replication units or basic padding units). For example, the basic replication unit is an M×N block in the overlap region. In some examples, compared with performing replication in units of samples, performing the replication method in units of replication units (e.g., including multiple samples) can further improve efficiency and facilitate hardware implementation. In one example, constraints are applied to ensure that the overlap region can be divided into multiple basic replication units (e.g., multiple complete basic replication units). For example, at least one of the following conditions is met: (i) the width of the overlap region is an integer multiple of the width of the basic replication unit; and (ii) the height of the overlap region is an integer multiple of the height of the basic replication unit. In one example, the width of the overlap region and the height of the overlap region are multiples of 4. In one example, at least one of the following conditions is met: (i) the width of the overlap region is an integer multiple of the width of the basic replication unit, and the width of the basic replication unit is a multiple of 4; and (ii) the height of the overlap region is an integer multiple of the height of the basic replication unit, and the height of the basic replication unit is a multiple of 4.
[0172] Fig.12 An example of the above-mentioned replication method in units of replication units (e.g., a size of M×N samples) according to an embodiment of the present disclosure is shown. One of M and N is greater than 1. In an example, the overlapping area (1120) includes a plurality of replication units, such as replication units A to F. Each replication unit includes a plurality of samples (e.g., M×N). Unreconstructed samples in replication units A to F can be determined by replicating sample values of reconstructed samples in corresponding units A' to F'. Fig.12 The replication method shown is performed in units of replication units A to F.
[0173] In one embodiment, the replicated unit A is predicted by copying the sample values of the reconstructed samples indicated by BV (1113) in the corresponding unit A'. Then, the area A' in the current block (1111) is predicted based on the replicated unit A. BV (1113) points from the area A' to the replicated unit A. The area A', the replicated unit A and the unit A' may have the same shape and the same size.
[0174] In another embodiment, region A'' is predicted directly from cell A', for example, by copying the sample values of the reconstructed samples indicated by 2×BV (1113) in the corresponding cell A'. Fig.12 shown.
[0175] In one example, in order to copy the value of the reconstructed sample in units of replication units (e.g., from replication unit A' to replication unit A (or directly to area A")), the width of the overlapped area (1120) is a multiple of M, or the height of the overlapped area (1120) is a multiple of N. Fig.12 , the width of the overlapping area (1120) is 2×M, and the height of the overlapping area (1120) is 3×N.
[0176] In one aspect, the width M and height N of the basic filling unit should be integers, for example, the value of M may include but is not limited to {2, 4, 8, 16, 32, 64, 128}, and the value of N may include but is not limited to {1, 2, 3, ..., 128}. For example, the width M and height N of the basic replication unit may be integers, for example, the value of M may include but is not limited to {2, 4, 8, 16, 32, 64, 128}. For example, the value of N may include but is not limited to {1, 2, 3, ..., 128}.
[0177] In one embodiment, the size of the basic replication unit is 4×4 (eg, M=4, N=4).
[0178] In one embodiment, the size of the basic replication unit is 4×1 (eg, M=4, N=1).
[0179] In one embodiment, the size of the basic replication unit is 2×2 (eg, M=2, N=2).
[0180] In one embodiment, the size of the basic replication unit is 2×1 (eg, M=2, N=1).
[0181] In one embodiment, the size of the basic replication unit is related to the color component of the current block. For example, the size of the basic replication unit of the luma coding block and the chroma coding block is different.
[0182] In one embodiment, a 4×1 basic filling unit is used for a luma coding block and a 2×1 basic filling unit is used for a chroma coding block. In one embodiment, a 4×4 basic filling unit is used for a luma coding block and a 2×2 basic filling unit is used for a chroma coding block. In one embodiment, let ML×NL be the size of the luma basic filling unit and MC×NC be the size of the chroma basic filling unit, then the relationship between (ML, NL) and (MC, NC) is as follows:
[0183] MC=ML / ScaleX Equation (6)
[0184] NC=MC / ScaleY Equation (7)
[0185] Where ScaleX and ScaleY are the scaling ratios in the horizontal and vertical directions, respectively, which depend on the chroma subsampling format.
[0186] In one example, the size of the M×N samples of the replication unit depends on the color components associated with the current block ( 1111 ).
[0187] The size of the basic replication unit of the luma coding block and the chroma coding block may depend on the chroma subsampling format (or chroma sampling structure), such as 4:2:0, 4:4:4, etc.
[0188] In one embodiment, a 4×1 basic padding unit is used for luma coding blocks and a 2×1 basic copying unit is used for chroma coding blocks. For example, if the current block is a luma coding block, a 4×1 basic padding unit is used, and if the current block is a chroma coding block, a 2×1 basic copying unit is used.
[0189] In one embodiment, a 4×4 basic padding unit is used for luma coding blocks and a 2×2 basic replication unit is used for chroma coding blocks.
[0190] In one embodiment, let ML×NL be the size of the luma basic copy unit (or the basic copy unit used in the luma coding block), and MC×NC be the size of the chroma basic copy unit (or the basic copy unit used in the chroma coding block), then the relationship between (ML, NL) and (MC, NC) may correspond, for example, to equations (6) and (7).
[0191] ScaleX and ScaleY may be the scaling ratios in the horizontal and vertical directions, respectively. ScaleX and ScaleY may depend on the chroma subsampling format.
[0192] In one aspect of the present disclosure, it is suggested that in order to perform motion compensation when a reference block overlaps with a current block, the current block is divided into several smaller sub-blocks and then motion compensation is performed on each sub-block.
[0193] According to an embodiment of the present disclosure, when the current block is encoded using the sub-block mode, the above-mentioned method of performing the IBC mode or the IntraTMP mode when the current block overlaps with the reference block can be appropriately adjusted. The current block may include sub-blocks, and the sub-blocks may be encoded using BV. The BV of a sub-block may be different from another BV of another sub-block. In one example, the IBC mode or the IntraTMP mode may be applied to each sub-block. In one example, the current block is divided into several smaller sub-blocks, and then, for example, when the current block overlaps with the reference block, the IBC mode or the IntraTMP mode is performed on each sub-block.
[0194] Fig.13An example of performing IBC mode or IntraTMP mode on subblock SB5 in the current block (1311) when the current block (1311) overlaps with a reference block (1312) is shown. The current block (1311) and the reference block (1312) are located in a current image (1301). The current block (1311) may include subblocks SB5 to SB8. Subblocks SB5 to SB8 may be encoded in IBC mode or IntraTMP mode using corresponding BVs (BV5 to BV8), respectively. BV5 to BV8 may indicate reference subblocks SB5' to SB8', respectively. The reference block (1312) may include reference subblocks SB5' to SB8'. In Fig.13 In the example shown, one of BV5 to BV8 is different from another of BV5 to BV8, and the reference block (1312) does not have a rectangular shape.
[0195] exist Fig.13 In the example shown, reference subblocks SB6' to SB8' have been encoded (e.g., encoded or reconstructed). Reference subblock SB5' and corresponding subblock SB5 overlap in the overlap region (1320). Reference subblock SB5' may be partially encoded. For example, reference subblock SB5' includes uncoded samples (e.g., unreconstructed samples) in the overlap region (1320) and coded samples (e.g., reconstructed samples) outside the overlap region (1320). Fig.11 and Fig.12 The method described in, for example, by Fig.13 The sub-block SB5 and the reference block SB5' in Fig.11 and Fig.12 The sub-block SB5 is encoded by using the current block (1111) and the reference block (1112).
[0196] Fig.14 An example of performing IBC mode or IntraTMP mode on a current block (1411) (e.g., subblock SB4 in the current block (1411)) when the current block (1411) overlaps with a reference block (1412) is shown. The current block (1411) and the reference block (1412) are located in a current image (1401). The current block (1411) may include subblocks SB1 to SB4. The subblocks SB1 to SB4 may be encoded in IBC mode or IntraTMP mode using corresponding BVs (BV1 to BV4), respectively. BV1 to BV4 may indicate reference subblocks SB1' to SB4', respectively. The reference block (1412) may include reference subblocks SB1' to SB4'. In Fig.14In the example shown, one of BV1 to BV4 is different from another of BV1 to BV4, and the reference block (1412) does not have a rectangular shape. One of the reference sub-blocks SB1' to SB4' may overlap with at least one of the sub-blocks SB1 to SB4. Fig.14 In the example shown, the reference sub-block SB4' overlaps with the sub-block SB1. Fig.14 , the reference sub-blocks SB1' to SB3' have been encoded (e.g., encoded or reconstructed). The reference sub-block SB4' may be partially encoded. For example, the reference sub-block SB4' includes uncoded samples (e.g., unreconstructed samples) in the overlapped area (1420) and coded samples (e.g., reconstructed samples) outside the overlapped area (1420).
[0197] Can be adjusted Figures 11 to 13 , to encode sub-block SB4. In one embodiment, uncoded samples (e.g., unreconstructed samples) in the overlapping region (1420) are predicted and then used to predict region (1440) in sub-block SB4. Region (1440) may have the same shape and the same size as the overlapping region (1420). BV4 may indicate a reference sub-block SB4' from sub-block SB4. BV4 may point to the overlapping region (1420) from region (1440). For example, uncoded samples (e.g., unreconstructed samples) in the overlapping region (1420) are predicted by copying reconstructed samples indicated by BV1 in region (1430) of reference sub-block SB1'. Subsequently, the predicted values of the overlapping region (1420) may be used to predict region (1440) in sub-block SB4 using BV4.
[0198] In another embodiment, similar to Fig.12 The method shown, based on BV1 and BV4, predicts region (1440) directly from the coded samples (e.g., reconstructed samples) in region (1430) in reference sub-block SB1'. In one example, the coded samples (e.g., reconstructed samples) in region (1430) are copied to region (1440) and used as prediction samples of region (1440).
[0199] The remaining area in SB4 outside the area (1440) may be encoded using the IBC mode or the IntraTMP mode based on the encoded samples indicated by BV4 in SB4'.
[0200] The sub-blocks SB1 to SB3 may be encoded using the IBC mode or the IntraTMP mode according to the reference sub-blocks SB1 ′ to SB3 ′ indicated by BV1 to BV3 , respectively.
[0201] In one aspect of the present disclosure, this method can be applied only when both bvX and bvY are less than or equal to 0. However, bvX and bvY should not be equal to 0 at the same time.
[0202] In one embodiment, the BV is applied only when the x-component bvX and the y-component bvY of the BV are less than or equal to 0. Fig.13 or Fig.14 The x component bvX and y component bvY of a BV (e.g., one of BV1 to BV8) cannot be equal to 0 at the same time. For example, (i) Fig.13 The x and y components of BV5 in are less than or equal to 0, (ii) Fig.13 The x component or y component of BV5 in is not 0. For example, (i) Fig.14 The x and y components of BV1 in are less than or equal to 0, (ii) Fig.14 Either the x component or the y component of BV1 in is not 0.
[0203] exist Fig.13 In this case described in, the overlap region (1320) is a rectangle, and its upper left (or upper left corner) coordinates and lower right (or lower right corner) coordinates are described as follows. (i) The upper left coordinate of the overlap region is (bx0, by0); (ii) The lower right coordinate of the overlap region is (bx0+bws-1+bvX5, by0+bhs-1+bvY55). Parameters bws and bhs represent the width and height of the sub-block (e.g., SB5), and bvX5 and bvY5 are the x component and y component of BV5.
[0204] In one aspect of the present disclosure, the width M and height N of a sub-block should be integers. For example, the value of M may include but is not limited to {2, 4, 8, 16, 32, 64, 128}, and the value of N may include but is not limited to {1, 2, 3, ..., 128}.
[0205] refer to Fig.13 and Fig.14 The width Ms and height Ns of a sub-block (e.g., SB1 to SB8) may be integers. For example, the value of Ms may include but is not limited to {2, 4, 8, 16, 32, 64, 128}, and the value of Ns may include but is not limited to {1, 2, 3, ..., 128}.
[0206] In one embodiment, the size of the sub-block is 4×4.
[0207] In one embodiment, the size of the sub-block is 4×1.
[0208] In one embodiment, the size of the sub-block is 2×2.
[0209] In one embodiment, the size of the sub-block is 2×1.
[0210] In one aspect of the present disclosure, the size of the sub-block is related to the color component of the coding block. For example, the size of the sub-blocks of the luminance coding block and the chrominance coding block are different. In one embodiment, 4×1 basic filling units are used for luminance coding blocks and 2×1 basic filling units are used for chrominance coding blocks. In one embodiment, 4×4 basic filling units are used for luminance coding blocks and 2×2 basic filling units are used for chrominance coding blocks. In one embodiment, let ML×NL be the size of the luminance sub-block and MC×NC be the size of the chrominance sub-block, then the relationship between (ML, NL) and (MC, NC) is as follows:
[0211] MC=ML / ScaleX Equation (8)
[0212] NC=MC / ScaleY Equation (9)
[0213] Where ScaleX and ScaleY are the scaling ratios in the horizontal and vertical directions, respectively, which depend on the chroma subsampling format.
[0214] In one embodiment, the size of the sub-block is related to the color component of the coding block (eg, (1311) or (1411). For example, the size of the sub-block of the luma coding block and the chroma coding block are different.
[0215] In one embodiment, 4×1 sub-blocks are used for luma coding blocks and 2×1 sub-blocks are used for chroma coding blocks.
[0216] In one embodiment, 4×4 sub-blocks are used for luma coding blocks and 2×2 sub-blocks are used for chroma coding blocks.
[0217] In one embodiment, let MLs×NLs be the size of the luma sub-block and MCs×NCs be the size of the chroma sub-block, then the relationship between (MLs, NLs) and (MCs, NCs) can be described as follows.
[0218] MCs=MLs / ScaleXs Equation (10)
[0219] NCs=MCs / ScaleYs Equation (11)
[0220] Where ScaleXs and ScaleYs may be the scaling ratios in the horizontal and vertical directions, respectively. ScaleXs and ScaleYs may depend on the chroma subsampling format.
[0221] Fig.15A flow chart outlining a method (1500) according to an embodiment of the present disclosure is shown. The method (1500) may be used in a video decoder. In various embodiments, the method (1500) is performed by a processing circuit, such as a processing circuit that performs the functions of a video decoder (110), a processing circuit that performs the functions of a video decoder (210), etc. In some embodiments, the method (1500) is implemented in software instructions, so when the processing circuit executes the software instructions, the processing circuit performs the method (1500). The method (1500) starts at (S1501) and proceeds to (S1510).
[0222] At (S1510), a code stream of a current block in an image may be received. The code stream includes encoding information indicating that the current block is encoded according to a prediction mode using a block vector (BV), such as an IBC-related mode (including but not limited to an IBC mode), an intra-template matching prediction (IntraTMP) mode, or a mode in which the current block can be encoded based on a reference block in the image.
[0223] In one example, the prediction mode is an IBC-related mode (eg, IBC mode), an IntraTMP mode, or a mode in which the current block can be encoded based on a reference block in an image. In one example, a flag indicating whether IntraBC is enabled for the current block is first transmitted in a bitstream.
[0224] At (S1520), a reference block in the image may be determined based on a block vector (BV) of the current block. The reference block and the current block may overlap in an overlap region (or overlap area). The reference block may include (i) unreconstructed samples in the overlap region and (ii) reconstructed samples outside the overlap region.
[0225] In an example, when a reference block overlaps with a current block, the unreconstructed samples in the overlapped area are filled by copying the prediction samples of the unreconstructed samples.
[0226] At (S1530), when the reference block (e.g., (1112)) and the current block (e.g., (1111)) overlap in the overlapping area (e.g., (1120)), the current block (e.g., (1111)) may be reconstructed based on the reconstructed samples and BV (e.g., (1113)) located outside the overlapping area, e.g. Fig.11 and Fig.12 For example, the overlapped area (eg, 1120) in the current block may be reconstructed based on the reconstructed samples (eg, located in the area (1130)) in the reference block (eg, 1112) that are located outside the overlapped area.
[0227] In one example, motion compensation is performed on the current block by reconstructing the overlapped area in the current block based on reconstructed samples in the reference block that are outside the overlapped area. Motion compensation may generally refer to predicting frames (also referred to as images) in a video from previous frames and / or future frames by taking into account the motion of a camera and / or objects in the video. In some examples, motion compensation may also refer to block prediction or block compensation from another block within the same image (e.g., the current image) by using a block vector as a motion vector.
[0228] In one example, the width of the overlapped area and the height of the overlapped area are multiples of four.
[0229] In one embodiment, the prediction values of the unreconstructed samples in the overlapped region may be determined by copying the corresponding prediction samples indicated by BV in the reference block. The overlapped region may be reconstructed based on the prediction values of the unreconstructed samples in the overlapped region.
[0230] In one embodiment, the unreconstructed samples (e.g., including Fig.11 The corresponding predicted samples (e.g., including Fig.11 (1122) in (1122)) to determine the unreconstructed samples in the overlapping region (e.g., including Fig.11 Each prediction sample may be a reference block (eg, including Fig.11 (1112)) in the reconstructed samples (e.g., including Fig.11 , and from the corresponding unreconstructed samples (e.g., including Fig.11 The current block (e.g., including the BV) may be reconstructed based on (i) the prediction values of the unreconstructed samples in the overlapped region and the reconstructed samples outside the overlapped region and (ii) the BV. Fig.11 (1111) in.
[0231] In one example, by copying the corresponding prediction sample at position (x+bvX, y+bvY) (e.g., including Fig.11 The reconstructed sample value P(x+bvX, y+bvY) of (1122)) in the unreconstructed sample is used to determine an unreconstructed sample (e.g., including Fig.11 The predicted value P'(x, y) of (1121)) in (1121) is P'(x, y), where bvX and bvY are the x component and y component of BV. P'(x, y) may be equal to P(x+bvX, y+bvY).
[0232] In one example, reference Fig.12, determining the prediction value includes: copying the corresponding prediction sample in the reference block as the prediction value of the unreconstructed sample in the overlapped area in a copy unit of size M×N samples. One of M and N is greater than 1. For example, the reconstructed sample value in unit A' may be copied to unit A as the prediction sample in unit A. In one example, M and N are multiples of 4.
[0233] The width of the overlapped area may be a multiple of M, or the height of the overlapped area may be a multiple of N.
[0234] The size of the M×N samples of the replication unit may depend on the color components associated with the current block.
[0235] The method then proceeds to (S1599) and terminates.
[0236] The method (1500) may be adapted as appropriate. Steps in the method (1500) may be modified and / or omitted. Additional steps may be added. Any suitable order of implementation may be used.
[0237] In one embodiment, the x component of the BV is less than or equal to zero, the y component of the BV is less than or equal to zero, and one of the x component of the BV and the y component of the BV is not equal to zero.
[0238] In one example, BV is represented by a vector (bvX, bvY), bw is the width of the current block, bh is the height of the current block, the overlapping area is a rectangle, the upper left coordinate of the overlapping area is (bx, by), and the lower right coordinate of the overlapping area is (bx+bw-1+bvX, by+bh-1+bvY).
[0239] In one embodiment, the current block (e.g., Fig.11 and Fig.12 (1111)) includes a first region (eg, Fig.11 (1140) in) and a second region outside the first region, BV points from the first region to the overlapping region (e.g., Fig.11 Reconstructing the current block may include: (i) determining a prediction value of the second region based on reconstructed samples and the BV in the reference block; and (ii) reconstructing the current block by copying unreconstructed samples (e.g., including Fig.11 The corresponding predicted samples (e.g., including Fig.11 (1122) in (1122)) to determine the prediction value of the first region. Each prediction sample can be one of the reconstructed samples in the reference block (e.g., Fig.11 , and may be derived from corresponding unreconstructed samples (e.g., including Fig.11 The BV indication of (1121) in (1121) can be used to reconstruct the current block based on the prediction value of the first region and the prediction value of the second region.
[0240] In one example, the prediction value of the first region may be determined by copying the corresponding prediction sample indicated by 2×BV in the reference block. The overlapped region may be reconstructed based on the prediction value of the first region.
[0241] In one example, the current block is a first subblock among the subblocks in the coding block, and a BV of the first subblock is different from another BV of a second subblock among the subblocks in the coding block.
[0242] Fig.16 A flow chart outlining a method (1600) according to an embodiment of the present disclosure is shown. The method (1600) may be used in a video encoder. In various embodiments, the method (1600) is performed by a processing circuit, such as a processing circuit that performs the functions of a video encoder (103), a processing circuit that performs the functions of a video encoder (303), etc. In some embodiments, the method (1600) is implemented in software instructions, so when the processing circuit executes the software instructions, the processing circuit performs the method (1600). The method starts at (S1601) and proceeds to (S1610).
[0243] At (S1610), a reference block in the image is determined based on a block vector (BV) of the current block in the image. The current block is encoded according to a prediction mode using the BV. The prediction mode is an IBC-related mode (e.g., an IBC mode), an IntraTMP mode, or a mode in which the current block can be encoded based on the reference block in the image. The reference block and the current block overlap in an overlapping region, e.g. Figures 11 to 14 The reference block may include (i) unreconstructed samples in the overlap region and (ii) reconstructed samples outside the overlap region.
[0244] At (S1620), the current block may be encoded based on the encoded samples (eg, reconstructed samples) outside the overlapped region and the BV, for example Fig.11 and Fig.12 described.
[0245] In one example, the overlapped area in the current block is encoded based on reconstructed samples in the reference block that are outside the overlapped area.
[0246] In one example, encoding information may be encoded and included in a bitstream to indicate that the current block is encoded using a prediction mode, such as an IBC mode, an IntraTMP mode, or a mode in which the current block may be encoded based on a reference block in an image.
[0247] The method then proceeds to (S1699) and terminates.
[0248] The method (1600) may be adapted as appropriate. Steps in the method (1600) may be modified and / or omitted. Additional steps may be added. Any suitable order of implementation may be used.
[0249] In one example, the current block is a first subblock among the subblocks in the coding block, and a BV of the first subblock is different from another BV of a second subblock among the subblocks in the coding block.
[0250] Fig.17 A flow chart outlining a method (1700) according to an embodiment of the present disclosure is shown. The method (1700) may be used in a video decoder. In various embodiments, the method (1700) is performed by a processing circuit, such as a processing circuit that performs the functions of a video decoder (110), a processing circuit that performs the functions of a video decoder (210), etc. In some embodiments, the method (1700) is implemented in software instructions, so when the processing circuit executes the software instructions, the processing circuit performs the method (1700). The method (1700) starts at (S1701) and proceeds to (S1710).
[0251] At (S1710), a code stream is received, the code stream including a current block in an image. The current block may include sub-blocks. Coding information in the code stream may indicate whether each sub-block is encoded using an intra block copy (IBC) mode, an intra template matching prediction (IntraTMP) mode, or a mode in which the sub-block may be encoded based on a corresponding reference sub-block in the image.
[0252] In one example, the size of each sub-block is M×N samples, where M and N are integers.
[0253] At (S1720), a reference subblock in the image may be determined based on the corresponding block vector (BV) of the subblock. A first reference subblock in the reference subblock and the current block may overlap in an overlap region. The first reference subblock may include (i) unreconstructed samples in the overlap region and (ii) reconstructed samples outside the overlap region.
[0254] At (S1730), when the first reference subblock and the current block overlap in the overlapped area, the first subblock in the subblock may be reconstructed based on the reconstructed samples in the first reference subblock and the predicted samples of the unreconstructed samples. The first BV in the BV may point from the first subblock to the first reference subblock.
[0255] In one embodiment, the sub-block includes a first sub-block and a second sub-block. The first reference sub-block and the second sub-block overlap in an overlapping region. The first sub-block may be reconstructed as follows. Prediction values of unreconstructed samples in the overlapping region may be determined by copying corresponding prediction samples of the unreconstructed samples. Each prediction sample may be a reconstructed sample in a second reference sub-block of the second sub-block and is indicated by a second BV in the BV from the second sub-block to the second reference sub-block. The first sub-block may be reconstructed based on (i) the prediction values of the unreconstructed samples in the overlapping region and the reconstructed samples located outside the overlapping region and (ii) the first BV.
[0256] In one embodiment, the first reference sub-block and the first sub-block overlap in the overlap region. The first sub-block may be reconstructed as follows. Prediction values of unreconstructed samples in the overlap region may be determined by copying corresponding prediction samples of the unreconstructed samples. Each prediction sample may be a reconstructed sample in the first reference sub-block. The first sub-block may be reconstructed based on (i) the prediction values of the unreconstructed samples in the overlap region and the reconstructed samples located outside the overlap region and (ii) the first BV.
[0257] In one example, the x component of the first BV is less than or equal to 0, the y component of the first BV is less than or equal to 0, and one of the x component of the first BV and the y component of the first BV is not equal to 0.
[0258] In one example, the first BV is represented by a vector (bvX1, bvY1), bw1 is the width of the first sub-block, bh1 is the height of the first sub-block, the overlapping area is a rectangle, the upper left coordinate of the overlapping area is (bx1, by1), and the lower right coordinate of the overlapping area is (bx1+bw1-1+bvX1, by1+bh1-1+bvY1).
[0259] The method then proceeds to (S1799) and terminates.
[0260] The method (1700) may be adapted as appropriate. Steps in the method (1700) may be modified and / or omitted. Additional steps may be added. Any suitable order of implementation may be used.
[0261] Fig.18A flowchart outlining a method (1800) according to an embodiment of the present disclosure is shown. The method (1800) may be used in a video encoder. In various embodiments, the method (1800) is performed by a processing circuit, such as a processing circuit that performs the functions of a video encoder (103), a processing circuit that performs the functions of a video encoder (303), etc. In some embodiments, the method (1800) is implemented in software instructions, so that when the processing circuit executes the software instructions, the processing circuit performs the method (1800). The method starts at (S1801) and proceeds to (S1810). A current block in an image may include sub-blocks. Each sub-block may be encoded using an intra-block copy (IBC) mode, an intra-template matching prediction (IntraTMP) mode, or a mode in which the sub-block may be encoded based on a corresponding reference sub-block in the image.
[0262] At (S1810), a reference subblock in the image may be determined based on a corresponding block vector (BV) of the subblock. A first reference subblock in the reference subblock and the current block may overlap in an overlap region. The first reference subblock may include (i) uncoded samples (e.g., unreconstructed samples) in the overlap region and (ii) coded samples (e.g., reconstructed samples) outside the overlap region.
[0263] At (S1820), a first subblock in the subblocks may be encoded based on the coded samples (eg, reconstructed samples) in the first reference subblock and the predicted samples of the unreconstructed samples. A first BV in the BVs may point from the first subblock to the first reference subblock.
[0264] In one example, encoding information may be encoded and included in a codestream to indicate whether the current block is encoded using an IBC mode, an IntraTMP mode, or a mode in which the current block may be encoded based on a reference block in an image.
[0265] The method then proceeds to (S1899) and terminates.
[0266] The method (1800) may be adapted as appropriate. Steps in the method (1800) may be modified and / or omitted. Additional steps may be added. Any suitable order of implementation may be used.
[0267] The embodiments in the present disclosure may be used alone or 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.
[0268] The above techniques may be implemented as computer software using computer-readable instructions and physically stored in one or more computer-readable media. Fig.19 A computer system (1900) suitable for implementing certain embodiments of the disclosed subject matter is shown.
[0269] 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 execution, etc.
[0270] 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, Internet of Things devices, and the like.
[0271] Fig.19 The components of the computer system (1900) 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 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 (1900).
[0272] The computer system (1900) may include certain human-machine interface input devices. Such human-machine interface input devices may be responsive to input from one or more human users through, for example, tactile input (e.g., keystrokes, swipes, data glove movements), audio input (e.g., voice, clapping), visual input (e.g., gestures), olfactory input (not depicted). Human-machine interface devices 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, captured images obtained from a still image camera), and videos (e.g., two-dimensional video, three-dimensional video including stereoscopic video).
[0273] The human-machine interface input device may include one or more of the following (only one of each is shown): keyboard (1901), mouse (1902), touchpad (1903), touch screen (1910), data gloves (not shown), joystick (1905), microphone (1906), scanner (1907), camera (1908).
[0274] The computer system (1900) may also include certain human-computer interface output devices. Such human-computer interface output devices may stimulate one or more human user senses through, for example, tactile output, sound, light, and smell / taste. Such human-computer interface output devices may include tactile output devices (e.g., tactile feedback of a touch screen (1910), a data glove (not shown), or a joystick (1905), but may also be a tactile feedback device that is not an input device), audio output devices (e.g., speakers (1909), headphones (not depicted)), visual output devices (e.g., screens (1910) including CRT screens, LCD screens, plasma screens, OLED screens, 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 outputs or outputs in more than three dimensions through devices such as stereoscopic image output, virtual reality glasses (not depicted), holographic displays and smoke boxes (not depicted), and printers (not depicted).
[0275] The computer system (1900) may also include human-machine accessible storage devices and their associated media, such as optical media including CD / DVD ROM / RW (1920) having CD / DVD and other media (1921), thumb drives (1922), removable hard drives or solid-state drives (1923), traditional magnetic media such as tapes and floppy disks (not depicted), dedicated ROM / ASIC / PLD-based devices such as security software dogs (not depicted), etc.
[0276] 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 transitory signals.
[0277] The computer system (1900) may also include an interface (1954) to one or more communication networks (1955). 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 networks including CANBus, etc. Some networks typically require an external network interface adapter attached to some general data port or peripheral bus (1949) (e.g., a USB port of the computer system (1900)); as described below, other network interfaces are typically integrated into the kernel of the computer system (1900) by attaching to the system bus (e.g., connected to an Ethernet interface in a PC computer system or connected to a cellular network interface in a smartphone computer system). The computer system (1900) 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., CANBus connected to certain CANBus devices), or bidirectional, for example, using a LAN or WAN digital network to connect to other computer systems. As described above, certain protocols and protocol stacks may be used on each of those networks and network interfaces.
[0278] The above-mentioned human-machine interface device, human-machine accessible storage device and network interface may be attached to the kernel (1940) of the computer system (1900).
[0279] The core (1940) may include one or more central processing units (CPUs) (1941), graphics processing units (GPUs) (1942), dedicated programmable processing units in the form of field programmable gate arrays (FPGAs) (1943), hardware accelerators (1944) for certain tasks, graphics adapters (1950), etc. These devices, as well as read-only memory (ROM) (1945), random access memory (1946), internal mass storage (1947) such as internal non-user accessible hard drives, SSDs, etc., may be connected via a system bus (1948). In some computer systems, the system bus (1948) may be accessed in the form of one or more physical plugs to enable expansion by additional CPUs, GPUs, etc. Peripheral devices may be attached directly to the core's system bus (1948) or to the core's system bus (1948) via a peripheral bus (1949). In one example, a touch screen (1910) may be connected to a graphics adapter (1950). The architecture of the peripheral bus includes PCI, USB, etc.
[0280] The CPU (1941), GPU (1942), FPGA (1943) and accelerator (1944) can execute certain instructions, which can be combined to form the above-mentioned computer code. The computer code can be stored in ROM (1945) or RAM (1946). Transitional data can also be stored in RAM (1946), while permanent data can be stored, for example, in internal mass storage (1947). 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 (1941), GPUs (1942), mass storage (1947), ROM (1945), RAM (1946), etc.
[0281] 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.
[0282] As an example, and not by way of limitation, a computer system (1900) having an architecture, particularly a kernel (1940), may provide functionality due to one or more processors (including CPUs, GPUs, FPGAs, accelerators, etc.) executing software embodied in one or more tangible computer-readable media. Such computer-readable media may be media associated with user-accessible mass storage as described above, as well as certain non-temporary kernel (1940) memories, such as kernel internal mass storage (1947) or ROM (1945). Software implementing various embodiments of the present disclosure may be stored in such devices and executed by the kernel (1940). Depending on specific needs, the computer-readable medium may include one or more storage devices or chips. The software may enable the kernel (1940), particularly the processors therein (including CPUs, GPUs, FPGAs, etc.), to perform specific methods or specific parts of specific methods described herein, including defining data structures stored in RAM (1946) and modifying such data structures according to methods defined by the software. Additionally or alternatively, a computer system may provide functionality due to logic hardwired or otherwise embodied in a circuit (e.g., accelerator (1944)) that may replace software or operate in conjunction with software to perform a particular method or a particular portion of a particular method described herein. Where appropriate, references to portions of software may include logic and vice versa. Where appropriate, references to portions of a computer-readable medium 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.
[0283] As used in this disclosure, "at least one of" or "one of" is intended to include any one or combination of the listed elements. For example, reference to at least one of A, B, and C; at least one of A, B, and C; at least one of A, B, and / or C; and at least one of A through C is intended to include only A, only B, only C, or any combination thereof. Reference to one of A and B, and one of A and B is intended to include A or B or (A and B). Where applicable, the use of "one of" does not exclude any combination of the listed elements, such as when the elements are not mutually exclusive.
[0284] Although the present disclosure has described several exemplary embodiments, there are changes, 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 a code stream of a current block in an image, the code stream comprising encoding information, the encoding information indicating that the current block is encoded according to a prediction mode using a block vector BV; determining a reference block in the image based on the BV of the current block, the reference block and the current block having an overlapping area, the reference block including (i) unreconstructed samples in the overlapping area and (ii) reconstructed samples outside the overlapping area; and performing motion compensation on the current block by reconstructing the overlapped area in the current block based on the reconstructed samples in the reference block that are outside the overlapped area, The width of the overlapping area and the height of the overlapping area are multiples of 4.
2. The method according to claim 1, wherein: Reconstructing the overlapping area includes: determining prediction values of the unreconstructed samples in the overlapped region by copying corresponding prediction samples in the reference block indicated by the BV; and The overlap region is reconstructed based on the predicted values of the unreconstructed samples in the overlap region.
3. The method according to claim 2, wherein: Determining the predicted value includes: The predicted value P'(x, y) of an unreconstructed sample at position (x, y) among the unreconstructed samples is determined by copying the reconstructed sample value P(x+bvX, y+bvY) of the corresponding predicted sample at position (x+bvX, y+bvY), where P'(x, y) is equal to P(x+bvX, y+bvY), bvX is the x component of the BV, and bvY is the y component of the BV.
4. The method according to claim 2, wherein: Determining the predicted value includes: The corresponding prediction samples in the reference block are copied as the prediction values of the unreconstructed samples in the overlapped area in a copy unit of size M×N samples, at least one of M and N being greater than 1.
5. The method according to claim 4, wherein: The width of the overlapping area is a multiple of M, and / or the height of the overlapping area is a multiple of N.
6. The method according to claim 4, wherein: A size of the M×N samples of the replication unit depends on a color component associated with the current block.
7. The method according to claim 1, wherein: The x component of the BV is less than or equal to 0, the y component of the BV is less than or equal to 0, and One of the x-component of the BV and the y-component of the BV is not equal to zero.
8. The method according to claim 7, wherein: The BV is represented by the vector (bvX, bvY), bw is the width of the current block, bh is the height of the current block, The overlapping area is a rectangle, The upper left coordinate of the overlapping area is (bx, by), and The lower right coordinate of the overlapping area is (bx+bw-1+bvX, by+bh-1+bvY).
9. The method according to claim 1, wherein: The current block includes a first area and a second area outside the first area, and the BV points from the first area to the overlapping area. Reconstructing the overlapping area includes: determining a prediction value for the first region by copying a corresponding prediction sample indicated by 2×BV in the reference block; and The overlapping region is reconstructed based on the predicted value of the first region.
10. The method according to claim 1, wherein: The current block is a first subblock among subblocks in a coding block, and a BV of the first subblock is different from another BV of a second subblock among the subblocks in the coding block.
11. A device for video decoding, comprising: A processing circuit, the processing circuit being configured to: Receiving a code stream of a current block in an image, the code stream comprising encoding information, the encoding information indicating that the current block is encoded according to a prediction mode using a block vector BV; determining a reference block in the image based on the BV of the current block, the reference block and the current block having an overlapping area, the reference block including (i) unreconstructed samples in the overlapping area and (ii) reconstructed samples outside the overlapping area; and performing motion compensation on the current block by reconstructing the overlapped area in the current block based on the reconstructed samples in the reference block that are outside the overlapped area, The width of the overlapping area and the height of the overlapping area are multiples of 4.
12. The device according to claim 11, wherein The processing circuit is configured to: determining prediction values of the unreconstructed samples in the overlapped region by copying corresponding prediction samples indicated by the BV in the reference block; and The overlap region is reconstructed based on the predicted values of the unreconstructed samples in the overlap region.
13. The device according to claim 12, wherein: The processing circuit is configured to: The predicted value P'(x, y) of an unreconstructed sample at position (x, y) among the unreconstructed samples is determined by copying the reconstructed sample value P(x+bvX, y+bvY) of the corresponding predicted sample at position (x+bvX, y+bvY), where P'(x, y) is equal to P(x+bvX, y+bvY), bvX is the x component of the BV, and bvY is the y component of the BV.
14. The device according to claim 12, wherein: The processing circuit is configured to: The corresponding prediction samples in the reference block are copied as the prediction values of the unreconstructed samples in the overlapped area in a copy unit of size M×N samples, at least one of M and N being greater than 1.
15. The device according to claim 14, wherein: The width of the overlapping area is a multiple of M, and / or the height of the overlapping area is a multiple of N.
16. The device according to claim 11, wherein The x component of the BV is less than or equal to 0, the y component of the BV is less than or equal to 0, and One of the x-component of the BV and the y-component of the BV is not equal to zero.
17. The device according to claim 16, wherein: The BV is represented by the vector (bvX, bvY), bw is the width of the current block, bh is the height of the current block, The overlapping area is a rectangle, The upper left coordinate of the overlapping area is (bx, by), and The lower right coordinate of the overlapping area is (bx+bw-1+bvX, by+bh-1+bvY).
18. The device according to claim 11, wherein The current block includes a first area and a second area outside the first area, and the BV points from the first area to the overlapping area. The processing circuit is configured to: determining a prediction value for the first region by copying a corresponding prediction sample indicated by 2×BV in the reference block; and The overlapping region is reconstructed based on the predicted value of the first region.
19. The device according to claim 11, wherein: The current block is a first subblock among subblocks in a coding block, and a BV of the first subblock is different from another BV of a second subblock among the subblocks in the coding block.
20. A non-transitory computer-readable storage medium storing instructions, which, when executed by at least one processor, cause the at least one processor to execute: Receiving a code stream of a current block in an image, the code stream comprising encoding information, the encoding information indicating that the current block is encoded according to a prediction mode using a block vector BV; determining a reference block in the image based on the BV of the current block, the reference block and the current block having an overlapping area, the reference block including (i) unreconstructed samples in the overlapping area and (ii) reconstructed samples outside the overlapping area; and performing motion compensation on the current block by reconstructing the overlapped area in the current block based on the reconstructed samples in the reference block that are outside the overlapped area, in, The width of the overlapping area and the height of the overlapping area are multiples of 4.
Citation Information
Patent Citations
Intra block copy prediction for overlapped reference block
US20240236299A1
