Video encoding and decoding method, device and storage medium

By generating and sorting the most likely mode list, selecting the appropriate intra-frame mode for encoding, and deriving the intra-frame mode at the decoding end, the problem of low efficiency of intra-frame mode encoding and decoding in the existing technology is solved, and the performance of video encoding is improved.

CN116868569BActive Publication Date: 2024-10-01TENCENT AMERICA LLC
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202280015020.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Priority Date
2022-08-16
Filing Date
2022-08-18
Publication Date
2024-10-01
Estimated Expiration
2042-08-18

AI Technical Summary

Technical Problem

Existing video coding technology has low efficiency in intra-mode encoding and decoding, especially when dealing with unlikely prediction directions, which results in an increase in the number of bits and affects coding efficiency.

Method used

Intra modes are sorted and selected based on the gradient and cost values ​​of adjacent blocks by generating a Most Probable Mode (MPM) list, the MPM is used for intra encoding, and the intra modes are derived at the decoding end to reduce the number of bits .

Benefits of technology

The efficiency of intra-mode encoding is improved, the number of bits in unlikely directions is reduced, and the overall performance of video encoding is improved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116868569B_ABST
    Figure CN116868569B_ABST
Patent Text Reader

Abstract

In a video decoding method performed in a video decoder, encoded information of a current block and neighboring blocks of the current block is received from an encoded video code stream. A most probable mode (MPM) list of the current block is generated. The MPM list includes an intra-frame mode, which is determined based on the intra-frame mode of the neighboring block of the current block. Based on the intra-frame mode of the MPM list, one of the gradient value and the cost value of the neighboring block is calculated. Based on the gradient value and one of the cost values ​​of the neighboring block, the intra-frame modes of the MPM list are sorted, wherein each of the intra-frame modes in the MPM list is associated with a corresponding one of the gradient value and the cost value. Further, the current block is reconstructed based on the MPM list.
Need to check novelty before this filing date? Find Prior Art

Description

[0001] Cross-references

[0002] This application claims priority to U.S. Patent Application No. 17 / 888,558, filed on August 16, 2022, entitled "METHOD AND APPARATUS FOR IMPROVED INTRAMODE CODING," which claims priority to U.S. Provisional Application No. 63 / 286,979, filed on December 7, 2021, entitled "Improvement on Intra Mode Coding." The disclosures of the prior applications are incorporated herein by reference. Technical Field

[0003] This disclosure describes embodiments generally related to video coding. Background Art

[0004] The background description provided herein is intended to present the background of the present application as a whole. The extent to which the work of the presently named inventors described in the background section and in various aspects of this specification is performed does not indicate that it is prior art at the time of filing this application, and it is never explicitly or implicitly admitted that it is prior art to this application.

[0005] Video encoding and decoding are enabled by inter-picture prediction techniques with motion compensation. An uncompressed digital video may include a series of pictures, each picture having spatial dimensions such as 1920×1080 luminance samples and associated chrominance samples. The series of pictures has a fixed or variable picture rate (also informally referred to as a frame rate), such as 60 pictures per second or 60Hz. Uncompressed video has specific bitrate requirements. For example, 1080p60 4:2:0 video (1920x1080 luminance sample resolution, 60Hz frame rate) with 8 bits per sample requires close to 1.5Gbit / s bandwidth. One hour of such video requires more than 600GB of storage space.

[0006] One goal of video encoding and decoding is to reduce redundant information in the input video signal through compression. Video compression can help reduce the bandwidth and / or storage space requirements mentioned above, in some cases by two or more orders of magnitude. Both lossless and lossy compression, as well as combinations of the two, can be used. Lossless compression refers to techniques that reconstruct an exact replica of the original signal from the compressed original signal. When lossy compression is used, the reconstructed signal may not be exactly the same as the original signal, but the distortion between the original and the reconstructed signal is small enough that the reconstructed signal can be used for the intended application. Lossy compression is widely used in video. The amount of distortion allowed depends on the application. For example, users of some consumer streaming applications may be able to tolerate higher distortion than users of television applications. The achievable compression ratio reflects that higher allowed / tolerant distortion results in higher compression ratios.

[0007] Video encoders and decoders may utilize techniques from several broad categories including, for example, motion compensation, transforms, quantization, and entropy coding and decoding.

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

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

[0010] There can be many different forms of intra-frame prediction. When more than one such technique can be used in a given video codec technique, the technique used can be encoded in the intra-frame prediction mode. In some cases, a mode can have sub-modes and / or parameters, and these sub-modes and / or parameters can be encoded separately or included in the mode codeword. For a given mode, the codeword to be used by the sub-mode and / or parameter combination may have an impact on the coding efficiency gain through intra-frame prediction, and the same is true for the entropy coding and decoding technique that converts the codeword into a bitstream.

[0011] Some mode of intra prediction was introduced with H.264, improved in H.265, and further improved in newer codecs such as joint exploration model (JEM), versatile video coding (VVC), and benchmark set (BMS). The predictor block can be formed using neighboring sample values ​​belonging to samples that are already available. Sample values ​​of neighboring samples are copied into the predictor block according to the direction. A reference to the direction in use can be encoded in the bitstream, or it can be predicted itself.

[0012] Reference Figure 1 , a subset of nine known prediction directions from the 33 possible prediction directions of H.265 (corresponding to the 33 angular modes of the 35 intra modes) is depicted at the lower right. The point (101) where the arrows converge represents the sample being predicted. The arrows represent the direction in which the sample is being predicted. For example, arrow (102) indicates that sample (101) is predicted based on one or more samples at an angle of 45 degrees to the horizontal direction at the upper right. Similarly, arrow (103) indicates that sample (101) is predicted based on one or more samples at an angle of 22.5 degrees to the horizontal direction at the lower left.

[0013] Still reference Figure 1, a square block (104) including 4×4 samples is shown in the upper left (indicated by the thick dashed line). The square block (104) includes 16 samples, each of which is labeled with "S" and its position in the Y dimension (e.g., row index) and its position in the X dimension (e.g., column index). For example, sample S21 is the second sample in the Y dimension (starting from the top) and the first sample in the X dimension (starting from the left). Similarly, sample S44 is the fourth sample in the block (104) in both the X dimension and the Y dimension. Since the block is a 4×4 size sample, S44 is located in the lower right corner. Reference samples following a similar numbering scheme are also shown. Reference samples are labeled with "R" and their Y position (e.g., row index) and X position (e.g., column index) relative to the block (104). In H.264 and H.265, the prediction samples are adjacent to the block being reconstructed, so there is no need to use negative values.

[0014] Intra-picture prediction can be performed by copying reference sample values ​​from neighboring samples occupied by a signaled prediction direction. For example, assume that the encoded video bitstream includes signaling that indicates, for this block, a prediction direction consistent with arrow (102), i.e., predicting samples based on one or more prediction samples to the upper right at a 45 degree angle to the horizontal. In this case, samples S41, S32, S23, and S14 are predicted based on the same reference sample R05. Sample S44 is predicted based on reference sample R08.

[0015] In some cases, for example by interpolation, the values ​​of multiple reference samples may be combined in order to calculate the reference sample, particularly when the direction is not divisible by 45 degrees.

[0016] As video coding techniques have evolved, the number of possible directions has increased. In H.264 (2003), nine different directions could be represented. This increased to 33 in H.265 (2013) and JEM / VVC / BMS, and at the time of this application, up to 65 directions can be supported. Experiments have been conducted to identify the most likely directions, and certain techniques in entropy coding are used to represent those possible directions using a small number of bits, accepting some penalty for less likely directions. Additionally, the direction itself can sometimes be predicted based on neighboring directions used in adjacent, already decoded blocks.

[0017] Figure 2 A schematic diagram (201) depicting 65 intra prediction directions according to JEM is shown to illustrate the increasing number of prediction directions over time.

