Video coding and decoding method and device, storage medium and code stream storage method

Through the modification of intra-frame block copy mode and block vector, the problem of inefficiency in the intra-frame block encoding and decoding process is solved, and more efficient video compression and storage optimization are achieved.

CN118714293APending Publication Date: 2024-09-27TENCENT AMERICA LLC
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202410908153.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Priority Date
2020-04-28
Filing Date
2020-06-10
Publication Date
2024-09-27

AI Technical Summary

Technical Problem

Existing video coding technology is difficult to effectively utilize the intra prediction mode during the encoding and decoding process of intra-frame blocks, resulting in low coding efficiency. In particular, there is redundancy in the motion compensation and quantization process, which affects the optimization of compression rate and storage space. .

Method used

Intra-frame block copy (IBC) mode is used to modify the components of the block vector and perform modular operations to adapt to the size of the current coding tree unit, ensuring that the block vector is valid within the search range, and then encoding and decoding intra-frame blocks.

Benefits of technology

It improves the coding efficiency of intra-frame blocks, reduces redundant data, improves video compression rate and storage space utilization, and enhances the accuracy and efficiency of video decoding.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118714293A_ABST
    Figure CN118714293A_ABST
Patent Text Reader

Abstract

The invention provides a video encoding and decoding method and device, a storage medium and a code stream storage method. The method comprises the following steps: receiving an encoded video bit stream comprising a current picture; determining a block vector for decoding the current block in an intra block copy (IBC) mode, the block vector pointing to a first reference block of the current block; based on a first reference block outside the search range of the current block, performing an operation on at least one component of the block vector, modifying the block vector to point to a second reference block within the search range and valid relative to the current block, the performing operations include: performing a modular operation on a y-component of the block vector based on a size of a current coding tree unit (CTU) including the current block; and decoding the current block based on the modified block vector.
Need to check novelty before this filing date? Find Prior Art

Description

[0001] This application is a divisional application of an actively modified version of a patent application with a filing date of June 10, 2020, Chinese patent application number 202080023368.3, and invention name “Conversion of decoded block vectors for intra-frame picture block compensation”. Technical Field

[0002] The embodiments of the present application describe embodiments generally related to video encoding and decoding. Background Art

[0003] The background description provided herein is for the purpose of generally presenting the background of the embodiments of the present application. To the extent described in this background section, the works of the inventors currently named and the aspects of this description that may not otherwise qualify as prior art at the time of submission are neither explicitly nor implicitly admitted as prior art to the embodiments of the present application.

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

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

[0006] Video encoders and video decoders may utilize a variety of broad categories of techniques including, for example, motion compensation, transforms, quantization, and entropy coding.

[0007] Video codec techniques may include a technique known as intra-coding. In intra-coding, sample values ​​are represented without reference to samples or other data from a previously reconstructed reference picture. In some video codecs, a picture is spatially subdivided into blocks of samples. When all blocks of samples are encoded in intra-mode, the picture may be an intra-picture. Intra-pictures and their derivatives such as independent decoder refresh pictures may be used to reset decoder states and may therefore be used as the first picture or still image in an encoded video stream and video session. Samples of an intra-block may be transformed and transform coefficients may be quantized prior to entropy coding. Intra-prediction may be a technique for minimizing sample values ​​in a domain prior to the transform. In some cases, the smaller the transformed direct current (DC) value and the smaller the alternating current (AC) coefficient, the fewer bits are required to represent a given quantization step size of an entropy-coded block.

[0008] Conventional intra-frame coding, such as known from, for example, MPEG-2 generation coding techniques, does not use intra-frame prediction. However, some newer video compression techniques include techniques that attempt to use, for example, surrounding sample data and / or metadata obtained during encoding / decoding of spatially adjacent, preceding data blocks in decoding order. Such techniques are hereinafter referred to as "intra-frame prediction" techniques. Note that, at least in some cases, intra-frame prediction uses only reference data from the reconstructed current picture, not reference pictures.

[0009] There can be many different forms of intra-frame prediction. When more than one such technique can be used in a given video coding technique, the technique in use can be encoded in the intra-frame prediction mode. In some cases, a mode can have sub-modes and / or parameters, and these sub-modes and / or parameters can be encoded separately or contained in a mode codeword. Which codeword is used in a given mode / sub-mode / parameter combination can have an impact on the coding efficiency gain through intra-frame prediction, so entropy coding techniques can be used to convert the codeword into a codestream.

[0010] In H.264, a certain intra-frame prediction mode was introduced, which was improved in H.265 and further improved in newer coding technologies such as the Joint Exploration Model (JEM), Next Generation Video Coding (VVC), and Benchmark Set (BMS). The prediction value block can be formed using the neighboring sample values ​​belonging to the existing sample. The sample values ​​of the neighboring samples are copied to the prediction value block according to the direction. The reference being used in the direction can be encoded in the code stream, or it can be predicted.

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

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

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

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

[0015] The embodiment of the present application provides a video decoding method for decoding an encoded video bit stream, the method comprising:

[0016] Receiving an encoded video bitstream including a current picture;

[0017] Determine a block vector for decoding a current block in an intra block copy (IBC) mode, the block vector pointing to a first reference block of the current block;

