Chroma block vector and chroma coding mode derivation
By using the decoding information of the luma block in video encoding and decoding to derive the prediction mode of the chroma block, and combining multiple intra-frame and inter-frame prediction modes, the problem of low decoding efficiency of the chroma block in the existing technology is solved, and high efficiency is achieved. video decoding and encoding.
Patent Information
- Application Number
- CN202380015015.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Priority Date
- 2023-10-03
- Filing Date
- 2023-10-04
- Publication Date
- 2024-09-10
AI Technical Summary
Existing video coding and decoding technology is difficult to effectively combine intra-frame and inter-frame prediction modes when compressing video data, resulting in low coding efficiency. Especially when processing chroma blocks, mode switching is complicated and affects decoding quality.
Using a processing circuit system, the prediction mode of the chroma block is derived from the decoding information of the luma block, and combined with intra-frame block copying, intra-frame template matching, local illumination compensation and other modes to achieve efficient decoding of the chroma block, using chroma subsampling Format scaling factors derive chroma block vectors to improve the accuracy of chroma predictions.
It improves the efficiency and quality of video decoding, simplifies mode switching, reduces computational complexity, enhances the decoding ability of chroma blocks, and improves overall encoding performance.
Smart Images

Figure CN118633283A_ABST
Abstract
Description
[0001] Incorporated by Reference
[0002] This application claims the benefit of priority to U.S. Patent Application No. 18 / 376,337, filed on October 3, 2023, “CHROMABLOCK VECTOR AND CHROMA CODING MODE DERIVATION,” which claims the benefit of priority to U.S. Provisional Application No. 63 / 437,973, filed on January 9, 2023, “Chroma Block Vector Derivation.” The disclosures of these prior applications are incorporated herein by reference in their entirety. Technical Field
[0003] This disclosure describes implementations that are generally related to video coding. Background Art
[0004] The background description provided herein is for the purpose of generally presenting the context of the present disclosure. To the extent that work is described in this background section, the work of the presently named inventors and aspects of the description that may not otherwise be qualified as prior art at the time of filing are neither explicitly nor implicitly admitted as prior art against the present disclosure.
[0005] Image / video compression can help to transmit image / video data across different devices, storages, and networks with minimal quality degradation. In some examples, video codec technology can compress video based on spatial redundancy and temporal redundancy. In an example, a video codec can use a technique called intra-frame prediction, which can compress images based on spatial redundancy. For example, intra-frame prediction can use reference data from the current picture being reconstructed for sample prediction. In another example, a video codec can use a technique called inter-frame prediction, which can compress images based on temporal redundancy. For example, inter-frame prediction can use motion compensation to predict samples in the current picture based on previously reconstructed pictures. Motion compensation can be indicated by a motion vector (MV). Summary of the invention
[0006] Aspects of the present disclosure include methods and apparatus for video encoding / decoding. In some examples, an apparatus for video decoding includes a processing circuit system. The processing circuit system receives a bitstream of a current region in a picture. The current region includes a luma decoding region and a chroma decoding region. Decoding information in the bitstream indicates that the luma decoding region and the chroma decoding region are segmented using separate decoding tree structures. The processing circuit system derives a chroma prediction mode for a current chroma block in the chroma decoding region based on luma decoding information of a first luma block. The first luma block is associated with a first position in a reconstructed luma region that is juxtaposed with the current chroma block. The luma decoding information indicates that the first luma block is decoded using a combination of the following two modes: (i) a first decoding mode (e.g., Intra Block Copy (IBC) mode or Intra Template Matching Prediction (IntraTMP) mode) using a first luma block vector (Block Vector, BV); and (ii) a second decoding mode (e.g., Intra Prediction mode, Local Illumination Compensation (LIC) mode or SKIP mode). The processing circuit system derives a chroma block vector (BV) of a current chroma block based on the first luma BV of the first luma block, and reconstructs the current chroma block based on a chroma prediction mode, which is a combination of the first decoding mode and the second decoding mode used to decode the first luma block.
[0007] In an embodiment, the processing circuitry determines that the first luma block is predicted by at least a first coding mode using a first luma BV.
[0008] In an embodiment, the second decoding mode is an intra prediction mode, and the first luma block is decoded using a combined intra block copy and intra prediction (IBC-CIIP) mode. The processing circuit system determines a first prediction for the current chroma block using the IBC mode or the intra TMP mode and the chroma BV. The processing circuit system determines a second prediction for the current chroma block using the intra prediction mode. The processing circuit system determines a chroma prediction for the current chroma block based on a weighted sum of the first prediction and the second prediction, and reconstructs the current chroma block based on the chroma prediction.
[0009] In an embodiment, the second decoding mode is an intra prediction mode, and the first luma block is decoded using IBC with a geometric partitioning mode (IBC-GPM). The processing circuit system determines a first prediction for a first sub-partition of a current chroma block using the IBC mode or the intra TMP mode and the chroma BV. The current chroma block is divided into a first sub-partition and a second sub-partition using the GPM mode. The processing circuit system determines a second prediction for a second sub-partition of the current chroma block using the intra prediction mode, and reconstructs the current chroma block based on the first prediction and the second prediction.
[0010] In an embodiment, the second decoding mode is LIC mode, and the first luma block is decoded using IBC with LIC (IBC-LIC) mode. The processing circuit system determines an initial prediction using the IBC mode or the intra TMP mode and the chroma BV. The initial prediction is from a reference chroma block indicated by the chroma BV. The processing circuit system determines LIC parameters for the current chroma block based on a current template for the current chroma block and a reference template for the reference chroma block. The processing circuit system determines a prediction using the LIC mode based on the initial prediction and the LIC parameters. The processing circuit system reconstructs the current chroma block based on the prediction.
[0011] In an embodiment, the second coding mode is SKIP mode, and the first chroma block is coded using IBC-SKIP mode. The processing circuit system determines a prediction using IBC mode or intra TMP mode and chroma BV, and reconstructs the current chroma block according to the prediction using SKIP mode and without residual.
[0012] In an embodiment, the processing circuitry derives the chroma BV based on a first luma BV of a first luma block and a second luma BV of a second luma block. The second luma block is associated with a second position in the reconstructed luma region collocated with the current chroma block.
[0013] In an example, the first luma block is coded with a valid BV in IBC mode or intra TMP mode.
[0014] In an example, the bitstream includes intra prediction mode information or IBC mode information indicating that: (i) the chroma prediction mode of the current chroma block is derived from the luma coding information of the first luma block, or (ii) the chroma BV is derived from the first luma BV of the first luma block.
[0015] In an example, the processing circuitry derives the chroma BV by scaling the first luma BV with a scaling factor that depends on the chroma subsampling format.
[0016] In an example, the current region is a current Coding Tree Unit (CTU), the luma coding region is a luma coding tree block (CTB) in the current CTU, and the chroma coding region is a chroma CTB in the current CTU.
[0017] In an example, a current coding tree unit (CTU) in a picture is divided into four coding units using quadtree partitioning, and the current region is a coding unit of the four coding units.
[0018] Aspects of the present disclosure also provide a non-transitory computer-readable medium storing instructions that, when executed by a computer, cause the computer to perform a method for video encoding / decoding. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] Additional features, properties, and various advantages of the disclosed subject matter will become more apparent from the following detailed description and accompanying drawings, in which:
[0020] Figure 1 is a schematic illustration of an exemplary block diagram of a communication system (100).
[0021] Figure 2 is a schematic illustration of an exemplary block diagram of a decoder.
[0022] Figure 3 is a schematic illustration of an exemplary block diagram of an encoder.
[0023] Figure 4 The BV associated with the current CU ( 401 ) is shown according to some embodiments of the present disclosure.
[0024] Figure 5 A reference sample memory (RSM) update process at four intermediate times during the reconstruction process is shown in accordance with an embodiment of the present disclosure.
[0025] Figure 6 A left neighboring coding tree unit (CTU) and a current CTU representing a valid reference area according to an embodiment of the present disclosure are shown.
[0026] Figure 7 An example of a prediction area for an Intra Block Copy (IntraBC) mode in a super block prediction according to an embodiment of the present disclosure is shown.
[0027] Figure 8 An example of a memory reuse mechanism or a memory update process in an RSM during decoding of a CTU or a super block (SB) in a current picture according to an embodiment of the present disclosure is shown.
[0028] FIG. 9A to FIG. 9B FIG. 4 shows a schematic diagram of a SB having (a) a horizontal partition at the root of the SB ( Fig. 9A ) or (b) vertical division at the root of SB ( Fig. 9B ) during decoding of the current SB (or CTU).
[0029] Fig.10 An example of an intra template matching prediction (IntraTMP) mode according to an embodiment of the present disclosure is shown.
[0030] Fig.11 Top and left neighboring blocks for weight derivation in combined inter and intra prediction (CIIP) mode according to an embodiment of the present disclosure are shown.
[0031] Fig.12 Examples of dividing lines of a geometric partitioning pattern in some examples are shown.
[0032] Fig.13 A current chroma block and a collocated luma region of the current chroma block are shown according to some embodiments of the present disclosure.
[0033] Fig.14 A flowchart outlining a decoding process according to some embodiments of the present disclosure is shown.
[0034] Fig.15 A flowchart outlining an encoding process according to some implementations of the present disclosure is shown.
[0035] Fig.16 is a schematic illustration of a computer system according to an embodiment. DETAILED DESCRIPTION
[0036] Figure 1 A block diagram of a video processing system (100) in some examples is shown. The video processing system (100) is an example of an application of the disclosed subject matter, a video encoder and a video decoder in a streaming environment. The disclosed subject matter can be equally applicable to other video-enabled applications, including, for example, video conferencing, digital TV, streaming services, storing compressed video on digital media including CD (Compact Disc, CD), DVD (Digital Video Disk, DVD), memory stick, etc.
[0037] The video processing system (100) includes a capture subsystem (113) that may include a video source (101), such as a digital camera, that creates, for example, an uncompressed video picture stream (102). In an example, the video picture stream (102) includes samples captured by the digital camera. The video picture stream (102) is depicted as a thick line to emphasize the high amount of data when compared to the encoded video data (104) (or decoded video bitstream), and the video picture stream (102) can be processed by an electronic device (120) that includes a video encoder (103) coupled to the video source (101). The video encoder (103) may include hardware, software, or a combination of hardware and software to implement or implement various aspects of the disclosed subject matter as described in more detail below. The encoded video data (104) (or encoded video bitstream) is depicted as a thin line to emphasize the lower amount of data when compared to the video picture stream (102), which can be stored on the streaming server (105) for future use. One or more streaming client subsystems such as Figure 1 The client subsystems (106) and (108) in the streaming server (105) can access the streaming server (105) to retrieve copies (107) and (109) of the encoded video data (104). The client subsystem (106) may include, for example, a video decoder (110) in an electronic device (130). The video decoder (110) decodes the incoming copy (107) of the encoded video data and creates an outgoing video picture stream (111) that can be presented on a display (112) (e.g., a display screen) or another presentation device (not depicted). In some streaming systems, the encoded video data (104), (107) and (109) (e.g., video bitstreams) may be encoded according to certain video coding standards / video compression standards. Examples of these standards include ITU-T (International Telecommunication Union-Telecommunication Standardization Sector, ITU-T) H.265 Recommendation. In the example, the developing video coding standard is informally referred to as Versatile Video Coding (VVC). The disclosed subject matter may be used in the context of VVC.
[0038] Note that the electronic devices (120) and (130) may include other components (not shown). For example, the electronic device (120) may include a video decoder (not shown), and the electronic device (130) may also include a video encoder (not shown).
[0039] Figure 2An exemplary block diagram of a video decoder (210) is shown. The video decoder (210) may be included in an electronic device (230). The electronic device (230) may include a receiver (231) (e.g., receiving circuitry). The video decoder (210) may be used instead of Figure 1 A video decoder (110) in an example of FIG.
[0040] The receiver (231) may receive one or more decoded video sequences, for example, in a bitstream, to be decoded by the video decoder (210). In an embodiment, the decoded video sequences are received one at a time, wherein the decoding of each decoded video sequence is independent of the decoding of the other decoded video sequences. The decoded video sequences may be received from a channel (201), which may be a hardware / software link to a storage device storing the encoded video data. The receiver (231) may receive the encoded video data with other data, such as decoded audio data and / or auxiliary data streams, which may be forwarded to their respective consuming entities (not depicted). The receiver (231) may separate the decoded video sequences from the other data. To prevent network jitter, a buffer memory (215) may be coupled between the receiver (231) and the entropy decoder / parser (220) (hereinafter referred to as "parser (220)"). In some applications, the buffer memory (215) is part of the video decoder (210). In other embodiments, the buffer memory may be external to the video decoder (210) (not depicted). In still other applications, there may be a buffer memory (not depicted) external to the video decoder (210) to, for example, prevent network jitter, and there may be another buffer memory (215) internal to the video decoder (210) to, for example, handle playback timing. When the receiver (231) is receiving data from a store / forward device with sufficient bandwidth and controllability or from an isochronous network, the buffer memory (215) may not be needed, or the buffer memory (215) may be small. In order to use a packet network such as the Internet as much as possible, a buffer memory (215) may be needed, which may be relatively large and may advantageously have an adaptive size, and may be implemented at least in part in an operating system or similar element (not depicted) external to the video decoder (210).
[0041] The video decoder (210) may include a parser (220) to reconstruct symbols (221) from the decoded video sequence. The categories of these symbols include: information used to manage the operation of the video decoder (210), and possibly information used to control a rendering device such as a rendering device (212) (e.g., a display screen), which is not part of the electronic device (230) but can be coupled to the electronic device (230), such as Figure 2. The control information for the rendering device may be in the form of a Supplemental Enhancement Information (SEI) message or a Video Usability Information (VUI) parameter set fragment (not depicted). The parser (220) may parse / entropy decode the received decoded video sequence. The decoding of the decoded video sequence may be performed according to a video decoding technique or a video decoding standard, and may follow various principles, including variable length coding, Huffman coding, arithmetic coding with or without context sensitivity, etc. The parser (220) may extract a subgroup parameter set for at least one subgroup of the subgroups of pixels in the video decoder from the decoded video sequence based on at least one parameter corresponding to the group. The subgroup may include a group of pictures (GOP), a picture, a tile, a slice, a macroblock, a coding unit (CU), a block, a transform unit (TU), a prediction unit (PU), etc. The parser (220) may also extract information such as transform coefficients, quantizer parameter values, motion vectors, etc. from the decoded video sequence.
[0042] The parser (220) may perform entropy decoding / parsing operations on the video sequence received from the buffer memory (215) to create symbols (221).
[0043] Depending on the type of decoded video picture or part of a decoded video picture (e.g., inter-frame and intra-frame pictures, inter-frame blocks and intra-frame blocks) and other factors, the reconstruction of the symbol (221) may involve multiple different units. Which units are involved and how they are involved can be controlled by sub-group control information parsed from the decoded video sequence by the parser (220). For clarity, such sub-group control information flow between the parser (220) and the following multiple units is not depicted.
[0044] In addition to the functional blocks already mentioned, the video decoder (210) can be conceptually subdivided into a number of functional units as described below. In a practical implementation 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 purposes of describing the disclosed subject matter, the conceptual subdivision into the following functional units is appropriate.
[0045] The first unit is a sealer / inverse transform unit (251). The sealer / inverse transform unit (251) receives quantized transform coefficients as (one or more) symbols (221) and control information from the parser (220), including which transform method to use, block size, quantization factor, quantization scaling matrix, etc. The sealer / inverse transform unit (251) can output a block including sample values that can be input into an aggregator (255).
[0046] In some cases, the output samples of the scaler / inverse transform unit (251) may belong to an intra-coded block. An intra-coded block is a block that does not use predictive information from a previously reconstructed picture, but may use predictive information from a previously reconstructed portion of a current picture. Such prediction information may be provided by an intra-picture prediction unit (252). In some cases, the intra-picture prediction unit (252) generates a block of the same size and shape as the reconstructed block using surrounding already reconstructed information extracted from a current picture buffer (258). For example, the current picture buffer (258) buffers, for example, a partially reconstructed current picture and / or a fully reconstructed current picture. In some cases, the aggregator (255) adds the prediction information already generated by the intra-prediction unit (252) to the output sample information provided by the scaler / inverse transform unit (251) on a per-sample basis.
[0047] In other cases, the output samples of the scaler / inverse transform unit (251) may belong to an inter-frame decoded and possibly motion compensated block. In this case, the motion compensated prediction unit (253) may access the reference picture memory (257) to extract samples for prediction. After the extracted samples are motion compensated according to the symbols (221) belonging to the block, these samples may be added to the output of the scaler / inverse transform unit (251) (in this case, called residual samples or residual signal) by the aggregator (255) to generate output sample information. The address within the reference picture memory (257) from which the motion compensated prediction unit (253) extracts the prediction samples may be controlled by a motion vector, which is provided to the motion compensated prediction unit (253) in the form of a symbol (221), which may have, for example, an X component, a Y component, and a reference picture component. Motion compensation may also include interpolation of sample values extracted from the reference picture memory (257) when using sub-sample accurate motion vectors, motion vector prediction mechanisms, etc.
[0048] The output samples of the aggregator (255) may be subjected to various loop filtering techniques in a loop filter unit (256). The video compression techniques may include in-loop filter techniques controlled by parameters included in the decoded video sequence (also referred to as a decoded video bitstream) and available to the loop filter unit (256) as symbols (221) from the parser (220). The video compression may also be responsive to meta-information obtained during decoding of a decoded picture or a previous portion (in decoding order) of the decoded video sequence, as well as to previously reconstructed and loop filtered sample values.
[0049] The output of the loop filter unit (256) may be a sample stream that may be output to a rendering device (212) and stored in a reference picture memory (257) for use in future inter-picture prediction.
[0050] Certain decoded pictures, once fully reconstructed, can be used as reference pictures for future prediction. For example, once a decoded picture corresponding to a current picture is fully reconstructed and the decoded picture is identified as a reference picture (e.g., by the parser (220)), the current picture buffer (258) can become part of the reference picture memory (257), and a new current picture buffer can be reallocated before starting reconstruction of a subsequent decoded picture.
[0051] The video decoder (210) may perform decoding operations according to a standard or predetermined video compression technology such as ITU-T Recommendation H.265. The decoded video sequence may conform to the syntax specified by the video compression technology or standard used in the sense that the decoded video sequence follows both the syntax of the video compression technology or standard and the profile as recorded in the video compression technology or standard. Specifically, the profile may select certain tools from all the tools available in the video compression technology or standard as tools that can only be used under the profile. For compliance, the complexity of the decoded video sequence is also required to be within the range defined by the level of the video compression technology or standard. In some cases, the level 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 level may be further limited by the hypothetical reference decoder (HRD) specification and the metadata of the HRD buffer management signaled in the decoded video sequence.
[0052] In an embodiment, the receiver (231) may receive additional (redundant) data along with the encoded video. The additional data may be included as part of (one or more) decoded video sequences. The additional data may be used by the video decoder (210) to properly decode the data and / or to 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.
[0053] Figure 3 A schematic block diagram of a video encoder (303) is shown. The video encoder (303) is included in an electronic device (320). The electronic device (320) includes a transmitter (340) (e.g., a transmission circuit system). The video encoder (303) can be used to replace Figure 1 A video encoder (103) in an example.
[0054] The video encoder (303) can be used to capture video images to be decoded by the video encoder (303) from a video source (301) (not Figure 3 In another example, the video source (301) is a part of the electronic device (320).
[0055] The video source (301) may provide a source video sequence to be decoded by the video encoder (303) in the form of a digital video sample stream, 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., YCrCb 4:2:0, Y CrCb 4:4:4). In a media service system, the video source (301) may be a storage device storing previously prepared videos. In a video conferencing system, the video source (301) may be a camera device that captures local image information as a video sequence. The video data may be provided as a plurality of individual pictures that are given motion when viewed sequentially. The pictures themselves may be organized as a spatial pixel array, where each pixel may include one or more samples, depending on the sampling structure, color space, etc. used. The following description focuses on sample processing.
[0056] According to an embodiment, the video encoder (303) can decode and compress the pictures of the source video sequence into a decoded video sequence (343) in real time or under any other time constraints required. Implementing the appropriate decoding speed is a function of the controller (350). In some embodiments, the controller (350) controls other functional units as described below and is functionally coupled to the other functional units. For clarity, the coupling is not depicted. The parameters set by the controller (350) may include rate control related parameters (picture skipping, quantizer, lambda value of rate distortion optimization technology, etc.), picture size, picture group (GOP) layout, maximum motion vector search range, etc. The controller (350) can be configured to have other suitable functions related to the video encoder (303) optimized for certain system designs.
[0057] In some embodiments, the video encoder (303) is configured to operate in a decoding loop. As an oversimplified description, in an example, the decoding loop may include a source decoder (330) (e.g., responsible for creating symbols such as a symbol stream based on an input picture to be decoded and (one or more) reference pictures) and a (local) decoder (333) embedded in the video encoder (303). The decoder (333) reconstructs the symbols to create sample data in a manner similar to the way the (remote) decoder creates sample data. The reconstructed sample stream (sample data) is input to a reference picture memory (334). Since the decoding of the symbol stream produces a bit-accurate result that is independent of the decoder location (local or remote), the contents of the reference picture memory (334) are also bit-accurate between the local encoder and the remote encoder. In other words, the prediction part of the encoder will "see" as a reference picture sample the same sample value as the sample value 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, for example due to channel errors) is also used in some related technologies.
[0058] The operation of the "local" decoder (333) can be combined with the above Figure 2 The operation of a "remote" decoder such as the video decoder (210) described in detail is the same. However, reference is also briefly made to Figure 2 , since the symbols are available and the encoding / decoding of the symbols of the decoded video sequence by the entropy decoder (345) and the parser (220) can be lossless, the entropy decoding portion of the video decoder (210) including the buffer memory (215) and the parser (220) may not be fully implemented in the local decoder (333).
[0059] In an embodiment, decoder techniques other than parsing / entropy decoding present in a decoder are present in a corresponding encoder in the same or substantially the same functional form. Therefore, the disclosed subject matter focuses on decoder operation. Since encoder techniques are opposite to the fully described decoder techniques, the description of encoder techniques can be simplified. A more detailed description is provided below in certain parts.
[0060] During operation, in some examples, the source decoder (330) may perform motion compensated predictive decoding, which predictively decodes an input picture with reference to one or more previously decoded pictures from a video sequence designated as "reference pictures." In this manner, the decoding engine (332) decodes the differences between pixel blocks of an input picture and pixel blocks of a reference picture that may be selected as a prediction reference for the input picture.
[0061] The local video decoder (333) can decode the decoded video data of the picture that can be designated as the reference picture based on the symbol created by the source decoder (330). The operation of the decoding engine (332) can advantageously be lossy processing. When the decoded video data can be Figure 3 When the video encoder (303) is decoded at a remote location (not shown), the reconstructed video sequence may typically be a copy of the source video sequence with some errors. The local video decoder (333) replicates the decoding process that may be performed by the video decoder on the reference picture and may cause the reconstructed reference picture to be stored in the reference picture memory (334). In this way, the video encoder (303) may locally store a copy of the reconstructed reference picture that has common content (absent transmission errors) with the reconstructed reference picture to be obtained by the remote video decoder.
[0062] The predictor (335) may perform a prediction search for the decoding engine (332). That is, for a new picture to be decoded, the predictor (335) may search the reference picture memory (334) for sample data (as candidate reference pixel blocks) or specific metadata such as reference picture motion vectors, block shapes, etc. that may be used as appropriate prediction references for the new picture. The predictor (335) may operate on a pixel block by pixel block basis to find an appropriate prediction reference. In some cases, as determined by the search results obtained by the predictor (335), the input picture may have prediction references extracted from multiple reference pictures stored in the reference picture memory (334).
[0063] The controller (350) may manage decoding operations of the source decoder (330), including, for example, setting of parameters and subgroup parameters for decoding video data.
[0064] The outputs of all the above mentioned functional units may be entropy decoded in the entropy decoder (345). The entropy decoder (345) transforms the symbols into a decoded video sequence by applying lossless compression to the symbols generated by the various functional units according to techniques such as Huffman decoding, variable length decoding, arithmetic decoding, etc.
[0065] The transmitter (340) can buffer the decoded video sequence created by the entropy decoder (345) in preparation for transmission via the communication channel (360), which can be a hardware / software link to a storage device storing the encoded video data. The transmitter (340) can combine the decoded video data from the video encoder (303) with other data to be transmitted, such as decoded audio data and / or auxiliary data streams (source not shown).
[0066] The controller (350) may manage the operation of the video encoder (303). During decoding, the controller (350) may assign a certain decoding picture type to each decoded picture, which may affect the decoding techniques that can be applied to the corresponding picture. For example, a picture may generally be assigned one of the following picture types:
[0067] Intra pictures (I pictures) can be coded and decoded without using any other pictures in the sequence as a prediction source.Some video codecs allow different types of intra pictures, including, for example, Independent Decoder Refresh ("IDR") pictures.
[0068] A predictive picture (P picture) may be encoded and decoded using intra prediction or inter prediction for predicting a sample value of each block using a motion vector and a reference index.
[0069] Bi-directional predictive pictures (B pictures) can be encoded and decoded using intra prediction or inter prediction using two motion vectors and reference indices to predict sample values for each block. Similarly, multi-predictive pictures can use more than two reference pictures and associated metadata for reconstruction of a single block.
[0070] A 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, respectively), and decoded on a block-by-block basis. These blocks may be predictively decoded with reference to other (already decoded) blocks, which are determined by the coding assignments applied to the corresponding pictures of the blocks. For example, blocks of an I picture may be non-predictively decoded, or blocks of an I picture may be predictively decoded (spatial prediction or intra prediction) with reference to decoded blocks of the same picture. Pixel blocks of a P picture may be predictively decoded with reference to one previously decoded reference picture via spatial prediction or via temporal prediction. Blocks of a B picture may be predictively decoded with reference to one or two previously decoded reference pictures via spatial prediction or via temporal prediction.
[0071] The video encoder (303) may perform decoding operations according to a standard or predetermined video decoding technique such as ITU-T Recommendation H.265. In its operation, the video encoder (303) may perform various compression operations, including predictive decoding operations that exploit temporal and spatial redundancy in the input video sequence. Thus, the decoded video data may conform to the syntax specified by the video decoding technique or standard being used.
[0072] In an embodiment, the transmitter (340) may transmit additional data along with the encoded video. The source decoder (330) may include such data as part of the decoded video sequence. The additional data may include temporal / spatial / SNR enhancement layers, other forms of redundant data such as redundant pictures and slices, SEI messages, VUI parameter set fragments, etc.
[0073] Video can be captured as multiple source pictures (video pictures) in a temporal sequence. Intra-picture prediction (often referred to simply as intra-picture prediction) exploits spatial correlation in a given picture, while inter-picture prediction exploits (temporal or other) correlations between pictures. In an example, a particular picture in encoding / decoding, which is referred to as the current picture, is divided into blocks. When a block in the current picture is similar to a reference block in a reference picture that was previously decoded and still buffered in the video, the block in the current picture can be decoded by a vector called a motion vector. The motion vector points to a reference block in a reference picture, and in the case of using multiple reference pictures, the motion vector may have a third dimension that identifies the reference picture.
[0074] In some embodiments, bidirectional prediction techniques may be used for 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 in the future in display order, respectively). A block in the current picture may be decoded 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. A block may be predicted by a combination of the first reference block and the second reference block.
[0075] In addition, merge mode technology can be used in inter-picture prediction to improve decoding efficiency.
[0076] According to some embodiments of the present disclosure, predictions such as inter-picture prediction and intra-picture prediction are performed in units of blocks. For example, according to the HEVC (High Efficiency Video Coding, HEVC) standard, a picture in a video picture sequence is divided into coding tree units (Coding Tree Unit, CTU) for compression, and the CTUs in the picture have the same size, such as 64×64 pixels, 32×32 pixels, or 16×16 pixels. Typically, a CTU includes three coding tree blocks (Coding Tree Block, CTB), each of which is a luminance CTB and two chrominance CTBs. Each CTU can be recursively divided into one or more coding units (Coding Unit, CU) in a quadtree. For example, a 64×64 pixel CTU can be divided into a 64×64 pixel CU, or 4 32×32 pixel CUs, or 16 16×16 pixel CUs. In the example, each CU is analyzed to determine the prediction type of the CU, such as an inter-frame prediction type or an intra-frame prediction type. The CU is divided into one or more prediction units (PUs) according to temporal and / or spatial predictability. Typically, each PU includes a luma prediction block (PB) and two chroma PBs. In an embodiment, the prediction operation in decoding (encoding / decoding) is performed in units of prediction blocks. Using a luma prediction block as an example of a prediction block, the prediction block includes a matrix of pixel values (e.g., luma values), such as 8×8 pixels, 16×16 pixels, 8×16 pixels, 16×8 pixels, etc.
[0077] Note that the video encoders (103) and (303) and the video decoders (110) and (210) may be implemented using any suitable technology. In an embodiment, the video encoders (103) and (303) and the video decoders (110) and (210) may be implemented using one or more integrated circuits. In another embodiment, the video encoders (103) and (303) and the video decoders (110) and (210) may be implemented using one or more processors that execute software instructions.
[0078] As described below, an example of an intra block copy mode (also referred to as intra BC mode or IBC mode) used in, for example, HEVC and VVC will be introduced.
[0079] Some IBC decoding tools are used as current picture referencing (CPR) in the HEVC Screen Content Coding (Screen Content Coding, SCC) extension. The IBC mode can use decoding techniques for inter-frame prediction, wherein, in the IBC mode, the current picture (also referred to as the current frame) is used as a reference picture (also referred to as a reference frame). The benefit of using the IBC mode is the reference structure of the IBC mode, in which a two-dimensional (2D) space vector can be used as a representation of the addressing mechanism of the reference sample. The benefit of the architecture of the IBC mode is that the integration of IBC requires relatively minor changes to the specification, and if the manufacturer has implemented some prediction techniques, such as HEVC version 1, the implementation burden can be reduced. The CPR in the HEVC SCC extension can be a specific inter-frame prediction mode, resulting in a syntax structure that is the same as or similar to the syntax structure of the inter-frame prediction mode, and a decoding process similar to the decoding process of the inter-frame prediction mode.
[0080] The IBC mode can be integrated into the inter-frame prediction process. In some examples, the IBC mode (or CPR) is an inter-frame prediction mode, and only intra-frame prediction slices will become predicted slices to allow the use of the IBC mode. When the IBC mode is applicable, the decoder can extend the reference picture list by one entry so that the pointer points to the current picture. For example, the current picture uses a buffer of the size of a picture in the shared decoded picture buffer (DPB). The IBC mode signaling can be implicit. For example, when the selected reference picture points to the current picture, the CU can adopt the IBC mode. In various embodiments, the reference samples used in the IBC process are not filtered, which is different from conventional inter-frame prediction. The corresponding reference picture used in the IBC process is a long-term reference. To minimize memory requirements, the decoder can release the buffer after reconstructing the current picture, for example, the decoder releases the buffer immediately after reconstructing the current picture. When the reconstructed picture is a reference picture, the decoder can put the filtered version of the reconstructed picture back into the DPB as a short-term reference.
[0081] In block vector (BV) decoding, reference to the reconstructed area can be performed via 2D BV, which is similar to the MV used in inter prediction. The prediction and decoding of BV can reuse the MV prediction and decoding in the inter prediction process. In some examples, the luma BV is at integer resolution, rather than the 1 / 4 (or 1 / 4 pixel) precision of the MV used for conventional inter-coded CTUs.
[0082] Figure 4The BV associated with the current CU (401) according to an embodiment of the present disclosure is shown. Each square (400) can represent a CTU. The gray shaded area represents the decoding area or decoding region, and the white, non-shaded area represents the area to be decoded or the area to be decoded. The current CTU (400(4)) under reconstruction includes the current CU (401), the decoding area (402) and the area to be decoded (403). In the example, the area (403) will be decoded after the current CU (401) is decoded.
[0083] In an example, for example, in HEVC, the gray shaded area excluding the two CTUs (400(1) to 400(2)) to the upper right of the current CTU (400(4)) can be used as a reference area in IBC mode to allow wavefront parallel processing (WPP). The BV allowed in HEVC can point to a block within the reference area (e.g., the gray shaded area excluding the two CTUs (400(1) to 400(2))). For example, the BV (405) allowed in HEVC points to the reference block (411).
[0084] In the example, for example, in VVC, in addition to the current CTU (400 (4)), only the left adjacent CTU (400 (3)) to the left of the current CTU (400 (4)) is allowed as a reference area in IBC mode. In the example, the reference area used in the IBC mode in VVC is located within the dotted area (415) and includes decoded samples. For example, the BV (406) allowed in VVC points to the reference block (412). In the example, the decoded motion vector difference (MVD) or block vector difference (BVD) of the BV is left shifted (for example, twice) before being added to the BV predictor to determine the final BV.
[0085] The IBC mode may be different from the inter prediction mode, and therefore, special processing may be used for implementation and performance reasons such as described below. In an embodiment, the IBC reference samples are unfiltered, for example, the reconstructed samples before the inner loop filtering process including but not limited to the deblocking filter (DBF) and the sample adaptive offset (SAO) filter are used as reference samples in the IBC mode, while other inter prediction modes, such as the inter prediction mode used in HEVC, use the filtered samples as reference samples. In an embodiment, there is no luma sample interpolation for the IBC mode. In an embodiment, when the chroma BV is derived from the luma BV, when the chroma BV is non-integer, chroma sample interpolation is used. In an embodiment, the chroma BV is non-integer and the reference block is close to the boundary of the available area. For example, the surrounding reconstructed samples are outside the boundary to perform chroma sample interpolation. BVs pointing to a single line close to the boundary may not avoid such a situation.
[0086] An exemplary IBC architecture, such as that used in VVC, can be described as follows. The valid reference area for an IBC mode, such as that used in the HEVC SCC extension, can include almost the entire reconstructed area of the current picture, with some exceptions for the purpose of parallel processing, such as Figure 4 Described in . Figure 4 The reference area for the IBC mode in HEVC and the configuration in VVC is shown. Figure 4 , when the reconstruction process of the current CTU (400(4)) starts, only the CTU (400(3)) to the left of the current CTU (400(4)) can be used as a reference sample area. In some examples, a disadvantage of the HEVC concept is the need for additional memory in the DPB, for which the hardware implementation uses external memory. In the example, the additional access to the external memory causes an increase in memory bandwidth, making the use of the DPB less attractive. In some embodiments, an IBC mode, such as the IBC mode in VVC, can use fixed memory that can be implemented on a chip, and thus significantly reduce the complexity of implementing the IBC mode in the hardware architecture. In an embodiment, significant modifications address signaling concepts such as the separation from integration within the inter-frame prediction process in the HEVC SCC extension.
[0087] Figure 5The reference sample memory (RSM) (510) update process at four intermediate times (501) to (504) during the reconstruction process according to an embodiment of the present disclosure is shown. The light gray shaded area may represent the reference sample of the left adjacent CTU. The dark gray shaded area may represent the reference sample of the current CTU. The white and unshaded area may represent the area to be decoded (e.g., the area to be decoded).
[0088] An example description of the syntax and semantics of an IBC mode such as that used in VVC is as follows. An IBC architecture, such as that used in VVC, may form a dedicated decoding mode, where the IBC mode is a third prediction mode in addition to the intra prediction mode and the inter prediction mode. The bitstream may carry an IBC syntax element (e.g., an sIBC syntax element) indicating, for example, the IBC mode of a decoding unit when the block size is 64×64 or smaller. In an embodiment, the maximum CU size of the IBC mode may be 64×64 to implement a continuous memory update mechanism for the RSM. By representing a two-dimensional offset and reusing a vector decoding process for the inter prediction mode, the reference sample addressing mechanism may be the same as the reference sample addressing mechanism used in the HEVC SCC extension. In the example, the Chroma Separate Tree (CST) is activated and the decoder cannot derive the chroma BV from the luma BV, resulting in the use of the IBC mode only for the luma coding block.
[0089] The reference area and sample memory in an IBC mode, such as the IBC mode used in VVC, can be described below. An IBC design, such as the IBC design used in VVC, can use a fixed memory size (e.g., 128×128) for each color component to store reference samples, thereby enabling the possibility of on-chip placement in a hardware implementation. In the example, the maximum CTU size of VVC is 128×128. In an embodiment, when the maximum CTU size configuration is equal to 128×128, the RSM can store samples of a single CTU. In the example, features of the RSM include a continuous update mechanism that can replace the reconstructed samples of the left adjacent CTU with the reconstructed samples of the current CTU.
[0090] Figure 5 An RSM example (eg, a simplified RSM example) of an update mechanism for four intermediate times (501) to (504) during a reconstruction process is shown. Figure 5, at the first intermediate time (501) representing the start of reconstruction of the current CTU, in the example, the RSM (510) includes only reference samples of the left adjacent CTU. At the other three intermediate times (502) to (504), the reconstruction process replaces the samples of the left adjacent CTU with the current CTU variant. An implicit partitioning of the RSM (510) can be applied, and the RSM (510) can be divided into four non-overlapping 64×64 regions (511) to (514). When the decoder processes the first decoding unit located in the corresponding region when the RSM is mapped to the CTU, the reset of the region can occur, thereby simplifying the hardware implementation work.
[0091] exist Figure 5 In the example shown in , a fixed memory (e.g., RSM (510)) can be allocated to store reference regions used in IBC mode. A portion of the RSM can be updated at different intermediate times (e.g., (501) to (504)) during a decoding process (e.g., a decoding process or a reconstruction process). Figure 5 The IBC mode in VVC and the reference area of the configuration in VVC are shown.
[0092] Reference Figure 5 , the RSM (510) may include a portion of the current CTU and / or a portion of the left adjacent CTU. Figure 5 In the example shown in , the size of the RSM is equal to the size of the CTU. The RSM (510) may include parts (511) to (514).
[0093] At the first intermediate time (501) of the decoding process as the start of the decoding process of the current CTU, the RSM (510) includes the entire left neighboring CTU, and at the start of the decoding process of the current CTU, the entire left neighboring CTU can be used as a reference area in the IBC mode. The RSM (510) at the start of the decoding process of the current CTU does not include the current CTU, and the parts (511) to (514) include reconstructed samples of the left neighboring CTU.
[0094] At a second intermediate time (502) of the decoding process of the current CTU, the sub-region (531) of the upper left region in the current CTU has been decoded (e.g., encoded or reconstructed), the sub-region (532) of the upper left region in the current CTU is the current CU being decoded (e.g., being encoded or reconstructed), and the sub-region (533) of the upper left region in the current CTU is to be decoded subsequently. The RSM (510) is updated to include a portion of the left neighboring CTU and a portion of the current CTU. For example, portions (512) to (514) in the RSM (510) store reconstructed samples in the same left neighboring CTU as the first intermediate time (501), while portion (511) is updated to store the sub-region (531) of the current CTU. The reference region of the second intermediate time (502) may include the reconstructed samples of the left neighboring CTU stored in portions (512) to (514) and the reconstructed samples of the sub-region (531) of the current CTU stored in portion (511).
[0095] At the third intermediate time (503) of the decoding process of the current CTU, the upper left area of the current CTU has been reconstructed. The upper right area of the current CTU includes sub-areas (541) to (543). Sub-area (541) (dark gray shading) has been decoded (e.g., encoded or reconstructed), sub-area (542) is the current CU being decoded (e.g., being encoded or being reconstructed), and sub-area (543) (white and unshaded) is to be decoded subsequently. Portions (513) to (514) in the RSM (510) store the reconstructed samples in the same left adjacent CTU as the first intermediate time (501), while portions (511) to (512) are updated so that portion (511) stores the reconstructed samples of the upper left area of the current CTU, and portion (512) stores the sub-area (541) of the current CTU. The reference area of the third intermediate time (503) may include: (i) reconstructed samples of the left adjacent CTU stored in parts (513) to (514); and (ii) reconstructed samples of the upper left area of the current CTU stored in part (511) and the sub-area (541) of the current CTU stored in part (512).
[0096] At the fourth intermediate time (504) of the decoding process of the current CTU, the upper left area, the upper right area, and the lower left area of the current CTU have been reconstructed. The lower right area of the current CTU includes sub-areas (551) to (553). Sub-area (551) (dark gray shading) has been decoded (e.g., encoded or reconstructed), sub-area (552) is the current CU being decoded (e.g., being encoded or being reconstructed), and sub-area (553) (white and unshaded) is to be decoded subsequently. Part (511) stores the reconstructed samples of the upper left area in the same current CTU as the third intermediate time (503), and parts (512) to (514) are updated so that parts (512) to (513) respectively store the reconstructed samples of the upper right area and the lower left area of the current CTU, and part (514) stores the sub-area (551) of the current CTU. The reference region of the fourth intermediate time (504) may include reconstructed samples of the current CTU stored in portions (511) to (514). The RSM (510) of the fourth intermediate time (504) does not include any region in the left neighboring CTU.
[0097] Figure 6 The left neighboring CTU (601) and the current CTU (602) are shown, which represent valid reference areas due to the RSM design and continuous update mechanism. The left neighboring CTU (601) may include areas (611) to (614). The current CTU (602) may include areas (621) to (624). The area (623) in the current CTU (602) includes the current CU (603) being decoded, the sub-area (651) that has been decoded, and the sub-area (653) to be decoded. The gray shaded area may include samples stored in the RSM, and the white and unshaded area may include replaced samples or unreconstructed samples.
[0098] Figure 6 An example of the concept of continuous updating of RSM in space is shown. Figure 6 At reconstruction time in the example shown, the RSM update process has replaced samples covered by the white and unshaded regions (611) to (613) in the left neighboring CTU (601) with the gray shaded regions (e.g., regions (621) to (622) and sub-region (651)) of the current CTU (602). Figure 6 , the RSM may include (i) the region (614) in the left adjacent CTU (601) and (ii) the regions (621) to (622) and the sub-region (651) of the current CTU (602).
[0099] For example, when the maximum CTU size is smaller than the RSM size (e.g., 128×128), the RSM may include more than a single left-neighboring CTU, and multiple left-neighboring CTUs may be used as reference regions in IBC mode. For example, when the maximum CTU size is equal to 32×32, an RSM of size 128×128 may store samples of 15 left-neighboring CTUs.
[0100] The following describes an example block vector (BV) decoding of the IBC mode, such as the IBC mode used in VVC. BV decoding can adopt the processing specified for inter-frame prediction. BV decoding of the IBC mode can use simpler rules for candidate list construction. For example, the candidate list construction for inter-frame prediction may include five spatial candidates, one temporal candidate, and six history-based candidates. In inter-frame prediction, multiple candidate comparisons are used for history-based candidates to avoid duplicate entries in the final candidate list. Additionally, in inter-frame prediction, the candidate list construction may include pair-wise average candidates. In an embodiment, the IBC list construction process only considers the BVs of two spatial neighbors and five history-based BVs (Bistory-based BlockVector Prediction, HBVP), where only the first HBVP is compared with the spatial candidate when added to the candidate list. Conventional inter-frame prediction can use two different candidate lists, one for merge mode and the other for regular mode, while the candidate list in IBC mode is used for both cases. In IBC mode, merge mode can use up to six candidates in the candidate list, and regular mode uses only the first two candidates in the candidate list. Block vector difference (BVD) decoding in IBC mode may employ the motion vector difference (MVD) process used in inter prediction to produce a final BV of any suitable size. In an embodiment, the reconstructed BV may point to an area other than the reference sample area, and thus, for example, by removing the absolute offset in each direction (e.g., each of the horizontal and vertical directions) using a modulo operation with the width and height of the RSM to perform correction on the reconstructed BV.
[0101] The derivation process of chroma BV may include the following. When the current decoding tree type is SINGLE_TREE, the chroma block corresponds to the luminance block. Considering the chroma sampling format (e.g., 4:2:0, 4:2:2) and the chroma BV accuracy, using appropriate scaling, the BV of the chroma block decoded using the IBC mode can be derived from the BV of the luminance block. The derivation process can be described as follows. The input of the process may include a luminance BV with a 1 / 16 fractional sampling accuracy bvL. The output of the process may include a chroma BV with a 1 / 32 fractional sampling accuracy bvC. The chroma BV can be derived from the corresponding luminance BV. The chroma BV bvC can be derived as follows:
[0102] bvC[0]=((bvL[0]>>(3+SubWidthC))*32 Formula (1)
[0103] bvC[1]=((bvL[1]>>(3+SubHeightC))*32 Formula (2)
[0104] The variables SubWidthC and SubHeightC may be specified in Table 1 according to the chroma format sampling structure, which may be specified by sps_chroma_format_idc.
[0105] Table 1 - Values of subwidth C and subheight C derived from sps_chroma_format_idc
[0106] sps_chroma_format_idc Chroma Format SubWidthC SubHeightC 0 Monochrome 1 1 1 4:2:0 2 2 2 4:2:2 2 1 3 4:4:4 1 1
[0107] In monochrome sampling (eg, the chroma format is monochrome), there is only one sample array, which is nominally considered to be the luma array.
[0108] In 4:2:0 sampling, each of the two chroma arrays may have half the height and half the width of the luma array.
[0109] In 4:2:2 sampling, each of the two chroma arrays may have the same height and half the width of the luma array.
[0110] In 4:4:4 sampling, each of the two chroma arrays may have the same height and width as the luma array.
[0111] The number of bits required to represent each of the samples in the luma array and the chroma array in a video sequence may be in the range of 8 to 16, inclusive.
[0112] The intra BC mode used in, for example, AV1 is described below. In an embodiment, for example in AV1, the intra block copy (intra BC) mode may use a vector to locate a prediction block in the same picture of the current block. The vector is called a block vector (BV). The BV may be signaled in the bitstream, and the precision of representing the BV may be integer points. The prediction process in intra BC mode is similar to inter picture prediction. The difference between intra BC mode and inter picture prediction is that, in intra BC mode, the prediction block may be formed from reconstructed samples of the current picture before loop filtering is applied. Therefore, intra BC mode may be viewed as "motion compensation" using BV as MV within the current picture.
[0113] For the current block, a flag indicating whether the intra BC mode is enabled for the current block may first be transmitted in the bitstream. Then, if the current block is decoded using the intra BC mode, the BV difference may be derived by subtracting the predicted BV from the current BV. The BV difference may be classified into multiple types (e.g., four types) according to the horizontal component and the vertical component of the BV difference. The type information may be signaled into the bitstream, and then the BV difference of the two (horizontal and vertical) components may be signaled.
[0114] The intra BC mode is very effective for decoding certain content, such as screen content. In the example, the intra BC mode also poses challenges to hardware design. To facilitate hardware design, the following modifications can be adopted. When the intra BC mode is allowed, the loop filter is disabled. The loop filter may include a DBF, a constrained directional enhancement filter (Constrained Directional Enhancement Filter, CDEF), a loop restoration (Loop Restoration, LR) filter, etc. By disabling the loop filter, a second image buffer dedicated to enabling the intra BC mode can be avoided.
[0115] To facilitate parallel decoding, the prediction cannot exceed the restricted area. In an implementation, for a super block or CTU, if the coordinates of the upper left position of the super block (or CTU) are (x0, y0), the prediction at the position (x, y) can be accessed through the intra BC mode only if the ordinate is less than y0 and the abscissa is less than x0+2(y0-y).
[0116] To allow for hardware write-back latency, the immediate reconstruction area cannot be accessed through intra BC prediction. The restricted immediate reconstruction area can be 1 to n super blocks (or CTUs). Therefore, in addition to the modifications described above, if the coordinates of the upper left position of the super block (or CTU) are (x0, y0), the prediction at position (x, y) can be accessed through intra BC mode if the ordinate is less than y0 and the abscissa is less than x0+2(y0-y)-D, where D represents the immediate reconstruction area restricted for intra BC mode. When D is two super blocks such as specified in AVM, the prediction area is as follows: Figure 7 As shown.
[0117] Figure 7An example of a prediction area for intra BC mode in a super block prediction according to an embodiment of the present disclosure is shown. Each square may represent a super block or a CTU. The gray shaded area may include an allowed search area, for example, an allowed search area accessible in IBC mode for each current super block (710) in reconstruction. The black shaded area may include a disallowed search area, for example, when D includes two super blocks (or two CTUs), an disallowed search area that is inaccessible in IBC mode for each current super block (710). The white non-shaded area includes a super block to be decoded (e.g., reconstructed). In the example, for the current super block (710 (1)), the immediate reconstruction area includes two super blocks (721) to (722) to the left of the current super block (710 (1)) (e.g., D is 2 super blocks). Super blocks (721) to (722) are not accessible to the current super block (710 (1)). The allowed search area (730) is accessible to the current super block (710 (1)).
[0118] For example, the intra BC mode with local reference range in AV1 can be described as follows. For example, the intra BC mode in the AV1 codec can be used with local reference range. In an embodiment, a super block (SB) size of "on-chip" memory (referred to as RSM) is allocated for storing reference samples, where a memory reuse mechanism based on 64×64 is applied, e.g. Figure 8 and FIG. 9A to FIG. 9B As shown. For example, the following changes (1) to (3) are made based on the design of the intra BC mode in AV1. (1) The maximum block size in the intra BC mode can be limited to 64×64. (2) The reference block and the current block are located in the same SB row. In the example, the reference block can only be located in the current SB or one SB to the left of the current SB. (3) When any reference sample memory in the reference sample memory of the 64×64 unit starts to be updated with the reconstructed samples from the current SB, the previously stored reference samples in the entire 64×64 unit (for example, the reference samples from the left SB) will be marked as unavailable for generating prediction samples in the intra BC mode.
[0119] Figure 8An example of a memory reuse mechanism or memory update process in an RSM during decoding of a CTU or SB (e.g., current SB (801)) in a current picture according to an embodiment of the present disclosure is shown. Rows 1 to 2 show examples from the perspective of the RSM. Row 1 shows an RSM (810) in state (0). Row 2 shows an RSM (810) in states (1) to (4). Row 3 is an example from the perspective of a picture, such as the current SB (801) being decoded and the left adjacent SB (802) in the current picture in states (0) to (4). Quadtree partitioning can be used at the root of the SB. The SB can include four regions. In the example, the size of each of the four regions is 64×64. In the example, the current SB (801) includes four regions 4 to 7, and the left adjacent SB (802) includes four regions 0 to 3.
[0120] Reference Figure 8 , at the beginning of decoding each SB (state (0)), the RSM stores samples of the previous decoded SB (e.g., the left adjacent SB (802)). When the current block is located in one of the four regions (e.g., four 64×64 regions) of the current SB (801) (e.g., shown in one of the states (1) to (4), the corresponding region in the RSM (810) can be cleared and used to store samples of the current decoded region (e.g., the current 64×64 decoded region). Therefore, the samples in the RSM (810) can be gradually updated by the samples in the current SB (801), such as shown from state (1) to state (4).
[0121] Referring to state (1), the current block (811) is located in region 4 in the current SB (801), and the corresponding region (e.g., the upper left region) in the RSM (810) can be cleared and used to store samples of region 4 as the current region being decoded. Referring to row 3, a BV (e.g., an encoding BV or a decoding BV) (821) can point from the current block (811) to a reference block (831) located within a search range (841) of the current block (811) (the boundary of the search range (841) is marked by a dotted line). Referring to row 2, a corresponding offset (851) in the RSM (810) can point from the current block (811) to the reference block (831) in the RSM (810). In state (1), the search range (841) includes regions 1 to 3 in the left adjacent SB (802) and a decoded sub-region (861) in region 4. The search range (841) does not include region 0 in the left adjacent SB (802).
[0122] Referring to state (2), the current block (812) is located in region 5 in the current SB (801), and the corresponding region (e.g., the upper right region) in the RSM (810) can be cleared and used to store samples of region 5 as the current region being decoded. The BV (822) can point from the current block (812) to a reference block (832) located within a search range (842) of the current block (812) (the boundary of the search range (842) is marked by a dotted line). The corresponding offset (852) in the RSM (810) can point from the current block (812) to the reference block (832) in the RSM (810). In state (2), the search range (842) includes: (i) regions 2 to 3 in the left adjacent SB (802); and (ii) the decoded sub-region (862) in regions 4 and 5 in the current SB (801). The search range (842) does not include regions 0 to 1 in the left adjacent SB (802).
[0123] Referring to state (3), the current block (813) is located in region 6 in the current SB (801), and the corresponding area (e.g., the lower left area) in the RSM (810) can be cleared and used to store samples of region 6 as the current region being decoded. BV (823) can point from the current block (813) to a reference block (833) located within a search range (843) of the current block (813) (the boundary of the search range (843) is marked by a dotted line). The corresponding offset (853) in the RSM (810) can point from the current block (813) to the reference block (833) in the RSM (810). In state (3), the search range (843) includes: (i) region 3 in the left adjacent SB (802); and (ii) regions 4 to 5 in the current SB (801) and the decoded sub-region (863) in region 6. The search range (843) does not include regions 0 to 2 in the left adjacent SB (802).
[0124] Referring to state (4), the current block (814) is located in region 7 in the current SB (801), and the corresponding area (e.g., the lower right area) in the RSM (810) can be cleared and used to store samples of region 7 as the current region being decoded. The BV (824) can point from the current block (814) to the reference block (834) located within the search range (844) of the current block (814) (the boundary of the search range (844) is marked by a dotted line). The corresponding offset (854) in the RSM (810) can point from the current block (814) to the reference block (834) in the RSM (810). In state (4), the search range (844) includes regions 4 to 6 in the current SB (801) and the decoded sub-region (864) in region 7. The search range (844) does not include regions 0 to 3 in the left adjacent SB (802).
[0125] When the current SB (801) has been completely decoded (state (4)), the entire RSM (810) may be filled with samples (eg, all samples) of the current SB (801).
[0126] exist Figure 8 In the example shown in , the current SB (801) is first partitioned using quadtree partitioning. The decoding order of the four 64×64 regions can be the upper left region (e.g., region 4), the upper right region (e.g., region 5), the lower left region (e.g., region 6), and the lower right region (e.g., region 7), where the upper left region is decoded first, and the lower right region is decoded after the upper left region, the upper right region, and the lower left region are decoded. In other block partitioning decisions, such as Fig. 9B As shown in , the RSM update process can be similar, for example, replacing the corresponding area in the RSM with the reconstructed samples in the current SB.
[0127] FIG. 9A to FIG. 9B FIG. 4 shows a schematic diagram of a SB having (a) a horizontal partition at the root of the SB ( Fig. 9A ) or (b) vertical division at the root of SB ( Fig. 9B ) during decoding of the current SB (or CTU) (901).
[0128] exist FIG. 9A to FIG. 9B , the left adjacent SB (902) has been decoded. The current SB (901) is being decoded (e.g., being encoded or being decoded). In the example, the size of each SB in the current SB (901) and the left adjacent SB (902) is 128×128. Each of the current SB (901) and the left adjacent SB (902) may include four regions (e.g., four blocks) of a size of 64×64. The current SB (901) may include blocks 4 to 7, and the left adjacent SB (902) may include blocks 0 to 3.
[0129] exist Fig. 9A In the decoding process, horizontal division at the root of the SB is performed, and then vertical division is performed. The current SB (901) may include four blocks: an upper left block (e.g., block 4), a lower left block (e.g., block 6), an upper right block (e.g., block 5), and a lower right block (e.g., block 7). The decoding order of the current SB (901) may be an upper left block (state 1), an upper right block (state 2), a lower left block (state 3), and a lower right block (state 4).
[0130] exist Fig. 9B In the example, vertical partitioning at the root of the SB is performed, and then horizontal partitioning. The decoding order of the current SB (901) may be an upper left block (state 1), a lower left block (state 2), an upper right block (state 3), and a lower right block (state 4).
[0131] Reference FIG. 9A to FIG. 9B , depending on the position of the current decoding block relative to the current SB (901), the following situations may apply:
[0132] 1.Reference FIG. 9A to FIG. 9B In state (1), if the current block (931) falls into the upper left block (e.g., block 4) (e.g., a 64×64 block) of the current SB (901), in addition to the already reconstructed samples in block (961) in the current SB (901), the current block (931) can refer to reference samples in lower right block 3 (e.g., a 64×64 block) in the left SB (902), reference samples in lower left block 2 (e.g., a 64×64 block), and upper right block 1 (e.g., a 64×64 block). The search range of the current block (931) may include blocks 1 to 3 and block (961).
[0133] 2.Reference Fig. 9A Status (2) or Fig. 9B In state (3), when the current block (932) falls into the upper right block 5 (e.g., a 64×64 block) of the current SB (901), in addition to the reconstructed samples in the current SB (901), (a) if the luma sample located at (0, 64) relative to the current SB (901) has not been reconstructed, e.g. Fig. 9A , the current block (932) may refer to the reference samples in the lower left block 2 (e.g., a 64×64 block) and the lower right block 3 (e.g., a 64×64 block) of the left SB (902) and the search range of the current block (932) may include blocks 2 to 4 and block (962); (b) otherwise, if the luma sample located at the upper left corner (e.g., at (0, 64) relative to the current SB (901)) has been reconstructed, e.g. Fig. 9B As shown in state (3) in , the current block (932) can refer to the reference sample in the lower right block 3 (e.g., a 64×64 block) of the left SB (902), and the search range of the current block (932) may include blocks 3, 4, and 6 as well as block (962).
[0134] 3.Reference Fig. 9A Status (3) or Fig. 9B In state (2), when the current block (933) falls into the lower left block of the current SB (901), in addition to the samples that have been reconstructed in the current SB (901), (a) if the luminance position (64, 0) relative to the current SB (901) has not been reconstructed, e.g. Fig. 9B, the current block (933) may refer to reference samples in the upper right block 1 (e.g., a 64×64 block) and the lower right block 3 (e.g., a 64×64 block) of the left SB (902), and the search range of the current block (933) may include blocks 1, 3, 4, and block (963); (b) otherwise, if the luma sample located at the upper left corner of block 5 (e.g., (64, 0) relative to the current SB (901)) has been reconstructed, for example Fig. 9A As shown in state (3) in , the current block (933) can refer to the reference sample in the lower right block 3 (e.g., a 64×64 block) of the left SB (902), and the search range of the current block (933) may include blocks 3 to 5 and block (963).
[0135] 4. If the current block (934) falls into the lower right block 7 of the current SB (901), the current block (934) can only refer to the samples that have been reconstructed in the current SB (901), such as the samples that have been reconstructed in blocks 4 to 6 and block (964), and the search range of the current block (934) can include blocks 4 to 6 and block (964).
[0136] Fig.10 An example of an intra-frame template matching prediction (intra-frame TMP) mode according to an embodiment of the present disclosure is shown. In an embodiment, for example in ECM software, intra-frame TMP is a special intra-frame prediction mode in which the best prediction block (1021) can be copied from a reconstructed portion of a current frame (or current picture), in which a template (e.g., an L-shaped template) (1020) of the best prediction block (1021) can be matched with a current template (1010) of a current block (1011). Within a predetermined search range, the encoder can search for a template (1020) that is most similar to the current template (1010) in the reconstructed portion of the current frame, and use the corresponding block (1021) as a prediction block. The encoder can signal the use of the intra-frame TMP mode, and can perform the same prediction operation on the decoder side.
[0137] The prediction signal may be generated by matching a current template (1010), such as an L-type causal neighbor block of the current block (1011), with a template (e.g., (1020)) of another block (e.g., (1021)) in a predetermined search area. Fig.10 An exemplary search area in may include multiple CTUs (or SBs). Fig.10, the search area may include the current CTU R1 (eg, a portion of the current CTU R1), the upper left CTU R2, the upper CTU R3, and the left CTU R4. The cost function may include any suitable cost function, such as the Sum of Absolute Differences (SAD).
[0138] Within each region, the decoder can search for a template (e.g., (1020)) having a minimum cost (e.g., minimum SAD) relative to the current template (1010), and can use a block (e.g., (1021)) associated with the template having the minimum SAD as a prediction block.
[0139] The size of the region indicated by (SearchRange_w, SearchRange_h) can be set to be proportional to the block size (BlkW, BlkH) so that each pixel has a fixed number of SAD comparisons.
[0140] SearchRange_w=a*BlkW Formula (3)
[0141] SearchRange_h=a*BlkH Formula (4)
[0142] The parameter "a" may be a constant that controls the balance between gain and complexity. In the example, "a" is 5.
[0143] The intra template matching tool may be enabled for CUs with a certain size, such as a width and height size less than or equal to 64. The maximum CU size for the intra TMP mode may be configurable.
[0144] When decoder-side Intra Mode Derivation (DIMD) is not used for the current CU, the intra TMP mode may be signaled at the CU level, for example, through a dedicated flag.
[0145] The chroma IBC mode can be enabled in the context of a dual tree block structure. In an example, for example in VVC, when the coding tree type is a dual tree type, the IBC mode is only applicable to luma coding blocks, and chroma intra coding blocks can only use other intra prediction modes. In some examples, the above method can limit the coding efficiency of intra chroma coding blocks of a chroma separate tree (e.g., a chroma separate tree indicated by DUAL_TREE_CHORMA). In some examples, the chroma IBC mode can be enabled for the case of a chroma separate tree (e.g., performing the IBC mode on chroma blocks).
[0146] In video coding, such as in VVC, a combined inter prediction and intra prediction (CIIP) mode may be applied. When a CU is decoded in merge mode, if the CU includes at least 64 luma samples (e.g., the CU width multiplied by the CU height is equal to or greater than 64), and if both the CU width and the CU height are less than 128 luma samples, a flag (e.g., an additional flag) may be signaled to indicate whether the CIIP mode is applied to the CU (or the current CU). CIIP prediction or CIIP mode may combine an inter prediction signal with an intra prediction signal. Inter prediction signal P in CIIP mode 帧间 The intra prediction signal P in CIIP mode can be derived using the same inter prediction process applied to the normal merge mode. 帧内 It can be derived as in planar mode following the normal intra prediction process. The intra prediction signal is then combined with the inter prediction signal using a weighted average. Fig.11 The top neighboring block (or top adjacent block) (1191) and the left neighboring block (or left adjacent block) (1192) used in the CIIP weight derivation according to an embodiment of the present disclosure are shown. The weight (or weight value) (wt) can be calculated based on the decoding mode of the top neighboring block (1191) and the left neighboring block (1192) as follows:
[0147] - if the top neighboring block (1191) is available and is intra-coded, the parameter "IsIntraTop" is set to 1, otherwise "IsIntraTop" is set to 0;
[0148] - if the left neighboring block (1192) is available and is intra-coded, the parameter "Is Intra Left" is set to 1, otherwise "Is Intra Left" is set to 0;
[0149] - if (is_intra_left + is_intra_top) equals 2, the weight (wt) is set to 3;
[0150] - Otherwise, if (is_intra_left + is_intra_top) equals 1, wt is set to 2;
[0151] - Otherwise, set wt to 1.
[0152] The CIIP forecast can be formed as follows:
[0153] P CIIP =((4-wt)*P 帧间 +wt*P 帧间 +2)>>2 Formula (5)
[0154] In some examples (e.g., VVC), geometric partitioning mode (GPM) is supported for inter prediction. The geometric partitioning mode is signaled using a CU-level flag as a merge mode along with other merge modes, such as normal merge mode, MMVD mode, CIIP mode, sub-block merge mode, etc. In some examples, for each possible CU size w×h=2 m ×2 n , where m, n ∈ {3…6}, excluding 8×64 and 64×8, the geometric partitioning mode supports a total of 64 partitions.
[0155] In some examples, when the geometric partitioning mode is used, the CU is divided into two parts by a geometrically positioned straight line, which is also referred to as a partition line.
[0156] Fig.12 Examples of dividing lines of the geometric segmentation pattern in some examples are shown. The dividing lines are grouped by the same angle. Specifically, Fig.12 Each rectangle (1201) in represents a CU. Multiple parallel lines are shown in each rectangle. Multiple parallel lines correspond to dividing lines at the same angle. Fig.12 In the figure, three segmentation lines located at different positions in the block are shown for the same angle. The multiple segmentation lines have different offsets.
[0157] The position of the dividing line can be mathematically derived based on the angle and offset parameters of the specific partition. In the example, each part of the two geometric partitions obtained by the dividing line in the CU uses its own motion for inter-frame prediction; for each partition, only unidirectional prediction is allowed. Therefore, each part has a motion vector and a reference index. Unidirectional prediction motion constraints are applied to ensure that CUs in GPM mode can be decoded according to conventional bidirectional prediction, for example, two motion compensated predictions are performed for each CU.
[0158] In some examples, when a geometric partitioning mode is used for the current CU, a geometric partitioning index indicating the partitioning mode of the geometric partition (e.g., indicating an angle and an offset) and two merge indexes (one merge index for each partition) are also signaled. In some examples, the number of maximum GPM candidate sizes is explicitly signaled in the SPS (Sequence Parameter Set, SPS), and the syntax binarization is specified for the GPM merge index. After predicting each part of the geometric partition, the sample values along the edges of the geometric partitions are adjusted using a blending process using adaptive weights to obtain a prediction signal for the entire CU. Then, as in other prediction modes, transform and quantization processes can be applied to the entire CU. Finally, the motion field of the CU predicted using the geometric partitioning mode is stored.
[0159] Local Illumination Compensation (LIC) may be performed. In an embodiment, LIC or LIC mode is an inter-prediction technique to model the local illumination variation between a current block and a corresponding predicted block as a function of the illumination variation between a current block template and a reference block template. The parameters of the function (e.g., LIC function) may be represented by a ratio α and an offset β, which form a linear equation such as α*p[x]+β to compensate for illumination variation. p[x] may be a reference sample pointed to by an MV at position x on a reference image. Since α and β may be derived based on a previous block template and a reference block template, no signaling overhead is required for α and β, except for signaling a LIC flag for AMVP mode to indicate the use of LIC.
[0160] In an embodiment, local illumination compensation is used for unidirectional prediction between CUs, but with the following modifications. Inter-frame neighboring block samples can be used in the LIC parameter derivation process; LIC is disabled for blocks with less than 32 luma samples; For both non-subblock mode and affine mode, LIC parameter derivation can be performed based on the template block samples corresponding to the current CU instead of based on the local template block samples corresponding to the first upper left 16×16 unit; The samples of the reference block template are generated by motion compensation (MC) using the block MV without rounding it to integer pixel precision.
[0161] In video decoding, a combined intra block copy and intra prediction (IBC-CIIP) mode may be used. IBC-CIIP may be a decoding tool for a CU that uses an IBC mode and intra prediction to obtain two prediction signals (e.g., an IBC prediction signal P ibc and the intra-frame prediction signal P 帧内 ), and the two prediction signals can be weighted and summed to generate the final prediction (or final prediction signal) P. The following formula can be used for the IBC-CIIP mode.
[0162] P=(w ibc *P ibc +((1<<shift)-w ibc )*P 帧内 +(1<<(Shift-1)))>>Shift formula (6)
[0163] P ibc and P 帧内 It can represent (or indicate) an IBC prediction signal and an intra-frame prediction signal. For the IBC merge mode and the IBC AMVP mode, (w ibc , shift) is set equal to (13, 4) and (1, 1).
[0164] An intra prediction mode (IPM) candidate list may be used to generate an intra prediction signal, and the IPM candidate list size may be predefined as 2. An IPM index may be signaled to indicate which IPM to use.
[0165] Another IBC design is described below. In an embodiment, if the intra prediction mode is planar mode or DC mode, the final prediction can be obtained as equation (6), where P ibc and P 帧内 It can represent (or indicate) the IBC prediction signal and the intra prediction signal respectively. If both the upper CU and the left CU are intra-coded, (w ibc , shift) is set to be equal to (1, 2). If one of the upper CU and the left CU is intra-coded, (w ibc , shift) is set to (2, 2). If both the upper CU and the left CU are IBC decoded, then (w ibc , shift) is set to be equal to (3, 2). Otherwise (i.e., if intra prediction is a directional mode), the final prediction can be obtained by adaptively switching the prediction samples of intra mode and IBC mode. For the purpose of illustration, assuming that the size of the current CU is w×h and the intra mode is a horizontal mode or a vertical mode, if both the top and left neighboring CUs are intra-coded, the left 3 / 4w×h part (the intra mode is a horizontal mode) or the top w×3 / 4h part (the intra mode is a vertical mode) of the final prediction is set as an intra prediction signal; and if only one of the top and left CUs is intra-coded, the left 1 / 2w×h part (the intra mode is a horizontal mode) or the top w×1 / 2h part (the intra mode is a vertical mode) of the final prediction is set as an intra prediction signal; and if both the top and left CUs are IBC-coded or intra-coded, the left 1 / 4w×h part (the intra mode is a horizontal mode) or the top w×1 / 4h part (the intra mode is a vertical mode) of the final prediction is set as an intra prediction signal. In the above description, except for the intra prediction part, the other parts of the final prediction are set as IBC prediction samples.
[0166] Intra-block copy with geometric partitioning mode (IBC-GPM) is a decoding tool in video decoding. IBC-GPM can geometrically divide the CU into two sub-partitions. The prediction signals of the two sub-partitions can be generated using the IBC mode and intra-frame prediction, respectively. IBC-GPM can be applied to the conventional IBC merge mode or the IBC TM merge mode. The intra-frame prediction mode (IPM) candidate list can be constructed using the same method as the GPM with inter-frame prediction and intra-frame prediction for intra-frame prediction. For example, the IPM candidate list size is predefined as 3. In the example, there are a total of 48 geometric partitioning modes, and the set partitioning mode is divided into two sets of geometric figure partitioning modes, such as the first geometric partitioning mode set shown in Table 2 and the second geometric partitioning mode set shown in Table 3.
[0167] Table 2: Geometric partitioning modes in the first geometric partitioning mode set
[0168] ibc_gpm_segmentation_index 0 1 2 3 4 5 6 7 Angle Index 0 0 8 8 16 16 24 24 Distance Index 1 3 1 3 1 3 1 3
[0169] Table 3: Geometric partitioning modes in the second geometric partitioning mode set
[0170]
[0171]
[0172] When IBC-GPM mode is used, an IBC-GPM geometry partitioning mode set flag is signaled to indicate whether the first geometry partitioning mode set or the second geometry partitioning mode set is selected, followed by the geometry partitioning mode index. An IBC-GPM intra-frame flag may be signaled to indicate whether intra-frame prediction is used for the first sub-partition. When intra-frame prediction is used for sub-partitions, the intra-frame prediction mode index may be signaled. When IBC is used for sub-partitions, the merge index may be signaled.
[0173] Intra Block Copy with Local Illumination Compensation (IBC-LIC) mode is a coding tool that uses a linear equation to compensate for local illumination variations between a CU (e.g., a CU coded using IBC mode) and a corresponding prediction block within a picture. In addition to using block vectors to generate reference templates in IBC-LIC mode, the parameters of the linear equation can be derived in the same way as LIC for inter prediction.
[0174] In some examples, in the case of a separate tree such as a chroma separate tree (CST), the IBC mode is not applicable to chroma coding blocks. For luma coding blocks, the IBC mode can be used with other coding methods, such as CIIP mode, GPM, LIC mode, skip mode, etc. The coding information of the luma IBC block can also be used in chroma block prediction. The embodiments described in this disclosure, such as the following Figures 13 to 15 The implementation described in includes applying IBC-related modes for chroma coding blocks in the case of separate chroma trees. Figures 13 to 15 The embodiments described in provide an efficient method for applying IBC-related modes for chroma coded blocks in the case of chroma separate trees.
[0175] In some embodiments, when the chroma IBC mode is used for the CST case, for the chroma coding block, the corresponding luma samples may not be aligned with the same coding block size and the same position. For example, the corresponding luma samples are collocated with the chroma coding block and may include luma samples from multiple luma blocks.
[0176] In an embodiment, a region (or decoding region) (1102) in a picture being decoded (e.g., being reconstructed) or a current picture (1101) includes a luma decoding region (1120) and a chroma decoding region (1110). The chroma decoding region (1110) is juxtaposed with the luma decoding region (1120), for example, the chroma decoding region (1110) and the luma coding region (1120) correspond to the same physical region (1102) in the current picture (1101). The sizes (e.g., width and / or height) of the chroma decoding region (1110) and the luma decoding region (1120) may be associated by variables sub-width C and sub-height C, such as specified in Table 1. The variables sub-width C and sub-height C may depend on a chroma subsampling format (also referred to as a chroma format sampling structure or a chroma sampling format), such as 4:2:0, 4:2:2, etc., as specified in Table 1. Fig.13 In the example shown in , the chroma format sampling structure is 4:2:0, and the width and height of the chroma decoding area (1110) are 1 / 2 of the width and height of the luma decoding area (1120), respectively.
[0177] The coding tree type may be a dual tree type (also referred to as a dual tree block structure) or a chroma separate tree (e.g., dual_tree_chroma), such as a dual tree type or a chroma separate tree used in VVC. For a chroma separation tree, the luma coding region (1120) and the chroma coding region (1110) in region (1102) may be partitioned using two independent coding tree structures. In the example, the picture (1101) is an intra picture (I picture). The luma coding region (1120) and the chroma coding region (1110) may be partitioned using separate intra luma / chroma coding tree structures.
[0178] Any suitable decoding tree structure may be used to partition the luma decoding region (1120). Any suitable decoding tree structure may be used to partition the chroma decoding region (1110). Fig.13In the example shown in , the chroma decoding area (1110) is divided into chroma blocks (1111) to (1112) by, for example, a binary tree. The chroma block (1111) is to be decoded (e.g., encoded or reconstructed) and can be referred to as a current chroma block. In the example, the chroma block (1112) is to be decoded after the current chroma block (1111) is decoded. Fig.13 In the example shown in , the luma decoding area (1120) is divided into luma blocks (1121) to (1129) by, for example, quadtree division, binary tree, etc. For example, the luma decoding area (1120) is divided into 4 blocks using quadtree division. The upper left block of the luma decoding area (1120) is further divided into luma blocks (1121) to (1122) using a binary tree. The upper right block of the luma decoding area (1120) is further divided into luma blocks (1127) to (1128) using a binary tree. The lower left block of the luma decoding area (1120) is further divided into luma blocks (1123) to (1126) using quadtree division. The lower right block of the luma decoding area (1120) is not divided and is a luma block (1129).
[0179] In an embodiment, the region (1102) may be a current CTU being decoded (e.g., being reconstructed) in the picture (1101), the luma coding region (1120) is a luma coding tree block (CTB) in the current CTU (1102), and the chroma coding region (1110) is a chroma CTB in the current CTU (1102). The luma CTB and the chroma CTB may be partitioned using separate coding tree structures (e.g., two separate coding tree structures) such as those described above.
[0180] In an embodiment, the current CTU being decoded (e.g., being reconstructed) in the picture (1101) may be partitioned into decoding units, such as four decoding units, using quadtree partitioning. The region (1102) may be a decoding unit among the four decoding units. The luma decoding region (1120) and the chroma decoding region (1110) in the decoding unit (or region (1102)) may be partitioned using separate decoding tree structures, such as those described above.
[0181] When CST is used, the current chroma block (1111) may be collocated with one or more luma blocks in the luma coding region (1120). The number of luma blocks collocated with the current chroma block (1111) may depend on the coding tree structure used for the partition region (1102). Fig.13, the current chroma block (1111) may be collocated with the luma blocks (1121) to (1126). The luma region (1141) in the luma decoding area (1120) includes the luma blocks (1121) to (1126) and is collocated with the current chroma block (1111). The collocated luma samples of the current chroma block (1111) may include the luma samples in the luma region (1141) (or the luma samples in the luma blocks (1121) to (1126)).
[0182] In an embodiment, luma samples in the luma coding area (1120) have been decoded (eg, reconstructed) before the current chroma block (1111) is decoded.
[0183] In one aspect, the chroma predictor is derived in the case of a separate tree for chroma, for example, using the block vector directly and deriving the coding information from the co-located luma block.
[0184] In an example, the chroma predictor may be derived in a chroma separate tree case. The block vector and coding information derived from the luma block (eg, luma region (1141)) located at the same position may be utilized (eg, directly utilized).
[0185] Reference Fig.13 In the case of CST, a chroma predictor may be derived including, for example, prediction samples in a reference chroma block (1131) in a picture (1101) for predicting a current chroma block (1111). The reference chroma block (1131) in the picture (1101) may be indicated by a chroma block vector (BV) (1113) of the current chroma block (1111). At least one of (i) one or more BVs and (ii) coding information derived from a luma region (1141) collocated with the current chroma block (1111) may be used to derive the chroma BV (1113) and / or determine how to decode the current chroma block (1111). One or more predefined positions may be used, such as an upper left position (TL), an upper right position (TR), a lower left position (BL), a lower right position (BR), and a center position (C) of the luma region (1141). Each position (e.g., TL) is associated with a luma block that is coded using a specific coding mode, such as an IBC-related mode or a combination of an IBC-related mode and another coding mode. An IBC mode may refer to an IBC merge mode or an IBC AMVP mode. An IBC-related mode may refer to an IBC mode, an intra TMP mode, or a mode that predicts a block based on another block in the same picture indicated by the BV of the block. Fig.13 , positions TL, TR, BL, BR, and C are associated with luma blocks (1121), (1122), (1125), (1126), and (1124), respectively. In some examples, multiple positions may be associated with the same luma block.
[0186] According to an embodiment of the present disclosure, a chroma prediction mode (also referred to as a chroma decoding mode) of a current chroma block (1111) may be derived based on luma decoding information of a first luma block. The first luma block may be associated with a first position in a reconstructed luma region (1141) that is collocated with the current chroma block (1111). For example, the first position is TL, and the first luma block is a luma block (1121). The first luma block (1121) may include a first luma sample at the first position TL. The luma decoding information may indicate that the first luma block (1121) is decoded using a combination of the following two modes: (i) a first decoding mode, i.e., an IBC-related mode (e.g., an IBC mode, an intra-frame TMP mode, or a decoding mode that predicts the first luma block (1121) using a block vector that indicates a reference luma block in the same picture as the first luma block (1121); and (ii) a second decoding mode. The second decoding mode may be different from the first decoding mode. In one example, the second coding mode is one of an intra prediction mode (e.g., an intra prediction mode different from an IBC-related mode), an LIC mode, or a SKIP mode. The intra prediction mode as the second decoding mode may be a plane mode (e.g., intra_plane), a DC mode (e.g., intra_DC), an angle mode, etc.
[0187] For example, the first luminance block (1121) may be decoded using an IBC-CIIP mode (e.g., a combination of an IBC-related mode and an intra-prediction mode), an IBC-GPM mode (e.g., a combination of an IBC-related mode and an intra-prediction mode having a first luminance block (1121) geometrically partitioned), an IBC-LIC mode (e.g., a combination of an IBC-related mode and an LIC mode), or an IBC-SKIP mode (e.g., a combination of an IBC-related mode and a SKIP mode).
[0188] The chroma BV (1113) of the current chroma block (1111) may be derived based on one or more BVs associated with corresponding predefined positions (e.g., TL, TR, BL, BR, and / or C) in the luma region (1141). The chroma BV (1113) of the current chroma block (1111) may be derived based on a first luma BV (1114) of a first luma block (1121) associated with the predefined position TL. The first luma BV (1114) indicates a reference luma block (1151) of the first luma block (1121).
[0189] In an example, a plurality of luma BVs associated with corresponding predefined positions (e.g., TL, TR, BL, BR, and / or C) in the luma region (1141) are used to derive a chroma BV (1113). For example, the chroma BV (1113) is derived based on a first luma BV (1114) of a first luma block (1121) and a second luma BV of a second luma block. The second luma block may be associated with a second position in the reconstructed luma region (1141). For example, the second position may be one of TR, BL, BR, and C. If the second position is C, the second luma block is the luma block (1124).
[0190] The current chrominance block (1111) may be reconstructed based on a chrominance decoding mode, for example, the chrominance decoding mode is a combination of a first decoding mode and a second decoding mode used to decode the first luminance block (1121).
[0191] In one embodiment, one or more predefined positions of the luma block at the same position are used to derive the block vector (e.g., (1113)) of the chroma block (e.g., (1111)), such as the top left corner (e.g., Fig.13 TL in), upper right corner (e.g. Fig.13 TR in), lower left corner (for example, Fig.13 BL in the middle), the lower right corner (e.g. Fig.13 BR in ) and the center position (e.g., Fig.13 C).
[0192] In one embodiment, if the current location (e.g. Fig.13 TL in the prediction unit (e.g., Fig.13 If (1121)) in (1121) is a mode (e.g., IBC mode, intra-frame TMP mode) containing a valid block vector (e.g., (1114)), the block vector can be derived from this position. Fig.13 , the luma block (1121) at the first position TL is decoded using an IBC-related mode (e.g., IBC mode, intra-frame TMP mode, etc.). The first luma BV (1114) of the luma block (1121) is valid, for example, the reference luma block (1151) is in a reference range (e.g., reference area, search range, search area, local reference range, etc.) of the first luma block (1121), for example Figures 4 to 8 , Fig. 9A , Fig. 9B and Fig.10 In an example, the second luma block (eg, (1124)) is coded with a valid BV in an IBC-related mode (eg, IBC mode or intra TMP mode).
[0193] In an embodiment, the mode may be signaled as an intra prediction mode or an IBC mode. In an example, the bitstream includes intra prediction mode information or IBC mode information indicating that: (i) the chroma prediction mode of the current chroma block (1111) is derived from the luma decoding information of the first luma block (1121), or (ii) the chroma BV (1113) is derived from the first luma BV (1114) of the first luma block (1121).
[0194] In one embodiment, the luma BV is scaled based on the chroma subsampling format of the video to derive the chroma BV. The chroma BV (1113) can be derived by scaling the first luma BV (1114) using a scaling factor that depends on the chroma subsampling format. In an example, when multiple luma BVs are used to derive the chroma BV (1113), the chroma BV (1113) can be derived based on a weighted average of the multiple luma BVs. In an example, if the chroma subsampling format is 4:2:2, the scaling factor includes a horizontal scaling factor and a vertical scaling factor of 2 and 1, respectively. In an example, if the chroma subsampling format is 4:4:4, the horizontal scaling factor and the vertical scaling factor are 1 and 1, respectively.
[0195] In one embodiment, if the luma block located at the same position used to derive the current BV is decoded using the IBC mode, some decoding information of the luma block can be applied to chroma prediction. For example, the disclosed method can determine that the first luma block associated with the first position in the reconstructed luma area that is juxtaposed with the current chroma block is predicted using a block vector (BV) at least through a first decoding mode. Here, the first decoding mode may include one of (i) an intra-frame block copy (IBC) mode and (ii) an intra-frame template matching prediction (intra-frame TMP) mode. In addition, the disclosed method can derive the chroma prediction mode of the current chroma block in the chroma decoding area based on the luma decoding information of the first luma block. Specifically, the luma decoding information may indicate a combination of (i) a first decoding mode and (ii) a second decoding mode. Then, the disclosed method can derive the chroma block vector (BV) of the current chroma block based on the first luma BV of the first luma block.
[0196] In an example, if a co-located luma block is coded in IBC-CIIP mode, a combination method of IBC-CIIP and intra mode may be derived from the block (eg, the co-located luma block) and used to generate a chroma predictor.
[0197] Reference Fig.13In an embodiment, the first decoding mode is an IBC-related mode (e.g., IBC mode or intra-frame TMP mode), the second decoding mode is an intra-frame prediction mode (e.g., angle mode), and the first luma block (1121) is decoded using the IBC-CIIP mode. The current chroma block (1111) can be decoded using the same decoding mode used by the first luma block (1121), and therefore the current chroma block is decoded using the IBC-CIIP mode. For example, the current chroma block (1111) is decoded using the same IBC-related mode (e.g., IBC mode, intra-frame TMP mode, etc.) used by the first chroma block (1121) and the same intra-frame prediction mode used by the first chroma block (1121). The first prediction (also referred to as the first prediction signal) of the current chroma block (1111) can be determined using the same IBC-related mode and the chroma BV (1113). A second prediction (also referred to as a second prediction signal) of the current chroma block (1111) may be determined using the same intra prediction mode. A chroma prediction (also referred to as a final prediction signal) of the current chroma block (1111) may be determined based on a weighted sum of the first prediction and the second prediction, such as described in the present disclosure (e.g., using Equation 6). The current chroma block (1111) may be reconstructed based on the chroma prediction and optionally based on the residual signal.
[0198] In an example, if a co-located luma block is coded in IBC-GPM mode, the GPM partitioning and intra mode may be derived from the block (eg, the co-located luma block) and used to generate a chroma predictor.
[0199] Reference Fig.13 In an embodiment, the first decoding mode is an IBC mode or an intra-frame TMP mode, the second decoding mode is an intra-frame prediction mode, and the first luminance block is decoded using IBC-GPM. The current chroma block (1111) can be divided into a first sub-partition and a second sub-partition using the GPM mode. A first prediction (also referred to as a first prediction signal) of the first sub-partition of the current chroma block (1111) can be determined using the IBC mode or the intra-frame TMP mode and the chroma BV. A second prediction (also referred to as a second prediction signal) of the second sub-partition of the current chroma block can be determined using the intra-frame prediction mode. The current chroma block (1111) can be reconstructed based on the first prediction, the second prediction, and an optional residual signal.
[0200] In an example, if the luma block at the same location is decoded in IBC-LIC mode, the reference block of the chroma block is determined based on the current BV. The LIC parameters are calculated based on the template of the current chroma block and the reference block of the current chroma block. The LIC is then used to generate the chroma predictor.
[0201] Reference Fig.13 In an embodiment, the first decoding mode is an IBC mode or an intra-frame TMP mode, the second decoding mode is an LIC mode, and the first luma block (1121) is decoded using the IBC-LIC mode. The current chroma block (1111) may be decoded based on the same IBC-LIC mode, which includes the same first decoding mode and the same LIC mode used by the first luma block (1121). An initial prediction (also referred to as an initial prediction signal) of the current chroma block (1111) may be determined using the IBC mode or the intra-frame TMP mode and the chroma BV (1113). The initial prediction signal may come from a reference chroma block (1131) indicated by the chroma BV (1113). LIC parameters of the current chroma block (1111) (e.g., a ratio α and an offset β used in the LIC function described in the present disclosure) may be determined based on a current template (1160) of the current chroma block (1111) and a reference template (1170) of the reference chroma block (1131). The current template (1160) (e.g., having an "L" shape) may include N rows and / or M columns of adjacent chroma samples adjacent to the current chroma block (1111). The reference template (1170) (e.g., having an "L" shape) may include N rows and / or M columns of adjacent chroma samples adjacent to the reference chroma block (1131). The prediction (also referred to as a prediction signal) may be determined based on an initial prediction and LIC parameters using a LIC mode. For example, a ratio α and an offset β are obtained, and the prediction signal may be equal to α*p[x]+β, where p[x] indicates the initial prediction signal. The current chroma block (1111) may be reconstructed based on the prediction and, optionally, the residual signal.
[0202] In an example, if the luma block located at the same position is decoded in the IBC-SKIP mode, the steps of residual decoding, inverse transform and inverse quantization of the current chroma block are skipped.
[0203] Reference Fig.13 In an embodiment, the first decoding mode is an IBC mode or an intra-frame TMP mode, the second decoding mode is a SKIP mode, and the first luma block (1121) is decoded using the IBC-SKIP mode. A prediction (also referred to as a prediction signal) of a current chroma block (1111) may be determined using the IBC mode or the intra-frame TMP mode and the chroma BV (1113). The current chroma block (1111) may be reconstructed (e.g., directly reconstructed) based on the prediction using the SKIP mode and without a residual signal.
[0204] In an example, the coding information in the bitstream includes a flag (e.g., sps_qtbtt_dual_tree_intra_flag) indicating that two separate coding tree structures are used to partition the luma coding region (1120) and the chroma coding region (1110). The flag may be signaled at any suitable level, such as a sequence level in a sequence parameter set (SPS). In an example, the flag sps_qtbtt_dual_tree_intra_flag equal to 1 specifies that, for I slices, each CTU is partitioned into coding units having 64×64 luma samples using implicit quadtree partitioning, and these coding units are roots of two separate coding tree syntax structures for luma components and chroma components. The flag sps_qtbtt_dual_tree_intra_flag equal to 0 specifies that separate coding_tree syntax structures are not used for I slices. When sps_qtbtt_dual_tree_intra_flag is not present, it is inferred to be equal to 0.
[0205] Fig.14 A flow chart outlining a process (1400) according to an embodiment of the present disclosure is shown. The process (1400) may be used in a video decoder. In various embodiments, the process (1400) is performed by a processing circuit system, such as a processing circuit system that performs the functions of a video decoder (110), a processing circuit system that performs the functions of a video decoder (210), etc. In some embodiments, the process (1400) is implemented as software instructions, so when the processing circuit system executes the software instructions, the processing circuit system performs the process (1400). The process (1400) starts at (S1401) and proceeds to (S1410).
[0206] At (S1410), a bitstream of a current region in a picture may be received. The current region includes a luma decoding region and a chroma decoding region. Decoding information in the bitstream indicates that the luma decoding region and the chroma decoding region are segmented using separate decoding tree structures.
[0207] In an example, the current region is a current coding tree unit (CTU), the luma coding region is a luma coding tree block (CTB) in the current CTU, and the chroma coding region is a chroma CTB in the current CTU.
[0208] In an example, a current CTU in a picture is divided into four coding units using quadtree partitioning, and the current region is a coding unit of the four coding units.
[0209] In an example, the bitstream includes intra prediction mode information or IBC mode information indicating that: (i) the chroma prediction mode of the current chroma block is derived from the luma coding information of the first luma block, or (ii) the chroma BV is derived from the first luma BV of the first luma block.
[0210] At (S1420), a chroma prediction mode (or chroma decoding mode) of a current chroma block in a chroma decoding area may be derived based on the luminance decoding information of the first luminance block. The first luminance block is associated with a first position in the reconstructed luminance area that is juxtaposed with the current chroma block. The luminance decoding information indicates that the first luminance block is decoded using at least a first luminance BV using a first decoding mode. In an example, the luminance decoding information indicates that the first luminance block is decoded using a combination of the following two modes: (i) a first decoding mode including one of an intra block copy (IBC) mode or an intra template matching prediction (intra TMP) mode; and (ii) a second decoding mode. The second decoding mode may include one of an intra prediction mode, a local illumination compensation (LIC) mode, or a SKIP mode. The reconstructed luminance area is located within the luminance decoding area.
[0211] In an example, if the luma block at the same position used to derive the current BV is decoded using the IBC mode, some decoding information of the luma block can also be applied to chroma prediction. In an example, the first luma block is decoded using the valid BV in the IBC mode or the intra-frame TMP mode. For example, the first luma BV is valid.
[0212] At (S1430), a chroma block vector (BV) of the current chroma block may be derived based on a first luma BV of the first luma block.
[0213] In an example, a chroma predictor is derived in the case of a chroma separate tree, a block vector and coding information are derived from a co-located luma block.
[0214] In an example, the chroma BV is derived by scaling the first luma BV with a scaling factor that depends on the chroma subsampling format.
[0215] In an example, the chroma BV is derived based on a first luma BV of a first luma block and at least one other luma BV (e.g., such as a second luma BV of a second luma block), e.g., using a weighted average. The second luma block is associated with a second position in the reconstructed luma region that is collocated with the current chroma block.
[0216] For example, in the IBC mode or the intra TMP mode, the second luma block is decoded using a valid BV. For example, the second luma BV is valid.
[0217] At (S1440), the current chroma block is reconstructed based on a chroma decoding mode that is a combination of a first decoding mode and a second decoding mode used to decode the first luma block.
[0218] In an example, the first decoding mode is an IBC mode or an intra-frame TMP mode, the second decoding mode is an intra-frame prediction mode, and the first luminance block is decoded using the IBC-CIIP mode. The first prediction (or first prediction signal) of the current chrominance block can be determined using the IBC mode or the intra-frame TMP mode and the chrominance BV. The second prediction (or second prediction signal) of the current chrominance block can be determined using the intra-frame prediction mode. The chrominance predictor (also referred to as the chrominance prediction or final prediction signal) of the current chrominance block can be determined based on the weighted sum of the first prediction and the second prediction. The current chrominance block can be reconstructed based on the chrominance prediction.
[0219] In an example, the first decoding mode is an IBC mode or an intra-frame TMP mode, the second decoding mode is an intra-frame prediction mode, and the first luminance block is decoded using IBC-GPM. A first prediction (or a first prediction signal) for a first sub-partition of a current chroma block can be determined using the IBC mode or the intra-frame TMP mode and the chroma BV. The current chroma block is divided into a first sub-partition and a second sub-partition using the GPM mode. A second prediction (or a second prediction signal) for a second sub-partition of the current chroma block can be determined using the intra-frame prediction mode. The current chroma block is reconstructed based on the first prediction and the second prediction.
[0220] In an example, the first decoding mode is an IBC mode or an intra-frame TMP mode, the second decoding mode is an LIC mode, and the first luminance block is decoded using the IBC-LIC mode. An initial prediction (or initial prediction signal) may be determined using the IBC mode or the intra-frame TMP mode and the chrominance BV. The initial prediction is from a reference chrominance block indicated by the chrominance BV. The LIC parameters of the current chrominance block may be determined based on a current template of the current chrominance block and a reference template of a reference chrominance block. A prediction (also referred to as a predictor or prediction signal) may be determined using the LIC mode based on the initial prediction and the LIC parameters. The current chrominance block may be reconstructed based on the prediction.
[0221] In an example, the first decoding mode is an IBC mode or an intra-frame TMP mode, the second decoding mode is a SKIP mode, and the first chroma block is decoded using the IBC-SKIP mode. A predictor (also referred to as a prediction or prediction signal) can be determined using the IBC mode or the intra-frame TMP mode and the chroma BV. The current chroma block can be reconstructed based on the prediction using the SKIP mode and without a residual signal.
[0222] Then, the process proceeds to (S1499) and terminates.
[0223] The process (1400) may be adjusted appropriately. Steps in the process (1400) may be modified and / or omitted. Additional steps may be added. Any suitable implementation order may be used. In an example, before deriving a chroma prediction mode for a current chroma block, a first luma block associated with a first position in the reconstructed chroma region is predicted using at least a first luma BV using a first decoding mode.
[0224] Fig.15 A flow chart outlining a process (1500) according to an embodiment of the present disclosure is shown. The process (1500) may be used in a video encoder. In various embodiments, the process (1500) is performed by a processing circuit system, such as a processing circuit system that performs the functions of a video encoder (103), a processing circuit system that performs the functions of a video encoder (303), etc. In some embodiments, the process (1500) is implemented as software instructions, so when the processing circuit system executes the software instructions, the processing circuit system performs the process (1500). The process starts at (S1501) and proceeds to (S1510).
[0225] At (S1510), a chroma decoding mode of a current chroma block in a chroma decoding area may be derived based on the luminance decoding information of the first luminance block. The first luminance block is associated with a first position in a reconstructed luminance area that is juxtaposed with the current chroma block. The luminance decoding information indicates that the first luminance block is decoded using a combination of the following two decoding modes: (i) a first decoding mode, i.e., an intra-block copy (IBC) mode or an intra-template matching prediction (intra-TMP) mode; and (ii) a second decoding mode. In the example, the second decoding mode is one of an intra-prediction mode, a local illumination compensation (LIC) mode, or a SKIP mode. The current area in the picture includes a luminance decoding area and a chroma decoding area partitioned using separate decoding tree structures. The reconstructed luminance area is located within the luminance decoding area. The luminance decoding area is juxtaposed with the chroma decoding area.
[0226] In an example, the current region is a current coding tree unit (CTU), the luma coding region is a luma coding tree block (CTB) in the current CTU, and the chroma coding region is a chroma CTB in the current CTU.
[0227] In an example, a current CTU in a picture is divided into four coding units using quadtree partitioning, and the current region is a coding unit of the four coding units.
[0228] In an example, the first luma block is coded with a valid BV in IBC mode or intra TMP mode. For example, the first luma BV is valid.
[0229] At (S1520), a chroma BV of the current chroma block is derived based on a first luma BV of the first luma block.
[0230] In an example, the chroma BV is derived by scaling the first luma BV with a scaling factor that depends on the chroma subsampling format.
[0231] In an example, the chroma BV is derived based on a first luma BV of a first luma block and at least one other luma BV (e.g., such as a second luma BV of a second luma block), e.g., using a weighted average. The second luma block is associated with a second position in the reconstructed luma region that is collocated with the current chroma block.
[0232] For example, in the IBC mode or the intra TMP mode, the second luma block is decoded using a valid BV. For example, the second luma BV is valid.
[0233] At (S1530), the current chroma block may be encoded based on a chroma decoding mode that is a combination of a first decoding mode and a second decoding mode used to decode the first luma block.
[0234] In an example, the first decoding mode is an IBC mode or an intra TMP mode, the second decoding mode is an intra prediction mode, and the first luminance block is decoded using the IBC-CIIP mode. The first prediction of the current chrominance block can be determined using the IBC mode or the intra TMP mode and the chrominance BV. The second prediction of the current chrominance block can be determined using the intra prediction mode. The chrominance prediction (or chrominance predictor) can be determined based on a weighted sum of the first prediction and the second prediction. The current chrominance block can be decoded based on the chrominance prediction.
[0235] In an example, the first decoding mode is IBC mode or intra TMP mode, the second decoding mode is intra prediction mode, and the first luminance block is decoded using IBC-GPM. The first sub-partition of the current chroma block can be encoded using IBC mode or intra TMP mode and chroma BV. The current chroma block is divided into a first sub-partition and a second sub-partition using GPM mode. The second sub-partition of the current chroma block can be encoded using intra prediction mode.
[0236] In an example, the first decoding mode is an IBC mode or an intra-frame TMP mode, the second decoding mode is an LIC mode, and the first luminance block is decoded using the IBC-LIC mode. An initial prediction may be determined using the IBC mode or the intra-frame TMP mode and the chrominance BV. The initial prediction is from a reference chrominance block indicated by the chrominance BV. LIC parameters of a current chrominance block may be determined based on a current template of the current chrominance block and a reference template of a reference chrominance block. The prediction is determined using the LIC mode based on the initial prediction and the LIC parameters. The current chrominance block may be encoded based on the prediction.
[0237] In an example, the first decoding mode is an IBC mode or an intra-frame TMP mode, the second decoding mode is a SKIP mode, and the first luminance block is decoded using the IBC-SKIP mode. The current chrominance block can be encoded using the IBC mode or the intra-frame TMP mode and the SKIP mode. No residual signal is generated for the current chrominance block.
[0238] In an example, intra prediction mode information or IBC mode information indicating the following information is encoded and included in the bitstream: (i) the chroma decoding mode of the current chroma block is derived from the luma decoding information of the first luma block; or (ii) the chroma BV is derived from the luma BV of the first luma block. The intra prediction mode information indicates prediction information of the intra prediction mode. The IBC mode information indicates prediction information of the IBC mode.
[0239] In an example, coding information indicating that the luma coding region and the chroma coding region are partitioned using separate coding tree structures is encoded and included in a bitstream.
[0240] Then, the process proceeds to (S1599) and terminates.
[0241] The process (1500) may be adjusted appropriately. Steps in the process (1500) may be modified and / or omitted. Additional steps may be added. Any suitable order of implementation may be used.
[0242] The embodiments in the present disclosure may be used individually or in combination in any order. In addition, each of the method (or embodiment), encoder and decoder may be implemented by a processing circuit system (e.g., one or more processors or one or more integrated circuits). In one example, one or more processors execute a program stored in a non-transitory computer readable medium.
[0243] The term "IBC" mode may be used to refer to any IBC-related mode, such as an IBC mode (e.g., IBC merge mode or IBC AMVP mode), intra TMP mode, intra BC mode, or another mode that predicts a coded block in a picture based on a BV pointing to a reference block in the same picture.
[0244] The techniques described above may be implemented as computer software using computer-readable instructions and physically stored in one or more computer-readable media. Fig.16 A computer system (1600) suitable for implementing certain embodiments of the disclosed subject matter is shown.
[0245] Computer software may be encoded using any suitable machine code or computer language, which may be subjected to mechanisms such as assembly, compilation, linking, etc. to create code comprising instructions that may be executed directly by one or more computer central processing units (CPUs), graphics processing units (GPUs), etc., or through interpretation, microcode execution, etc.
[0246] The instructions may be executed on various types of computers or components thereof, including, for example, personal computers, tablet computers, servers, smart phones, gaming devices, Internet of Things devices, and the like.
[0247] Fig.16 The components for the computer system (1600) shown in the example are exemplary in nature and are not intended to suggest any limitation on the scope of use or functionality of computer software implementing embodiments of the present disclosure. Neither should the configuration of components be interpreted as having any dependency or requirement relating to any one component or combination of components shown in the exemplary embodiment of the computer system (1600).
[0248] The computer system (1600) may include certain human-machine interface input devices. Such human-machine interface input devices may respond to input by one or more human users through, for example, tactile input (e.g., keystrokes, swipes, data glove movements), audio input (e.g., voice, tapping), visual input (e.g., gestures), olfactory input (not depicted). The human-machine interface device may also be used to capture specific media that is not necessarily directly related to human conscious input, such as audio (e.g., voice, music, ambient sound), images (e.g., scanned images, photographic images obtained from a still image camera), and video (e.g., two-dimensional video, three-dimensional video including stereoscopic video).
[0249] Input human-machine interface devices may include one or more of the following (only one of each is depicted): keyboard (1601), mouse (1602), touchpad (1603), touch screen (1610), data gloves (not shown), joystick (1605), microphone (1606), scanner (1607), camera (1608).
[0250] The computer system (1600) may also include certain human-machine interface output devices. Such human-machine interface output devices may stimulate one or more senses of a human user through, for example, tactile output, sound, light, and smell / taste. Such human-machine interface output devices may include: tactile output devices (e.g., tactile feedback through a touch screen (1610), a data glove (not shown), or a joystick (1605), but there may also be tactile feedback devices that are not used as input devices); audio output devices (e.g., speakers (1609), headphones (not depicted)); visual output devices (e.g., screens (1610), 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 the screens may be able to output two-dimensional visual output or more than three-dimensional output through means such as stereo output; virtual reality glasses (not depicted); holographic displays and smoke generators (not depicted)); and printers (not depicted).
[0251] The computer system (1600) may also include human-accessible storage devices and their associated media, such as optical media including CD / DVD ROM (Read-only Memory, ROM) / RW (1620) with CD / DVD and other media (1621), thumb drives (1622), removable hard disk drives or solid-state drives (1623), traditional magnetic media such as magnetic tapes and floppy disks (not depicted), dedicated ROM / ASIC (Application Specific Integrated Circuit, ASIC) / PLD (Programable Logic Device, PLD)-based devices such as security dongles (not depicted), etc.
[0252] 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 include transmission media, carrier waves, or other transient signals.
[0253] The computer system (1600) may also include an interface (1654) to one or more communication networks (1655). The network may be, for example, a wireless network, a wired network, an optical network. The network may also be local, wide, metropolitan, vehicular and industrial, real-time, delay-tolerant, etc. Examples of networks include: local area networks such as Ethernet, wireless LAN (Local Area Network, LAN); cellular networks including GSM (Global System for Mobile Communication, GSM), 3G (Third Generation, 3G), 4G (Fourth Generation, 4G), 5G (Fifth Generation, 5G), LTE (Long Term Evolution, LTE), etc.; TV wired or wireless wide area digital networks including cable TV, satellite TV and terrestrial broadcast TV; vehicle-mounted and industrial networks including CAN (Controller Area Network, CAN) bus, etc. Some networks typically require an external network interface adapter attached to some general data port or peripheral bus (1649) (such as, for example, a USB port of the computer system (1600)); other networks are typically integrated into the core of the computer system (1600) by attaching to the system bus (e.g., an Ethernet interface to a PC computer system or a cellular network interface to a smart phone computer system) as described below. The computer system (1600) can communicate with other entities by using any of these networks. Such communications can be one-way receive-only (e.g., broadcast TV), one-way send-only (e.g., a CAN bus to certain CAN bus devices), or two-way, for example, to other computer systems using a local area digital network or a wide area digital network. Specific protocols and protocol stacks can be used on each of these networks and network interfaces as described above.
[0254] The above-mentioned human-machine interface device, human-accessible storage device, and network interface may be attached to the core ( 1640 ) of the computer system ( 1600 ).
[0255] The core (1640) may include one or more central processing units (CPUs) (1641), graphics processing units (GPUs) (1642), dedicated programmable processing units in the form of field programmable gate arrays (FPGAs) (1643), hardware accelerators for certain tasks (1644), graphics adapters (1650), etc. These devices, along with read-only memory (ROM) (1645), random access memory (1646), internal mass storage devices such as internal non-user accessible hard drives, SSDs (Solid-State Drives, SSDs), etc. (1647) may be connected via a system bus (1648). In some computer systems, the system bus (1648) may be accessed in the form of one or more physical plugs to enable expansion by additional CPUs, GPUs, etc. Peripheral devices may be attached directly to the core's system bus (1648) or to the core's system bus (1648) via a peripheral bus (1649). In an example, a screen (1610) may be connected to a graphics adapter (1650). The architecture of the peripheral bus includes PCI (Peripheral Component Interconnect / Interface, PCI), USB (Universal Serial Bus, USB), etc.
[0256] The CPU (1641), GPU (1642), FPGA (1643) and accelerator (1644) can execute certain instructions, which can be combined to form the aforementioned computer code. The computer code can be stored in ROM (1645) or RAM (1646). Transient data can also be stored in RAM (1646), while permanent data can be stored in, for example, an internal mass storage device (1647). Fast storage and retrieval of any of the memory devices can be achieved by using a cache memory, which can be closely associated with one or more CPUs (1641), GPUs (1642), mass storage devices (1647), ROMs (1645), RAMs (1646), etc.
[0257] The computer readable medium may have computer code thereon for performing various computer-implemented operations. The medium and computer code may be those specially designed and constructed for the purposes of the present disclosure, or the medium and computer code may be of a type well known and available to those skilled in the art of computer software.
[0258] As an example and not limitation, a computer system (1600) having an architecture, and in particular a core (1640), can provide functionality provided by (one or more) processors (including CPUs, GPUs, FPGAs, accelerators, etc.) executing software embodied in one or more tangible computer-readable media. Such computer-readable media can be media associated with a user-accessible mass storage device as described above, as well as certain storage devices of the core (1640) having non-transitory properties, such as a mass storage device (1647) or ROM (1645) internal to the core. Software implementing various embodiments of the present disclosure can be stored in such a device and executed by the core (1640). Depending on specific needs, the computer-readable medium may include one or more memory devices or chips. The software can cause the core (1640) and in particular the processors therein (including CPUs, GPUs, FPGAs, etc.) to perform specific processing or specific parts of specific processing described herein, including defining data structures stored in RAM (1646) and modifying such data structures according to processing defined by the software. Additionally or alternatively, the computer system may provide functionality as a result of logic hardwired or otherwise embodied in circuitry (e.g., accelerator (1644)) that may operate in place of or in conjunction with software to perform a particular process or a particular portion of a particular process described herein. Where appropriate, reference to software may encompass logic, and conversely, reference to logic may encompass software. Where appropriate, reference to a computer-readable medium may encompass circuitry (e.g., an integrated circuit (IC)) storing software for execution, circuitry implementing logic for execution, or both. The present disclosure encompasses any suitable combination of hardware and software.
[0259] The use of "at least one" or "one of" in this disclosure is intended to include any one or combination of the listed elements. For example, reference to at least one of A, B, or C, at least one of A, B, and C, at least one of A, B, and / or C, and at least one of A through C is intended to include only A, only B, only C, or any combination thereof. Reference to one of A or B and one of A and B is intended to include A or B or (A and B). The use of "one of" does not exclude any combination of the listed elements where applicable, such as when the elements are not mutually exclusive.
[0260] Although the present disclosure has described several exemplary embodiments, there are changes, permutations, and various substitute equivalents that fall within the scope of the present disclosure. Therefore, it should be recognized that those skilled in the art will be able to conceive of many systems and methods that, although not explicitly shown or described herein, embody the principles of the present disclosure and are therefore within the spirit and scope of the present disclosure.
Claims
1. A method for video decoding, comprising: Receiving a bit stream of a current region in a picture, the current region comprising a luma decoding region and a chroma decoding region, wherein decoding information in the bit stream indicates that the luma decoding region and the chroma decoding region are segmented using separate decoding tree structures; determining that a first luma block associated with a first position in the reconstructed luma region collocated with the current chroma block is predicted by a first decoding mode using at least a first luma block vector (BV), the first decoding mode comprising one of: (i) an intra block copy (IBC) mode and (ii) an intra template matching prediction (intra TMP) mode; deriving a chroma prediction mode for the current chroma block in the chroma decoding area based on luma decoding information of the first luma block, the luma decoding information indicating a combination of (i) the first decoding mode and (ii) a second decoding mode; deriving a chroma BV of the current chroma block based on the first luminance BV of the first luminance block; as well as The current chroma block is reconstructed based on the chroma prediction mode, where the chroma prediction mode is a combination of the first decoding mode and the second decoding mode used to decode the first luma block.
2. The method according to claim 1, wherein: The first luminance block is decoded using a combined intra block copy and intra block prediction (IBC-CIIP) mode; The second decoding mode is an intra prediction mode; and Reconstructing the current chrominance block includes: Determine a first prediction of the current chroma block using the IBC mode or the intra TMP mode and the chroma BV; Determining a second prediction of the current chroma block using the intra prediction mode; determining a chroma prediction for the current chroma block based on a weighted sum of the first prediction and the second prediction; and The current chroma block is reconstructed based on the chroma prediction.
3. The method according to claim 1, wherein: The first luminance block is decoded using IBC with geometric partitioning mode (IBC-GPM); The second decoding mode is an intra prediction mode; and Reconstructing the current chrominance block includes: Determine a first prediction of a first subpartition of the current chroma block using the IBC mode or the intra TMP mode and the chroma BV, and divide the current chroma block into the first subpartition and a second subpartition using the GPM mode; determining a second prediction for the second sub-partition of the current chroma block using the intra prediction mode; as well as The current chroma block is reconstructed based on the first prediction and the second prediction.
4. The method according to claim 1, wherein: The second decoding mode is a local illumination compensation (LIC) mode; The first luminance block is decoded using an IBC with LIC (IBC-LIC) mode; and Reconstructing the current chrominance block includes: Determine an initial prediction using the IBC mode or the intra TMP mode and the chroma BV, the initial prediction being from a reference chroma block indicated by the chroma BV; Determine a LIC parameter of the current chroma block based on a current template of the current chroma block and a reference template of the reference chroma block; determining a prediction using the LIC model based on the initial prediction and the LIC parameters; and The current chroma block is reconstructed based on the prediction.
5. The method according to claim 1, wherein: The second decoding mode is a SKIP mode, and the first luminance block is decoded using an IBC-SKIP mode; and Reconstructing the current chrominance block includes: Determine a prediction using the IBC mode or the intra TMP mode and the chroma BV; as well as The current chroma block is reconstructed according to the prediction using the SKIP mode and without residual.
6. The method according to claim 1, wherein: Deriving the chroma BV includes: The chrominance BV is derived based on the first luma BV of the first luma block and a second luma BV of a second luma block associated with a second position in the reconstructed luma region collocated with the current chrominance block.
7. The method according to claim 1, wherein: The first luma block is decoded using a valid BV in the IBC mode or the intra TMP mode.
8. The method according to claim 1, wherein: The bitstream includes intra-frame prediction mode information or IBC mode information, and the intra-frame prediction mode information or the IBC mode information indicates: (i) the chroma prediction mode of the current chroma block is derived from the luma decoding information of the first luma block, or (ii) the chroma BV is derived from the first luma BV of the first luma block.
9. The method according to claim 1, wherein: Deriving the chroma BV includes: The chroma BV is derived by scaling the first luma BV with a scaling factor that depends on the chroma subsampling format.
10. The method according to claim 1, wherein: The current region is a current coding tree unit (CTU), The luma coding region is a luma coding tree block (CTB) in the current CTU, and The chroma decoding region is a chroma CTB in the current CTU.
11. The method according to claim 1, wherein: A current coding tree unit (CTU) in the picture is divided into four coding units using quadtree partitioning, and the current region is a coding unit among the four coding units.
12. A device for video decoding, comprising: processing circuitry configured to: Receiving a bit stream of a current region in a picture, the current region comprising a luma decoding region and a chroma decoding region, wherein decoding information in the bit stream indicates that the luma decoding region and the chroma decoding region are segmented using separate decoding tree structures; determining that a first luma block associated with a first position in the reconstructed luma region collocated with the current chroma block is predicted by a first decoding mode using at least a first luma block vector (BV), the first decoding mode comprising one of: (i) an intra block copy (IBC) mode and (ii) an intra template matching prediction (intra TMP) mode; deriving a chroma prediction mode for the current chroma block in the chroma decoding area based on luma decoding information of the first luma block, the luma decoding information indicating a combination of (i) the first decoding mode and (ii) a second decoding mode; deriving a chroma BV of the current chroma block based on the first luminance BV of the first luminance block; as well as The current chroma block is reconstructed based on the chroma prediction mode, where the chroma prediction mode is a combination of the first decoding mode and the second decoding mode used to decode the first luma block.
13. The apparatus of claim 12, wherein: The second coding mode is an intra prediction mode, and the first luminance block is coded using a combined intra block copy and intra prediction (IBC-CIIP) mode; and The processing circuit system is configured to: Determine a first prediction of the current chroma block using the IBC mode or the intra TMP mode and the chroma BV; Determining a second prediction of the current chroma block using the intra prediction mode; determining a chroma prediction for the current chroma block based on a weighted sum of the first prediction and the second prediction; as well as The current chroma block is reconstructed based on the chroma prediction.
14. The apparatus of claim 12, wherein: The second coding mode is an intra prediction mode, and the first luminance block is coded using IBC with geometric partitioning mode (IBC-GPM); and The processing circuit system is configured to: Determine a first prediction of a first subpartition of the current chroma block using the IBC mode or the intra TMP mode and the chroma BV, and divide the current chroma block into the first subpartition and a second subpartition using the GPM mode; determining a second prediction for the second sub-partition of the current chroma block using the intra prediction mode; as well as The current chroma block is reconstructed based on the first prediction and the second prediction.
15. The apparatus of claim 12, wherein: The second decoding mode is a local illumination compensation (LIC) mode, and the first luminance block is decoded using an IBC with LIC (IBC-LIC) mode; and The processing circuit system is configured to: Determine an initial prediction using the IBC mode or the intra TMP mode and the chroma BV, the initial prediction being from a reference chroma block indicated by the chroma BV; Determine a LIC parameter of the current chroma block based on a current template of the current chroma block and a reference template of the reference chroma block; determining a prediction using the LIC model based on the initial prediction and the LIC parameters; as well as The current chroma block is reconstructed based on the prediction.
16. The apparatus of claim 12, wherein: The second decoding mode is a SKIP mode, and the first luminance block is decoded using an IBC-SKIP mode; and The processing circuit system is configured to: Determine a prediction using the IBC mode or the intra TMP mode and the chroma BV; as well as The current chroma block is reconstructed according to the prediction using the SKIP mode and without residual.
17. The apparatus according to claim 12, wherein: The processing circuit system is configured to: The chrominance BV is derived based on the first luma BV of the first luma block and a second luma BV of a second luma block associated with a second position in the reconstructed luma region collocated with the current chrominance block.
18. The apparatus according to claim 12, wherein: The first luma block is decoded using a valid BV in the IBC mode or the intra TMP mode.
19. The apparatus according to claim 12, wherein: The bitstream includes intra-frame prediction mode information or IBC mode information, and the intra-frame prediction mode information or the IBC mode information indicates: (i) the chroma prediction mode of the current chroma block is derived from the luma decoding information of the first luma block, or (ii) the chroma BV is derived from the first luma BV of the first luma block.
20. A non-transitory computer-readable storage medium storing instructions that, when executed by at least one processor, cause the at least one processor to: Receiving a bit stream of a current region in a picture, the current region comprising a luma decoding region and a chroma decoding region, wherein decoding information in the bit stream indicates that the luma decoding region and the chroma decoding region are segmented using separate decoding tree structures; determining that a first luma block associated with a first position in the reconstructed luma region collocated with the current chroma block is predicted by a first decoding mode using at least a first luma block vector (BV), the first decoding mode comprising one of: (i) an intra block copy (IBC) mode and (ii) an intra template matching prediction (intra TMP) mode; deriving a chroma prediction mode for the current chroma block in the chroma decoding area based on luma decoding information of the first luma block, the luma decoding information indicating a combination of (i) the first decoding mode and (ii) a second decoding mode; deriving a chroma BV of the current chroma block based on the first luminance BV of the first luminance block; as well as The current chroma block is reconstructed based on the chroma prediction mode, where the chroma prediction mode is a combination of the first decoding mode and the second decoding mode used to decode the first luma block.