[0018] The mapping of the intra-frame prediction direction bits representing directions in the coded video bitstream can vary depending on the video coding technique, and can range from simple direct mapping of prediction directions to intra-frame prediction modes to codewords, to complex adaptive schemes involving the most probable mode, and similar techniques, for example. However, in all cases, there may be certain directions in the video content that are statistically less likely to occur than certain other directions. Since the goal of video compression is to reduce redundancy, in well-working video coding techniques, those unlikely directions will be represented by a larger number of bits than more likely directions. Summary of the invention

[0019] Various aspects of the present disclosure provide methods and apparatus for video encoding / decoding. In some examples, the apparatus for video decoding includes a receiving device and a processing circuit.

[0020] According to one aspect of the present disclosure, a video decoding method is performed in a video decoder. In this method, the encoded information of the current block and the neighboring blocks of the current block is received from the encoded video code stream; the most probable mode MPM list of the current block is generated, the most probable mode MPM list includes an intra-frame mode, and the intra-frame mode is determined based on the intra-frame mode of the neighboring blocks of the current block; based on the intra-frame mode of the most probable mode MPM list, one of the gradient value and the cost value of the neighboring block is calculated; based on the gradient value and the one of the cost value of the neighboring block, the intra-frame mode of the most probable mode MPM list is sorted, and each of the intra-frame modes in the most probable mode MPM list is associated with a corresponding one of the gradient value and the cost value. Further, the current block is reconstructed based on the most probable mode MPM list.

[0021] In some embodiments, the gradient value corresponds to a gradient histogram (HoG), and the sorting of the intra-frame modes of the most probable mode MPM list further includes: sorting the intra-frame modes of the most probable mode MPM list in descending order based on the gradient histogram HoG of the neighboring blocks, and the intra-frame mode of the most probable mode MPM list associated with the highest gradient histogram HoG is the first entry of the most probable mode MPM list.

[0022] In some embodiments, to sort the intra modes of the MPM list, the intra modes of the most probable mode MPM list are sorted in ascending order based on the cost values ​​of the neighboring blocks, and the intra mode of the most probable mode MPM list associated with the smallest cost value is the first entry of the most probable mode MPM list.

[0023] In some embodiments, to sort the intra modes of the MPM list, a first intra mode of the intra modes associated with the highest histogram of gradients HoG and a second intra mode of the intra modes associated with a second highest histogram of gradients HoG are determined. Further, determine (i) whether the first intra-frame mode is different from the intra-frame mode of the left neighboring block of the neighboring block and the intra-frame mode of the upper neighboring block of the neighboring block, and (ii) whether the second intra-frame mode is different from the intra-frame mode of the left neighboring block of the neighboring block and the intra-frame mode of the upper neighboring block of the neighboring block; in response to the first intra-frame mode being different from the intra-frame mode of the left neighboring block of the neighboring block and the intra-frame mode of the upper neighboring block of the neighboring block, after sorting other intra-frame modes in the most probable mode MPM list, add the first intra-frame mode to the most probable mode MPM list; and in response to the second intra-frame mode being different from the intra-frame mode of the left neighboring block of the neighboring block and the intra-frame mode of the upper neighboring block of the neighboring block, add the second intra-frame mode as the last entry to the most probable mode MPM list.

[0024] In some embodiments, in order to sort the intra-frame modes of the MPM list, a first intra-frame mode of the intra-frame mode associated with the minimum cost value and a second intra-frame mode of the intra-frame mode associated with the second minimum cost value are determined. Further, it is determined whether (i) the first intra-frame mode is different from the intra-frame mode of the left neighboring block of the neighboring block and the intra-frame mode of the upper neighboring block of the neighboring block, and (ii) the second intra-frame mode is different from the intra-frame mode of the left neighboring block of the neighboring block and the intra-frame mode of the upper neighboring block of the neighboring block; in response to the first intra-frame mode being different from the intra-frame mode of the left neighboring block of the neighboring block and the intra-frame mode of the upper neighboring block of the neighboring block, after sorting the other intra-frame modes of the most probable mode MPM list, the first intra-frame mode is added; and in response to the second intra-frame mode being different from the intra-frame mode of the left neighboring block of the neighboring block and the intra-frame mode of the upper neighboring block of the neighboring block, the second intra-frame mode is added as the last entry to the most probable mode MPM list.

[0025] In some embodiments, an MPM index is decoded from the encoded information; and based on the MPM index and the most probable mode MPM list, the intra mode of the current block is determined, the MPM index indicating which intra mode in the most probable mode MPM list is applied to the intra encoding of the current block.

[0026] In some embodiments, the intra-frame modes of the non-MPM list are sorted based on the gradient histogram HoG and one of the cost values ​​of the neighboring blocks, and one of the HoG and the cost value of the neighboring blocks is calculated based on the intra-frame modes of the non-MPM list, and each of the intra-frame modes in the non-MPM list is associated with a corresponding one of the HoG and the cost value.

[0027] In some embodiments, in order to sort the intra-frame modes of the non-MPM list, the intra-frame modes of the non-MPM list are sorted in descending order based on the gradient histogram HoG of the neighboring blocks, and the intra-frame mode of the non-MPM list associated with the highest gradient histogram HoG is the first entry of the non-MPM list.

[0028] In another example, in order to sort the intra-frame modes of the non-MPM list, the intra-frame modes of the non-MPM list are sorted in ascending order based on the cost values ​​of the neighboring blocks, and the intra-frame mode of the non-MPM list associated with the minimum cost value is the first entry of the non-MPM list.

[0029] According to another aspect of the present disclosure, a device is provided, which includes a processing circuit, and which is configured to execute any video encoding method.

[0030] Various aspects of the present disclosure also provide a non-transitory computer-readable storage medium storing instructions, which, when executed by a computer for video decoding, causes the computer to perform any of the methods for video decoding. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0032] Figure 1 is a schematic diagram of an exemplary subset of intra prediction modes.

[0033] Figure 2 is a diagram of exemplary intra prediction directions.

[0034] Figure 3 is a schematic diagram of a simplified block diagram of a communication system (300) according to an embodiment.

[0035] Figure 4 is a schematic diagram of a simplified block diagram of a communication system (400) according to an embodiment.

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

[0037] Figure 6is a schematic diagram of a simplified block diagram of an encoder according to an embodiment.

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

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

[0040] Fig. 9 is a schematic diagram of template-based intramode derivation (TIMD) according to an embodiment.

[0041] Fig.10 Neighboring codec units of a current codec unit in intra-mode codec according to some embodiments of the present disclosure are shown.

[0042] Fig.11 A flow chart outlining an exemplary decoding process according to some embodiments of the present disclosure is shown.

[0043] Fig.12 A flow chart outlining an exemplary encoding process according to some embodiments of the present disclosure is shown.

[0044] Fig.13 is a schematic diagram of a computer device according to an embodiment. DETAILED DESCRIPTION

[0045] According to the embodiment Figure 3 3 is a simplified block diagram of a communication system (300) according to an embodiment disclosed in the present application. The communication system (300) includes a plurality of terminal devices, which can communicate with each other through, for example, a network (350). For example, the communication system (300) includes a first pair of terminal devices (310) and a terminal device (320) interconnected through the network (350). Figure 3 In an embodiment, the terminal device (310) and the terminal device (320) perform unidirectional data transmission. For example, the terminal device (310) may encode video data (e.g., a video picture stream collected by the terminal device (310)) for transmission to another terminal device (320) via the network (350). The encoded video data is transmitted in the form of one or more encoded video code streams. The terminal device (320) may receive the encoded video data from the network (350), decode the encoded video data to restore the video data, and display the video picture based on the restored video data. Unidirectional data transmission is more common in applications such as media services.

[0046] In another embodiment, the communication system (300) includes a second pair of terminal devices (330) and (340) that perform bidirectional transmission of encoded video data, which can occur, for example, during a video conference. For bidirectional data transmission, each of the terminal devices (330) and the terminal device (340) can encode video data (e.g., a video picture stream collected by the terminal device) for transmission to the other terminal device (330) and the terminal device (340) through the network (350). Each of the terminal devices (330) and the terminal device (340) can also receive the encoded video data transmitted by the other terminal device (330) and the terminal device (340), and can decode the encoded video data to restore the video data, and can display the video picture on an accessible display device based on the restored video data.