[0018] Based on a first reference block outside a search range of the current block, performing an operation on at least one component of the block vector to modify the block vector to point to a second reference block within the search range and valid relative to the current block, wherein the performing operation comprises: performing a modulo operation on the y component of the block vector based on a size of a current coding tree unit (CTU) containing the current block;

[0019] The current block is decoded based on the modified block vector.

[0020] The embodiment of the present application provides a video encoding method for generating a video bit stream, the method comprising:

[0021] Determining a block vector for encoding a current block in an intra block copy (IBC) mode, the block vector pointing to a first reference block of the current block;

[0022] Based on a first reference block outside a search range of the current block, performing an operation on at least one component of the block vector to modify the block vector to point to a second reference block within the search range and valid relative to the current block, wherein the performing operation comprises: performing a modulo operation on the y component of the block vector based on a size of a current coding tree unit (CTU) including the current block;

[0023] The current block is encoded based on the modified block vector.

[0024] The embodiment of the present application provides a video decoding device for decoding a coded video bit stream, the device comprising:

[0025] A processing circuit, wherein the processing circuit is configured to execute the video decoding method as described in the embodiment of the present application.

[0026] The embodiment of the present application provides a video encoding device for generating a video bit stream, the device comprising:

[0027] A processing circuit, wherein the processing circuit is configured to execute the video encoding method as described in the embodiment of the present application to form a bit stream.

[0028] An embodiment of the present application provides a non-transitory computer-readable storage medium, which stores instructions. When the instructions are executed by a computer for video decoding, the computer executes the video decoding method described in the embodiment of the present application.

[0029] An embodiment of the present application provides a computer-readable storage medium storing a computer program, wherein the computer program is executed by a processor using the video encoding method described in the embodiment of the present application to form a bit stream.

[0030] An embodiment of the present application provides a method for storing a code stream, storing a video code stream on a non-volatile computer-readable storage medium, wherein the video code stream is decoded according to the video decoding method described in the embodiment of the present application, or is generated based on the video encoding method described in the embodiment of the present application. BRIEF DESCRIPTION OF THE DRAWINGS

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

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

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

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

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

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

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

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

[0039] Figure 8 An example of intra picture block (IBC) based compensation according to one embodiment is shown.

[0040] 9A to 9D An example of IBC based compensation according to some embodiments is shown.

[0041] Fig.10 An example of spatial merging candidates according to one embodiment is shown.

[0042] Fig.11 A flow chart of a decoding process according to one general embodiment is shown.

[0043] Fig.12 is a schematic diagram of a computer system according to one embodiment. DETAILED DESCRIPTION

[0044] I. Video Encoders and Decoders

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

[0062] 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 (420)), the current picture buffer (458) may become part of the reference picture memory (457), and a new current picture buffer may be reallocated before starting to reconstruct a subsequent coded picture.

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

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

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

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

[0067] The video source (501) may provide a source video sequence in the form of a digital video sample stream to be encoded by the video encoder (503), 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, Y CrCb 4:4:4). In a media service system, the video source (501) may be a storage device storing previously prepared videos. In a video conferencing system, the video source (501) may be a camera that captures local image information as a video sequence. The video data may be provided as a plurality of separate pictures that are given motion when viewed sequentially. The pictures themselves may be constructed as a spatial pixel array, where each pixel may include one or more samples depending on the sampling structure, color space, etc. used. The relationship between pixels and samples may be easily understood by those skilled in the art. The following description focuses on samples.

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

[0083] The video encoder (503) 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 (503) may perform various compression operations, including predictive encoding operations that exploit temporal and spatial redundancy in an input video sequence. Thus, the encoded video data may conform to the syntax specified by the video encoding technique or standard used.

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

[0105] II. Intra-frame Block Copy

[0106] Blocks can be encoded using reference blocks from different or the same pictures. Block-based compensation using reference blocks from different pictures can be called motion compensation. Block-based compensation using reference blocks from previously reconstructed areas within the same picture can be called intra-picture block compensation, current picture reference (CPR), or intra-block copy (IBC). The displacement vector indicating the offset between the current block and the reference block can be called a block vector (BV or bvL). Unlike the motion vector in motion compensation, which can be any value (positive or negative in the x-axis or y-axis direction), the BV is constrained to ensure that the reference block has been reconstructed and its reconstructed samples are available. In some embodiments, reference areas beyond certain boundaries (e.g., tile boundaries or wavefront trapezoid boundaries) are excluded in view of parallel processing constraints.

[0107] The encoding of the BV can be explicit or implicit. In explicit mode, the difference between the BV and its predictor can be signaled in a manner similar to the Advanced Motion Vector Prediction (AMVP) mode in inter-frame coding. In implicit mode, the BV can be recovered from the predictor alone, for example in a manner similar to the motion vectors in merge mode. In some implementations, the resolution of the BV is set to integer positions, or in some examples, the resolution of the BV is set to fractional positions.

[0108] A block level flag (or IBC flag) can be used to signal the use of IBC at the block level. In some examples, the flag can be signaled when the current block is not encoded in merge mode. In other examples, the flag can be signaled by a reference indexing method (e.g., by treating the currently decoded picture as a reference picture). Such a reference picture can be placed at the last position of the list, for example in HEVC screen content coding (HEVC SCC). This special reference picture can also be managed with other temporarily stored reference pictures in the decoded picture buffer (DPB).

