Method, encoder, device and readable medium for video decoding and encoding

By determining the wide-angle intra prediction mode of non-square blocks in video coding technology and performing appropriate mapping, the problem that the wide-angle direction is not utilized in traditional technology is solved, and the intra prediction efficiency and coding performance are improved.

CN116320408BActive Publication Date: 2024-09-17TENCENT AMERICA LLC
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310277762.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Priority Date
2018-09-28
Filing Date
2019-06-26
Publication Date
2024-09-17
Estimated Expiration
2039-06-26

AI Technical Summary

Technical Problem

In existing video coding technology, traditional intra prediction modes fail to effectively utilize the wide angle direction of non-square blocks, resulting in low coding efficiency, especially for insufficient optimization of the processing of luminance and chrominance components.

Method used

Intra prediction by determining whether the angular intra prediction mode of a non-square block is a wide angle mode and applying an intra smoothing filter when certain conditions are met, or mapping the wide angle mode to the closest regular intra prediction mode predict.

Benefits of technology

It improves the intra prediction efficiency of non-square blocks, enhances the processing capabilities of brightness and chroma components, and improves the overall performance of video encoding.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116320408B_ABST
    Figure CN116320408B_ABST
Patent Text Reader

Abstract

A method for video decoding includes: for a current block that is a non-square block, determining whether an angular intra-frame prediction mode for the current block is a wide-angle mode, the wide-angle mode being in a direction outside a direction range spanning a lower left diagonal direction and an upper right diagonal direction of the current block; in response to determining that the angular intra-frame prediction mode is the wide-angle mode, determining whether a condition for applying an intra-frame smoothing filter to a block adjacent to the current block is satisfied; in response to determining that the condition is satisfied, applying the intra-frame smoothing filter to the block adjacent to the current block; and performing intra-frame prediction based on the filtered block to obtain a feature value of the current block.
Need to check novelty before this filing date? Find Prior Art

Description

[0001] This application is a divisional application of an actively modified version of a patent application with a filing date of June 26, 2019, Chinese patent application number 201980025792.9, and invention name “Method and device for intra-frame prediction of non-square blocks in video compression”. Technical Field

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

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

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

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

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

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

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

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

[0010] A certain intra prediction mode was introduced with H.264, which was improved in H.265 and further improved in new coding techniques such as Joint Exploration Model (JEM), Versatile Video Coding (VVC), Benchmark Set (BMS), etc. A predictor block can be formed using neighboring sample values ​​belonging to already available samples. Sample values ​​of neighboring samples are copied to the predictor block according to the direction. A reference to the used direction can be encoded in the bitstream, or it can be predicted itself.

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

[0012] The mapping of the intra-prediction direction bits representing the direction in the coded video bitstream can vary from one video coding technique to another, and, for example, can range from a simple direct mapping of the prediction direction to intra-prediction modes to codewords to complex adaptive schemes involving most probable modes and similar techniques. Those skilled in the art will readily be familiar with those techniques. However, in all cases, there may be certain directions that are statistically less likely to occur in the video content than certain other directions. Since the goal of video compression is to reduce redundancy, in a well-functioning video coding technique, those directions that are less likely to occur will be represented by a greater number of bits than directions that are likely to occur.

[0013] Conventional intra prediction does not take into account wide angle directions which may be useful for non-square blocks. Furthermore, in conventional intra prediction, all intra prediction modes share the same intra smoothing filter, which may not be effective for wide angles. Additionally, for both luma and chroma components, neighboring samples used for intra prediction sample generation are filtered before the generation process. This filtering is controlled by a given intra prediction mode and block size, and the average of the width and height is used to represent the block size. However, intra prediction can be performed from above or from the left, so it is not optimal to always use the average of the width and height of the block as the block size. Summary of the invention

[0014] According to an embodiment of the present disclosure, a method for video encoding is provided, the method comprising: for a current block that is a non-square block, determining whether an angular intra-frame prediction mode for the current block is a wide-angle mode, the wide-angle mode being in a direction outside a direction range spanning a lower left diagonal direction and an upper right diagonal direction of the current block; in response to determining that the angular intra-frame prediction mode is the wide-angle mode, and a block size of the non-square block is greater than or equal to a block size threshold, applying the intra-frame smoothing filter to a block adjacent to the current block, and performing intra-frame prediction based on the filtered block to obtain a feature value of the current block; based on determining a coding tool that performs intra-frame prediction, in response to the coding tool not supporting the wide-angle intra-frame prediction mode, mapping the wide-angle mode to the closest conventional intra-frame prediction mode, or mapping the wide-angle mode to a conventional intra-frame prediction mode associated therewith; and decoding the current block based on the mapped intra-frame prediction mode.

[0015] According to an embodiment of the present disclosure, a method for video encoding is provided, comprising: for a current block that is a non-square block, determining whether an angular intra-frame prediction mode for the current block is a wide-angle mode, the wide-angle mode being in a direction outside a direction range spanning a lower left diagonal direction and an upper right diagonal direction of the current block; in response to determining that the angular intra-frame prediction mode is the wide-angle mode, and a block size of the non-square block is greater than or equal to a block size threshold, applying the intra-frame smoothing filter to a block adjacent to the current block, and performing intra-frame prediction based on the filtered block to obtain a feature value of the current block; based on determining a coding tool that performs intra-frame prediction, in response to the coding tool not supporting the wide-angle intra-frame prediction mode, mapping the wide-angle mode to the closest conventional intra-frame prediction mode, or mapping the wide-angle mode to a conventional intra-frame prediction mode associated therewith; encoding the current block based on the mapped intra-frame prediction mode.

[0016] According to an embodiment of the present disclosure, a video decoder for video decoding or a video encoder for video encoding is provided, including: a processing circuit, wherein the processing circuit is used to execute the method described in the embodiment of the present application.

[0017] According to an embodiment of the present disclosure, a device for video decoding is provided, comprising: a decoding module, wherein the decoding module is configured to: for a current block that is a non-square block, determine whether an angular intra-frame prediction mode for the current block is a wide-angle mode, wherein the wide-angle mode is in a direction outside a direction range spanning a lower left diagonal direction and an upper right diagonal direction of the current block; in response to determining that the angular intra-frame prediction mode is the wide-angle mode, determine whether a block size of the non-square block is greater than or equal to a block size threshold; in response to the block size of the non-square block being greater than or equal to the block size threshold, apply the intra-frame smoothing filter to a block adjacent to the current block, and perform intra-frame prediction based on the filtered block to obtain a feature value of the current block; according to determining a coding tool for performing intra-frame prediction, in response to the coding tool not supporting the wide-angle intra-frame prediction mode, map the wide-angle mode to the closest conventional intra-frame prediction mode, or map the wide-angle mode to a conventional intra-frame prediction mode associated therewith; and decode the current block based on the mapped intra-frame prediction mode.