[0047] exist Figure 3 In the embodiment of the present invention, the terminal device (310), the terminal device (320), the terminal device (330) and the terminal device (340) may be a server, a personal computer and a smart phone, but the principles disclosed in the present application may not be limited thereto. The embodiments disclosed in the present application are applicable to laptop computers, tablet computers, media players and / or dedicated video conferencing equipment. The network (350) represents any number of networks that transmit encoded video data between the terminal devices (310), the terminal devices (320), the terminal devices (330) and the terminal devices (340), including, for example, wired (wired) and / or wireless communication networks. The communication network (350) may exchange data in circuit switching and / or packet switching channels. The network may include a telecommunications network, a local area network, a wide area network and / or the Internet. For the purpose of this discussion, unless explained below, the architecture and topology of the network (350) may be irrelevant to the operation disclosed in the present application.

[0048] As an example, Figure 4 The video encoder and video decoder are shown in a streaming environment. The subject matter disclosed in this application is equally applicable to other video-enabled applications, including, for example, video conferencing, digital TV, storing compressed video on digital media including CDs, DVDs, memory sticks, etc.

[0049] The streaming system may include an acquisition subsystem (413), which may include a video source (401) such as a digital camera, which creates an uncompressed video picture stream (402). In an embodiment, the video picture stream (402) includes samples taken by a digital camera. Compared to the encoded video data (404) (or the encoded video bitstream), the video picture stream (402) is depicted as a thick line to emphasize the high data volume of the video picture stream, and the video picture stream (402) can be processed by an electronic device (420), which includes a video encoder (403) coupled to the video source (401). The video encoder (403) 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. Compared to the video picture stream (402), the encoded video data (404) (or the encoded video bitstream (404)) is depicted as a thin line to emphasize the lower amount of data of the encoded video data (404) (or the encoded video bitstream (404)), which can be stored on the streaming server (405) for future use. One or more streaming client subsystems, such as Figure 4 The client subsystem (406) and the client subsystem (408) in the video transmission system can access the streaming server (405) to retrieve the copy (407) and the copy (409) of the encoded video data (404). The client subsystem (406) may include, for example, a video decoder (410) in the electronic device (430). The video decoder (410) decodes the incoming copy (407) of the encoded video data and generates an output video picture stream (411) that can be presented on a display (412) (e.g., a display screen) or another presentation device (not depicted). In some streaming transmission systems, the encoded video data (404), the video data (407), and the video data (409) (e.g., a video bitstream) can be encoded according to certain video encoding / compression standards. Examples of these standards include ITU-T H.265. In an embodiment, the video coding standard under development is informally referred to as Versatile Video Coding (VVC), and the present application can be used in the context of the VVC standard.

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

[0051] Figure 5is a block diagram of a video decoder (510) according to an embodiment disclosed in the present application. The video decoder (510) may be provided in an electronic device (530). The electronic device (530) may include a receiver (531) (e.g., a receiving circuit). The video decoder (510) may be used to replace Figure 4 A video decoder (410) of an embodiment.

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

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

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

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

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

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

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

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

[0060] The output samples of the aggregator (555) may be employed by various loop filtering techniques in a loop filter unit (556). The video compression techniques may include in-loop filter techniques controlled by parameters included in the encoded video sequence (also referred to as the encoded video bitstream) and available to the loop filter unit (556) as symbols (521) from the parser (520). However, in other embodiments, the video compression techniques may also be responsive to meta-information obtained during decoding of a previous (in decoding order) portion of an encoded picture or encoded video sequence, as well as to previously reconstructed and loop filtered sample values.

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

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

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

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

[0065] Figure 6 6 is a block diagram of a video encoder (603) according to an embodiment disclosed in the present application. The video encoder (603) is provided in an electronic device (620). The electronic device (620) includes a transmitter (640) (e.g., a transmission circuit). The video encoder (603) can be used to replace Figure 4 A video encoder (403) in an embodiment.