[0109] Although the embodiment of IBC is used as an example in the embodiments of the present application, the embodiments of the embodiments of the present application can be applied to variations of IBC. Variations of IBC include, for example, treating IBC as a third mode different from intra-frame or inter-frame prediction modes. Therefore, block vector prediction in merge mode and AMVP mode can be separated from regular inter-frame mode. For example, a separate merge candidate list can be defined / created for the IBC mode, in which all entries in the list are block vectors. Similarly, the block vector prediction list in the IBC AMVP mode can consist only of block vectors. In terms of the candidate derivation process, the block vector prediction list can follow the same logic as the inter-frame merge candidate list or the AMVP prediction list. For example, by accessing 5 spatial adjacent positions in the HEVC or VVC inter-frame merge mode, so that IBC derives its own merge candidate list.

[0110] Figure 8 FIG. 8 is a schematic diagram of encoding a current block (810) in a current picture (800) using IBC-based compensation according to one embodiment. Figure 8 , an example of using IBC-based compensation is shown, where a current picture (800) includes 15 blocks arranged in 3 rows and 5 columns. In some examples, each block corresponds to a CTU. The current block (810) includes a sub-block (812) (e.g., a coded block in a CTU) having a block vector (822) pointing to a reference sub-block (832) in the current picture (800).

[0111] The reconstructed samples of the current picture may be stored in a memory or a memory block (e.g., a dedicated or designated memory or a portion of a memory). Considering the implementation cost, the reference area where the reconstructed samples of the reference block remain available may not be as large as the entire frame depending on the memory size of the dedicated memory. Therefore, for the current sub-block using IBC-based compensation, in some examples, the IBC reference sub-block may be limited to certain neighboring areas instead of the entire picture.

[0112] In one instance, the memory size is limited to the size of one CTU, which means that the IBC mode can only be used when the reference block is located in the same CTU as the current block. In another example, the memory size is limited to the size of two CTUs, which means that the IBC mode can only be used when the reference block is in the current CTU or in the CTU to the left of the current CTU. When the reference block is outside the constrained reference area (i.e., the specified local area), the reference sample may not be used for IBC-based compensation even if the reference block has been reconstructed. Therefore, the decoder may need to check whether the recovered or determined block vector points to a reference block in the constrained reference area (i.e., the valid search area). The embodiment of the present application includes a method for removing some constraints so that the decoder can also modify and use the block vector when the block vector points to a reference block outside the constrained reference area.

[0113] In one embodiment, the effective memory requirement for storing reference samples to be used in IBC is one CTU size. In one example, the CTU size is 128×128 sample sizes. The current CTU includes the current region in reconstruction. The current region has a size of 64×64 samples. Since the reference memory can also store reconstructed samples in the current region, when the reference memory size is equal to the CTU size of 128×128 samples, the reference memory can store 3 additional regions of size 64×64 sample sizes. Therefore, the search range can include some parts of the previously reconstructed CTU, while the total memory requirement for storing reference samples remains unchanged (e.g., 1 CTU size of 128×128 sample sizes or a total of 4 64×64 reference sample sizes).

[0114] In one example, when limiting the search range in the IBC, the BV of the current block may be bounded by the current CTB boundary, the left adjacent CTB boundary, or similar boundaries, depending on the location and memory size of the current block.

[0115] 9A to 9D An example of IBC-based compensation according to some embodiments of the present application is shown. 9A to 9D, the current picture (901) includes a current CTU (915) being reconstructed and a previously reconstructed CTU (910) adjacent to the left side of the current CTU (915). The CTU in the current picture (901) has a CTU size and a CTU width. The current CTU (915) includes 4 regions (916)-(919). Similarly, the previously reconstructed CTU (910) includes 4 regions (911)-(914). In one embodiment, the CTU size is equal to the reference memory size. For example, the CTU size and the reference memory size are 128×128 sample sizes, and each of the regions (911)-(914) and (916)-(919) has a size of 64×64 samples.

[0116] refer to Fig. 9A , the current region (916) is being reconstructed. The current region (916) includes the current block to be reconstructed. According to some embodiments, the search range of the current block excludes the collocated region (911) of the current region (916) and includes regions (912)-(914) of the previously reconstructed CTU (910).

[0117] refer to Fig. 9B , the current area (917) is being reconstructed. The current area (917) includes the current block to be reconstructed. The current area (917) has a parallel (i.e., co-located) area (i.e., area (912) in the previously reconstructed CTU (910)). The search range of the current block excludes the parallel area (912). The search range includes areas (913) and (914) of the previously reconstructed CTU (910) and area (916) in the current CTU (915). Due to the constraint of the reference memory size (i.e., the size of one CTU), the search range further excludes area (911).

[0118] refer to Fig. 9C , the current area (918) is being reconstructed. The current area (918) includes the current block to be reconstructed. The current area (918) has a collocated area (i.e., area (913)) in the previously reconstructed CTU (910). The search range of the current block excludes the collocated area (913). The search range includes area (914) of the previously reconstructed CTU (910) and areas (916) and (917) in the current CTU (915). Due to the constraint of the reference memory size, the search range further excludes areas (911) and (912).