[0018] According to an embodiment of the present disclosure, a device for video encoding is provided, comprising: an encoding module, wherein the encoding module is configured to: for a current block that is a non-square block, determine whether an angular intra-frame prediction mode for the current block is a wide-angle mode, and the wide-angle mode is in a direction outside a direction range spanning a lower left diagonal direction and an upper right diagonal direction of the current block; in response to determining that the angular intra-frame prediction mode is the wide-angle mode, determine whether a block size of the non-square block is greater than or equal to a block size threshold; in response to the block size of the non-square block being greater than or equal to the block size threshold, apply the intra-frame smoothing filter to a block adjacent to the current block, and perform intra-frame prediction based on the filtered block to obtain a feature value of the current block; according to a coding tool determined to perform intra-frame prediction, map the wide-angle mode to the closest conventional intra-frame prediction mode, and in response to the coding tool not supporting the wide-angle intra-frame prediction mode, or map the wide-angle mode to a conventional intra-frame prediction mode associated therewith; and encode the current block based on the mapped intra-frame prediction mode.

[0019] Aspects of the present disclosure also provide a non-temporary computer-readable medium storing instructions, which, when executed by a processor in a device for video decoding, causes the processor to execute the video decoding method described in the embodiments of the present application; or, when executed by a processor in a device for video encoding, causes the processor to execute the video encoding method described in the embodiments of the present application. BRIEF DESCRIPTION OF THE DRAWINGS

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

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

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

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

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

[0025] Figure 5 is a schematic diagram of a block diagram of an encoder according to another embodiment.

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

[0027] Figure 7 is a schematic diagram of an exemplary intra prediction mode.

[0028] Figure 8 Various angle modes are shown for the 35 prediction modes.

[0029] Fig. 9 Various angle modes are shown for the 67 prediction modes.

[0030] Fig.10 An exemplary wide-angle prediction mode is shown.

[0031] Fig.11 An embodiment of a process performed by an encoder or a decoder is shown.

[0032] Fig.12 An embodiment of a process performed by an encoder or a decoder is shown.

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

[0034] Figure 1 1 is a simplified block diagram of a communication system (100) according to an embodiment disclosed in the present application. The communication system (100) includes a plurality of terminal devices that can communicate with each other via, for example, a network (150). For example, the communication system (100) includes a first pair of terminal devices (110) and (120) interconnected via the network (150). Figure 1In an embodiment, the first terminal device performs unidirectional data transmission between (110) and (120). For example, the terminal device (110) may encode video data (e.g., a video picture stream collected by the terminal device (110)) for transmission to another terminal device (120) via the network (150). The encoded video data is transmitted in the form of one or more encoded video code streams. The terminal device (120) may receive the encoded video data from the network (150), 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.

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

[0036] exist Figure 1 In the example of, terminal device (110), terminal device (120), terminal device (130) and terminal device (140) may be shown as a server, a personal computer and a smart phone, but the principles disclosed in the present application may not be limited to this. The embodiments disclosed in the present application are applicable to laptop computers, tablet computers, media players and / or dedicated video conferencing equipment. Network (150) represents any number of networks that transmit encoded video data between terminal devices (110), terminal devices (120), terminal devices (130) and terminal devices (140), including, for example, wired (wired) and / or wireless communication networks. Communication network (150) can exchange data in circuit switching and / or packet switching channels. Representative networks may include telecommunication networks, local area networks, wide area networks and / or the Internet. For the purposes of the present application, unless explained below, the architecture and topology of network (150) may be irrelevant to the operations disclosed in the present application.

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

[0038] The streaming system may include an acquisition subsystem (213), which may include a video source (201), such as a digital camera, that creates an uncompressed video picture stream (202). In an example, the video picture stream (202) includes samples captured by a digital camera. The video picture stream (202), depicted as thick lines to emphasize the high amount of data compared to the encoded video data (204) (or the encoded video bitstream), may be processed by an electronic device (220), which includes a video encoder (203) coupled to the video source (201). The video encoder (203) may include hardware, software, or a combination of hardware and software to implement or implement various aspects of the disclosed subject matter as described in more detail below. The encoded video data (204) (or the encoded video bitstream (204)), depicted as thin lines to emphasize the lower amount of data compared to the video picture stream (202), may be stored on a streaming server (205) for future use. One or more streaming client subsystems, such as Figure 2 A client subsystem (206) and a client subsystem (208) in a streaming server (205) may access a streaming server (205) to retrieve a copy (207) and a copy (209) of encoded video data (204). The client subsystem (206) may include, for example, a video decoder (210) in an electronic device (230). The video decoder (210) decodes the incoming copy (207) of the encoded video data and generates an output video picture stream (211) that can be presented on a display (212) (e.g., a display screen) or another presentation device (not depicted). In some streaming systems, the encoded video data (204), the video data (207), and the video data (209) (e.g., a video bitstream) may be encoded according to certain video encoding / compression standards. Examples of such standards include ITU-T H.265. In the example, the video coding standard under development is informally referred to as Versatile Video Coding (VVC), and the disclosed subject matter may be used in the context of VVC.

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

[0040] Figure 3is a block diagram of a video decoder (310) according to an embodiment disclosed in the present application. The video decoder (310) may be included in an electronic device (330). The electronic device (330) may include a receiver (331) (e.g., a receiving circuit). The video decoder (310) may be used to replace Figure 2 A video decoder (210) in an example of FIG.

[0041] The receiver (331) may receive one or more encoded video sequences to be decoded by the video decoder (310); 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 (301), which may be a hardware / software link to a storage device storing the encoded video data. The receiver (331) may receive the encoded video data and other data, such as encoded audio data and / or auxiliary data streams, which may be forwarded to their respective consuming entities (not shown). The receiver (331) may separate the encoded video sequence from the other data. To prevent network jitter, a buffer memory (315) may be coupled between the receiver (331) and the entropy decoder / parser (320) (hereinafter referred to as "parser (320)"). In some applications, the buffer memory (315) is part of the video decoder (310). In other cases, the buffer memory (315) may be provided external to the video decoder (310) (not shown). In other cases, a buffer memory (not shown) is provided outside the video decoder (310) to prevent network jitter, for example, and another buffer memory (315) may be configured inside the video decoder (310) to handle broadcast timing, for example. When the receiver (331) 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 (315), or the buffer memory may be made smaller. For use on a service packet network such as the Internet, a buffer memory (315) may also be required, which may be relatively large and may advantageously have an adaptive size, and may be at least partially implemented in an operating system or a similar element (not shown) outside the video decoder (310).