[0066] The video encoder (603) can be used to obtain the video source (601) (not Figure 6 In another embodiment, the video source (601) is a part of the electronic device (620) to receive video samples, and the video source can collect video images to be encoded by the video encoder (603). In another embodiment, the video source (601) is a part of the electronic device (620).

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

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

[0069] In some embodiments, the video encoder (603) operates in an encoding loop. As a simple description, in embodiments, the encoding loop may include a source encoder (630) (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 (633) embedded in the video encoder (603). The decoder (633) reconstructs the symbols to create sample data in a manner similar to how the (remote) decoder creates sample data (because in the video compression technology considered in this application, any compression between the symbols and the encoded video code stream is lossless). The reconstructed sample stream (sample data) is input to a reference picture memory (634). 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 (634) are also bit-accurate between the local encoder and the remote encoder. In other words, the reference picture samples "seen" by the prediction part of the encoder are exactly the same as the sample values ​​that the decoder will "see" when using the prediction during decoding. This basic principle of reference picture synchronization (and the drift that occurs when synchronization cannot be maintained, eg due to channel errors) is also used in some related techniques.

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

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

[0072] During operation, in some embodiments, the source encoder (630) may perform motion compensated predictive coding. The motion compensated predictive coding predictively encodes an input picture with reference to one or more previously encoded pictures from a video sequence designated as "reference pictures." In this manner, the encoding engine (632) 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.

[0073] The local video decoder (633) 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 (630). The operation of the encoding engine (632) may be a lossy process. When the encoded video data is available at the video decoder ( Figure 6 When the video sequence is decoded at a remote location (not shown), the reconstructed video sequence may typically be a copy of the source video sequence with some errors. The local video decoder (633) replicates the decoding process that may be performed by the video decoder on the reference picture and may cause the reconstructed reference picture to be stored in the reference picture cache (634). In this way, the video encoder (603) may store a copy of the reconstructed reference picture locally that has common content (absent transmission errors) with the reconstructed reference picture to be obtained by the remote video decoder.

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

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

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

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

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

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

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

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

[0082] The source picture may typically be spatially subdivided into blocks of samples (e.g., blocks of 4×4, 8×8, 4×8, or 16×16 samples), and coded block by block. These blocks may be predictively coded with reference to other (already coded) blocks, which are determined according to the coding allocation applied to the block's corresponding picture. For example, blocks of an I picture may be non-predictively coded, or the blocks 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.

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

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

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

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

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

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

[0089] Figure 7 is a diagram of a video encoder (703) according to another embodiment disclosed in the present application. The video encoder (703) is used to receive a processed block (e.g., a prediction block) of sample values ​​in a current video picture in a video picture sequence, and encode the processed block into an encoded picture that is part of an encoded video sequence. In this embodiment, the video encoder (703) is used to replace Figure 4A video encoder (403) in an embodiment.

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

[0091] exist Figure 7 In an embodiment of the present invention, the video encoder (703) includes: Figure 7 Shown are an inter-frame encoder (730), an intra-frame encoder (722), a residual calculator (723), a switch (726), a residual encoder (724), a general controller (721), and an entropy encoder (725) coupled together.

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

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

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

[0095] The residual calculator (723) is used to calculate the difference (residual data) between the received block and the prediction result selected from the intra-frame encoder (722) or the inter-frame encoder (730). The residual encoder (724) is used to operate based on the residual data to encode the residual data to generate a transform coefficient. In an embodiment, the residual encoder (724) is used to convert the residual data from the time domain to the frequency domain and generate a transform coefficient. The transform coefficient is then processed by quantization to obtain a quantized transform coefficient. In various embodiments, the video encoder (703) also includes a residual decoder (728). The residual decoder (728) is used to perform an inverse transform and generate decoded residual data. The decoded residual data can be used appropriately by the intra-frame encoder (722) and the inter-frame encoder (730). For example, the inter-frame encoder (730) can generate a decoded block based on the decoded residual data and the inter-frame prediction information, and the intra-frame encoder (722) can generate a decoded block based on the decoded residual data and the intra-frame prediction information. The decoded blocks are appropriately processed to generate a decoded picture, and in some embodiments, the decoded picture may be buffered in a memory circuit (not shown) and used as a reference picture.

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

[0097] Figure 8FIG. 8 is a diagram of a video decoder (810) according to another embodiment disclosed in the present application. The video decoder (810) is used to receive an encoded image as part of an encoded video sequence and decode the encoded image to generate a reconstructed picture. In an embodiment, the video decoder (810) is used to replace Figure 4 A video decoder (410) of an embodiment.

[0098] exist Figure 8 In an embodiment, the video decoder (810) includes Figure 8 An entropy decoder (871), an inter-frame decoder (880), a residual decoder (873), a reconstruction module (874) and an intra-frame decoder (872) coupled together are shown in FIG.

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

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

[0101] The intra-frame decoder (872) is used to receive intra-frame prediction information and generate a prediction result based on the intra-frame prediction information.

[0102] The residual decoder (873) is used to perform inverse quantization to extract dequantized transform coefficients, and process the dequantized transform coefficients to convert the residual from the frequency domain to the spatial domain. The residual decoder (873) may also require some control information (to obtain the quantizer parameter QP), and this information can be provided by the entropy decoder (871) (the data path is not indicated because this is only low-volume control information).

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

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

[0105] The present disclosure includes improvements to intra-mode codecs.

[0106] ITU-T VCEG (Q6 / 16) and ISO / IEC MPEG (JTC 1 / SC 29 / WG 11) released the H.265 / HEVC (High Efficiency Video Coding) standard in 2013 (version 1), 2014 (version 2), 2015 (version 3), and 2016 (version 4). In 2015, the two standards organizations jointly established JVET, the Joint Video Exploration Team, to explore the potential of developing the next generation video coding standard beyond HEVC. In April 2018, JVET officially launched the standardization process for the next generation video coding beyond HEVC. The new standard was named Versatile Video Coding (VVC), and JVET was renamed the Joint Video Experts Team. In July 2020, H.266 / VVC version 1 was finalized. In January 2021, an ad hoc group was established to study enhanced compression beyond the capabilities of VVC.

[0107] In decoder side intra mode derivation (DIMD), intra mode may be derived using relevant syntax elements signaled in the bitstream, or intra mode may be derived at the decoder side without using relevant syntax elements signaled in the bitstream. Many methods may be used to derive intra mode at the decoder side, and decoder side intra mode derivation is not limited to the methods described in the present disclosure.

[0108] In DIMD, two intra modes among multiple candidate intra modes of the current CU / PU can be derived from the reconstructed neighboring samples of the current CU / PU. In DIMD, texture gradient analysis can be performed at both the encoding end and the decoding end to generate multiple candidate intra modes based on the reconstructed neighboring samples. Each of the multiple candidate intra modes can be associated with a respective gradient history (or a respective gradient). Two intra modes (e.g., intraMode1 and intraMode2) with the highest gradient history (or the highest gradient in the histogram) can be selected. The intra mode predictors of the selected two intra modes (e.g., intraMode1 and intraMode2) can be combined with the plane mode predictor using a weighted sum. Based on the combination of intraMode1, intraMode2 and the plane, the final intra mode predictor of the current CU / PU can be formed.

[0109] Table 1 shows an exemplary DIMD signaling process. As shown in Table 1, a DIMD flag (e.g., DIMD_flag) may be signaled before an ISP flag (e.g., ISP_flag). When the DIMD flag is 1 (or true), it may indicate that the current CU / PU uses DIMD, and the ISP flag may be further parsed to verify whether the ISP is applied to the current CU / PU. When the DIMD flag is not 1 (or false), it may indicate that the current CU / PU does not use DIMD. Therefore, syntax elements related to other intra-coding tools (e.g., MIP, MRL, MPM, etc.) may be parsed in the decoder.

[0110] The context modeling of the DIMD flag may depend on the neighboring CU / PU. For example, the context modeling of the DIMD flag may depend on (i) the availability of the left neighboring CU / PU or the upper neighboring CU / PU and (ii) whether the left neighboring CU / PU or the upper neighboring CU / PU also uses DIMD. If the left neighboring CU / PU or the upper neighboring CU / PU exists and uses DIMD, the context index (e.g., ctxIdx) may be 1. When both the left neighboring CU / PU and the upper neighboring CU / PU exist and use DIMD, ctxIdx may be 2. Otherwise, ctxIdx may be 0.

[0111] Table 1 Pseudo code of DIMD signaling

[0112]

[0113] Template-based Intra Mode Derivation (TIMD) can use the reference sample of the current CU as a template and select an intra mode from the candidate intra prediction mode set associated with TIMD. For example, the selected intra mode can be determined as the best intra mode based on a cost function. Fig. 9 As shown, the neighboring reconstructed samples of the current CU (902) can be used as a template (904). The reconstructed samples in the template (904) can be compared with the predicted samples of the template (904). The predicted samples can be generated using the reference samples (906) of the template (904). The reference samples (906) can be neighboring reconstructed samples around the template (904). The cost function can be used to calculate the cost (or distortion) between the predicted samples and the reconstructed samples in the template (904) based on a corresponding one of the candidate intra-prediction mode sets. The intra-prediction mode with the minimum cost (or distortion) can be selected as the intra-prediction mode (e.g., the best intra-prediction mode) to perform intra-prediction on the current CU (902).

[0114] Table 2 shows an exemplary encoding and decoding process associated with TIMD. As shown in Table 2, when the DIMD flag (e.g., DIMD_flag) is not 1 (or not true), the TIMD flag (e.g., TIMD_flag) can be signaled. When the DIMD flag is 1, the current CU / PU uses DIMD, and the ISP flag (e.g., ISP_flag) can be parsed to determine whether the ISP is used for the current CU / PU. When the DIMD flag is not 1, the TIMD flag is parsed. When the TIMD flag is 1, TIMD can be applied to the current CU / PU without applying other intra-coding tools (e.g., when TIMD is used, ISP is not allowed). When the TIMD flag is not 1 (or false), syntax elements related to other intra-coding tools (e.g., MIP, MRL, MPM, etc.) can be parsed in the decoder.

[0115] Table 2 Pseudo code of TIMD signaling

[0116]

[0117] In a related example, explicitly signaled intra modes and decoded-side derived intra modes may be applied to perform intra prediction at the decoder side. For example, the decoder may use DIMD to derive intra modes and use the derived intra modes for intra prediction.

[0118] In some embodiments, a general MPM list with 22 entries may be first constructed, and then the first 6 entries in the general MPM list may be included in the primary MPM (PMPM) list, and the remaining entries may form a secondary MPM (SMPM) list. The first entry in the general MPM list may be a planar mode. The remaining entries in the general MPM list may include (i) intra modes for left (L), top (A), bottom left (BL), top right (AR), and top left (AL) neighboring blocks, (ii) directional modes with increased offsets from the first two available directional modes of neighboring blocks, and (iii) a default mode. Fig.10 Exemplary locations of L, A, BL, AR, and AL neighboring blocks are shown in FIG.

[0119] If a CU block (e.g. Fig.10 If the height of 1002 in is not less than the width of the CU block, the order of adjacent blocks can be A, L, BL, AR, AL; otherwise, the order of adjacent blocks can be L, A, BL, AR, AL. The order of MPM entries may be important because the index of the entry can be encoded in truncated binary, and the latter of the truncated binary indications may cost more bits to encode.

[0120] When neighboring blocks AL, A and AR are in a CTU different from the CTU of the current CU (e.g., 1002), the neighboring blocks AL, A and AR may be considered unavailable due to line buffer limitations. Therefore, the intra mode of the unavailable neighboring CU may not be inserted into the MPM list.

[0121] The remaining intra modes can be considered as non-MPM modes. For example, in ECM 2.0, the total available intra modes for luma CU is 67, while the number of non-MPM modes is 45.

[0122] In VVC, when a neighboring CU is an inter-coded CU, the intra mode of the neighboring CU can be considered as a planar mode, and the planar mode can be inserted into the MPM list.

[0123] The intra-frame mode of an intra-coded CU can be stored in the memory in units of 4×4 pixel samples. For an intra-coded CU applying DIMD, the intra-frame mode with the highest gradient histogram (HoG) derived by the decoding end can be stored. For an intra-coded CU applying TIMD, the intra-frame mode with the minimum absolute transform difference (SATD) cost derived by the decoding end can be stored. For an intra-coded CU applying block-based delta pulse code modulation (BDPCM), the signaled BDPCM direction can be stored. For an intra-coded CU applying matrix-based intra prediction (MIP) or template matching prediction (TMP), a planar mode can be stored. For other intra-coded CUs, intra-frame modes derived from an MPM list or a non-MPM list can be stored.

[0124] To improve the accuracy of the MPM list, when inter-coding a neighboring block, the propagated intra prediction mode can be derived using the motion vector and reference picture associated with the inter-coded neighboring block. For an inter-coded CU, the intra mode can be propagated from the referenced region to the inter-coded CU.

[0125] In some embodiments, such as in ECM 2.0, the general MPM list may include one or more of the following entries. The order of the general MPM list is as follows. For each entry numbered (or arranged) as follows, if any condition is not met, the intra mode is not inserted into the general MPM list of the entry. A pruning check may be performed before inserting each entry to eliminate redundancy.

[0126] 1. Flat

[0127] 2. If the height of the current CU is not less than the width, and A exists and A is intra, then A.

[0128] If the height of the current CU is less than the width, and L exists and L is intra, then L.

[0129] 3. If the height of the current CU is not less than the width, and L exists and L is intra-frame and L is in the same CTU, then L. If the height of the current CU is less than the width, and A exists and A is intra-frame and A is in the same CTU, then A.

[0130] 4. If the height of the current CU is not less than the width, and A exists and A is inter-frame, then A is the propagation intra mode. If the height of the current CU is less than the width, and L exists and L is inter-frame, then L is the propagation intra mode.

[0131] 5. If the height of the current CU is not less than the width, and L exists and L is inter, then L is the propagation intra mode. If the height of the current CU is less than the width, and A exists and A is inter, then A is the propagation intra mode.

[0132] 6. If BL exists and BL is intra, then BL.

[0133] 7. If AR exists, and AR is intra-frame and AR is in the same CTU, then AR.

[0134] 8. If AL exists, and AL is intra-frame and AL is in the same CTU, then AL.

[0135] 9. If BL exists and BL is inter, then BL is propagated intra mode.

[0136] 10. If AR exists and AR is inter, then AR is propagated in intra mode.

[0137] 11. If AL exists and AL is inter-frame, then AL is propagated in intra-frame mode.

[0138] In the present disclosure, various metrics may be used to sort all or a subset of the MPM list.The sorting may be performed based on a template, which is the neighboring reconstructed samples of the current block. Fig. 9 An exemplary template for the current block is shown in .

[0139] In an embodiment, a gradient analysis, such as a texture gradient analysis, may be performed on the template of the current block to generate a gradient value. The texture gradient analysis may be configured to evaluate the size distortion (e.g., density, intensity, resolution, or detail) between closer objects (or pixels) and farther objects (or pixels). In the gradient analysis of the present disclosure, horizontal and vertical SobeL filters may be applied to multiple small areas (or window positions) of the template to generate multiple gradient values. Each gradient in the gradient value may include a corresponding horizontal component (G h ) and the corresponding vertical component (G v). The horizontal component may indicate the strength of the small area in the horizontal direction, and the vertical component may indicate the strength of the small area in the vertical direction. The magnitude of the gradient value may be equal to the sum of (i) the absolute value of the horizontal component of the gradient value and (ii) the absolute value of the vertical component of the gradient value. The order of the entries in the MPM list may be based on the gradient value. For example, a gradient history (HoG) (or gradient histogram) of the template may be generated based on the magnitude of the gradient value. In the gradient histogram, each HoG (or magnitude) may be associated with a corresponding angular intra-frame mode in the MPM list. For example, arctan(G v / G h ) may indicate an angular intra mode in the MPM list. The MPM list may be rearranged based on HoG. In an example, the MPM list may be sorted in descending order of HoG. The intra mode associated with the highest HoG (or largest amplitude) may be placed in the first entry of the MPM list. Both the encoder and the decoder may perform the sorting process.

[0140] In an embodiment, a cost function may be used to calculate a corresponding cost (or distortion) value or rate distortion cost between a predicted sample and a reconstructed sample of a template based on each of the MPM entries (or intra-prediction modes) in the MPM list, wherein the predicted sample of the template may be generated based on a corresponding one of the MPM entries in the MPM list. The cost function may be configured to evaluate the difference between the predicted sample and the reconstructed sample of the template. Exemplary cost functions may include the sum of absolute difference (SAD), the sum of absolute transformed difference (SATD), the mean square error (MSE), the mean absolute difference (MAD), the matching-pixel count (MPC), and the like. Therefore, based on the cost function, each of the MPM entries may correspond to a corresponding cost value, such as a SAD value or a SATD value. The order of the entries in the MPM list may be based on the cost value. The MPM list may be rearranged in ascending order of the cost value (e.g., SATD), which is associated with the MPM entry. The intra mode in the MPM list with the smallest SATD may be placed in the first entry of the MPM list.Both the encoder and the decoder may perform the sorting process.

[0141] In an embodiment, certain intra modes may be excluded from the sorting of the MPM list. Certain intra modes may be added to the MPM list after sorting. For example, certain intra modes may be added to the end of the sorted MPM list.

[0142] In an example, the intra modes associated with the highest and second highest HoGs may be labeled intraModeHog1 and intraModeHog2, respectively. Fig.10 When intramodeHog2 is different from the intra mode at one or more positions such as position L or A, intramodeHog2 may be excluded from the sorting and further added to the end of the MPM list as the last entry after other intra modes are sorted.

[0143] In an example, the intra-modes with the smallest and second smallest SATDs may be marked as intraModeSatd1 and intraModeSatd2, respectively. When intramodeSatd1 is different from the intra-modes at one or more positions such as position L or A, intramodeSatd1 may be excluded from the sorting and further placed in the MPM list after the other intra-modes are sorted. When intramodeSatd2 is different from the intra-modes at one or more positions such as position L or A, intramodeSatd2 may be excluded from the sorting and further added to the end of the MPM list as the last entry after the other intra-modes are sorted.

[0144] In the present disclosure, the non-MPM list may also be sorted. The non-MPM list may include intra modes that are not included in the MPM list. For example, in ECM 2.0, the total intra modes for the luma CU are 67. The MPM list may include 22 intra modes, while the non-MPM list may include the remaining 45 intra modes. The non-MPM list may be sorted based on a template, which is the adjacent reconstructed samples of the current block.

[0145] In an embodiment, a history of gradients (HoG) of the template may be calculated for each or a subset of the non-MPM entries. The intra modes in the non-MPM list may be arranged based on the HoG. In an example, the non-MPM list is arranged in descending order of the HoG. Thus, the intra mode associated with the highest HoG in the non-MPM list may be placed in the first entry of the non-MPM list. Both the encoder and the decoder may perform the sorting process.

[0146] In an embodiment, a cost value (e.g., SATD or SAD) of a template may be calculated for each or a subset of non-MPM entries in a non-MPM list. The non-MPM list may be arranged based on the cost value. In an example, the non-MPM list is arranged in ascending order based on the cost value (e.g., SATD). Therefore, the entry with the smallest SATD may be placed in the first entry of the non-MPM list. Both the encoder and the decoder perform the sorting process.

[0147] Fig.11 A flow chart outlining an exemplary decoding process (1100) is shown according to some embodiments of the present disclosure. Fig.12 A flow chart outlining an exemplary encoding process (1200) according to some embodiments of the present disclosure is shown. The proposed processes can be used alone or in combination in any order. In addition, each of the processes (or embodiments), encoders, and decoders can be implemented by processing circuits (e.g., one or more processors or one or more integrated circuits). In an example, one or more processors execute a program stored in a non-volatile computer-readable medium.

[0148] In an embodiment, any operation of the process (e.g., (1100) and (1200)) can be combined or arranged in any number or order as needed. In an embodiment, two or more of the operations of the process (e.g., (1100) and (1200)) can be performed in parallel.

[0149] These processes (e.g., (1100) and (1200)) may be used for reconstruction and / or encoding of a block so as to generate a prediction block for the block being reconstructed. In various embodiments, the processes (e.g., (1100) and (1200)) are performed by a processing circuit system, such as a processing circuit in a terminal device (310), (320), (330), and (340), a processing circuit that performs the functions of a video encoder (303), a processing circuit that performs the functions of a video decoder (410), a processing circuit that performs the functions of a video decoder (510), a processing circuit that performs the functions of a video encoder (603), etc. In some embodiments, the processes (e.g., (1100) and (1200)) are implemented in software instructions, so when the processing circuit system executes the software instructions, the processing circuit performs the processes (e.g., (1100) and (1200)).

[0150] like Fig.11 As shown, the process (1100) may start from (S1101) and proceed to (S1110). At (S1110), encoded information of a current block and neighboring blocks of the current block may be received from an encoded video code stream.

[0151] At (S1120), a most probable mode (MPM) list for the current block may be generated. The MPM list may include an intra mode determined based on intra modes of neighboring blocks of the current block.

[0152] At (S1130), a metric of the neighboring blocks, such as one of a gradient value and a cost value, may be calculated based on the intra mode of the MPM list.

[0153] At (S1140), the intra modes of the MPM list may be sorted based on one of a gradient value and a cost value of a neighboring block, wherein each of the intra modes in the MPM list may be associated with a corresponding one of the gradient value and the cost value.

[0154] At (S1150), the current block may be reconstructed based on the MPM list.

[0155] In some embodiments, the gradient value may correspond to a histogram of gradients (HoG). Thus, sorting the intra modes of the MPM list may further include sorting the intra modes of the MPM list in descending order based on the HoGs of neighboring blocks. The intra mode of the MPM list associated with the highest HoG may be the first entry of the MPM list.

[0156] In some embodiments, to sort the intra modes of the MPM list, the intra modes of the MPM list may be sorted in ascending order based on the cost values ​​of neighboring blocks. The intra mode of the MPM list associated with the smallest cost value may be the first entry of the MPM list.

[0157] In some embodiments, in order to sort the intra-frame modes of the MPM list, a first intra-frame mode of the intra-frame mode associated with the highest HoG and a second intra-frame mode of the intra-frame mode associated with the second highest HoG can be determined. In addition, it can be determined whether (i) the first intra-frame mode is different from the intra-frame mode of the left neighboring block of the neighboring block and the intra-frame mode of the upper neighboring block of the neighboring block, and (ii) the second intra-frame mode is different from the intra-frame mode of the left neighboring block of the neighboring block and the intra-frame mode of the upper neighboring block of the neighboring block. In response to the first intra-frame mode being different from the intra-frame mode of the left neighboring block of the neighboring block and the intra-frame mode of the upper neighboring block of the neighboring block, the first intra-frame mode can be added to the MPM list after sorting the other intra-frame modes of the MPM list. In response to the second intra-frame mode being different from the intra-frame mode of the left neighboring block of the neighboring block and the intra-frame mode of the upper neighboring block of the neighboring block, the second intra-frame mode can be added to the MPM list as the last entry.

[0158] In some embodiments, in order to sort the intra-frame modes of the MPM list, a first intra-frame mode of the intra-frame mode associated with the minimum cost value and a second intra-frame mode of the intra-frame mode associated with the second minimum cost value may be determined. It may be determined whether (i) the first intra-frame mode is different from the intra-frame mode of the left neighboring block of the neighboring block and the intra-frame mode of the upper neighboring block of the neighboring block, and (ii) the second intra-frame mode is different from the intra-frame mode of the left neighboring block of the neighboring block and the intra-frame mode of the upper neighboring block of the neighboring block. In response to the first intra-frame mode being different from the intra-frame mode of the left neighboring block of the neighboring block and the intra-frame mode of the upper neighboring block of the neighboring block, the first intra-frame mode may be added after sorting the other intra-frame modes of the MPM list. In response to the second intra-frame mode being different from the intra-frame mode of the left neighboring block of the neighboring block and the intra-frame mode of the upper neighboring block of the neighboring block, the second intra-frame mode may be added as the last entry in the MPM list.

[0159] In the process (1100), an MPM index may be further encoded from the encoded information. The intra mode of the current block may be determined based on the MPM index and the MPM list, wherein the MPM index may indicate which intra mode in the MPM list is applied to intra encoding of the current block.

[0160] In some embodiments, the intra-frame modes of the non-MPM list may be sorted based on the HoG and one of the cost values ​​of the neighboring blocks, wherein the HoG and one of the cost values ​​of the neighboring blocks are calculated based on the intra-frame modes of the non-MPM list, wherein each of the intra-frame modes in the non-MPM list may be associated with a corresponding one of the HoG and the cost value.

[0161] In one example, to sort the intra modes of the non-MPM list, the intra modes of the non-MPM list may be sorted in descending order based on the HoGs of neighboring blocks, wherein the intra mode of the non-MPM list associated with the highest HoG may be the first entry of the non-MPM list.

[0162] In another example, in order to sort the intra modes of the non-MPM list, the intra modes of the non-MPM list may be sorted in ascending order based on the cost values ​​of neighboring blocks, wherein the intra mode of the non-MPM list associated with the smallest cost value may be the first entry of the non-MPM list.

[0163] like Fig.12 As shown, the process (1200) may start from (S1201) and proceed to (S1210). At (S1210), a most probable mode (MPM) list may be generated for a current block in a video picture. The MPM list may include intra-modes formed based on intra-modes of neighboring blocks of the current block, and indicates the most probable intra-mode of the current block.

[0164] At (S1220), one of a gradient value and a cost value of a neighboring block may be calculated based on the intra mode of the MPM list.

[0165] At (S1230), the intra modes of the MPM list may be sorted based on one of a gradient value and a cost value of a neighboring block, wherein each of the intra modes in the MPM list may be associated with a corresponding one of the gradient value and the cost value.

[0166] At (S1240), the current block may be encoded based on the MPM list.

[0167] The above techniques may be implemented as computer software via computer-readable instructions and physically stored in one or more computer-readable media. Fig.13 A computer device (1300) is shown that is suitable for implementing certain embodiments of the disclosed subject matter.

[0168] The computer software may be encoded in any suitable machine code or computer language, and may be assembled, compiled, linked, or the like to create a code comprising instructions, which may be directly executed by one or more computer central processing units (CPUs), graphics processing units (GPUs), etc., or executed by decoding, microcode, or the like.

[0169] The instructions may be executed on various types of computers or components thereof, including, for example, personal computers, tablets, servers, smartphones, gaming devices, IoT devices, etc.

[0170] Fig.13 The components shown for the computer device (1300) are exemplary in nature and are not intended to limit the scope of use or functionality of computer software implementing embodiments of the present application. The configuration of the components should not be interpreted as having any dependency or requirement on any component or combination of components shown in the exemplary embodiment of the computer device (1300).

[0171] The computer device (1300) may include certain human-computer interface input devices. Such human-computer interface input devices may respond to input from one or more human users through tactile input (e.g., keyboard input, sliding, data glove movement), audio input (e.g., sound, applause), visual input (e.g., gestures), and olfactory input (not shown). The human-computer interface device may also be used to capture certain media that are not necessarily directly related to human conscious input, such as audio (e.g., speech, music, ambient sound), images (e.g., scanned images, photographic images obtained from a still image camera), and videos (e.g., two-dimensional video, three-dimensional video including stereoscopic video).

[0172] The human-computer interface input device may include one or more of the following (only one of which is drawn): keyboard (1301), mouse (1302), touchpad (1303), touch screen (1310), data gloves (not shown), joystick (1305), microphone (1306), scanner (1307), camera (1308).

[0173] The computer device (1300) 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 through a touch screen (1310), a data glove (not shown), or a joystick (1305), but there may also be tactile feedback devices that are not used as input devices), audio output devices (e.g., speakers (1309), headphones (not shown)), visual output devices (e.g., screens (1310) including cathode ray tube screens, liquid crystal screens, plasma screens, organic light emitting diode screens, each of which has or does not have a touch screen input function, each of which has or does not have a tactile feedback function - some of which may output two-dimensional visual output or output of more than three dimensions through means such as stereoscopic picture output; virtual reality glasses (not shown), holographic displays, and smoke boxes (not shown)) and printers (not shown).

[0174] The computer device (1300) may also include human-accessible storage devices and their associated media, such as optical media including high-density read-only / rewritable optical disks (CD / DVD ROM / RW) (1320) with CD / DVD or similar media (1321), thumb drives (1322), removable hard disk drives or solid state drives (1323), traditional magnetic media such as tapes and floppy disks (not shown), special-purpose ROM / ASIC / PLD-based devices such as security software protectors (not shown), and the like.

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

[0176] The computer device (1300) may also include an interface (1355) to one or more communication networks (1354). The network may be wireless, wired, or optical. The network may also be a local area network, a wide area network, a metropolitan area network, an in-vehicle network, an industrial network, a real-time network, a delay-tolerant network, and the like. Examples of networks may include local area networks such as Ethernet, wireless local area networks, cellular networks (GSM, 3G, 4G, 5G, LTE, etc.), television wired or wireless wide area digital networks (including cable television, satellite television, and terrestrial broadcast television), in-vehicle and industrial networks (including CANBus), and the like. Some networks typically require an external network interface adapter for connecting to some common data ports or peripheral buses (1349) (e.g., a USB port of the computer device (1300)); other systems are typically integrated into the core of the computer device (1300) by connecting to a system bus as described below (e.g., an Ethernet interface integrated into a PC computer system or a cellular network interface integrated into a smart phone computer system). By using any of these networks, the computer device (1300) can communicate with other entities. The communication can be one-way, for receiving only (e.g., wireless television), one-way for sending only (e.g., CAN bus to certain CAN bus devices), or two-way, such as to other computer systems via a local or wide area digital network. Each of the above networks and network interfaces can use certain protocols and protocol stacks.

[0177] The above-mentioned human-machine interface devices, human-accessible storage devices, and network interfaces may be connected to the core (1340) of the computer device (1300).

[0178] The core (1340) may include one or more central processing units (CPUs) (1341), graphics processing units (GPUs) (1342), dedicated programmable processing units in the form of field programmable gate arrays (FPGAs) (1343), hardware accelerators for specific tasks (1344), etc. These devices, as well as read-only memory (ROM) (1345), random access memory (1346), internal mass storage (e.g., internal non-user accessible hard disk drives, solid-state drives, etc.) (1347), etc., may be connected via a system bus (1348). In some computer systems, the system bus (1348) may be accessed in the form of one or more physical plugs so that it can be expanded by additional central processing units, graphics processing units, etc. Peripheral devices may be directly attached to the core's system bus (1348) or connected via a peripheral bus (1349). The architecture of the peripheral bus includes PCI, USB, etc. In one example, the screen (1310) may be connected to a graphics adapter (1350). The architecture of the peripheral bus includes PCI, USB, etc.

[0179] The CPU (1341), GPU (1342), FPGA (1343) and accelerator (1344) can execute certain instructions, which can be combined to form the above-mentioned computer code. The computer code can be stored in ROM (1345) or RAM (1346). Transition data can also be stored in RAM (1346), while permanent data can be stored in, for example, internal mass storage (1347). Fast storage and retrieval of any memory device can be achieved by using a cache memory, which can be closely associated with one or more CPUs (1341), GPUs (1342), mass storage (1347), ROM (1345), RAM (1346), etc.

[0180] The computer readable medium may have computer code thereon for performing various computer-implemented operations. The medium and computer code may be specially designed and constructed for the purpose of this application, or may be medium and code well known and available to those skilled in the art of computer software.

[0181] As an example and not a limitation, a computer system having an architecture (1300), in particular a core (1340), can provide the function of executing software contained in one or more tangible computer-readable media as a processor (including a CPU, a GPU, an FPGA, an accelerator, etc.). Such a computer-readable medium can be a medium associated with the above-mentioned user-accessible mass storage, as well as a specific memory of the core (1340) having non-volatility, such as a core internal mass storage (1347) or a ROM (1345). Software implementing various embodiments of the present application can be stored in such a device and executed by the core (1340). Depending on specific needs, the computer-readable medium may include one or more storage devices or chips. The software can enable the core (1340), in particular the processor therein (including a CPU, a GPU, an FPGA, etc.) to perform a specific process or a specific part of a specific process described herein, including defining a data structure stored in the RAM (1346) and modifying such a data structure according to a software-defined process. Additionally or alternatively, the computer system may provide functionality hardwired in logic or otherwise contained in circuitry (e.g., accelerator (1344)) that may operate in place of or in conjunction with software to perform a particular process or a particular portion of a particular process described herein. Where appropriate, references to software may include logic and vice versa. Where appropriate, references to computer-readable media may include circuitry (e.g., an integrated circuit (IC)) storing execution software, circuitry containing execution logic, or both. The present application includes any suitable combination of hardware and software.

[0182] Appendix: Acronyms

[0183] JEM: Joint Development Model

[0184] VVC: Next Generation Video Coding

[0185] BMS: Benchmark Collection

[0186] MV: Motion Vector

[0187] HEVC: High Efficiency Video Coding

[0188] SEI: Supplemental Enhancement Information

[0189] VUI: Video Availability Information

[0190] GOPs: Group of Pictures

[0191] TUs: Transformation Units

[0192] PUs: prediction units

[0193] CTUs: Coding Tree Units

[0194] CTBs: Coding Tree Blocks

[0195] PBs: prediction blocks

[0196] HRD: Hypothesized Reference Decoder

[0197] SNR: Signal to Noise Ratio

[0198] CPUs: Central Processing Units

[0199] GPUs: Graphics Processing Units

[0200] CRT: cathode ray tube

[0201] LCD: Liquid crystal display

[0202] OLED: Organic Light Emitting Diode

[0203] CD: Compact Disc DVD: Digital Video Disc

[0204] ROM: Read Only Memory

[0205] RAM: Random Access Memory

[0206] ASIC: Application-Specific Integrated Circuit

[0207] PLD: Programmable Logic Device

[0208] LAN: Local Area Network

[0209] GSM: Global System for Mobile Communications

[0210] LTE: Long Term Evolution

[0211] CANBus: Controller Area Network Bus

[0212] USB: Universal Serial Bus

[0213] PCI: Peripheral Component Interconnect

[0214] FPGA: Field Programmable Gate Array

[0215] SSD: Field Programmable Gate Array

[0216] IC: Integrated Circuit

[0217] CU: Coding Unit

[0218] Although the present application has described a number of exemplary embodiments, various changes, arrangements and various equivalent substitutions of the embodiments are within the scope of the present application. Therefore, it should be understood that those skilled in the art can design a variety of systems and methods, which, although not explicitly shown or described herein, embody the principles of the present application and are therefore within the spirit and scope of the present application.

Claims

1. A video decoding method, characterized in that: The method comprises: Receiving encoded information of a current block and adjacent blocks of the current block from an encoded video code stream; Generate a most probable mode MPM list of the current block, the most probable mode MPM list including an intra mode, the intra mode being determined based on the intra modes of the neighboring blocks of the current block; Calculating a first histogram of gradients HoG of the neighboring blocks based on the intra mode in the most probable mode MPM list; sorting the intra modes of the most probable mode MPM list in descending order based on the first gradient histogram HoG of the neighboring block, such that the intra mode of the most probable mode MPM list associated with the highest first gradient histogram HoG is the first entry of the most probable mode MPM list, each of the intra modes in the most probable mode MPM list being associated with a corresponding one of the first gradient histogram HoG; and The current block is reconstructed based on the most probable mode (MPM) list.

2. The method according to claim 1, characterized in that The sorting of the intra modes in the most probable mode MPM list further comprises: determining a first intra-mode of the intra-mode associated with the highest first histogram of gradients HoG and a second intra-mode of the intra-mode associated with the second highest first histogram of gradients HoG; determining (i) whether the first intra-frame mode is different from the intra-frame mode of the left neighboring block of the neighboring block and the intra-frame mode of the upper neighboring block of the neighboring block, and (ii) whether the second intra-frame mode is different from the intra-frame mode of the left neighboring block of the neighboring block and the intra-frame mode of the upper neighboring block of the neighboring block; In response to the first intra mode being different from the intra mode of the left neighboring block of the neighboring block and the intra mode of the upper neighboring block of the neighboring block, after sorting other intra modes in the most probable mode MPM list, adding the first intra mode to the most probable mode MPM list; and In response to the second intra mode being different from the intra mode of the left neighboring block and the intra mode of the above neighboring block, the second intra mode is added as a last entry to the most probable mode (MPM) list.

3. The method according to claim 1, characterized in that Further including: Decoding an MPM index from the encoded information; as well as Based on the MPM index and the most probable mode MPM list, the intra mode of the current block is determined, wherein the MPM index indicates which intra mode in the most probable mode MPM list is applied to intra coding of the current block.

4. The method according to claim 1, characterized in that: Further including: The intra-frame modes of the non-MPM list are sorted based on the second gradient histogram HoG and one of the cost values ​​of the neighboring blocks, wherein the second HoG and one of the cost values ​​of the neighboring blocks are calculated based on the intra-frame modes of the non-MPM list, and each of the intra-frame modes in the non-MPM list is associated with a corresponding one of the second HoG and the cost values ​​of the neighboring blocks.

5. The method according to claim 4, characterized in that Sorting the intra modes of the non-MPM list based on the second gradient histogram HoG of the neighboring block, comprising: The intra modes of the non-MPM list are sorted in descending order based on the second histograms of gradients HoG of the neighboring blocks, and the intra mode of the non-MPM list associated with the highest second histogram of gradients HoG is a first entry of the non-MPM list.

6. The method according to claim 4, characterized in that Based on the cost values ​​of the neighboring blocks, the intra modes of the non-MPM list are sorted, including: The intra-modes of the non-MPM list are sorted in ascending order based on the cost values ​​of the neighboring blocks, and the intra-mode of the non-MPM list associated with a minimum cost value is a first entry of the non-MPM list.

7. A video encoding method, characterized in that: The method comprises: Receiving encoded information of a current block and adjacent blocks of the current block from an encoded video code stream; Generate a most probable mode MPM list of the current block, the most probable mode MPM list including an intra mode, the intra mode being determined based on the intra modes of the neighboring blocks of the current block; Calculating a first histogram of gradients HoG of the neighboring blocks based on the intra mode in the most probable mode MPM list; sorting the intra modes of the most probable mode MPM list in descending order based on the first gradient histogram HoG of the neighboring block, such that the intra mode of the most probable mode MPM list associated with the highest first gradient histogram HoG is the first entry of the most probable mode MPM list, each of the intra modes in the most probable mode MPM list being associated with a corresponding one of the first gradient histogram HoG; and The current block is reconstructed based on the most probable mode (MPM) list.

8. A video decoding device, characterized in that: include: processing circuitry configured to: Receiving encoded information of a current block and adjacent blocks of the current block from an encoded video code stream; Generate a most probable mode MPM list of the current block, the most probable mode MPM list including an intra mode, the intra mode being determined based on the intra modes of the neighboring blocks of the current block; Calculate a first histogram of gradients HoG of the neighboring block based on the intra mode of the most probable mode MPM list; sorting the intra modes of the most probable mode MPM list in descending order based on the first histogram of gradients HoG of the neighboring blocks, such that the intra mode of the MPM list associated with the highest first histogram of gradients HoG is the first entry of the MPM list, each of the intra modes in the most probable mode MPM list being associated with a corresponding one of the first histogram of gradients HoG; as well as The current block is reconstructed based on the most probable mode (MPM) list.

9. The device according to claim 8, characterized in that The processing circuit system is configured to: determining a first intra-mode of the intra-mode associated with the highest first histogram of gradients HoG and a second intra-mode of the intra-mode associated with the second highest first histogram of gradients HoG; determining (i) whether the first intra-frame mode is different from the intra-frame mode of the left neighboring block of the neighboring block and the intra-frame mode of the upper neighboring block of the neighboring block, and (ii) whether the second intra-frame mode is different from the intra-frame mode of the left neighboring block of the neighboring block and the intra-frame mode of the upper neighboring block of the neighboring block; In response to the first intra mode being different from the intra mode of the left neighboring block of the neighboring block and the intra mode of the upper neighboring block of the neighboring block, after sorting other intra modes in the most probable mode MPM list, adding the first intra mode to the most probable mode MPM list; as well as In response to the second intra mode being different from the intra mode of the left neighboring block and the intra mode of the above neighboring block, the second intra mode is added as a last entry to the most probable mode (MPM) list.

10. The device according to claim 8, characterized in that The processing circuit system is configured to: Decoding an MPM index from the encoded information; and Based on the MPM index and the most probable mode MPM list, the intra mode of the current block is determined, wherein the MPM index indicates which intra mode in the most probable mode MPM list is applied to intra coding of the current block.

11. The device according to claim 8, characterized in that The processing circuit system is configured to: The intra-frame modes of the non-MPM list are sorted based on the second gradient histogram HoG and one of the cost values ​​of the neighboring blocks, wherein the second HoG and one of the cost values ​​of the neighboring blocks are calculated based on the intra-frame modes of the non-MPM list, and each of the intra-frame modes in the non-MPM list is associated with a corresponding one of the second HoG and the cost values.

12. The device according to claim 11, characterized in that The processing circuit system is configured to: The intra modes of the non-MPM list are sorted in descending order based on the second histograms of gradients HoG of the neighboring blocks, and the intra mode of the non-MPM list associated with the highest second histogram of gradients HoG is a first entry of the non-MPM list.

13. The device according to claim 11, characterized in that The processing circuit system is configured to: The intra-modes of the non-MPM list are sorted in ascending order based on the cost values ​​of the neighboring blocks, and the intra-mode of the non-MPM list associated with a minimum cost value is a first entry of the non-MPM list.

14. A video encoding device, characterized in that: The apparatus comprises processing circuitry configured to: Receiving encoded information of a current block and adjacent blocks of the current block from an encoded video code stream; Generate a most probable mode MPM list of the current block, the most probable mode MPM list including an intra mode, the intra mode being determined based on the intra modes of the neighboring blocks of the current block; Calculating a first histogram of gradients HoG of the neighboring blocks based on the intra mode in the most probable mode MPM list; sorting the intra modes of the most probable mode MPM list in descending order based on the first histogram of gradients HoG of the neighboring blocks, such that the intra mode of the most probable mode MPM list associated with the highest first histogram of gradients HoG is the first entry of the most probable mode MPM list, each of the intra modes in the most probable mode MPM list being associated with a corresponding one of the first histogram of gradients HoG; as well as The current block is reconstructed based on the most probable mode (MPM) list.

15. A non-volatile computer-readable storage medium storing instructions, characterized in that: When the instructions are executed by at least one processor, the at least one processor performs the method according to any one of claims 1 to 7.

16. A computer device, characterized in that: The method comprises a processor and a memory; the memory stores a computer program, and when the computer program is executed by the processor, the processor executes the method according to any one of claims 1 to 7.

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