[0119] refer to Fig.9D, the current region (919) is being reconstructed. The current region (919) includes the current block to be reconstructed. The current region (919) has a collocated region (i.e., region (914)) in the previously reconstructed CTU (910). The search range of the current block excludes the collocated region (914). The search range includes regions (916)-(918) in the current CTU (915). Due to the constraint of the reference memory size, the search range excludes regions (911)-(913), and therefore, the search range excludes the entire previously reconstructed CTU (910).

[0120] Various constraints may be applied to the BV and / or the search range. In one embodiment, the search range of the current block reconstructed in the current CTU is constrained to be within the current CTU.

[0121] In one embodiment, the current picture is a luma picture, and the current CTU is a luma CTU including a plurality of luma samples and a block vector (mvL, with a resolution of 1 / 16-pel). In some embodiments, the luma motion vector mvL complies with the following constraints A1, A2, B1, C1, and C2 for bitstream consistency.

[0122] In some embodiments, the first constraint (A1) and the second constraint (A2) require that the reference block of the current block has been reconstructed. For example, when the reference block has a rectangular shape, a reference block availability check process may be performed to check whether the upper left sample and the lower right sample of the reference block are reconstructed. When the upper left sample and the lower right sample of the reference block are reconstructed, it is determined that the reference block is to be reconstructed.

[0123] In the first constraint (A1), according to some embodiments, when the derivation process of the reference block availability is called using the position (xCurr, yCurr) of the upper left sample of the current block set equal to (xCb, yCb) and the position of the upper left sample of the reference block (xCb+(mvL[0]>>4), yCb+(mvL[1]>>4)) as input, when the upper left sample of the reference block is reconstructed, the output is equal to true (TRUE), where the motion vector mvL is a two-dimensional vector having an x ​​component mvL[0] and a y component mvL[1].

[0124] In the second constraint (A2), according to some embodiments, when the derivation process of block availability is called using the position (xCurr, yCurr) of the upper left sample of the current block set equal to (xCb, yCb) and the position (xCb+(mvL[0]>>4)+cbWidth-1, yCb+(mvL[1]>>4)+cbHeight-1) of the lower right sample of the reference block as input, the output is equal to true (TRUE) when the lower right sample of the reference block is reconstructed. Parameters cbWidth and cbHeight represent the width and height of the reference block, respectively.

[0125] In some embodiments, the third constraint (B1) includes at least one of the following conditions: 1) the value of (mvL[0]>>4)+cbWidth is less than or equal to 0, which indicates that the reference block is on the left side of the current block and does not overlap with the current block; 2) the value of (mvL[1]>>4)+cbHeight is less than or equal to 0, which indicates that the reference block is on the upper side of the current block and does not overlap with the current block.

[0126] In the fourth constraint (C1), in some embodiments, the following conditions are true:

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