[0042] The video decoder (310) may include a parser (320) to reconstruct symbols (321) from the encoded video sequence. The types of symbols include information used to manage the operation of the video decoder (310) and potential information used to control a display device such as a display device (312) (e.g., a display screen) that is not an integral part of the electronic device (330) but can be coupled to the electronic device (330), such as Figure 3As shown in . The control information for the display device may be a parameter set fragment (not indicated) of Supplementary Enhancement Information (SEI message) or Video Usability Information (VUI). The parser (320) 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 (320) 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 (320) may also extract information from the encoded video sequence, such as transform coefficients, quantizer parameter values, motion vectors, and so on.

[0043] The parser (320) may perform entropy decoding / parsing operations on the video sequence received from the buffer memory (315) to create symbols (321).

[0044] 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 (321) 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 (320) from the coded video sequence. For the sake of brevity, such subgroup control information flow between the parser (320) and the multiple units below is not described.

[0045] In addition to the functional blocks already mentioned, the video decoder (310) 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 at least partially integrated with each other. However, for the purpose of describing the disclosed subject matter, the conceptual subdivision into the following functional units is appropriate.

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

[0047] In some cases, the output samples of the scaler / inverse transform unit (351) 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 (352). In some cases, the intra-picture prediction unit (352) generates a block of the same size and shape as the block being reconstructed using surrounding reconstructed information extracted from a current picture buffer (358). For example, the current picture buffer (358) buffers a partially reconstructed current picture and / or a fully reconstructed current picture. In some cases, the aggregator (355) adds the prediction information generated by the intra-prediction unit (352) to the output sample information provided by the scaler / inverse transform unit (351) on a per-sample basis.

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

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

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

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

[0052] The video decoder (310) 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 metadata of the HRD buffer management signaled in the encoded video sequence.

[0053] In an embodiment, the receiver (331) may receive additional (redundant) data along with the encoded video. The additional data may be included as part of the encoded video sequence. The additional data may be used by the video decoder (310) 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.

[0054] Figure 4 4 is a block diagram of a video encoder (403) according to an embodiment disclosed in the present application. The video encoder (403) is included in an electronic device (420). The electronic device (420) includes a transmitter (440) (e.g., a transmission circuit). The video encoder (403) can be used to replace Figure 3 A video encoder (403) in an example.

