Intra prediction mode derivation for coded blocks
By using the processing circuit in the video decoder to derive the intra prediction mode and optimizing the encoding process of the intra block, the problem of low efficiency in deriving the intra prediction mode in the existing technology is solved, and the coding efficiency and performance are improved.
Patent Information
- Application Number
- CN202480000958.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Priority Date
- 2024-01-08
- Filing Date
- 2024-01-09
- Publication Date
- 2024-09-10
AI Technical Summary
Existing video coding technology has low efficiency in intra prediction mode derivation, especially in the conversion and mode selection process between multiple intra prediction modes, resulting in low coding efficiency.
By introducing processing circuitry in the video decoder, using the candidate block positions of the intra prediction mode and the associated intra prediction mode, a second intra prediction mode is derived, and based on the mode selection transform or building a most likely mode list to Optimize the encoding process of intra blocks.
It improves the selection efficiency and coding efficiency of intra prediction mode, reduces the computational complexity and storage requirements in the coding process, and improves the performance of the video decoder.
Smart Images

Figure CN118633288A_ABST
Abstract
Description
Incorporation by reference
[0001] This application claims the benefit of priority to U.S. Patent Application No. 18 / 407,090, filed on January 8, 2024, entitled “INTRA PREDICTION MODE DERIVATION FOR CODING BLOCKS,” which claims the benefit of priority to U.S. Provisional Application No. 63 / 437,972, filed on January 9, 2023, entitled “Intra Prediction Mode Derivation for Coding Blocks Coded by Unconventional Intra Prediction Mode.” The disclosure of the prior application is incorporated herein by reference in its entirety. Technical Field
[0002] This disclosure describes aspects generally related to video encoding. Background Art
[0003] The background description provided herein is for the purpose of presenting the content of the present disclosure in general. The extent to which the work of the presently named inventors described in this background section and in various aspects of this specification is performed does not indicate that it qualifies as prior art at the time of filing, and it is never explicitly or implicitly admitted that it is prior art to the present disclosure.
[0004] Image / video compression can help transmit image / video data between different devices, storage, and networks in a way that minimizes quality degradation. In some examples, video codec techniques can compress video based on spatial redundancy and temporal redundancy. In one example, a video codec can use a technique called intra-frame prediction, which can compress an image based on spatial redundancy. For example, intra-frame prediction can use reference data from 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 an image based on temporal redundancy. For example, inter-frame prediction can predict samples in the current picture from a picture previously reconstructed using motion compensation. Motion compensation can be indicated by a motion vector (MV). Summary of the invention
[0005] 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. The processing circuit receives encoded information of a current block in a current picture. The current block is encoded using a first intra-frame prediction mode, and the first intra-frame prediction mode is different from multiple intra-frame prediction modes including a DC mode, a planar mode, and an angular intra-frame prediction mode. The processing circuit selects a candidate block in the current picture that is encoded by an intra-frame prediction mode different from the multiple intra-frame prediction modes. If the candidate block is located within a predetermined area, the processing circuit derives a second intra-frame prediction mode from the multiple intra-frame prediction modes for the candidate block. The second intra-frame prediction mode is associated with the current block. The processing circuit performs at least one of the following: (i) based on the second intra-frame prediction mode associated with the current block, selects a transform for the current block and reconstructs the current block according to the selected transform; or (ii) uses the derived second intra-frame prediction mode associated with the current block to construct a most likely mode (MPM) list for another block.
[0006] In one example, the other block is a neighboring block of the current block.
[0007] In one example, the predetermined region includes one or more of: (i) a current coding tree unit (CTU) and (ii) at least one previously encoded CTU.
[0008] In one example, for a block that is encoded after the current block is encoded, the predetermined area is updated.
[0009] In one example, the size of the predetermined area is fixed.
[0010] In one example, the processing circuit stores the derived second intra prediction mode in a buffer of the current picture. When the current picture is a reference picture of another picture, the processing circuit uses the stored second intra prediction mode to construct an MPM list for another block in the other picture.
[0011] In one example, the processing circuit stores the derived second intra prediction modes in units of M×N, where M and N may be positive integers.
[0012] In one example, the processing circuitry selects the transform as a secondary transform, and the primary transform type is not selected based on the derived second intra prediction mode.
[0013] In one example, the first intra prediction mode is one of the following modes: intra block copy (IBC) mode, intra template matching (IntraTMP) mode, matrix-based intra prediction (MIP) mode, and palette mode.
[0014] In one aspect, the current block is encoded using one of an IBC mode and an IntraTMP mode. The processing circuit derives a second intra prediction mode associated with the current block from a plurality of intra prediction modes including a DC mode, a planar mode, and an angular intra prediction mode by (i) and (ii) (i) checking at least one candidate block position in a predetermined order; and (ii) determining the second intra prediction mode associated with the current block based on the intra prediction mode associated with one of the at least one candidate block position. The at least one candidate block position may be associated with a reference block indicated by a block vector (BV) associated with one of the IBC mode and the IntraTMP mode.
[0015] In one example, when a first candidate block position in the at least one candidate block position does not have an associated intra-frame prediction mode, the processing circuit skips the first candidate block position in the at least one candidate block position, wherein the associated intra-frame prediction mode is one of the multiple intra-frame prediction modes. For example, when the first candidate block position in the at least one candidate block position is located outside a predetermined area (e.g., the predetermined area described above), the first candidate block position in the at least one candidate block position does not have an associated intra-frame prediction mode, wherein the associated intra-frame prediction mode is one of the multiple intra-frame prediction modes.
[0016] In one example, if a first candidate block position of the at least one candidate block position is located outside the predetermined area, the processing circuit replaces the first candidate block position of the at least one candidate block position with a position within the predetermined area.
[0017] Aspects of the present disclosure also provide a non-transitory computer-readable medium storing instructions, which, when executed by a computer, cause the computer to perform a method for video decoding / encoding. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] Further features, properties and various advantages of the disclosed subject matter will become more apparent from the following detailed description and the accompanying drawings, in which:
[0019] Figure 1 is a schematic illustration of an exemplary block diagram of a communication system (100).
[0020] Figure 2 is a schematic illustration of an exemplary block diagram of a decoder.
[0021] Figure 3 is a schematic illustration of an exemplary block diagram of an encoder.
[0022] Figure 4Intra prediction modes (eg, such as 35 intra prediction modes used in HEVC) according to an aspect of the present disclosure are shown.
[0023] Figure 5 An intra prediction mode according to an aspect of the present disclosure is shown.
[0024] Figure 6 An example of an intra block copy (IBC) mode according to examples of the present disclosure is shown.
[0025] Figure 7 An example of an intra template matching prediction (IntraTMP) mode according to an aspect of the present disclosure is shown.
[0026] Figure 8 An example of a matrix-based intra prediction (MIP) mode according to an aspect of the present disclosure is shown.
[0027] Fig. 9 An exemplary mapping from intra prediction modes to secondary transform sets according to an aspect of the present disclosure is shown.
[0028] Fig.10 An example of candidate block positions for deriving an intra-prediction mode for a current block according to an aspect of the present disclosure is shown.
[0029] Fig.11 An example of candidate block positions for deriving an intra-prediction mode for a current block according to an aspect of the present disclosure is shown.
[0030] Fig.12 A flow chart outlining a decoding process according to some aspects of the present disclosure is shown.
[0031] Fig.13 A flow chart outlining an encoding process according to some aspects of the present disclosure is shown.
[0032] Fig.14 A flow chart outlining a decoding process according to some aspects of the present disclosure is shown.
[0033] Fig.15 A flow chart outlining an encoding process according to some aspects of the present disclosure is shown.
[0034] Fig.16 is a schematic illustration of a computer system according to an aspect. DETAILED DESCRIPTION
[0035] Figure 1A block diagram of a video processing system (100) in some examples is shown. The video processing system (100) is an example of an application of the disclosed subject matter, being a video encoder and a video decoder in a streaming environment. The disclosed subject matter is equally applicable to other video-enabled applications, including, for example, video conferencing, digital TV, streaming services, storing compressed video on digital media including CDs, DVDs, memory sticks, etc., and the like.
[0036] The video processing system (100) includes an acquisition subsystem (113), which may include a video source (101), such as a digital camera, which creates, for example, an uncompressed video picture stream (102). In one example, the video picture stream (102) includes samples recorded by the digital camera. The video picture stream (102), which is depicted as a thick line to emphasize the high amount of data compared to the encoded video data (104) (or the encoded video bitstream), can be processed by an electronic device (120), which includes a video encoder (103) coupled to the video source (101). The video encoder (103) may include hardware, software, or a combination of hardware and software to implement or implement various aspects of the disclosed subject matter as described in more detail below. The encoded video data (104) (or the encoded video bitstream), which is depicted as a thin line to emphasize the lower amount of data compared to the video picture stream (102), can be stored on a streaming server (105) for future use. One or more streaming client subsystems, such as Figure 1 A client subsystem (106) and a client subsystem (108) in a streaming server (105) may access a copy (107) and a copy (109) of the encoded video data (104). The client subsystem (106) may include, for example, a video decoder (110) in an electronic device (130). The video decoder (110) decodes the incoming copy (107) of the encoded video data and creates an output video picture stream (111) that can be presented on a display (112) (e.g., a display screen) or other presentation device (not depicted). In some streaming systems, the encoded video data (104), (107), and (109) (e.g., a video bitstream) may be encoded according to certain video encoding / compression standards. Examples of such standards include ITU-T Recommendation H.265. In one example, the video coding standard under development is informally referred to as Next Generation Video Coding (VVC). The disclosed subject matter may be used in the context of VVC.
[0037] It should be noted that the electronic device (120) and the electronic device (130) may include other components (not shown). For example, the electronic device (120) may include a video decoder (not shown), and the electronic device (130) may also include a video encoder (not shown).
[0038] Figure 2 An exemplary block diagram of a video decoder (210) is shown. The video decoder (210) may be included in an electronic device (230). The electronic device (230) may include a receiver (231) (e.g., a receiving circuit). The video decoder (210) may be used to replace Figure 1 A video decoder (110) in an example of FIG.
[0039] The receiver (231) may receive one or more encoded video sequences, for example, included in a bitstream to be decoded by the video decoder (210). In one aspect, the encoded video sequences are received one at a time, wherein the decoding of each encoded video sequence is independent of the decoding of the other encoded video sequences. The encoded video sequence may be received from a channel (201), which may be a hardware / software link leading to a storage device storing the encoded video data. The receiver (231) may receive the encoded video data and other data, such as encoded audio data and / or auxiliary data streams, which may be forwarded to their respective consuming entities (not depicted). The receiver (231) may separate the encoded video sequence from the other data. To prevent network jitter, a buffer memory (215) may be coupled between the receiver (231) and the entropy decoder / parser (220) (hereinafter referred to as "parser (220)"). In some applications, the buffer memory (215) is part of the video decoder (210). In other applications, the buffer memory (215) may be located outside the video decoder (210) (not depicted). In still other applications, a buffer memory (not depicted) may be provided outside the video decoder (210) to, for example, prevent network jitter, and another buffer memory (215) may be provided inside the video decoder (210) to, for example, handle playback timing. When the receiver (231) receives data from a storage / forward device with sufficient bandwidth and controllability or from an isochronous network, the buffer memory (215) may not be required, or the buffer memory (215) may be made smaller. For use on a traffic packet network such as the Internet, the buffer memory (215) may be required, and the buffer memory (215) may be relatively large, advantageously may have an adaptive size, and may be implemented at least partially in an operating system or similar element (not depicted) external to the video decoder (210).
[0040] The video decoder (210) may include a parser (220) to reconstruct symbols (221) from the encoded video sequence. The categories of these symbols include information for managing the operation of the video decoder (210) and potential information for controlling a presentation device such as a presentation device (212) (e.g., a display screen) that is not an integral part of the electronic device (230) but can be coupled to the electronic device (230), such as Figure 2As shown. The control information for the rendering device may be in the form of an auxiliary enhancement information (SEI) message or a video usability information (VUI) parameter set fragment (not depicted). The parser (220) may parse / entropy decode the received coded video sequence. The encoding of the coded video sequence may be performed according to a video coding technique or standard, and may follow various principles, including variable length coding, Huffman coding, arithmetic coding with or without context sensitivity, etc. The parser (220) may extract a subgroup parameter set for at least one subgroup of the subgroups of pixels in the video decoder from the coded video sequence based on at least one parameter corresponding to the group. The subgroup may include a group of pictures (GOP), a picture, a tile, a slice, a macroblock, a coding unit (CU), a block, a transform unit (TU), a prediction unit (PU), etc. The parser (220) may also extract information such as transform coefficients, quantizer parameter values, motion vectors, etc. from the coded video sequence.
[0041] The parser (220) may perform entropy decoding / parsing operations on the video sequence received from the buffer memory (215) to create symbols (221).
[0042] Depending on the type of coded video picture or part of coded video picture (e.g., inter-picture and intra-picture, inter-block and intra-block) and other factors, the reconstruction of symbol (221) may involve multiple different units. Which units are involved and how they are involved can be controlled by parser (220) through subgroup control information parsed from the coded video sequence. For clarity, such subgroup control information flow between parser (220) and the multiple units below is not depicted.
[0043] In addition to the functional blocks already mentioned, the video decoder (210) can be conceptually subdivided into a number of functional units as described below. In actual implementations operating under commercial constraints, many of these units interact closely with each other and may be at least partially integrated with each other. However, for the purpose of describing the disclosed subject matter, the conceptual subdivision into a number of functional units is appropriate in the following.
[0044] The first unit is a sealer / inverse transform unit (251). The sealer / inverse transform unit (251) receives quantized transform coefficients as symbols (221) from the parser (220) and control information including which transform to use, block size, quantization factor, quantization scaling matrix, etc. The sealer / inverse transform unit (251) may output a block including sample values, which may be input into an aggregator (255).
[0045] In some cases, the output samples of the scaler / inverse transform unit (251) may belong to an intra-coded block. An intra-coded block is a block that does not use prediction information from a previously reconstructed picture, but may use prediction 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) uses surrounding reconstructed information extracted from a current picture buffer (258) to generate a block of the same size and shape as the block being reconstructed. For example, the current picture buffer (258) buffers a partially reconstructed current picture and / or a fully reconstructed current picture. In some cases, the aggregator (255) adds the prediction information 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.
[0046] In other cases, the output samples of the scaler / inverse transform unit (251) may belong to a block that is inter-coded and potentially motion compensated. In this case, the motion compensated prediction unit (253) may access the reference 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, referred to as residual samples or residual signals) by the aggregator (255) to generate output sample information. The extraction of prediction samples by the motion compensated prediction unit (253) from the address in the reference picture memory (257) may be controlled by a motion vector, which may be provided to the motion compensated prediction unit (253) in the form of symbols (221), which may have, for example, an X component, a Y component and a reference 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.
[0047] The output samples of the aggregator (255) may be subjected to various loop filtering techniques in a loop filter unit (256). The video compression techniques may include in-loop filter techniques controlled by parameters included in the coded video sequence (also referred to as the coded video bitstream) and available to the loop filter unit (256) as symbols (221) from the parser (220). The video compression may also be responsive to meta-information obtained during decoding of a coded picture or a previous (in decoding order) portion of the coded video sequence, and to previously reconstructed and loop filtered sample values.
[0048] The output of the loop filter unit (256) may be a sample stream that may be output to a rendering device (212) and stored in a reference picture memory (257) for future inter-picture prediction.
[0049] Once fully reconstructed, certain coded pictures may be used as reference pictures for future prediction. For example, once the coded picture corresponding to the current picture is fully reconstructed, and the coded picture is identified as a reference picture (e.g., by the parser (220)), the current picture buffer (258) may become part of the reference picture memory (257), and a new current picture buffer may be reallocated before starting to reconstruct a subsequent coded picture.
[0050] The video decoder (210) may perform decoding operations according to a predetermined video compression technology or standard, such as ITU-T H.265 Recommendation. The encoded video sequence may conform to the syntax specified by the video compression technology or standard used, in the sense that the encoded video sequence follows the syntax of the video compression technology or standard and the profile recorded in the video compression technology or standard. Specifically, the profile may select certain tools from all the tools available in the video compression technology or standard as the only tools available for use under the profile. For compliance, the complexity of the encoded video sequence may also be required to be within the range defined by the hierarchy of the video compression technology or standard. In some cases, the hierarchy limits the maximum picture size, the maximum frame rate, the maximum reconstruction sampling rate (measured in, for example, mega samples per second), the maximum reference picture size, etc. In some cases, the limits set by the hierarchy may be further limited by the hypothetical reference decoder (HRD) specification and metadata of the HRD buffer management signaled in the encoded video sequence.
[0051] In one aspect, a receiver (231) can receive additional (redundant) data when receiving an encoded video. The additional data can be included as part of the encoded video sequence. The additional data can be used by a video decoder (210) to properly decode the data and / or more accurately reconstruct the original video data. The additional data can take the form of, for example, temporal, spatial, or signal-to-noise ratio (SNR) enhancement layers, redundant slices, redundant pictures, forward error correction codes, etc.
[0052] Figure 3 An exemplary block diagram of a video encoder (303) is shown. The video encoder (303) is included in an electronic device (320). The electronic device (320) includes a transmitter (340) (e.g., a transmission circuit). The video encoder (303) can be used to replace Figure 1 A video encoder (103) in an example of FIG.
[0053] The video encoder (303) can be used to obtain the video source (301) (not Figure 3In an example, the video source (301) is a part of the electronic device (320) to receive video samples, and the video source (301) can capture video images to be encoded by the video encoder (303). In another example, the video source (301) is a part of the electronic device (320).
[0054] The video source (301) may provide a source video sequence in the form of a digital video sample stream to be encoded by the video encoder (303), which may have any suitable bit depth (e.g., 8-bit, 10-bit, 12-bit, ...), any color space (e.g., BT.601 Y CrCB, RGB, ...), and any suitable sampling structure (e.g., Y CrCb 4:2:0, YCrCb 4:4:4). In a media service system, the video source (301) may be a storage device storing previously prepared videos. In a video conferencing system, the video source (301) may be a camera that captures local image information as a video sequence. The video data may be provided as a plurality of separate pictures that are given motion when viewed sequentially. The pictures themselves may be organized into a spatial pixel array, where each pixel may include one or more samples, depending on the sampling structure, color space, etc. used. The following description focuses on the samples.
[0055] According to one aspect, the video encoder (303) can encode and compress pictures of a source video sequence into an encoded video sequence (343) in real time or under any other time constraints required. Implementing the appropriate encoding speed is a function of the controller (350). In some aspects, the controller (350) controls other functional units as described below and is functionally coupled to the other functional units described. For clarity, the coupling is not depicted in the figure. The parameters set by the controller (350) may include rate control related parameters (picture skipping, quantizer, lambda value of rate distortion optimization techniques, etc.), picture size, picture group (GOP) layout, maximum motion vector search range, etc. The controller (350) can be configured to have other suitable functions that are related to the video encoder (303) optimized for a certain system design.
[0056] In some aspects, the video encoder (303) is configured to operate in an encoding loop. As an oversimplified description, in one example, the encoding loop may include a source encoder (330) (e.g., responsible for creating symbols, such as a symbol stream, based on an input picture to be encoded and a reference picture) 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 how the (remote) decoder may also create sample data. The reconstructed sample stream (sample data) is input to a reference picture memory (334). Since the decoding of the symbol stream produces bit-accurate results that are independent of the decoder location (local or remote), the contents of the reference picture memory (334) are also bit-accurately corresponding between the local encoder and the remote encoder. In other words, the reference picture samples "seen" by the prediction portion of the encoder are exactly the same as the sample values that the decoder will "see" when using the prediction during decoding. This basic principle of reference picture synchronization (and the drift that occurs when synchronization cannot be maintained, such as due to channel errors) is also used in some related technologies.
[0057] The operation of the "local" decoder (333) may be similar to that described above in conjunction with Figure 2 The "remote" decoder of the video decoder (210) described in detail is identical. However, additional brief reference is made to Figure 2 , since the symbols are available and the entropy encoder (345) and the parser (220) can losslessly encode / decode the symbols into an encoded video sequence, the entropy decoding portion of the video decoder (210) including the buffer memory (215) and the parser (220) may not be fully implemented in the local decoder (333).
[0058] On the one hand, decoder techniques other than parsing / entropy decoding present in a decoder are present in the corresponding encoder in the same or substantially the same functional form. Therefore, the disclosed subject matter focuses on decoder operation. The description of encoder techniques can be simplified because encoder techniques are mutually inverse to the decoder techniques described comprehensively. In some areas, a more detailed description is provided below.
[0059] During operation, in some examples, the source encoder (330) may perform motion compensated predictive coding that predictively encodes an input picture by referencing one or more previously encoded pictures from a video sequence designated as "reference pictures." In this manner, the encoding engine (332) encodes the differences between pixel blocks of the input picture and pixel blocks of a reference picture that may be selected as a prediction reference for the input picture.
[0060] The local video decoder (333) may decode the encoded video data of the picture that may be designated as the reference picture based on the symbol created by the source encoder (330). The operation of the encoding engine (332) may advantageously be a lossy process. When the encoded video data may be decoded at the video decoder ( Figure 3 When the video encoder (303) is decoded at a remote video decoder (not shown), the reconstructed video sequence may typically be a copy of the source video sequence with some errors. The local video decoder (333) replicates the decoding process that may be performed by the video decoder on the reference picture and may cause the reconstructed reference picture to be stored in the reference picture memory (334). In this way, the video encoder (303) may store a copy of the reconstructed reference picture locally that has common content (absent transmission errors) with the reconstructed reference picture to be obtained by the remote video decoder.
[0061] The predictor (335) may perform a prediction search for the encoding engine (332). That is, for a new picture to be encoded, the predictor (335) may search the reference picture memory (334) for sample data (as candidate reference pixel blocks) or certain 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 a suitable prediction reference. In some cases, as determined by the search results obtained by the predictor (335), the input picture may have prediction references taken from multiple reference pictures stored in the reference picture memory (334).
[0062] The controller (350) may manage encoding operations of the source encoder (330), including, for example, setting parameters and subgroup parameters for encoding video data.
[0063] The outputs of all the above functional units may be entropy encoded in an entropy encoder (345). The entropy encoder (345) applies lossless compression to the symbols generated by the various functional units according to techniques such as Huffman coding, variable length coding, arithmetic coding, etc., thereby converting the symbols into a coded video sequence.
[0064] The transmitter (340) may buffer the encoded video sequence created by the entropy encoder (345) in preparation for transmission over a communication channel (360), which may be a hardware / software link to a storage device that may store the encoded video data. The transmitter (340) may combine the encoded video data from the video encoder (303) with other data to be transmitted, such as encoded audio data and / or ancillary data streams (source not shown).
[0065] The controller (350) may manage the operation of the video encoder (303). During encoding, the controller (350) may assign a certain coded picture type to each coded picture, but this may affect the coding techniques that can be applied to the corresponding picture. For example, a picture may generally be assigned to any of the following picture types:
[0066] An intra picture (I picture) may be a picture that can be encoded and decoded without using any other picture in the sequence as a prediction source. Some video codecs allow different types of intra pictures, including, for example, independent decoder refresh ("IDR") pictures.
[0067] A predictive picture (P picture) may be a picture that may be encoded and decoded using intra prediction or inter prediction, which uses a motion vector and a reference index to predict sample values of each block.
[0068] Bidirectional predictive pictures (B pictures), which can be pictures that can be encoded and decoded using intra prediction or inter prediction, which uses two motion vectors and reference indices to predict the sample values of each block. Similarly, multiple predictive pictures can use more than two reference pictures and associated metadata to reconstruct a single block.
[0069] The source picture may typically be spatially subdivided into blocks of samples (e.g., blocks of 4×4, 8×8, 4×8, or 16×16 samples), and coded block by block. These blocks may be predictively coded with reference to other (already coded) blocks, which are determined by the coding allocation applied to the corresponding picture of the block. For example, blocks of an I picture may be non-predictively coded, or blocks of an I picture may be predictively coded (spatial prediction or intra prediction) with reference to already coded blocks of the same picture. Blocks of pixels of a P picture may be predictively coded by spatial prediction with reference to one previously coded reference picture or by temporal prediction. Blocks of a B picture may be predictively coded by spatial prediction with reference to one or two previously coded reference pictures or by temporal prediction.
[0070] The video encoder (303) may perform encoding operations according to a predetermined video encoding technique or standard, such as ITU-T H.265 Recommendation. In operation, the video encoder (303) may perform various compression operations, including predictive encoding operations that exploit temporal and spatial redundancy in an input video sequence. Thus, the encoded video data may conform to the syntax specified by the video encoding technique or standard used.
[0071] In one aspect, the transmitter (340) may transmit additional data when transmitting the encoded video. The source encoder (330) may include such data as part of the encoded video sequence. The additional data may include temporal / spatial / SNR enhancement layers, other forms of redundant data such as redundant pictures and slices, SEI messages, VUI parameter set fragments, etc.
[0072] The captured video may be taken as a plurality of source pictures (video pictures) in a temporal sequence. Intra-picture prediction (often shortened to intra-prediction) exploits spatial correlations in a given picture, while inter-picture prediction exploits (temporal or other) correlations between pictures. In one example, a particular picture being encoded / decoded is partitioned into blocks, and the particular picture being encoded / decoded is referred to as the current picture. When a block in the current picture is similar to a reference block in a reference picture that was previously encoded in the video and is still buffered, the block in the current picture may be encoded by a vector called a motion vector. The motion vector points to a reference block in a reference picture, and in the case where multiple reference pictures are used, the motion vector may have a third dimension that identifies the reference picture.
[0073] In some aspects, a bidirectional prediction technique may be used for inter-picture prediction. According to the bidirectional prediction technique, two reference pictures are used, such as a first reference picture and a second reference picture that precede the current picture in the video in decoding order (but may be in the past and future, respectively, in display order). A block in the current picture may be encoded by a first motion vector pointing to a first reference block in the first reference picture and a second motion vector pointing to a second reference block in the second reference picture. The block may be predicted by a combination of the first reference block and the second reference block.
[0074] In addition, merge mode technology can be used for inter-picture prediction to improve coding efficiency.
[0075] According to some aspects of the present disclosure, predictions such as inter-picture prediction and intra-picture prediction are performed in units of blocks. For example, according to the HEVC standard, a picture in a video picture sequence is partitioned into coding tree units (CTUs) for compression, and the CTUs in the picture have the same size, such as 64×64 pixels, 32×32 pixels, or 16×16 pixels. Typically, a CTU includes three coding tree blocks (CTBs), which are a luminance CTB and two chrominance CTBs. Each CTU can be recursively divided into one or more coding units (CUs) in a quadtree. For example, a 64×64 pixel CTU can be divided into a 64×64 pixel CU, or 4 32×32 pixel CUs, or 16 16×16 pixel CUs. In one example, each CU is analyzed to determine a prediction type for the CU, such as an inter-prediction type or an intra-prediction type. The CU is divided into one or more prediction units (PUs) based on temporal and / or spatial predictability. Typically, each PU includes a luminance prediction block (PB) and two chrominance PBs. On the one hand, the prediction operation in encoding (encoding / decoding) is performed in units of prediction blocks. Using a luma prediction block as an example of a prediction block, the prediction block includes a matrix of values (e.g., luma values) for pixels, such as 8×8 pixels, 16×16 pixels, 8×16 pixels, 16×8 pixels, etc.
[0076] It should be noted that the video encoder (103) and the video encoder (303) and the video decoder (110) and the video decoder (210) may be implemented using any suitable technology. In one aspect, the video encoder (103) and the video encoder (303) and the video decoder (110) and the video decoder (210) may be implemented using one or more integrated circuits. In another aspect, the video encoder (103) and the video encoder (303) and the video decoder (110) and the video decoder (210) may be implemented using one or more processors executing software instructions.
[0077] Various intra prediction modes for intra prediction may be used in video coding, such as in HEVC and VVC. Figure 4 Intra-frame prediction modes (e.g., such as 35 intra-frame prediction modes used in HEVC) according to an aspect of the present disclosure are shown. In one example, for example in HEVC, there are 35 intra-frame prediction modes (e.g., a total of 35 intra-frame prediction modes). Figure 4 Among the 35 intra prediction modes, mode 0 is a planar mode (e.g., Intra_Planar), mode 1 is a DC mode (e.g., Intra_DC), mode 10 is a horizontal mode, mode 26 is a vertical mode, and modes 2, 18, and 34 are diagonal modes. Planar mode may also be referred to as a planar intra prediction mode. Figure 4 In the example shown, intra prediction modes include angular intra prediction modes (eg, modes 2 to 34) and non-angular intra prediction modes (eg, modes 0 and 1). Intra prediction modes may be signaled by three most probable modes (MPMs) and 32 residual modes.
[0078] Figure 5 An intra-frame prediction mode according to an aspect of the present disclosure is shown, such as an intra-frame prediction mode defined in VVC. Figure 5 In the example of VVC, there are 95 intra prediction modes (e.g., 95 intra prediction modes in total). In one example, the 95 intra prediction modes are indicated by mode-14 to mode-80. For example, mode 18 is a horizontal mode, mode 50 is a vertical mode, and mode 2, mode 34, and mode 66 are diagonal modes. Mode-1 to mode-14 and mode 67 to mode 80 may be referred to as wide angle intra prediction (WAIP) modes. Figure 5 In the example shown, the intra prediction modes include angular intra prediction modes (eg, mode-14 to mode-1 and from mode 2 to mode 80) and non-angular intra prediction modes (eg, mode 0 and mode 1). Mode 0 is a planar mode and mode 1 is a DC mode.
[0079] An example of an intra block copy mode (also referred to as IntraBC mode or IBC mode) such as used in HEVC and VVC is described below.
[0080] Figure 6 An example of an IBC mode according to an example of the present disclosure is shown. A reference block used to predict a current CU (601) may be indicated by a block vector (BV) associated with the current CU (601). Each square (600) may represent a CTU. The gray shaded area represents an encoded area or encoded location, and the white non-shaded area represents an area or location to be encoded. The current CTU (600 (6)) being reconstructed includes a current CU (601), an encoded area (602), and an area to be encoded (603). In one example, after encoding the current CU (601), the area (603) will be encoded.
[0081] In one example, for example, in HEVC, the gray shaded area excluding the two CTUs (600(1) and 400(2)) located to the upper right of the current CTU (600(6)) can be used as a reference area in IBC mode to allow wavefront parallel processing (WPP). The BV allowed in HEVC may point to a block within the reference area (e.g., the gray shaded area excluding the two CTUs (600(1) and 400(2))). For example, the BV (605) allowed in HEVC points to the reference block (611).
[0082] In one example, for example, in VVC, in addition to the current CTU (600(6)), only the left adjacent CTU (600(3)) located on the left side of the current CTU (600(6)) is allowed as a reference area in the IBC mode. In one example, the reference area used in the IBC mode in VVC is located within the dotted area (615) and includes coded samples. For example, the BV (606) allowed in VVC points to the reference block (612).
[0083] In BV encoding in IBC mode, reference to the reconstructed area can be performed through 2D BV, which is similar to the MV used in inter-frame prediction. The prediction and encoding of BV can reuse the MV prediction and encoding in the intra-frame prediction process. In some examples, the luma BV is at integer resolution, rather than the 1 / 4 (or 1 / 4 pixel) accuracy of the MV used by the conventional inter-frame coded CTU.
[0084] Figure 7 An example of an intra-frame template matching prediction (IntraTMP) mode according to an aspect of the present disclosure is shown. In one aspect, for example in enhanced compression model (ECM) software, IntraTMP is a special intra-frame prediction mode that can copy the best prediction block (e.g., matching block (721)) from a reconstructed portion of a current frame (or current picture), where a template (e.g., an L-shaped template) (720) of the best prediction block can match a current template (710) of a current block (711) (e.g., a current PU or a current CU). For a predetermined search range, the encoder can search for a template that is most similar to the current template in the reconstructed portion of the current frame, and can use the corresponding block as a prediction block. The encoder can signal the use of the IntraTMP mode, and can perform the same prediction operation on the decoder side.
[0085] The prediction signal may be generated by matching a current template (710), for example, an L-shaped causal neighbor of the current block (711), with a template of another block in a predetermined search area. Figure 7 The exemplary search area shown may include multiple CTUs (or super blocks). Figure 7 , 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).
[0086] Within each region, the decoder may search for a template with a minimum cost (eg, minimum SAD) relative to the current template, and may use the block associated with the template with the minimum cost as the prediction block.
[0087] The dimensions of the area indicated by (search_range_w, search_range_h) can be set proportional to the block dimensions (BlkW, BlkH) so that each pixel has a fixed number of SAD comparisons. Search range_w=a×BlkW Equation (1) Search range_h = a × BlkH Equation (2)
[0088] The parameter 'a' may be a constant that controls the trade-off between gain and complexity. In one example, 'a' is 5.
[0089] In one example, to speed up the template matching process, the search range (e.g., the search range of all search areas) is downsampled by a factor of 2, which results in a 4-fold reduction in the template matching search. After finding the best match (or initial best match), a refinement process may be performed. Refinement is performed by performing a second template matching search around the best match (or initial best match) with a reduced range. The reduced range is defined as min(BlkW, BlkH) / 2.
[0090] The intra template matching tool may be enabled for CUs whose width and height dimensions are less than or equal to 64. The maximum CU size (eg, 64) for intra template matching may be configurable.
[0091] When decoder-side intra mode derivation (DIMD) is not used for the current CU, the intra template matching prediction mode may be signaled at the CU level through a dedicated flag.
[0092] In one example, for an IntraTMP coding block, when the primary transform is selected, an implicit transform selection method may be applied: if the block width is within 4 to 16, the horizontal transform type is DST7; otherwise, the horizontal transform type is DCT2. If the block height is within 4 to 16, the vertical transform type is DST7; otherwise, the vertical transform type is DCT2. When the secondary transform is selected, the IntraTMP coding block (e.g., IntraTMP mode) may be mapped to a planar mode (e.g., a planar mode in an intra prediction mode), and a secondary transform set associated with the planar mode is applied to the IntraTMP coding block.
[0093] VVC also includes a matrix-based intra prediction (MIP) mode. To predict samples of a rectangular block of width W and height H, MIP takes as input a row of H reconstructed neighboring boundary samples on the left side of the block and a row of W reconstructed neighboring boundary samples above the block. If reconstructed samples are not available, samples are generated as they are in traditional intra prediction.
[0094] The generation of the prediction signal is based on the following steps: (a) In the case of W=H=4, four samples are extracted from the boundary samples by averaging, and in all other cases, eight samples are extracted from the boundary samples by averaging. (b) A matrix-vector multiplication is performed with the averaged samples as input, and then the offset is added. The result is a reduced prediction signal over the downsampled set of samples in the original block. (c) Generate prediction signals at the remaining positions according to the prediction signals on the down-sampled set by linear interpolation, and the linear interpolation may be a single-step linear interpolation along each direction.
[0095] The matrix and offset vector used to generate the prediction signal can be taken from three matrix sets S 0 , S 1 , S 2 . Set S 0 18 matrices can be included i∈{0,…,17} and 18 offset vectors i∈{0,…,17}, each matrix may have 16 rows and 4 columns. Each offset vector The size of can be 16. The set S 0 The matrix and offset vector can be used for blocks of size 4×4. The set S 1 Up to 10 matrices can be included i∈{0,…,9} and 10 offset vectors i∈{0,…,9}, each matrix may have 16 rows and 8 columns. Each offset vector The size of can be 16. The set S 1 The matrix and offset vector of S can be used for blocks of size 4×8, 8×4, and 8×8. 2 Can include 6 matrices i∈{0,…,5} and 6 offset vectors i∈{0,…,5}(size is 64), each matrix can have 64 rows and 8 columns. 2 The matrices and offset vectors or parts of these matrices and offset vectors can be used for all other block shapes.
[0096] Figure 8 An example of a MIP for an 8×8 block according to one aspect of the present disclosure is shown. For an 8×8 block, the MIP takes four averages along each axis of the boundary. The resulting eight input samples enter the matrix-vector multiplication. The matrix is taken from the set S 1. This produces 16 samples at odd positions of the prediction block. Therefore, a total of (8·16) / (8·8)=2 multiplications are performed for each sample. After adding the offset, the samples are interpolated vertically using the reduced top boundary. The original left boundary is then used for horizontal interpolation. In this case, the interpolation process does not require any multiplications.
[0097] As far as MIP mode is signaled, for each CU in intra mode, a flag is sent in the bitstream indicating whether MIP mode is applied on the corresponding PU. If MIP mode is applied, the index predmode (prediction mode) of the MIP mode can be signaled using an MPM list including 3 MPMs.
[0098] The palette mode can be used in video encoding. The palette mode can be used in the screen content coding (SCC) extension of VCC and HEVC. The palette mode can be applied to encode screen content (e.g., screen-captured content, computer-generated content, etc.). On the one hand, the screen content uses a smaller number of color values for samples located in a local area than the non-screen content. Therefore, the sample values in a palette-encoded block can be mapped to a reduced set of colors, such as a palette table for the block, and each sample can be represented by an index in the palette table or an index indicating an "escape" color. In the case of an "escape" color, the quantized sample value can be encoded directly.
[0099] A transform such as a primary transform, a secondary transform may be applied to a block. In one example, the transform comprises a combination of a primary transform and a secondary transform. In one example, the transform comprises an inseparable transform. In one example, the transform comprises a separable transform.
[0100] For example, a secondary transform may be performed in VVC. In some examples, such as in VVC, a low frequency non-separable transform (LFNST) may be applied between the forward main transform and quantization at the encoder side and between dequantization and inverse main transform at the decoder side. A simplified secondary transform (RST) method may be used in LFNST.
[0101] The application of a non-separable transform that can be used in LFNST can be described as follows using a 4×4 input block (or input matrix) X as an example (as shown in equation (3)). To apply a 4×4 non-separable transform (such as LFNST), the 4×4 input block X can be represented by the vector Expressed as shown in Equation 3 and Equation 4.
[0102] The non-separable transformation can be calculated as in indicates a transform coefficient vector, and T is a 16×16 transform matrix. Subsequently, the 16×1 coefficient vector may be transformed using a scanning order (e.g., a horizontal scanning order, a vertical scanning order, a zigzag scanning order, or a diagonal scanning order) of a 4×4 input block. Reorganize into 4×4 output blocks (or output matrices, coefficient blocks). Transform coefficients with smaller indices can be placed in a 4×4 coefficient block together with smaller scan indices.
[0103] As described below, a LFNST transform (also referred to as a transform kernel, transform core, or transform matrix) may be selected. In one embodiment, multiple transform sets may be used, and one or more non-separable transform matrices (or kernels) may be included in each of the multiple transform sets in the LFNST. A transform set may be selected from the multiple transform sets, and a non-separable transform matrix may be selected from one or more non-separable transform matrices in the transform set.
[0104] Table 1 shows an exemplary mapping from intra prediction modes to multiple transform sets according to an embodiment of the present disclosure. The mapping indicates the relationship between the intra prediction modes and the multiple transform sets. The relationship as indicated in Table 1 can be predefined and can be stored in the encoder and the decoder. Table 1: Transformation set selection table Intra-frame prediction mode (IntraPredMode) Transformation set index (Tr.set index) IntraPredMode<0 1 0<=IntraPredMode<=1 0 2<=IntraPredMode<=12 1 13<=IntraPredMode<=23 2 24<=IntraPredMode<=44 3 45<=IntraPredMode<=55 2 56<=IntraPredMode<=80 1 81<=IntraPredMode<=83 0
[0105] Referring to Table 1, the plurality of transform sets include four transform sets, for example, transform set 0 to transform set 3 represented by transform set indices (e.g., Tr.setindex) from 0 to 3. An index (e.g., an intra prediction mode index or IntraPredMode) may indicate an intra prediction mode, and the transform set index may be obtained based on the index and Table 1. Therefore, a transform set may be determined based on the intra prediction mode. In one example, if one of three cross component linear model (CCLM) modes (e.g., INTRA_LT_CCLM, INTRA_T_CCLM, or INTRA_L_CCLM) is used for a current block (e.g., 81<=IntraPredMode<=83), transform set 0 is selected for the current block.
[0106] As described above, each transform set may include one or more inseparable transform matrices. One of the one or more inseparable transform matrices may be selected by, for example, an LFNST index explicitly signaled. For example, after the transform coefficients are signaled, the LFNST index may be signaled once in the bitstream for each intra-coded CU. For each transform set, the selected inseparable secondary transform candidate may be specified by an explicitly signaled LFNST index.
[0107] In one embodiment, LFNST is restricted to being applicable only when all coefficients outside the first coefficient subgroup are insignificant, and the encoding of the LFNST index may depend on the position of the last significant coefficient. The LFNST index may be context coded. In one example, the context coding of the LFNST index is independent of the intra prediction mode, and only the first bin is context coded. LFNST may be applied to intra-coded CUs in intra slices or inter slices, and to luma and chroma components. If dual tree is enabled, the LFNST indexes for luma and chroma components may be signaled separately. For inter slices (e.g., dual tree is disabled), a single LFNST index may be signaled and used for luma and chroma components.
[0108] Considering that large CUs larger than 64×64 are implicitly partitioned (TU tiling) due to existing maximum transform size limits (e.g., 64×64), LFNST index searches may quadruple the data buffer for a certain number of decoding pipeline stages. Therefore, in some examples, the maximum size allowed for LFNST is limited to 64×64. In one example, LFNST is enabled only with DCT2. In one example, the LFNST index is signaled before the MTS index is signaled.
[0109] In one example, using a scaling matrix for perceptual quantization does not indicate that the scaling matrix specified for the master matrix may be useful for LFNST coefficients. Therefore, in some examples, using a scaling matrix for LFNST coefficients is not allowed. In one example, for single tree partitioning mode, chroma LFNST is not applied.
[0110] On the one hand, for example in ECM, the LFNST design in VVC is extended as follows: The number of LFNST sets (S) and candidates (C) is extended to S=35 and C=3, and the LFNST set (lfnstTrSetIdx) for a given intra mode (predModeIntra) is derived according to the following formula: For predModeIntra<0, lfnstTrSetIdx is equal to 2 For predModeIntra in [0, 34], lfnstTrSetIdx = predModeIntra For predModeIntra in [35, 66], lfnstTrSetIdx=68-PredModeIntra Three different kernels, namely LFNST4, LFNST8 and LFNST16 are defined to indicate the LFNST kernel set, which are applied to 4×N / N×4 (N≥4), 8×N / N×8 (N≥8) and M×N (M, N≥16), respectively.
[0111] Fig. 9 An example of mapping from intra prediction modes to secondary transform sets according to an aspect of the present disclosure is shown. Fig. 9 As shown, a table such as Table 2 is used to indicate a mapping from an intra prediction mode (denoted as intra prediction mode (Intra pred.mode) in Table 2) to a secondary transform set, and the secondary transform set is, for example, a LFNST set indicated by each LFNST set index (denoted as lfnstTrSetIdx) in Table 2.
[0112] In the related art, when a transform is applied to an IBC coding block or an IntraTMP coding block, the same secondary transform set as that applied to the planar mode is applied. However, an IBC coding block or an IntraTMP coding block may have directionality, so sharing the same transform set for the planar mode may be suboptimal. According to an aspect of the present disclosure, a secondary transform set may be selected for an IBC coding block or an IntraTMP coding block based on the characteristics (e.g., directionality) of each IBC coding block or IntraTMP coding block.
[0113] In the present disclosure, the first plurality of prediction modes may include an IBC mode, an IntraTMP mode, a MIP mode, a palette mode, etc. In the present disclosure, the first plurality of prediction modes may be referred to as the first plurality of intra-prediction modes for the following reason: when a current block in a current picture is predicted using one of the first plurality of intra-prediction modes (e.g., the IBC mode, the IntraTMP mode, the MIP mode, or the palette mode), a reference sample in the current picture may be used to predict a sample in the current block. In one example, when a current block in a current picture is predicted using one of the first plurality of intra-prediction modes (e.g., the IBC mode, the IntraTMP mode, the MIP mode, or the palette mode), the sample in the current block is predicted without using a reference sample in another picture.
[0114] The second plurality of intra prediction modes may include a DC mode, a planar mode, and an angular intra prediction mode, such as a reference mode. Figure 4 and Figure 5 as described.
[0115] In one aspect, each of the second plurality of intra prediction modes is referred to as a conventional intra prediction mode (CIPM), such as Figure 4 and Figure 5Each of the first plurality of intra prediction modes is referred to as an unconventional intra prediction mode (UIPM), such as Figures 6 to 8 In one example, an intra prediction mode not included in the second plurality of intra prediction modes (e.g., a prediction mode that uses a reference sample in a current picture to predict a current block in a current picture) is referred to as a first intra prediction mode or UIPM in the first plurality of intra prediction modes. UIPM may include, but is not limited to, an IBC mode, an IntraTMP mode, a MIP mode, and / or a palette mode.
[0116] On the one hand, when a current block is encoded using an intra-prediction mode that is not among a second plurality of intra-prediction modes, a second intra-prediction mode (e.g., a CIPM, such as a planar mode, a DC mode, or an angular intra-prediction mode) among the second plurality of intra-prediction modes may be determined and the second intra-prediction mode may be associated with the current block.
[0117] According to one aspect of the present disclosure, when a current block is encoded using a first intra-frame prediction mode among a first plurality of intra-frame prediction modes (e.g., UIPM, such as IntraTMP mode, IBC mode, MIP mode, palette mode, etc.), a second intra-frame prediction mode among a second plurality of intra-frame prediction modes (e.g., CIPM, such as planar mode, DC mode, or angular intra-frame prediction mode) may be determined (e.g., derived), and the second intra-frame prediction mode may be associated with the current block.
[0118] The second intra prediction mode associated with the current block may be used to construct a most probable mode (MPM) list for another block (eg, a neighboring block of the current block). The second intra prediction mode associated with the current block may be used for transform selection of the current block.
[0119] When the current block is encoded using an unconventional intra prediction mode (UIPM, such as IntraTMP mode, IBC mode, MIP mode, or palette mode), a conventional intra prediction mode (CIPM, such as one of planar mode, DC mode and / or angular intra prediction mode) is derived and the CIPM is associated with the current block. The associated intra mode (e.g., CIPM) can be further used for MPM list construction of neighboring blocks and transform selection of the current block.
[0120] In one aspect, only for a selected set of blocks encoded by UIPM, a regular intra mode (e.g., CIPM, e.g., angular intra prediction mode) is derived, and the regular intra mode is used for MPM list construction of other blocks or transform selection of the current block. In one example, the selected set of blocks encoded by UIPM is called candidate blocks.
[0121] In one example, the selection of a block (e.g., a block may refer to a set of blocks encoded by UIPM) (associated with an intra prediction mode) depends on whether the block is located in a predetermined area, such as an area covered by a current CTU and / or several previously encoded CTUs. In one example, the predetermined area includes one or more of: (i) the current CTU, and (ii) at least one previously encoded CTU. In one example, one or more of (i) the current CTU and (ii) at least one previously encoded CTU includes the predetermined area.
[0122] In one aspect, the current block is encoded using a first intra prediction mode (e.g., UIPM), which is different from a plurality of intra prediction modes (e.g., a second plurality of intra prediction modes or CIPM) including a DC mode, a planar mode, and an angular intra prediction mode. A candidate block (e.g., one of a selected group of blocks encoded by UIPM) encoded by an intra prediction mode (e.g., UIPM) different from the plurality of intra prediction modes may be selected. In one example, when the candidate block is located within a predetermined area, the candidate block is selected. If the candidate block is located within the predetermined area, a second intra prediction mode (e.g., CIPM) may be derived from the plurality of intra prediction modes of the candidate block, and the second intra prediction mode is associated with the candidate block.
[0123] The second intra prediction mode associated with the candidate block may be associated with the current block and may be used to (i) select a transform for the current block and / or (ii) construct an MPM list for another block. At least one of the following may be performed: (i) based on the second intra prediction mode (e.g., CIPM) associated with the current block, select a transform for the current block and reconstruct the current block according to the selected transform; and (ii) construct an MPM list for another block (e.g., one of the other blocks) using the derived second intra prediction mode.
[0124] In one example, the selection of a block (associated with an intra prediction mode) depends on whether the block is located within a predetermined region, and the predetermined region is updated after encoding each block. In one example, the predetermined region is updated for another block encoded after the current block is encoded.
[0125] In one example, the selection of a block (associated with an intra prediction mode) depends on whether the block is located in a predetermined region, and the area size of the predetermined region is a fixed value, such as N×64×64 or N×128×128. N may be a positive integer, such as 1, 2, 3, ..., etc. In one example, the size (e.g., width, height, or area size) of the predetermined region is fixed.
[0126] In another example, a second intra prediction mode (e.g., CIPM) is derived for a current block encoded using a first intra prediction mode (e.g., UIPM) only when the current block is one of a selected set of blocks encoded by UIPM. The selection of a block may depend on whether the block is located within a predetermined region, such as the predetermined region described above.
[0127] On the other hand, when deriving CIPM for IntraTMP coded blocks and / or IBC coded blocks, given a block vector (BV) associated with the IntraTMP mode and / or IBC mode, several candidate block positions are checked in a predetermined order to obtain the intra-frame prediction mode (e.g., CIPM) in the reconstructed region. Fig.10 An example of candidate block positions for deriving a CIPM for a current block (1002) according to an aspect of the present disclosure is shown. The current block (1002) is located in a current CTU (1001). The current block (1002) may be encoded using one of an IBC mode and an IntraTMP mode. A BV (1004) associated with one of the IntraTMP mode and the IBC mode may indicate a reference block (1003). Candidate block positions 0 to 5 may be associated with the reference block (1003). In one example, candidate block positions 0 to 5 are checked in a predetermined order to obtain a CIPM.
[0128] In one aspect, a second intra prediction mode (e.g., CIPM) associated with a current block (1002) (e.g., an IntraTMP coding block or an IBC coding block) can be derived from a CIPM (e.g., a plurality of intra prediction modes including a DC mode, a planar mode, and an angular intra prediction mode) in the following manner: at least one candidate block position (e.g., candidate block positions 0 to 5) can be checked in a predetermined order. The at least one candidate block position can be associated with a reference block (1003), the reference block being indicated by a BV (1004) associated with one of the IBC mode and the IntraTMP mode. The second intra prediction mode (e.g., CIPM) associated with the current block (1002) can be determined based on the at least one candidate block position, for example, according to an intra prediction mode associated with one of the at least one candidate block position. At least one of the following may be performed: (i) selecting a transform for the current block (1002) based on a second intra-frame prediction mode associated with the current block, and reconstructing the current block (1002) according to the selected transform; or (ii) constructing an MPM list for another block using the derived second intra-frame prediction mode associated with the current block (1002).
[0129] In one example, one candidate block position (e.g., candidate block position 2) of at least one candidate block position (e.g., candidate block position 0 to 5) is associated with a CIPM, and the CIPM associated with one candidate block position (e.g., candidate block position 2) of the at least one candidate block position can be determined as a second intra-frame prediction mode associated with the current block (1002). In one example, the previously encoded block includes reconstructed samples located at one candidate block position of the at least one candidate block position, and the previously encoded block is encoded using a CIPM, so the CIPM is associated with the one candidate block position of the at least one candidate block position. In one example, the previously encoded block includes reconstructed samples located at one candidate block position of the at least one candidate block position, and the previously encoded block is encoded using a UIPM, and the CIPM associated with the previously encoded block is derived, as described in the present disclosure. In one example, the CIPM associated with the previously encoded block is associated with one candidate block position of the at least one candidate block position.
[0130] In one example, each of a plurality of positions in the at least one candidate block position is associated with a corresponding CIPM, and the CIPMs associated with the plurality of positions may be used to determine a second intra-prediction mode associated with the current block (1002). In one example, one of the CIPMs associated with the plurality of positions is determined as the second intra-prediction mode associated with the current block (1002). In one example, the CIPM most frequently associated with the plurality of positions may be determined as the second intra-prediction mode associated with the current block (1002).
[0131] According to one aspect of the present disclosure, when a first candidate block position of at least one candidate block position does not have an associated intra-frame prediction mode (e.g., CIPM), the first candidate block position of at least one candidate block position may be skipped (e.g., not checked), wherein the associated intra-frame prediction mode is one of a plurality of intra-frame prediction modes. When a first candidate block position of at least one candidate block position (e.g., candidate block positions 0 to 5) (e.g., Fig.10 When the candidate block position 0, 1, 4 or 5 in the above-mentioned predetermined area (e.g., the current CTU (1001)), the first candidate block position in the at least one candidate block position does not have an associated intra-frame prediction mode (e.g., CIPM) and can be skipped, wherein the associated intra-frame prediction mode is one of the multiple intra-frame prediction modes. Fig.10 , candidate block positions 0, 1, 4, and 5 are outside the predetermined area (e.g., the current CTU (1001)), so candidate block positions 0, 1, 4, and 5 are skipped. Therefore, only candidate block positions 2 and 3 are checked to obtain the CIPM of the current block (1002).
[0132] In one aspect, when a candidate block position does not have an associated CIPM, for example, the candidate block position is outside the predetermined area, the candidate block position is skipped and the next candidate block position is checked to find a valid CIPM. Fig.10 When encoding a current block (1002) by an IntraTMP mode (e.g., one of an IntraTMP mode and an IBC mode) using a BV (1004) derived, for example, by template matching, a reference block (1003) is identified by the BV (1004), and a number of candidate positions (e.g., indicated by shaded blocks labeled 0, 1, ..., 5) are checked in a sequence such as a predetermined sequence (e.g., an order of 0 to 5). Because positions (e.g., candidate block positions) 0, 1, 4, 5 are outside the current CTU (e.g., a predetermined area), only positions 2 and 3 are checked to obtain the CIPM of the current block (1002).
[0133] Fig.11 An example of candidate block positions for deriving a CIPM for a current block (1002) is shown according to an aspect of the present disclosure. Fig.11 The current block (1002) and the current CTU (1001) in Fig.10 The current block (1002) and the current CTU (1001) described in are similar or identical. The current block (1002) may be encoded using one of the IBC mode and the IntraTMP mode. A BV (1104) associated with one of the IntraTMP mode and the IBC mode may indicate a reference block (1103). Candidate block positions 0' to 5' may be associated with the reference block (1103). According to an aspect of the present disclosure, when a first candidate block position (e.g., candidate block position 4') of at least one candidate block position (e.g., candidate block position 0') is located outside a predetermined area, a position (e.g., candidate block position 0') located within the predetermined area may be used to replace the first candidate block position of the at least one candidate block position, such as Fig.11 shown.
[0134] In one example, when a candidate block position (e.g., candidate block position 4') is located outside an area (e.g., a predetermined area), for example, when a reference block 4' (e.g., candidate block position 4' or a reference block associated with candidate block position 4') is located outside an allowed area (e.g., a predetermined area), an operation may be processed so that a position (e.g., candidate block position 0') located in the allowed area is used to replace the candidate block position (e.g., candidate block position 4'). For this example, reference block 0' (e.g., candidate block position 0' or a reference block associated with candidate block position 0') may be used to replace reference block 4'.
[0135] On the one hand, the derived CIPM of the current block is stored in a buffer of the current picture P0. When another picture (P1) uses the current picture P0 as a reference picture, the stored and derived intra-frame mode (e.g., the derived CIPM) can be used to construct the MPM list of the block in the other picture P1. For example, the derived second intra-frame prediction mode (e.g., the derived CIPM) is stored in the buffer of the current picture P0. When the current picture P0 is a reference picture of another picture P1, the stored second intra-frame prediction mode is used to construct the MPM list of the block in the other picture P1. In one example, the derived second intra-frame prediction mode (e.g., the derived CIPM) is stored in units of M×N. M and N are positive integers.
[0136] In one aspect, the derived CIPM is stored in units of M x N. Exemplary values of M and N may include, but are not limited to, 8 x 4, 4 x 8, 8 x 8, etc. For example, M x N may include, but are not limited to, 8 x 4, 4 x 8, 8 x 8, etc.
[0137] In one aspect, a transform set for a current block may be determined based on a derived second intra prediction mode (e.g., a derived CIPM). For example, based on a derived second intra prediction mode (e.g., a derived CIPM), a transform set for a current block may be determined using mapping information or associated information (e.g., a lookup table) that maps a second plurality of intra prediction modes to corresponding transform sets. In one example, the transform set for the current block is a secondary transform set. A mapping between a second plurality of intra prediction modes indicated by a mode number (IntraPredMode) and a transform set including a low-frequency non-separable transform (LFNST) set is shown in a lookup table such as Table 1 or Table 2, where the LFNST set is indicated by a LFNST set index (e.g., 0 to 3 in Table 1, 0 to 34 in Table 2). When a transform set is determined, a transform may be selected from the determined transform set.
[0138] In one example, the transform to be selected is a secondary transform.In one example, the primary transform type is not selected based on the derived second intra prediction mode (eg, the derived CIPM).
[0139] In one aspect, when selecting a transform type, a derived regular intra prediction mode (eg, a derived CIPM) is only used to select a secondary transform, and the primary transform type is not selected based on the derived regular intra prediction mode.
[0140] Fig.12A flow chart outlining a process (1200) according to an aspect of the present disclosure is shown. The process (1200) may be used in a video decoder. In various aspects, the process (1200) is performed by a processing circuit, such as a processing circuit that performs the functions of a video decoder (110), a processing circuit that performs the functions of a video decoder (210), etc. In some aspects, the process (1200) is implemented in software instructions, so when the processing circuit executes the software instructions, the processing circuit performs the process (1200). The process starts at (S1201) and proceeds to (S1210).
[0141] At (S1210), encoded information of a current block in a current picture may be received. The current block may be encoded using a first intra prediction mode, the first intra prediction mode being different from a plurality of intra prediction modes including a DC mode, a planar mode, and an angular intra prediction mode.
[0142] In one example, the plurality of intra prediction modes is a second plurality of intra prediction modes. In one example, the plurality of intra prediction modes comprises CIPM.
[0143] In one example, the first intra prediction mode is one of the following modes: IBC mode, IntraTMP mode, MIP mode and palette mode. In one example, the first intra prediction mode is one of the first plurality of intra prediction modes. In one example, the first intra prediction mode is UIPM.
[0144] At (S1220), a candidate block encoded by an intra prediction mode (eg, UIPM) different from the plurality of intra prediction modes in the current picture may be selected.
[0145] At (S1230), when the candidate block is located within the predetermined region, for example, a second intra prediction mode (e.g., one mode or CIPM in the second plurality of intra prediction modes) may be derived from the plurality of intra prediction modes for the candidate block. The second intra prediction mode may be associated with the current block.
[0146] In one example, the predetermined region includes one or more of: (i) a current coding tree unit (CTU) and (ii) at least one previously encoded CTU.
[0147] In one example, for a block that is encoded after the current block is encoded, the predetermined area is updated.
[0148] In one example, the size of the predetermined area is fixed.
[0149] At (S1240), at least one of the following may be performed: (i) selecting a transform for the current block based on a second intra-frame prediction mode associated with the current block, and reconstructing the current block according to the selected transform; or (ii) constructing an MPM list for another block using the derived second intra-frame prediction mode associated with the current block.
[0150] The transform is selected based on the derived second intra prediction mode, which is a secondary transform, as described above with reference to Tables 1 and 2. The primary transform type is not selected based on the derived second intra prediction mode.
[0151] In one example, the other block is a neighboring block of the current block.
[0152] In one example, the other block is a block in another picture different from the current picture.
[0153] Then, the process proceeds to (S1299) and terminates.
[0154] The process (1200) may be adapted as appropriate. Steps in the process (1200) may be modified and / or omitted. Additional steps may be added. Any suitable order of implementation may be used.
[0155] In one example, the derived second intra prediction mode is stored in a buffer of the current picture. When the current picture is a reference picture of another picture, the second intra prediction mode stored in the buffer of the current picture may be used to construct an MPM list of another block in the other picture.
[0156] In one example, as described above, the derived second intra prediction modes are stored in units of M x N. M and N may be positive integers.
[0157] Fig.13 A flow chart outlining a process (1300) according to an aspect of the present disclosure is shown. The process (1300) may be used for a video encoder. In various aspects, the process (1300) is performed by a processing circuit, such as a processing circuit that performs the functions of the video encoder (103), a processing circuit that performs the functions of the video encoder (303), etc. In one aspect, the process (1300) is implemented in software instructions, so when the processing circuit executes the software instructions, the processing circuit performs the process (1300). The process starts at (S1301) and proceeds to (S1310).
[0158] At (S1310), for a current block in a current picture that is encoded using a first intra prediction mode different from a plurality of intra prediction modes, a candidate block in the current picture is selected. The candidate block is encoded using an intra prediction mode different from the plurality of intra prediction modes, such as Fig.12 Described in .
[0159] At (S1320), when the candidate block is located within the predetermined region, a second intra prediction mode may be derived from a plurality of intra prediction modes for the candidate block, as described in (S1230). The second intra prediction mode may be associated with the current block.
[0160] At (S1330), at least one of the following may be performed: (i) selecting a transform for the current block based on a second intra-frame prediction mode associated with the current block, and reconstructing the current block according to the selected transform; or (ii) constructing an MPM list for another block using the derived second intra-frame prediction mode associated with the current block, as described in (S1240).
[0161] Then, the process proceeds to (S1399) and terminates.
[0162] The process (1300) may be adapted as appropriate. Steps in the process (1300) may be modified and / or omitted. Additional steps may be added. Any suitable order of implementation may be used.
[0163] Fig.14 A flow chart outlining a process (1400) according to an aspect of the present disclosure is shown. The process (1400) may be used in a video decoder. In various aspects, the process (1400) is performed by a processing circuit, such as a processing circuit that performs the functions of a video decoder (110), a processing circuit that performs the functions of a video decoder (210), etc. In one aspect, the process (1400) is implemented in software instructions, so when the processing circuit executes the software instructions, the processing circuit performs the process (1400). The process starts at (S1401) and proceeds to (S1410).
[0164] At (S1410), encoded information of a current block in a current picture is received. The current block may be encoded using a first intra prediction mode, which is one of an intra block copy (IBC) mode and an intra template matching (IntraTMP) mode.
[0165] At (S1420), a second intra prediction mode (e.g., CIPM) associated with the current block can be derived from a plurality of intra prediction modes (e.g., a second plurality of intra prediction modes) including a DC mode, a planar mode, and an angular intra prediction mode. For example, as described above, at least one candidate block position (e.g., one or more candidate block positions from candidate block positions 0 to 5) is checked in a predetermined order. The at least one candidate block position may be associated with a reference block (e.g., reference block (1003)) indicated by a BV (e.g., BV (1004)), and the BV is associated with one of the IBC mode and the IntraTMP mode. As described above (e.g., Fig.10 and Fig.11), a second intra-frame prediction mode associated with the current block may be determined based on an intra-frame prediction mode associated with one of the at least one candidate block positions.
[0166] In one example, when a first candidate block position in the at least one candidate block position does not have an associated intra-frame prediction mode, the first candidate block position in the at least one candidate block position is skipped, wherein the associated intra-frame prediction mode is one of the multiple intra-frame prediction modes. Fig.10 , if a first candidate block position (e.g., candidate block position 4) of the at least one candidate block position is located outside a predetermined area (e.g., CTU (1001)), the first candidate block position of the at least one candidate block position does not have an associated intra-frame prediction mode, wherein the associated intra-frame prediction mode is one of the multiple intra-frame prediction modes.
[0167] In one example, the predetermined region includes one or more of: (i) a current coding tree unit (CTU) and (ii) at least one previously encoded CTU.
[0168] In one example, for a block that is encoded after the current block is encoded, the predetermined area is updated.
[0169] In one example, the size of the predetermined area is fixed.
[0170] In one example, reference Fig.11 , when a first candidate block position among the at least one candidate block position (e.g., candidate block position 4') is located outside a predetermined area (e.g., CTU (1001)), the first candidate block position among the at least one candidate block position is replaced with a position located within the predetermined area (e.g., candidate block position 0').
[0171] At (S1430), at least one of the following may be performed: (i) selecting a transform for the current block based on a second intra-frame prediction mode associated with the current block, and reconstructing the current block according to the selected transform; or (ii) constructing an MPM list for another block using the derived second intra-frame prediction mode associated with the current block, as described in (S1240).
[0172] The transform is selected based on the derived second intra prediction mode, which is a secondary transform, as described above with reference to Tables 1 and 2. The primary transform type is not selected based on the derived second intra prediction mode.
[0173] In one example, the other block is a neighboring block of the current block.
[0174] In one example, the other block is a block in another picture different from the current picture.
[0175] The process (1400) may be adapted as appropriate. Steps in the process (1400) may be modified and / or omitted. Additional steps may be added. Any suitable order of implementation may be used.
[0176] In one example, the derived second intra prediction mode is stored in a buffer of the current picture. When the current picture is a reference picture of another picture, the second intra prediction mode stored in the buffer of the current picture may be used to construct an MPM list of another block in the other picture.
[0177] In one example, as described above, the derived second intra prediction modes are stored in units of M x N. M and N may be positive integers.
[0178] Fig.15 A flow chart outlining a process (1500) according to an aspect of the present disclosure is shown. The process (1500) may be used for a video encoder. In various aspects, the process (1500) is performed by a processing circuit, such as a processing circuit that performs the functions of a video encoder (103), a processing circuit that performs the functions of a video encoder (303), etc. In one aspect, the process (1500) is implemented in software instructions, so when the processing circuit executes the software instructions, the processing circuit performs the process (1500). The process starts at (S1501) and proceeds to (S1510).
[0179] At (S1510), for a current block encoded using a first intra prediction mode, a second intra prediction mode associated with the current block can be derived from a plurality of intra prediction modes including a DC mode, a planar mode, and an angular intra prediction mode, wherein the first intra prediction mode is one of an intra block copy (IBC) mode and an intra template matching (IntraTMP) mode, as described in (S1420). For example, at least one candidate block position is checked in a predetermined order. A second intra prediction mode associated with the current block is determined based on an intra prediction mode associated with one of the at least one candidate block positions. The at least one candidate block position may be associated with a reference block indicated by a BV, and the BV is associated with one of the IBC mode and the IntraTMP mode.
[0180] At (S1520), at least one of the following may be performed: (i) selecting a transform for the current block based on a second intra-frame prediction mode associated with the current block, and reconstructing the current block according to the selected transform; or (ii) constructing an MPM list for another block using the derived second intra-frame prediction mode associated with the current block, as described in (S1240).
[0181] The process then proceeds to (S1599) and terminates.
[0182] The process (1500) may be adapted as appropriate. Steps in the process (1500) may be modified and / or omitted. Additional steps may be added. Any suitable order of implementation may be used.
[0183] The various aspects and / or examples in the present disclosure may be used alone or in any order. Each of the methods (or aspects), encoders, and decoders may be implemented by processing circuits (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.
[0184] The above techniques may be implemented as computer software using computer-readable instructions and physically stored in one or more computer-readable media. Fig.16 A computer system (1600) suitable for implementing certain aspects of the disclosed subject matter is shown.
[0185] Computer software may be encoded using any suitable machine code or computer language that may be subjected to assembly, compilation, linking or similar mechanisms to create code comprising instructions that may be executed directly by one or more computer central processing units (CPUs), graphics processing units (GPUs), etc., or through interpretation, microcode execution, etc.
[0186] The instructions may be executed on various types of computers or components thereof, including, for example, personal computers, tablet computers, servers, smart phones, gaming devices, Internet of Things devices, and the like.
[0187] Fig.16 The components of the computer system (1600) shown are exemplary in nature and are not intended to suggest any limitation on the scope of use or functionality of computer software implementing aspects of the present disclosure. Neither should the configuration of components be interpreted as having any dependency or requirement relating to any one or combination of components shown in the exemplary aspects of the computer system (1600).
[0188] The computer system (1600) may include certain human interface input devices. Such human interface input devices may be responsive to input from one or more human users through, for example, tactile input (e.g., keystrokes, swipes, data glove movements), audio input (e.g., voice, clapping), visual input (e.g., gestures), olfactory input (not depicted). Human interface devices may also be used to capture certain media that are not necessarily directly related to human conscious input, such as audio (e.g., voice, music, ambient sounds), images (e.g., scanned images, captured images obtained from a still image camera), and videos (e.g., two-dimensional video, three-dimensional video including stereoscopic video).
[0189] The human-machine interface input device may include one or more of the following (only one of each is shown): keyboard (1601), mouse (1602), touchpad (1603), touch screen (1610), data gloves (not shown), joystick (1605), microphone (1606), scanner (1607), camera (1608).
[0190] The computer system (1600) may also include certain human-computer interface output devices. Such human-computer interface output devices may stimulate one or more human user senses through, for example, tactile output, sound, light, and smell / taste. Such human-computer interface output devices may include tactile output devices (e.g., tactile feedback of a touch screen (1610), a data glove (not shown), or a joystick (1605), but may also be a tactile feedback device that is not an input device), 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 which are capable of outputting two-dimensional visual outputs or outputs in more than three dimensions through devices such as stereoscopic image output, virtual reality glasses (not depicted), holographic displays and smoke boxes (not depicted), and printers (not depicted).
[0191] The computer system (1600) may also include human-machine accessible storage devices and their associated media, such as optical media including CD / DVD ROM / RW (1620) with CD / DVD and other media (1621), thumb drives (1622), removable hard drives or solid-state drives (1623), traditional magnetic media such as tapes and floppy disks (not depicted), dedicated ROM / ASIC / PLD-based devices such as security software dogs (not depicted), etc.
[0192] Those skilled in the art should also understand that the term "computer-readable media" used in connection with the presently disclosed subject matter does not encompass transmission media, carrier waves, or other transitory signals.
[0193] 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 further be a local network, a wide area network, a metropolitan area network, a vehicle and industrial network, a real-time network, a delay-tolerant network, etc. Examples of networks include local area networks such as Ethernet, wireless LANs, cellular networks including GSM, 3G, 4G, 5G, LTE, etc., television wired or wireless wide area digital networks including cable television, satellite television, and terrestrial broadcast television, vehicle and industrial networks including CANBus, etc. Some networks typically require an external network interface adapter attached to some common data port or peripheral bus (1649) (e.g., a USB port of the computer system (1600)); as described below, other network interfaces are typically integrated into the kernel of the computer system (1600) by attaching to the system bus (e.g., connected to an Ethernet interface in a PC computer system or connected to a cellular network interface in a smartphone computer system). The computer system (1600) can use any of these networks to communicate with other entities. Such communications may be one-way receive only (e.g., broadcast television), one-way send only (e.g., CANBus connected to certain CANBus devices), or bidirectional, for example, using a LAN or WAN digital network to connect to other computer systems. As described above, certain protocols and protocol stacks may be used on each of those networks and network interfaces.
[0194] The above-mentioned human interface device, human-accessible storage device, and network interface may be attached to the kernel (1640) of the computer system (1600).
[0195] The kernel (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 (1644) for certain tasks, graphics adapters (1650), and the like. These devices, as well as read-only memory (ROM) (1645), random access memory (1646), internal mass storage (1647) such as internal non-user accessible hard drives, SSDs, and the like, 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, and the like. Peripheral devices may be attached directly to the kernel's system bus (1648) or to the kernel's system bus (1648) via a peripheral bus (1649). In one example, a touch screen (1610) may be connected to a graphics adapter (1650). The architecture of the peripheral bus includes PCI, USB, and the like.
[0196] The CPU (1641), GPU (1642), FPGA (1643) and accelerator (1644) can execute certain instructions, which can be combined to form the above-mentioned computer code. The computer code can be stored in ROM (1645) or RAM (1646). Transitional data can also be stored in RAM (1646), while permanent data can be stored, for example, in internal mass storage (1647). Fast storage and retrieval to any storage device can be performed by using a cache, which can be closely associated with the following: one or more CPUs (1641), GPUs (1642), mass storage (1647), ROM (1645), RAM (1646), etc.
[0197] The computer readable medium may have thereon computer codes for performing various computer-implemented operations. The medium and computer codes may be those specially designed and constructed for the purposes of the present disclosure, or the medium and computer codes may be of a type well known and available to those skilled in the art of computer software.
[0198] As an example, and not by way of limitation, a computer system (1600) having an architecture, particularly a kernel (1640), may provide functionality due to one or more processors (including CPUs, GPUs, FPGAs, accelerators, etc.) executing software embodied in one or more tangible computer-readable media. Such computer-readable media may be media associated with user-accessible mass storage as described above, as well as certain non-transitory kernel (1640) memories, such as kernel internal mass storage (1647) or ROM (1645). Software implementing various aspects of the present disclosure may be stored in such devices and executed by the kernel (1640). Depending on specific needs, the computer-readable medium may include one or more storage devices or chips. The software may cause the kernel (1640), particularly the processors therein (including CPUs, GPUs, FPGAs, etc.), to perform specific processes or specific parts of specific processes described herein, including defining data structures stored in RAM (1646) and modifying such data structures according to processes defined by the software. Additionally or alternatively, the computer system may provide functionality due to logic hardwired or otherwise embodied in circuitry (e.g., accelerator (1644)) that may replace software or operate in conjunction with software to perform specific processes or specific portions of specific processes described herein. Where appropriate, references to portions of software may include logic and vice versa. Where appropriate, references to portions of computer-readable media may include circuitry (e.g., integrated circuits (ICs)) storing software for execution, circuitry embodying logic for execution, or both. The present disclosure includes any suitable combination of hardware and software.
[0199] As used in this disclosure, "at least one of" or "one of" is intended to include any one or combination of the listed elements. For example, reference to at least one of A, B, and C; at least one of A, B, and C; at least one of A, B, and / or C; and at least one of A through C is intended to include only A, only B, only C, or any combination thereof. Reference to one of A and B, and one of A and B is intended to include A or B or (A and B). Where applicable, the use of "one of" does not exclude any combination of the listed elements, such as when the elements are not mutually exclusive.
[0200] Although the present disclosure has described several exemplary aspects, there are changes, permutations, and various replacement equivalents that fall within the scope of the present disclosure. Therefore, it should be understood that those skilled in the art will be able to design many systems and methods that, although not explicitly shown or described herein, embody the principles of the present disclosure and therefore fall within the spirit and scope of the present disclosure.
Claims
1. A video decoding method, comprising: Receiving encoded information of a current block in a current picture, the current block being encoded using a first intra prediction mode, the first intra prediction mode being different from a plurality of intra prediction modes including a DC mode, a planar mode, and an angular intra prediction mode; selecting a candidate block in the current picture that is encoded by an intra prediction mode different from the plurality of intra prediction modes; In response to the candidate block being located in a predetermined area, deriving a second intra prediction mode for the candidate block from the plurality of intra prediction modes, the second intra prediction mode being associated with the current block; as well as Perform at least one of the following: (i) based on the second intra-frame prediction mode associated with the current block, select a transform for the current block and reconstruct the current block according to the selected transform; or (ii) use the derived second intra-frame prediction mode associated with the current block to construct a most probable mode (MPM) list for another block.
2. The method according to claim 1, wherein: The predetermined area includes one or more of: (i) a current coding tree unit (CTU) and (ii) at least one previously encoded CTU.
3. The method according to claim 1, wherein: For a block that is encoded after the current block is encoded, the predetermined area is updated.
4. The method according to claim 1, wherein: The size of the predetermined area is fixed.
5. The method according to claim 1, further comprising: storing the derived second intra prediction mode in a buffer of the current picture, The execution includes: in response to the current picture being a reference picture of another picture, using the stored second intra-frame prediction mode to construct the MPM list for another block in the other picture.
6. The method according to claim 1, wherein: The another block is a neighboring block of the current block.
7. The method according to claim 1, further comprising: The derived second intra prediction modes are stored in units of M×N, where M and N are positive integers.
8. The method according to claim 1, wherein: The execution includes: The transform is selected as a secondary transform, and a primary transform type is not selected based on the derived second intra prediction mode.
9. The method according to claim 1, wherein: The first intra prediction mode is one of the following modes: intra block copy (IBC) mode, intra template matching (IntraTMP) mode, matrix-based intra prediction (MIP) mode and palette mode.
10. A video decoding method, comprising: Receiving encoded information of a current block in a current picture, the current block being encoded using a first intra prediction mode, the first intra prediction mode being one of an intra block copy (IBC) mode and an intra template matching (IntraTMP) mode; A second intra prediction mode associated with the current block is derived from a plurality of intra prediction modes including a DC mode, a planar mode, and an angular intra prediction mode by: checking at least one candidate block position in a predetermined order, the at least one candidate block position being associated with a reference block indicated by a block vector (BV), the block vector being associated with the one of the IBC mode and the IntraTMP mode; and determining the second intra prediction mode associated with the current block based on the intra prediction mode associated with one of the at least one candidate block positions; as well as Perform at least one of the following: (i) select a transform for the current block based on the second intra-frame prediction mode associated with the current block, and reconstruct the current block according to the selected transform; or (ii) use the derived second intra-frame prediction mode to construct a most probable mode (MPM) list for another block.
11. The method according to claim 10, wherein: The inspection includes: In response to a first candidate block position of the at least one candidate block position not having an associated intra-prediction mode, skipping the first candidate block position of the at least one candidate block position, the associated intra-prediction mode being one of the plurality of intra-prediction modes.
12. The method according to claim 11, wherein: In response to the first one of the at least one candidate block position being located outside a predetermined area, the first one of the at least one candidate block position does not have the associated intra-frame prediction mode, and the associated intra-frame prediction mode is one of the multiple intra-frame prediction modes.
13. The method according to claim 12, wherein: The predetermined area includes one or more of: (i) a current coding tree unit (CTU) and (ii) at least one previously encoded CTU.
14. The method according to claim 12, wherein: For a block that is encoded after the current block is encoded, the predetermined area is updated.
15. The method according to claim 10, wherein: The inspection includes: In response to a first candidate block position of the at least one candidate block position being located outside a predetermined area, replacing the first candidate block position of the at least one candidate block position with a position within the predetermined area.
16. The method according to claim 15, wherein: The predetermined area includes one or more of: (i) a current coding tree unit (CTU) and (ii) at least one previously encoded CTU.
17. The method according to claim 15, wherein: For another block that is encoded after the current block is encoded, the predetermined area is updated.
18. The method according to claim 10, further comprising: storing the derived second intra prediction mode in a buffer of the current picture, The execution includes: in response to the current picture being a reference picture of another picture, using the stored second intra-frame prediction mode to construct the MPM list for another block in the other picture.
19. The method according to claim 10, further comprising: The derived second intra prediction modes are stored in units of M×N, where M and N are positive integers.
20. The method according to claim 10, wherein: The execution includes: The transform is selected as a secondary transform, and a primary transform type is not selected based on the derived second intra prediction mode.