[0128] (yCb+(mvL[1]>>4+cbHeight-1)>>CtbLog2SizeY=yCb>>CtbLog2Size (2)

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

[0131] Wherein CtbLog2SizeY represents the CTU width in log2 form. For example, when the CTU width is 128 samples, CtbLog2SizeY is 7. Formulas (1) and (2) specify that the CTU including the reference block is located in the same CTU row as the current CTU (i.e., when the reference block is located in a previously reconstructed CTU (1010), the previously reconstructed CTU (1010) is located in the same row as the current CTU (1015)). Formulas (3) and (4) specify that the CTU including the reference block is located in the left CTU column of the current CTU or in the same CTU column as the current CTU. The fourth constraint as described in formulas (1)-(4) specifies that the CTU including the reference block is the current CTU, or the left adjacent CTU of the current CTU.

[0132] In some embodiments, the fifth constraint (C2) includes: when the reference block is adjacent to the current CTU on the left, the collocated area of ​​the reference block is not reconstructed (ie, samples in the collocated area are not reconstructed). In addition, the collocated area of ​​the reference block is located in the current CTU.

[0133] In one example, the fifth constraint can be specified as follows: when (xCb+(mvL[0]>>4))>>CtbLog2SizeY is equal to (xCb>>CtbLog2SizeY)-1, the derivation process of reference block availability is called using the position of the current block (xCurr, yCurr) equal to (xCb, yCb) and the position (((xCb+(mvL[0]>>4)+CtbSizeY)>>(CtbLog2SizeY-1))<<(CtbLog2SizeY-1),((yCb+(mvL[1]>>4))>>(CtbLog2SizeY-1))<<(CtbLog2SizeY-1)) as input, and the output is equal to false (FALSE), indicating that the parallel area is not reconstructed.

[0134] In the above formula, xCb and yCb are the x-coordinate and y-coordinate of the current block, respectively. The variables cbHeight and cbWidth are the height and width of the current block, respectively. The variables mvL0[0] and mvL0[1] refer to the x-component and y-component of the block vector mvL0, respectively. The constraints for searching the range and / or the block vector may include an appropriate combination of the first constraint, the second constraint, the third constraint, the fourth constraint, and the fifth constraint, respectively. In one example, the first constraint, the second constraint, the third constraint, the fourth constraint, and / or the fifth constraint may be modified.

[0135] III. Spatial Merging Candidates

[0136] Fig.10 An example of a spatial merge candidate position of the current block (1010) according to an embodiment is shown. Fig.10 Up to four merge candidates are selected and derived from the candidate positions shown. In one example, the order of derivation can be A0, B0, B1, A1, and B2. In one example, position B2 is considered only when any CU at positions A0, B0, B1, and A1 is unavailable or intra-coded. In one example, the CU at that position may not be available when the CU belongs to another slice or tile.

[0137] IV. History-based Merge Candidate Derivation

[0138] In some embodiments, a history-based motion vector prediction (HMVP) merge candidate is added to the extended merge list of the current CU after the spatial and temporal candidate MVPs. In HMVP, the motion information of the previously coded blocks can be stored in a table (or history buffer) and used as the MVP candidate for the current CU. This motion information is called an HMVP candidate. A table with multiple HMVP candidates can be maintained during the encoding or decoding process. In one example, the table can be reset (cleared) when a new CTU row is encountered. Whenever there is a non-sub-block inter-coded CU, in one embodiment, the associated motion information can be added to the last entry of the table as a new HMVP candidate.

[0139] In one embodiment, the size of the HMVP table, represented by S, is set to 6. Therefore, up to 6 HMVP candidates can be added to the table. When a new motion candidate is inserted into the table, a constrained first-in, first-out (FIFO) rule can be utilized in one embodiment. In addition, when a new HMVP candidate is added, a redundancy check can be applied to find out whether the same HMVP exists in the table. If the same HMVP is found in the table, the same HMVP candidate can be removed from the table, and all HMVP candidates after the removed HMVP candidate are moved forward. The new HMVP candidate can then be added to the end of the table.

[0140] In one embodiment, the HMVP candidate is used in the construction process of the extended merge candidate list. In one embodiment, several newly added HMVP candidates in the table can be checked in order and inserted into the extended candidate list at a position after the TMVP candidate. A redundancy check can be applied to determine whether the HMVP candidate is similar or identical to a spatial or temporal merge candidate previously added to the extended merge list.

[0141] HMVP candidates can also be used in the construction of the AMVP candidate list. The motion vectors of the last K HMVP candidates in the table are inserted after the TMVP candidates. Only HMVP candidates with the same reference picture as the AMVP target reference picture are used to construct the AMVP candidate list. Reduction is applied to HMVP candidates. In some applications, K is set to 4, while the AMVP list size remains unchanged (i.e., equal to 2).

[0142] In order to reduce the number of redundancy check operations, the following simplified operations are introduced in one embodiment:

[0143] (i) The number of HMVP candidates used to generate the extended merge list is set to (N<=4)?M:(8-N), where N represents the number of existing candidates in the extended merge list and M represents the number of available HMVP candidates in the history table.

[0144] (ii) Once the total number of available merge candidates in the extended merge list reaches the number of maximum allowed merge candidates minus 1, the process of constructing the merge candidate list according to HMVP is terminated.

[0145] According to some embodiments, when IBC operates as a mode independent of inter mode, a separate history buffer called HBVP can be used to store previously encoded IBC block vectors. As a mode independent of inter prediction, it is desirable to have a simplified block vector derivation process for IBC mode. The candidate list used for IBC BV prediction in AMVP mode can share the candidate list used in IBC merge mode (merged candidate list) with 2 spatial candidates + 5 HBVP candidates.

[0146] The merge candidate list size for IBC mode may be assigned as MaxNumMergeCand. MaxNumMergeCand may be determined by the inter merge candidate list size MaxNumMergeCand, which in some examples is specified as six_minus_max_num_merge_cand. The variable six_minus_max_num_merge_cand may specify the maximum number of merge motion vector prediction (MVP) candidates supported in a slice subtracted from six.

[0147] In some examples, the maximum number of merge MVP candidates MaxNumMergeCand can be derived as:

[0148] MaxNumMergeCand=6-six_minus_max_num_merge_cand

[0149] The value of MaxNumMergeCand can be in the range of 1 to 6, inclusive. BV predictions in non-merge mode can share the same list generated for IBC merge mode. However, in some examples, the size of the candidate list is always 2 for the non-merge mode case. Therefore, when MaxNumMergeCand is set to various values ​​and the maximum number of IBC merge candidate lists is set to be different from the size of the inter-frame merge candidate list, appropriate methods need to be developed to handle the IBC merge candidate list size as well as the IBC non-merge mode (AMVP mode) prediction list size.

[0150] V. Conversion / modification of block vectors in IBC mode

[0151] As described above, in some embodiments, existing constraints for valid decoded block vectors include at least two requirements.

[0152] (i) The reference block pointed to by the block vector needs to be fully reconstructed and in the same coding region as the current block. The same coding region may refer to a region where samples can predict each other, such as the same tile, or slice, or tile group. This type of constraint may be referred to as an availability check constraint.

[0153] (ii) The reference block pointed to by the block vector needs to be within the allowed search range, taking into account the wave parallel processing (WPP) capability and the current and left CTU ranges required for memory, etc. This type of constraint may be referred to as a range constraint.

[0154] Embodiments of the present application include methods for converting / modifying decoded block vectors so that certain constraints (e.g., range constraints, availability checks) can be removed. In this regard, the decoder may not need to check whether the block vector meets some requirements in decoding the current block in IBC mode.

[0155] For example, a bitstream consistency constraint may include that a motion vector (mvL) shall point to a reference block that is completely contained in the same CTU as the current block or completely contained in a left block with the same height as the current CTU and a width equal to 128 luma samples, i.e., all of the following conditions shall be true:

[0156] yRefTL >> CtbLog2SizeY = yCb >> CtbLog2SizeY; (5)

[0157] yRefBR >> CtbLog2SizeY = yCb >> CtbLog2SizeY; (6)

[0158] xRefTL>>CtbLog2SizeY>=(xCb>>CtbLog2SizeY)+Min(1,7-CtbLog2SizeY ) -( 1 << ( (7 - CtbLog2SizeY ) << 1) ) ); (7)