[0055] The video encoder (403) can be used to obtain the video source (401) (not Figure 4 In another embodiment, the video source (401) is a part of the electronic device (420) to receive video samples, and the video source can collect video images to be encoded by the video encoder (403). In another embodiment, the video source (401) is a part of the electronic device (420).

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

[0057] According to an embodiment, the video encoder (403) may encode and compress pictures of a source video sequence into an encoded video sequence (443) in real time or under any other time constraints required by the application. Implementing an appropriate encoding speed is a function of the controller (450). In some embodiments, the controller (450) controls other functional units as described below and is functionally coupled to the other functional units. For the sake of brevity, coupling is not indicated in the figure. The parameters set by the controller (450) 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 (450) may be configured to have other suitable functions that are related to the video encoder (403) optimized for a certain system design.

[0058] In some embodiments, the video encoder (403) is configured to operate in an encoding loop. As a simple description, in an example, the encoding loop may include a source encoder (430) (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 (433) embedded in the video encoder (403). The decoder (433) reconstructs the symbols to create sample data in a manner similar to that of the (remote) decoder (because in the video compression technology considered by the disclosed subject matter, 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 (434). 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 (434) are also bit-accurately corresponding between the local encoder and the remote encoder. In other words, the reference picture samples "seen" by the prediction part of the encoder are exactly the same as the sample values ​​that the decoder will "see" when using the prediction during decoding. This basic principle of reference picture synchronization (and the drift that occurs when synchronization cannot be maintained, eg due to channel errors) is also used in some related techniques.

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

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

[0061] During operation, in some examples, the source encoder (430) 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 (432) encodes the difference between a pixel block of the input picture and a pixel block of a reference picture that may be selected as a prediction reference for the input picture.

[0062] The local video decoder (433) 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 (430). The operation of the encoding engine (432) may advantageously be a lossy process. When the encoded video data is available at the video decoder ( Figure 4 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 (433) 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 (434). In this way, the video encoder (403) may locally store a copy of the reconstructed reference picture that has common content (absent transmission errors) with the reconstructed reference picture that will be obtained by the remote video decoder.

[0063] The predictor (435) may perform a prediction search for the encoding engine (432). That is, for a new picture to be encoded, the predictor (435) may search the reference picture memory (434) 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 (435) may operate on a pixel block by pixel block basis to find a suitable prediction reference. In some cases, as determined by the search results obtained by the predictor (435), the input picture may have prediction references taken from multiple reference pictures stored in the reference picture memory (434).

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

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

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

[0067] The controller (450) may manage the operation of the video encoder (403). During encoding, the controller (450) 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:

[0068] 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.

[0069] 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.

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

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

[0072] The video encoder (403) 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 (403) 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.

[0073] In an embodiment, the transmitter (440) may transmit additional data when transmitting the encoded video. The source encoder (430) 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.

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

[0075] 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.

[0076] In addition, merge mode technology can be used in inter-picture prediction to improve coding efficiency. In merge mode, a block in the current picture can inherit the motion vector of a neighboring block in the current picture (e.g., sharing a border with the block, set in a larger partition area with the block).

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

[0078] Figure 51 is a diagram of a video encoder (503) according to another embodiment disclosed in the present application. The video encoder (503) is configured to receive a processed block (e.g., a prediction block) of sample values ​​within 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 (503) is used to replace Figure 2 A video encoder (203) in an embodiment.

[0079] In an HEVC embodiment, a video encoder (503) receives a matrix of sample values ​​for a processing block, such as a prediction block of 8×8 samples. The video encoder (503) uses, for example, rate-distortion (RD) optimization to determine whether to use intra mode, inter mode, or bidirectional prediction mode to best encode the processing block. When encoding the processing block in intra mode, the video encoder (503) 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 (503) 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 motion vectors are derived from one or more motion vector predictors without the aid of encoded motion vector components external to the predictor. In some other video encoding techniques, there may be motion vector components applicable to the subject block. In an embodiment, the video encoder (503) includes other components, such as a mode decision module (not shown) for determining the processing block mode.

[0080] exist Figure 5 In the example of FIG. 5 , the video encoder ( 503 ) includes: Figure 5 Shown are an inter-frame encoder (530), an intra-frame encoder (522), a residual calculator (523), a switch (526), ​​a residual encoder (524), a general controller (521), and an entropy encoder (525) coupled together.

[0081] The inter-frame encoder (530) is configured to receive a sample 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, motion vector, merge mode information according to the inter-frame coding technology), and calculate an inter-frame prediction result (e.g., a predicted block) based on the inter-frame prediction information using any suitable technology.

[0082] The intra encoder (522) is configured to receive samples of a current block (e.g., a processing block), compare the block to an already encoded block in the same picture in some cases, generate quantized coefficients after transformation, and in some cases also generate intra prediction information (e.g., intra prediction direction information according to one or more intra coding techniques).

[0083] The general controller (221) is configured to determine general control data and control other components of the video encoder (203) based on the general control data. In an example, the general controller (221) determines the mode of the block and provides a control signal to the switch (226) based on the mode. For example, when the mode is an intra-frame mode, the general controller (221) controls the switch (226) to select the intra-frame mode result for use by the residual calculator (223), and controls the entropy encoder (225) to select the intra-frame prediction information and add the intra-frame prediction information to the bitstream; and when the mode is an inter-frame mode, the general controller (221) controls the switch (226) to select the inter-frame prediction result for use by the residual calculator (223), and controls the entropy encoder (225) to select the inter-frame prediction information and add the inter-frame prediction information to the bitstream.

[0084] The residual calculator (223) is configured to calculate the difference (residual data) between the received block and the prediction result selected from the intra encoder (222) or the inter encoder (230). The residual encoder (224) is configured to operate based on the residual data to encode the residual data to generate transform coefficients. In an example, the residual encoder (224) is configured to convert the residual data in the frequency domain and generate transform coefficients. The transform coefficients are then subjected to a quantization process to obtain quantized transform coefficients.

[0085] The entropy encoder (225) is configured to format the codestream to produce an encoded block. The entropy encoder (225) includes various information according to a suitable standard, such as the HEVC standard. In an example, the entropy encoder (225) is configured to include general control data, selected prediction information (such as intra-frame prediction information or inter-frame prediction information), residual information, and other suitable information in the codestream. 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.

[0086] Figure 6 is a diagram of a video decoder (610) according to another embodiment disclosed in the present application. The video decoder (610) is configured to receive an encoded image as part of an encoded video sequence and decode the encoded image to generate a reconstructed picture. In an example, the video decoder (610) is used to replace Figure 2 The video decoder (210) of the example.

[0087] exist Figure 6 In this example, the video decoder (610) includes Figure 6 An entropy decoder (671), an inter-frame decoder (680), a residual decoder (673), a reconstruction module (674) and an intra-frame decoder (672) coupled together are shown in FIG.

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

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

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

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

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

[0093] It should be noted that the video encoder (203), video encoder (403) and video encoder (503) and video decoder (210), video decoder (310) and video decoder (610) may be implemented using any suitable technology. In an embodiment, the video encoder (203), video encoder (403) and video encoder (503) and video decoder (210), video decoder (310) and video decoder (610) may be implemented using one or more integrated circuits. In another embodiment, the video encoder (203), video encoder (403) and video encoder (503) and video decoder (210), video decoder (310) and video decoder (610) may be implemented using one or more processors that execute software instructions.

[0094] Figure 7 An embodiment of an exemplary angle mode for intra prediction is shown. Figure 7 , shown in the lower right are examples of nine prediction directions, which can be from the 35 possible prediction directions of H.265. The point (701) where the arrows converge represents the sample being predicted. The arrows represent the direction from which the sample is predicted. For example, arrow (702) indicates that sample (701) is predicted from one or more samples in the upper right direction at an angle of 45 degrees to the horizontal axis. Similarly, arrow (703) indicates that sample (701) is predicted from one or more samples in the lower left direction at an angle of 22.5 degrees to the horizontal axis.

[0095] Still refer to Figure 7, a square block (704) with 4×4 samples is shown in the upper left (indicated by the dashed bold line). The square block (704) includes 16 samples, each of which is labeled with "S", the position of the sample in the Y dimension (e.g., row index), and the position of the sample 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 square box (704) in both the Y and X dimensions. Since the size of the block is 4x 4 samples, S44 is in the lower right corner. Reference samples are also shown, which follow a similar numbering scheme. The reference samples are labeled with R, their Y position (e.g., row index) and X position (e.g., column index) relative to the box (704). Intra-picture prediction can work by copying reference sample values ​​from neighboring samples occupied by the prediction direction signaled. For example, assume that the coded video bitstream includes signaling that indicates a prediction direction consistent with arrow (702) for the block, that is, the sample is predicted from one or more prediction samples that are 45 degrees to the upper right corner from the horizontal direction. In this case, samples S41, S32, S23, and S14 are predicted from the same R05. Sample S44 is then predicted based on R08.

[0096] In some cases, the values ​​of multiple reference samples may be combined, such as by interpolation, to calculate the reference sample, especially when the direction cannot be evenly divided by 45 degrees.

[0097] Figure 8 (A) and (B) in FIG. 5 show an embodiment of 35 total intra prediction modes including 33 angle modes. Mode 0 is INTRA_PLANAR mode, and mode 1 is INTRA_DC mode. In addition, modes 2-34 represent intra angle modes. As understood by those of ordinary skill in the art, the lower left diagonal mode is mode 2, the upper right diagonal mode is mode 34, mode 10 is a horizontal angle mode, and mode 26 is a vertical mode.

[0098] Fig. 9 (A) and (B) in FIG. 5 show an embodiment of 67 total intra prediction modes including 65 angle modes. Mode 0 is INTRA_PLANAR mode and mode 1 is INTRA_DC mode. In addition, modes 2-66 represent internal angle modes INTRA_ANGULAR2-INTRA_ANGULAR66, respectively. As understood by those skilled in the art, mode 18 is a horizontal mode and mode 50 is a vertical mode.

[0099] Fig.10 Frame 1000 is shown in wide angle mode. Fig.10In the example, mode 2 to mode 34 are intra prediction modes that are 180 degrees apart between the upper right diagonal direction and the lower left diagonal direction, and these intra prediction modes can be referred to as conventional intra prediction modes. Box 1000 may further include wide angle intra prediction modes that exceed the range of prediction directions covered by conventional intra prediction modes. For example, mode 35 and mode 36 in box 1000 are wide angle intra prediction modes. Each wide angle intra prediction mode can be associated with a conventional intra prediction mode, wherein each wide angle intra prediction mode and its associated intra prediction mode occupy the same direction, but use reference samples on the opposite side (left column or top row). The wide angle intra prediction mode and the associated conventional intra prediction mode can be 180 degrees apart from each other. For example, wide angle intra prediction mode 35 is associated with conventional angle intra prediction mode 3. Similarly, wide angle intra prediction mode 36 is associated with conventional intra prediction mode 4.

[0100] According to some embodiments, wide angle intra prediction modes may be signaled by sending a 1-bit flag for those relevant directions that have a wide angle "flip mode" available. Fig.10 Modes 3 and 4 will have flags indicating whether to use the indicated normal intra prediction mode or flip the wide angle direction modes 35 and 36, respectively.

[0101] In some embodiments, when a block has 65 angular intra prediction modes, the availability of new modes may be limited to the 10 directional modes closest to the 45 degree diagonal upper right mode (i.e., mode 34 when 35 conventional intra modes are applied) and the lower left mode (i.e., mode 2 when 35 conventional intra modes are applied). The sample prediction process disclosed in the HEVC standard or the VVC standard may be used.

[0102] According to some embodiments, for the luminance component, adjacent samples used for intra-prediction sample generation are filtered before the generation process. The filtering can be controlled by a given intra-prediction mode and a transform block size. In some embodiments, if the intra-prediction mode is DC or the transform block size is equal to 4×4, the adjacent samples are not filtered. In some embodiments, if the distance between a given intra-prediction mode and a vertical mode (or horizontal mode) is greater than a predetermined threshold, the filtering process is enabled. When intra-prediction is applied to a square block, the threshold may depend on the width (or height) of the block. In some embodiments, the threshold depends on the area size of the block, i.e., (log2(width)+log2(height))>>1.

[0103] According to some embodiments, whether to enable the intraframe smoothing filter for the wide angle mode may depend on the block size. In some embodiments, the intraframe smoothing filter is always enabled for the wide angle of all block sizes. For example, a parameter associated with a block may indicate that the intraframe smoothing filter can be applied regardless of the block size. In some embodiments, the intraframe smoothing filter is enabled for the wide angle of certain block sizes, while the intraframe smoothing filter is disabled for other block sizes. For example, when the block size of the current block is greater than or equal to a predetermined block size threshold (e.g., 32), the intraframe smoothing filter is disabled for the wide angle. If the block size is less than the predetermined block size threshold, the intraframe smoothing filter is enabled. In some embodiments, the block size of the current block is determined by the width or height of the current block. In some embodiments, the block size of the current block is determined by the average value of the width and height of the current block.

[0104] According to some embodiments, coding tool X has several mode selections including intra prediction mode. When wide angle intra prediction mode is used and the behavior of mode selection of coding tool X is not defined or coding tool X does not support wide angle intra prediction mode, wide angle intra prediction mode can be mapped to one of the regular intra prediction modes. The mapped regular intra prediction mode can be used to decide the mode selection of coding tool X. In some embodiments, wide angle intra prediction mode is mapped to the regular intra prediction mode associated with it. For example, wide angle intra prediction mode 35 is mapped to regular intra prediction mode 3. Similarly, wide angle intra prediction mode 36 is mapped to regular intra prediction mode 4.

[0105] In some embodiments, the wide angle intra prediction mode is mapped to the closest conventional intra prediction mode. For example, wide angle intra prediction modes 35, 36, 37, and 38 can be mapped to conventional intra prediction mode 34, and wide angle intra prediction modes -1, -2, -3, and -4 can be mapped to conventional intra prediction mode 2. In another example, when there are 65 conventional angle intra prediction modes, wide angle intra prediction modes 67 to 74 can be mapped to conventional intra prediction mode 66, and wide angle intra prediction modes -1 to -8 can be mapped to conventional intra prediction mode 2.

[0106] In some embodiments, the encoding tool X may be a tool such as, but not limited to, a Position Dependent Prediction Combination (PDPC), an Adaptive Multiple Transform (AMT), a Non-Separable Secondary Transform (NSST), and a prediction-dependent transform.

[0107] Fig.11 An embodiment of a process performed by an encoder or decoder, such as the intra encoder 522 or the intra decoder 672, respectively, is shown. Fig.11 The process shown can be performed on non-square blocks. The process can start at step S1100, in which it is determined whether the angular intra-frame prediction mode for the current block is a wide angle mode. As described above, the wide angle mode includes directions outside the direction range spanning the lower left diagonal direction and the upper right diagonal direction of the current block. For example, when there are 33 conventional angular intra-frame prediction modes, an angular mode number greater than 34 or a negative angular mode number indicates that the angular intra-frame prediction mode of the current block is a wide angle mode. Similarly, when there are 65 conventional angular intra-frame prediction modes, an angular mode number greater than 66 or a negative angular mode number indicates that the angular intra-frame prediction mode of the current block is a wide angle mode. If the angular intra-frame prediction mode is not a wide angle mode, the process enters step S1102 to perform intra-frame prediction on the current block based on the conventional intra-frame prediction mode.

[0108] If the angle intra prediction mode is the wide angle mode, the process proceeds to step S1104 to determine whether a condition for applying an intra smoothing filter to blocks adjacent to the current block is satisfied. For example, if a parameter associated with enabling intra smoothing filtering indicates that intra smoothing filtering is applied regardless of the block size, the condition may be satisfied. In another example, the condition may be satisfied when the block size of the current block is greater than a predetermined block size threshold, wherein the block size may be determined based on the height, width, or an average of the height and width of the current block.

[0109] If the condition for applying the intra-frame smoothing filter is not met ("No"), the process proceeds to step S1106, in which intra-frame prediction is performed based on the unfiltered block to obtain the feature value of the current block. However, if the condition for applying the intra-frame smoothing filter is met ("Yes"), the process proceeds from step S1104 to step S1108, in which the intra-frame smoothing filter is applied to the blocks adjacent to the current block. The process proceeds to step S1110, in which intra-frame prediction is performed based on the filtered block to obtain the feature of the current block.

[0110] Fig.12An embodiment of a process performed by an encoder or decoder, such as the intra encoder 522 or the intra decoder 672, respectively, is shown. The process may begin at step S1200, in which it is determined whether the encoding tool performing the intra prediction supports the wide angle mode. If the encoding tool supports the wide angle mode ("yes"), the process proceeds to step S1202, in which the intra prediction is performed using the wide angle mode. However, if the encoding tool does not support the wide angle mode ("no"), the process proceeds to step S1204, in which the angular intra prediction mode is changed to an intra prediction mode within a directional range including the lower left diagonal direction and the upper right diagonal direction across the current block. For example, if the angular intra prediction mode is a wide angle mode, the wide angle mode is mapped to a corresponding conventional intra prediction associated with the wide angle mode, or the wide angle mode is mapped to the closest conventional intra prediction mode.

[0111] According to some embodiments, for determining the conditions for the intra smoothing filter used for the angular prediction mode, if the current intra prediction mode is a vertical-like direction (e.g., closer to the vertical direction than the horizontal direction, such as modes 18-34 when 35 intra modes are applied, and modes 34-66 when 67 intra modes are applied), the width of the current block will be used to determine whether and which intra smoothing filter to apply. In addition, if the current intra prediction is a horizontal direction (e.g., closer to the horizontal direction than the vertical direction, such as modes 2-17 when 35 intra modes are applied, and modes 2-33 when 67 intra modes are applied), the height of the current block is used to determine whether and which intra smoothing filter to apply.

[0112] For example, when there are 35 intra prediction modes, when the mode index of the current angle direction is equal to or greater than 18, the width of the current block is used to represent the size of the current block, so that the sampling filter depends only on the prediction mode and the block width. Otherwise, when the mode index of the current angle direction is less than 18, the height of the current block is used to represent the size of the current block, so that the sampling filter depends only on the prediction mode and the block height.

[0113] In another example, when there are 67 intra prediction modes, when the mode index of the current angle direction is greater than or equal to 34, the width of the current block is used to represent the size of the current block, so that sampling filtering depends only on the prediction mode and the block height. Otherwise, when the mode index of the current angle direction is less than 34, the height of the current block is used to represent the size of the current block, so that sampling filtering depends only on the prediction mode and the block height.

[0114] The following embodiments disclose example intra-frame smoothing filters.

[0115] The inputs to this process are:

[0116] - neighboring samples p[x][y], where x=-1, y=-1..nWidth+nHeight-1 and x=0..

[0117] nWidth+nHeight-1,y=-1,

[0118] - The variable nWidth specifies the width of the transform block,

[0119] -The variable nHeight specifies the height of the transform block.

[0120] The output of this process is the filtered samples pF[x][y], where x=-1, y=-1..nTbS*2-1 and x=0..nTbS*2-1, y=-1.

[0121] The variable filterFlag can be derived as follows:

[0122] - filterFlag is set equal to 0 if the following conditions are true:

[0123] -predModeintra is equal to INTRA_DC;

[0124] - Otherwise, the following applies:

[0125] - The variable minDistVerHor is set equal to Min(Abs(predModeintra-26), Abs

[0126] (predModeintra-10)).

[0127] -The variable nTbS can be derived as follows:

[0128] -If predMode Intra is less than 34 and greater than DC_IDX, nTbS is set to nHeight;

[0129] - Otherwise, if predMode Intra is equal to or greater than 34, set nTbS to nWidth;

[0130] - Otherwise, set nTbS to (nWidth+nHeight)>>1.

[0131] -The variable intraHorVerDistThres[nTbS] is specified in the following table.

[0132] -The variable filterFlag can be derived as follows:

[0133] -If minDistVerHor is greater than intraHorVerDistThres[nTbS], set filterFlag equal to 1;

[0134] - Otherwise, set filterFlag equal to 0.

[0135] The following table illustrates example values ​​of the variable intraHorVerDistThres[nTbs] for various transform block sizes.

[0136]

[0137] When filterFlag is equal to 1, the following can be applied:

[0138] -The derivation of the variable biIntFlag is as follows:

[0139] - biIntFlag is set equal to 1 if all of the following conditions are true:

[0140] -strong_intra_smoothing_enabled_flag is equal to 1;

[0141] -nTbS is equal to 32;

[0142] -Abs(p[-1][-1]+p[nTbS*2-1][-1]-2*p[nTbS-1][-1])<(1<<(BitDepthy-5));

[0143] -Abs(p[-1][-1]+p[-1][nTbS*2-1]-2*p[-1][nTbS-1])<(1<<(BitDepthy-5));

[0144] -Otherwise, biIntFlag is set equal to 0.

[0145] -Filtering can be performed as follows:

[0146] - If biIntFlag is equal to 1, the filtered sample value pF[x][y] can be derived as follows, where

[0147] x=-1, y=-1..63and x=0..63, y=-1,:

[0148] pF[-1][-1]=p[-1][-1] (Formula 1)

[0149] pF[-1][y]=((63-y)*p[-1][-l]+(y+1)*p[-1]

[63] +32)>>6, y=0..62 (Formula 2)

[0150] pF[-1]

[63] =p[-1]

[63] (Formula 3)

[0151] pF[x][-1]=((63-x)*p[-1][-1]+(x+1)*p

[63] [-1]+32)>>6,x=0..62 (Formula 4)

[0152] pF

[63] [-1]=p

[63] [-1] (Formula 5)

[0153] Otherwise (biIntFlag is equal to 0), the filtered sample value pF[x][y] can be derived as follows,

[0154] Where x=-1, y=-1..nTbS*2-1 and x=0..nTbS*2-1, y=-1:

[0155] pF[-1][-1]=(p[-1][9]+2*p[-1][-1]+p[0][-1]+2)>>2 (Formula 6)

[0156] pF[-1][y]=(p[-1][y+l]+2*p[-1][y]+p[-l][y-1]+2)>>2, y=0..nThS*2-2 (Formula 7))

[0157] pF[-1][nThS*2-1]=p[-1][nTbS*2-1] (Formula 8)

[0158] pF[x][-1]=(p[xl][-1]+2*p[x][-1]+p[x+l][-1]+2)>>2,x=0..nThS*2-2(Formula 9)

[0159] pF[nThS*2-1][-1]=p[nThS*2-1][-1] (Formula 10)

[0160] An embodiment of the present disclosure also provides a decoding device, which includes a decoding module. In one embodiment, the decoding module is configured to: for a current block that is a non-square block, determine whether the angular intra-frame prediction mode used for the current block is a wide-angle mode in a direction outside the direction range spanning the lower left diagonal direction and the upper right diagonal direction of the current block; in response to determining that the angular intra-frame prediction mode is a wide-angle mode, determine whether a condition for applying an intra-frame smoothing filter to a block adjacent to the current block is satisfied; in response to determining that the condition is satisfied, apply the intra-frame smoothing filter to the block adjacent to the current block; and perform intra-frame prediction based on the filtered block to obtain a feature value of the current block.

[0161] It should be understood that the decoding device according to the embodiment of the present disclosure can implement the method for video decoding provided by the embodiment of the present disclosure.

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

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

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

[0165] Fig.13 The components of the computer system (1300) shown are exemplary in nature and are not intended to suggest any limitation on the scope of use or functionality of computer software implementing embodiments of the disclosure. Neither should the configuration of the components be interpreted as having any dependency or requirement relating to any one or combination of components shown in the exemplary embodiment of the computer system (1300).

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

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

[0168] The computer system (1300) may also include certain human-machine interface output devices. Such human-machine interface output devices may stimulate one or more human user senses, for example, through tactile output, sound, light, and smell / taste. Such human-machine interface output devices may include tactile output devices (e.g., tactile feedback of a touch screen (1310), a data glove (not shown), or a joystick (1305), but may also be a tactile feedback device that is not an input device), an audio output device (e.g., a speaker (1309), a headset (not shown)), a visual output device (e.g., a screen (1310) including a CRT screen, an LCD screen, a plasma screen, an OLED screen, each with or without a touch screen input function, each with or without a tactile feedback function, some of which are capable of outputting two-dimensional visual output or output in more than three dimensions through devices such as stereoscopic image output, virtual reality glasses (not depicted), holographic displays and smoke boxes (not depicted), and printers (not depicted);

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

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

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

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

[0173] 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 (1344) for certain tasks, etc. These devices, along with read-only memory (ROM) (1345), random access memory (1346), internal mass storage (1347) such as internal non-user accessible hard drives, SSDs, etc., and a graphics adapter (1350) 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 to enable expansion by additional CPUs, GPUs, etc. Peripheral devices may be connected directly to the core's system bus (1348) or connected to the core's system bus (1348) via a peripheral bus (1349). The architecture of the peripheral bus includes PCI, USB, etc.

[0174] The CPU (1341), GPU (1342), FPGA (1343) and accelerator (1344) can execute certain instructions, which can be combined to constitute 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, for example, in internal mass storage (1347). Fast storage and retrieval to any storage device can be performed by using a cache, which can be closely associated with the following: one or more CPUs (1341), GPUs (1342), mass storage (1347), ROM (1345), RAM (1346), etc.

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

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

[0177] Appendix A: Abbreviations

[0178] MV: Motion Vector

[0179] HEVC: High Efficiency Video Coding

[0180] SEI: Supplemental Enhancement Information

[0181] VUI: Video Availability Information

[0182] GOP: Group of Pictures

[0183] TU: Transformation Unit

[0184] PU: prediction unit

[0185] CTU: Coding Tree Unit

[0186] CTB: Coding Tree Block

[0187] PB: prediction block

[0188] HRD: Hypothetical Reference Decoder

[0189] SNR: Signal to Noise Ratio

[0190] CPU: Central Processing Unit

[0191] GPU: Graphics Processing Unit

[0192] CRT: cathode ray tube

[0193] LCD: Liquid Crystal Display

[0194] OLED: Organic Light Emitting Diode

[0195] CD: compact disc

[0196] DVD: Digital Video Disc

[0197] ROM: Read Only Memory

[0198] RAM: Random Access Memory

[0199] ASIC: Application-Specific Integrated Circuit

[0200] PLD: Programmable Logic Device

[0201] LAN: Local Area Network

[0202] GSM: Global System for Mobile Communications

[0203] LTE: Long Term Evolution

[0204] CANBus: Controller Area Network Bus

[0205] USB: Universal Serial Bus

[0206] PCI: Peripheral Component Interconnect

[0207] FPGA: Field Programmable Gate Array

[0208] SSD: Solid State Drive

[0209] IC: Integrated Circuit

[0210] CU: Coding Unit

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

[0212] (1) A method for video decoding, comprising: for a current block that is a non-square block, determining whether an angular intra-frame prediction mode for the current block is a wide-angle mode in a direction outside a direction range spanning a lower left diagonal direction and an upper right diagonal direction of the current block; in response to determining that the angular intra-frame prediction mode is the wide-angle mode, determining whether a condition for applying an intra-frame smoothing filter to a block adjacent to the current block is satisfied; in response to determining that the condition is satisfied, applying the intra-frame smoothing filter to the block adjacent to the current block; and performing intra-frame prediction based on the filtered block to obtain a feature value of the current block.

[0213] (2) The method according to feature (1), wherein the condition indicates that the intra-frame smoothing filter is applied regardless of block size.

[0214] (3) A method according to feature (1) or (2), wherein the condition is satisfied in response to determining that a block size of the non-square block is greater than or equal to a block size threshold.

[0215] (4) The method according to feature (3), wherein the block size is determined based on the height, width, or an average of the height and width of the current block.

[0216] (5) The method according to any one of features (1) to (4) also includes: determining whether the encoding tool that performs intra-frame prediction supports the wide angle mode; and in response to determining that the encoding tool does not support the wide angle mode, changing the angle prediction mode from the wide angle mode to an intra-frame prediction mode within a direction range including a lower left diagonal direction and an upper right diagonal direction spanning the current block.

[0217] (6) A method according to feature (5), wherein the angle prediction mode is changed to an intra-frame prediction mode within a direction range having a direction opposite to that of the wide angle mode, so that the changed intra-frame prediction mode is 180 degrees from the wide angle mode.

[0218] (7) The method according to feature (5), wherein the angular prediction mode is changed to an intra prediction mode within a directional range closest to the wide angle mode.

[0219] (8) A method according to feature (5), wherein the coding tool is selected from a group of coding tools, which includes position-dependent prediction combination (PDPC), adaptive multiple transform (AMT), non-separable secondary transform (NSST) and prediction-dependent conversion.

[0220] (9) A video decoder for video decoding, comprising a processing circuit, wherein the processing circuit is configured to: for a current block that is a non-square block, determine whether an angular intra-frame prediction mode for the current block is a wide-angle mode in a direction outside a direction range spanning a lower left diagonal direction and an upper right diagonal direction of the current block; in response to determining that the angular intra-frame prediction mode is the wide-angle mode, determine whether a condition for applying an intra-frame smoothing filter to a block adjacent to the current block is satisfied; in response to determining that the condition is satisfied, apply the intra-frame smoothing filter to the block adjacent to the current block; and perform intra-frame prediction based on the filtered block to obtain a feature value of the current block.

[0221] (10) A video decoder according to feature (9), wherein the condition indicates that the intra-frame smoothing filter is applied regardless of block size.

[0222] (11) A video decoder according to features (9) or (10), wherein the condition is satisfied in response to determining that a block size of the non-square block is greater than or equal to a block size threshold.

[0223] (12) A video decoder according to feature (11), wherein the block size is determined based on the height, width, or an average of the height and width of the current block.

[0224] (13) A video decoder according to any one of features (9) to (12), wherein the processing circuit is further configured to: determine whether an encoding tool that performs intra-frame prediction supports the wide angle mode; and in response to determining that the encoding tool does not support the wide angle mode, change the angle prediction mode from the wide angle mode to an intra-frame prediction mode within a direction range including a lower left diagonal direction and an upper right diagonal direction spanning the current block.

[0225] (14) A video decoder according to feature (13), wherein the angle prediction mode is changed to an intra-frame prediction mode within a direction range having a direction opposite to the direction of the wide angle mode, so that the changed intra-frame prediction mode is 180 degrees from the wide angle mode.

[0226] (15) The video decoder according to feature (14), wherein the angular prediction mode is changed to an intra prediction mode within a direction range closest to the wide angle mode.

[0227] (16) A video decoder according to feature (14), wherein the encoding tool is selected from a group of encoding tools, the group of encoding tools including position-dependent prediction combination (PDPC), adaptive multiple transform (AMT), non-separable secondary transform (NSST) and prediction-dependent conversion.

[0228] (17) A non-temporary computer-readable medium having instructions stored therein, which, when executed by a processor in a video decoding device, causes the processor to perform a method comprising the following steps: for a current block that is a non-square block, determining whether an angular intra-frame prediction mode used for the current block is a wide-angle mode in a direction outside a direction range spanning a lower left diagonal direction and an upper right diagonal direction of the current block; in response to determining that the angular intra-frame prediction mode is the wide-angle mode, determining whether a condition for applying an intra-frame smoothing filter to a block adjacent to the current block is satisfied; in response to determining that the condition is satisfied, applying the intra-frame smoothing filter to the block adjacent to the current block; and performing intra-frame prediction based on the filtered block to obtain a feature value of the current block.

Claims

1. A method for video decoding, characterized in that: include: for a current block that is a non-square block, determining whether an angular intra prediction mode for the current block is a wide angle mode in a direction outside a range of directions spanning a lower left diagonal direction and an upper right diagonal direction of the current block; In response to determining that the angular intra prediction mode is the wide angle mode and the block size of the non-square block is greater than or equal to a block size threshold, applying the intra smoothing filter to a block adjacent to the current block, and performing intra prediction based on the filtered block to obtain a feature value of the current block; In response to determining that a coding tool performs intra prediction, mapping the wide angle mode to a closest conventional intra prediction mode or mapping the wide angle mode to a conventional intra prediction mode associated therewith, in response to the coding tool not supporting the wide angle intra prediction mode; Based on the mapped intra prediction mode, the current block is decoded.

2. The method according to claim 1, characterized in that The block size is determined according to the height, width, or an average value of the height and width of the current block.

3. The method according to claim 2, characterized in that The method further comprises: The block size is determined according to an average value of the height and width of the current block.

4. The method according to claim 1, characterized in that: The normal intra prediction mode is one of the intra prediction modes included in a direction range spanning a lower left diagonal direction and an upper right diagonal direction of the current block.

5. The method according to claim 1, characterized in that Mapping the wide angle mode to the closest conventional intra prediction mode comprises: When there are 65 normal-angle intra prediction modes, wide angle modes 67 to 74 are mapped to normal intra prediction mode 66, and wide angle modes -1 to -8 are mapped to normal intra prediction mode 2.

6. The method according to claim 1, characterized in that The coding tool is selected from a group of coding tools, the group of coding tools comprising Position Dependent Prediction Combining (PDPC).

7. The method according to any one of claims 1 to 6, characterized in that: The method further comprises: In response to determining that the encoding tool supports the wide angle mode, intra prediction is performed using the wide angle mode.

8. A method for video encoding, characterized in that include: for a current block that is a non-square block, determining whether an angular intra prediction mode for the current block is a wide angle mode in a direction outside a range of directions spanning a lower left diagonal direction and an upper right diagonal direction of the current block; In response to determining that the angular intra prediction mode is the wide angle mode and the block size of the non-square block is greater than or equal to a block size threshold, applying the intra smoothing filter to a block adjacent to the current block, and performing intra prediction based on the filtered block to obtain a feature value of the current block; In response to determining that a coding tool performs intra prediction, mapping the wide angle mode to a closest conventional intra prediction mode or mapping the wide angle mode to a conventional intra prediction mode associated therewith, in response to the coding tool not supporting the wide angle intra prediction mode; The current block is encoded based on the mapped intra prediction mode.

9. The method according to claim 8, characterized in that The block size is determined according to the height, width, or an average value of the height and width of the current block.

10. The method according to claim 9, characterized in that The method further comprises: The block size is determined according to an average value of the height and width of the current block.

11. The method according to claim 8, characterized in that The normal intra prediction mode is one of the intra prediction modes included in a direction range spanning a lower left diagonal direction and an upper right diagonal direction of the current block.

12. The method according to claim 8, characterized in that Mapping the wide angle mode to the closest conventional intra prediction mode comprises: When there are 65 normal-angle intra prediction modes, wide angle modes 67 to 74 are mapped to normal intra prediction mode 66, and wide angle modes -1 to -8 are mapped to normal intra prediction mode 2.

13. The method according to claim 8, characterized in that The coding tool is selected from a group of coding tools, the group of coding tools comprising Position Dependent Prediction Combining (PDPC).

14. The method according to any one of claims 8 to 13, characterized in that The method further comprises: In response to determining that the encoding tool supports the wide angle mode, intra prediction is performed using the wide angle mode.

15. A video decoder for video decoding, characterized in that: include: The processing circuit is configured to execute the video decoding method according to any one of claims 1 to 7 when the processing circuit is arranged in the video decoder for video decoding.

16. A video encoder for video encoding, characterized in that include: The processing circuit, when the processing circuit is set in the video encoder for video encoding, is used to execute the video encoding method according to any one of claims 8-14.

17. A device for video decoding, characterized in that: include: A decoding module, wherein the decoding module is configured to: for a current block that is a non-square block, determining whether an angular intra prediction mode for the current block is a wide angle mode in a direction outside a range of directions spanning a lower left diagonal direction and an upper right diagonal direction of the current block; In response to determining that the angular intra prediction mode is the wide angle mode and the block size of the non-square block is greater than or equal to a block size threshold, applying the intra smoothing filter to a block adjacent to the current block, and performing intra prediction based on the filtered block to obtain a feature value of the current block; In response to determining that a coding tool performs intra prediction, mapping the wide angle mode to a closest conventional intra prediction mode or mapping the wide angle mode to a conventional intra prediction mode associated therewith, in response to the coding tool not supporting the wide angle intra prediction mode; Based on the mapped intra prediction mode, the current block is decoded.

18. A device for video encoding, characterized in that: include: an encoding module configured to: for a current block that is a non-square block, determine whether an angular intra prediction mode for the current block is a wide angle mode, the wide angle mode being in a direction outside a range of directions spanning a lower left diagonal direction and an upper right diagonal direction of the current block; In response to determining that the angular intra prediction mode is the wide angle mode and the block size of the non-square block is greater than or equal to a block size threshold, applying the intra smoothing filter to a block adjacent to the current block, and performing intra prediction based on the filtered block to obtain a feature value of the current block; Based on a coding tool determined to perform intra prediction, mapping the wide angle mode to a closest conventional intra prediction mode, in response to the coding tool not supporting the wide angle intra prediction mode, or mapping the wide angle mode to a conventional intra prediction mode associated therewith; The current block is encoded based on the mapped intra prediction mode.

19. A non-transitory computer-readable medium storing instructions, characterized in that: When the instruction is executed by a processor in a device for video decoding, the processor executes the method according to any one of claims 1 to 7; or, when the instruction is executed by a processor in a device for video encoding, the processor executes the method according to any one of claims 8 to 14.

20. A method for processing a code stream, characterized in that: A video code stream is stored on a non-transitory computer-readable medium, wherein the video code stream is generated according to the video encoding method according to any one of claims 8 to 14, or is decoded based on the video decoding method according to any one of claims 1 to 7.