[0159] xRefBR >> CtbLog2SizeY <= ( xCb >> CtbLog2SizeY ). (8)

[0160] When the block vectors are converted / modified according to an embodiment of the present application, the above-mentioned bitstream consistency constraints (ie, formulas (5)-(8)) may be removed.

[0161] In some embodiments of the embodiments of the present application, a modulo operation may be performed on the x component and the y component of the block vector based on the size of the current CTU, so that when the upper left position of the reference block is outside the predetermined search range of the IBC (e.g., the current CTU or the left adjacent CTU), the modified block vector may move the upper left corner of the reference block within a target range (e.g., an allowed / valid search range based on the reference memory size and the position of the current block in the current CTU). In one example, the modified block vector may point to the upper left corner of another reference block within the target range. Alternatively, when the block vector points to the reference block within the target range, the block vector may not be changed (e.g., modified).

[0162] In an embodiment of an embodiment of the present application, an invalid block vector (for example, located outside the valid search range) may be modified to be located in the current CTU. In an embodiment of an embodiment of the present application, when the target range includes the current CTU and the left adjacent CTU, the invalid block vector may be modified to be located in the current CTU or the left adjacent CTU. In an embodiment of an embodiment of the present application, the target range may include the current CTU and multiple left CTUs, depending on the size of the reference sample memory and the size of the CTU in the current picture.

[0163] In one example, the x component of the block vector and the y component of the block vector may be modified using the following formula:

[0164] bvL[0]=xRefTL%CtbSizeY+xCurrCtuTL–xCb–((xRefCtuTL <xCurrCtuTL&&xCurrCtuTL–xRefCtuTL<=numLeftCtus*CtbSizeY)?xCurrCtuTL–xRefCtuTL:0)(9)

[0165] bvL[1] = yRefTL % CtbSizeY + yCurrCtuTL – yCb. (10)

[0166] In the above two formulas (9) and (10), bvL[0] represents the x component of the block vector, and bvL[1] represents the y component of the block vector. CtbSizeY represents the size of the CTU (for example, in luma samples), and "%" is the modulus operator. When the target range includes one or more left CTUs, a modulus operation, that is, a remainder operation, can be performed based on a multiple of the size of the CTU. The multiple corresponds to the number of one or more left CTUs included in the target range. For example, when the target range includes the current CTU and one left adjacent CTU, the multiple can be equal to 2, or when the target range includes the current CTU and three left CTUs, the multiple can be equal to 8. The upper left position of the current CTU (xCurrCtuTL, yCurrCtuTL) and the upper left position of the CTU (xRefCtuTL, yRefCtuTL) where the reference block is located can be derived by the following formula:

[0167] (xCurrCtuTL,yCurrCtuTL)=((xCb>>CtbLog2SizeY)<<CtbLog2SizeY,(yCb > >CtbLog2SizeY) << CtbLog2SizeY); (11)

[0168] (xRefCtuTL,yRefCtuTL)=((xRefTL>>CtbLog2SizeY)<<CtbLog2SizeY,(yRefTL> > CtbLog2SizeY) << CtbLog2SizeY. (12)

[0169] In addition, the variable numLeftCtus in formula (9) represents the number of CTUs to the left of the current CTU and can be derived by the following formula:

[0170] numLeftCtus=(1<<((7-CtbLog2SizeY)<<1)))-Min(1,7-CtbLog2SizeY)(13)

[0171] After modification, a shift operation can be performed to change the resolution of the block vector to the resolution used for storage. The following is an example of shifting the resolution of a block vector:

[0172] mvL[0] = bvL[0] << 4; (14)

[0173] mvL[1] = bvL[1] << 4. (15)

[0174] In some embodiments of the present application, the block vector may be modified so that the offset of the reference block relative to the CTU where it is located before modification is the same as the offset of the modified reference block relative to the modified current CTU. In this regard, the modification of the block vector may not result in a modification of the offset. The offset may be equal to (xRefCtuTL in formula (9) <xCurrCtuTL&&xCurrCtuTL–xRefCtuTL<=numLeftCtus*CtbSizeY)。

[0175] In an embodiment of an embodiment of the present application, the lower right corner (xRefBR, yRefBR) of the reference block can be modified in a similar manner to its upper left corner (xRefTL, yRefTL) as described above. Therefore, the embodiment of the present application can ensure that the entire reference block is located within the current CTU, not just the upper left corner of the reference block.

[0176] In an embodiment of an embodiment of the present application, a clipping operation may be performed to adjust the decoded block vector so that after clipping, the block vector always points to a reference block within a target range. When the upper left position of the reference block is outside the allowed search range of the IBC (e.g., the current CTU or the left adjacent CTU), the modified block vector may adjust the upper left corner of the reference block so that the upper left corner of the reference block is within the target range. Alternatively, when the block vector points to a reference block within the target range, the block vector may not be changed (e.g., clipping operation).

[0177] In one example, if one of the x component or the y component of the block vector is outside the target range, the upper left corner of the reference block can be clipped to be within the target range by performing a clipping operation. The lower right corner of the reference block can also be clipped to be within the target range. When both the upper left corner and the lower right corner of the reference block are clipped to be within the target range, the entire reference block is within the target range.

[0178] In one embodiment, when the y coordinate of the upper left corner of the reference block (indicated by the block vector) is outside the current CTU row, the block vector can be clipped to be located at the top row of the current CTU (i.e., at the boundary of the current CTU). Similarly, when the x coordinate of the upper left corner of the reference block (indicated by the block vector) is outside the current CTU or the left adjacent CTU range, the block vector can be clipped to be located at the leftmost column of the current CTU. Therefore, the out-of-bounds block vector can be clipped so that the modified reference block is located at the top row or leftmost column of the current CTU.

[0179] Note that all other constraints (eg, the first constraint, the second constraint, the third constraint, and the fifth constraint described above) may still be used / imposed to evaluate whether the modified block vector is valid.

[0180] In one embodiment of the present application, the following bitstream constraints may be removed by modifying the decoded block vector (the above-mentioned clipping operation or modulo operation):

[0181] One or both of the following conditions should be true:

[0182] The value of (mvL[0]>>4)+cbWidth is less than or equal to 0; and

[0183] The value of (mvL[1]>>4)+cbHeight is less than or equal to 0.

[0184] The above conditions can be used to ensure that the reference block does not overlap with the current block. If the reference block overlaps with the current block (i.e., both conditions are false), the block vector can be modified to ensure that at least one of the above two conditions becomes true. In an embodiment of the embodiment of the present application, the above two conditions can be removed even if no operation / modification is performed on the decoded block vector.

[0185] In one example, the following operations can be applied to ensure that one of the above two conditions becomes true:

[0186] When (mvL[0]>>4)+cbWidth>0 and (mvL[1]>>4)+cbHeight>0, the following operations are applied:

[0187] mvL[0]=-cbWidth<<4.

[0188] In another example, the following operations can be applied to ensure that one of the above two conditions becomes true:

[0189] When (mvL[0]>>4)+cbWidth>0 and (mvL[1]>>4)+cbHeight>0, the following operations are applied:

[0190] mvL[1]=-cbHeight<<4.

[0191] VI. Exemplary Decoding Process

[0192] Fig.11A flowchart of a decoding process (1100) is shown according to some embodiments of the present application. The process (1100) can be used to decode the current block in IBC mode. In various embodiments, the process (1100) can be performed by a processing circuit, such as a processing circuit in a terminal device (210), (220), (230) and (240), a processing circuit that performs the function of a video decoder (310), a processing circuit that performs the function of a video decoder (410), etc. In some embodiments, the process (1100) is implemented in software instructions, so when the processing circuit executes the software instructions, the processing circuit performs the process (1100). The process starts at (S1101) and proceeds to (S1110).

[0193] At (S1110), an encoded video bitstream including a current picture is received.

[0194] At (S1120), it is determined whether a current block in a current coding tree unit (CTU) included in a current picture is encoded in an intra block copy (IBC) mode based on a flag included in the encoded video bitstream. The flag may be an IBC flag indicating that IBV is used at the block level. If it is determined that the current block is not encoded in the IBC mode, then terminate Fig.11 Processing shown.

[0195] At (S1130), in response to determining that the current block is encoded in the IBC mode, a block vector pointing to a first reference block of the current block is determined. The block vector may be determined based on the IBC AMVP mode or the merge mode.

[0196] At (S1140), an operation is performed on the block vector so that when the first reference block is not fully reconstructed or is not located within the effective search range of the current block, the block vector is modified to point to a second reference block located in the fully reconstructed area and within the effective search range of the current block. For example, a modulo operation can be performed on each of the x component and the y component of the block vector based on the size of the current CTU. In one embodiment, the x component of the block vector and the y component of the block vector can be modified using formula (9) and formula (10). In one embodiment, a modulo operation is performed on the x component of the block vector based on a multiple of the current CTU size. A modulo operation is performed on the y component of the block vector based on the size of the CTU. When the block vector points to a reference block that is fully reconstructed and located within the effective search range of the current block, the operation performed (e.g., formula (9) and formula (10)) does not modify the block vector. In this case, the first reference block is the same as the second reference block.

[0197] At (S1150), the current block is decoded based on the modified block vector. Specifically, the current block can be decoded based on the reference samples in the second reference block pointed to by the modified block vector. The process (1100) proceeds to (S1199) and terminates at (S1199).

[0198] VII. Computer System

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

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

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

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

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

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

[0205] The computer system (1200) may also include certain human-machine interface output devices. Such human-machine interface output devices may stimulate one or more human user senses, for example, through tactile output, sound, light, and smell / taste. Such human-machine interface output devices may include tactile output devices (e.g., tactile feedback of a touch screen (1210), a data glove (not shown), or a joystick (1205), but may also be a tactile feedback device that is not an input device), audio output devices (e.g., speakers (1209), headphones (not shown)), visual output devices (e.g., screens (1210) 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 more than three-dimensional outputs through devices such as stereoscopic image output, virtual reality glasses (not depicted), holographic displays and smoke boxes (not depicted), and printers (not depicted).

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

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

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

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

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

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

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

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

[0214] Appendix A: Abbreviations

[0215] JEM: Joint Exploration Model

[0216] VVC: Next Generation Video Coding

[0217] BMS: Benchmark Set

[0218] MV: Motion Vector

[0219] HEVC: High Efficiency Video Coding

[0220] SEI: Supplemental Enhancement Information

[0221] VUI: Video Availability Information

[0222] GOP: Group of Pictures

[0223] TU: Transform Unit

[0224] PU: prediction unit

[0225] CTU: Coding Tree Unit

[0226] CTB: Coding Tree Block

[0227] PB: prediction block

[0228] HRD: Hypothetical Reference Decoder

[0229] SNR: Signal to Noise Ratio

[0230] CPU: Central Processing Unit

[0231] GPU: Graphics Processing Unit

[0232] CRT: cathode ray tube

[0233] LCD: Liquid Crystal Display

[0234] OLED: Organic Light Emitting Diode

[0235] CD: compact disc

[0236] DVD: Digital Video Disc

[0237] ROM: Read Only Memory

[0238] RAM: Random Access Memory

[0239] ASIC: Application-Specific Integrated Circuit

[0240] PLD: Programmable Logic Device

[0241] LAN: Local Area Network

[0242] GSM: Global System for Mobile Communications

[0243] LTE: Long Term Evolution

[0244] CANBus: Controller Area Network Bus

[0245] USB: Universal Serial Bus

[0246] PCI: Peripheral Component Interconnect

[0247] FPGA: Field Programmable Gate Array

[0248] SSD: Solid State Drive

[0249] IC: Integrated Circuit

[0250] CU: Coding Unit

[0251] CG: Coefficient Group

[0252] IBC: Intra Block Copy

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

Claims

1. A video decoding method, characterized in that: For decoding an encoded video bit stream, the method comprises: Receiving an encoded video bitstream including a current picture; Determine a block vector for decoding a current block in an intra block copy (IBC) mode, the block vector pointing to a first reference block of the current block; Based on a first reference block outside a search range of the current block, performing an operation on at least one component of the block vector to modify the block vector to point to a second reference block within the search range and valid relative to the current block, wherein the performing operation comprises: performing a modulo operation on the y component of the block vector based on a size of a current coding tree unit (CTU) containing the current block; The current block is decoded based on the modified block vector.

2. The method according to claim 1, characterized in that The search range is located within a fully reconstructed area, and the second reference block and the current block are located in the same tile, slice or tile group.

3. The method according to claim 1, characterized in that The execution operation further includes: A modulo operation is performed on an x-component of the block vector based on a size of the current CTU that includes the current block.

4. The method according to claim 1, characterized in that: The execution operation further includes: A modulo operation is performed on an x-component of the block vector based on a multiple of a size of the current CTU that includes the current block.

5. The method according to claim 1, characterized in that The performing operation modifies the block vector only when the first reference block is not completely reconstructed or is not located within the search range of the current block.

6. The method according to claim 1, characterized in that When the first reference block is completely reconstructed and is located within the search range of the current block, the performing operation does not modify the block vector.

7. The method according to claim 1, characterized in that The second reference block is located within the search range of the current block, and the search range includes the current CTU including the current block.

8. The method according to claim 1, characterized in that The performing operation modifies the block vector so that an offset of the first reference block relative to a CTU including the first reference block is the same as an offset of the second reference block relative to the current CTU.

9. The method according to any one of claims 1 to 7, characterized in that The execution operation further includes: The block vector is clipped so that when the first reference block is not completely reconstructed or is not located within the valid search range of the current block, the clipped block vector points to the second reference block located at the boundary of the search range of the current block.

10. A video encoding method, characterized in that: For generating a video bitstream, the method comprises: Determining a block vector for encoding a current block in an intra block copy (IBC) mode, the block vector pointing to a first reference block of the current block; Based on a first reference block outside a search range of the current block, performing an operation on at least one component of the block vector to modify the block vector to point to a second reference block within the search range and valid relative to the current block, wherein the performing operation comprises: performing a modulo operation on the y component of the block vector based on a size of a current coding tree unit (CTU) including the current block; The current block is encoded based on the modified block vector.

11. A video decoding device, characterized in that: For decoding a coded video bit stream, the apparatus comprises: A processing circuit, wherein the processing circuit is configured to perform the video decoding method according to any one of claims 1 to 9.

12. A video encoding device, characterized in that: For generating a video bit stream, the device comprises: A processing circuit, wherein the processing circuit is configured to perform the video encoding method according to claim 10 to form a bit stream.

13. A non-transitory computer-readable storage medium, characterized in that: The non-transitory computer-readable medium stores instructions, and when the instructions are executed by a computer for video decoding, the computer performs the video decoding method according to any one of claims 1 to 9.

14. A computer-readable storage medium storing a computer program, characterized in that: The computer program is executed by the processor to form a bit stream by the video encoding method according to claim 10 .

15. A method for storing a code stream, characterized in that: A video code stream is stored on a non-volatile computer-readable storage medium, wherein the video code stream is decoded according to the video decoding method according to claims 1 to 9, or is generated based on the video encoding method according to claim 10.

Citation Information

Cited By

  • Coding method, decoding method, coders, decoders and storage medium

    WO2026143744A1