A method, device, equipment and storage medium for intra-frame prediction

By applying intra-frame smoothing filtering and PDPC only to the closest reference lines in video encoding, the problem of similar prediction samples and close reference samples is solved, and the efficiency and quality of video encoding are improved.

CN116320409BActive Publication Date: 2024-09-10TENCENT AMERICA LLC
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310293889.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Priority Date
2018-11-26
Filing Date
2019-07-24
Publication Date
2024-09-10
Estimated Expiration
2039-07-24

AI Technical Summary

Technical Problem

In high-efficiency video coding, the existing technology causes the generated prediction samples to be similar by using different reference rows, and the intra-frame smoothing filtering process makes the reference samples in different rows closer, violating design expectations.

Method used

Intra-smoothing filtering and position-dependent intra prediction combination (PDPC) are only applied to the reference row closest to the coding unit, and the decoder is notified according to the reference row index signal to avoid excessive similarity of prediction samples and excessive proximity of reference samples.

Benefits of technology

By accurately controlling the application of intra-frame smoothing filtering and PDPC, it is ensured that the generated prediction samples are different and the reference samples are unique, meeting design expectations and improving the efficiency and quality of video coding.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116320409B_ABST
    Figure CN116320409B_ABST
Patent Text Reader

Abstract

A method and apparatus for intra-frame prediction are provided. The method includes: based on a first reference line adjacent to a coding unit, applying intra-frame smoothing filtering only to the first reference line, there are multiple reference lines adjacent to the coding unit, the first reference line is a reference line closest to the coding unit among the multiple reference lines, and the first reference line is notified to a decoder by a signal based on a reference line index; based on the intra-frame smoothing filtering being applied only to the first reference line, applying intra-frame prediction to the coding unit; and based on the intra-frame prediction being applied to the coding unit, applying position-dependent intra-frame prediction combination (PDPC) only to the first reference line.
Need to check novelty before this filing date? Find Prior Art

Description

[0001] This application claims priority to U.S. Provisional Patent Application No. 62 / 724,575 filed in the U.S. Patent and Trademark Office on August 29, 2018, and claims priority to U.S. Patent Application No. 16 / 199,891 filed in the U.S. Patent and Trademark Office on November 26, 2018, the entire contents of which are incorporated herein by reference.

[0002] This application is a divisional application for the Chinese patent application with application number 201980035894.9, application date July 24, 2019, and invention name “Method and device for multi-line intra-frame prediction”. Technical Field

[0003] The present disclosure relates to video processing technology, and more particularly to a method and a related device for multi-line intra-frame prediction. Background Art

[0004] Figure 1 1 shows the intra prediction modes used in High Efficiency Video Coding (HEVC). In HEVC, there are a total of 35 intra prediction modes, of which mode 10 (101) is a horizontal mode, mode 26 (102) is a vertical mode, and mode 2 (103), mode 18 (104) and mode 34 (105) are diagonal modes. The intra prediction mode is signaled by three most probable modes (MPM) and 32 residual modes.

[0005] Currently, PDPC is applied to all reference lines. However, the PDPC process will make the generated prediction samples similar by using different reference lines, which is not a desired design. Moreover, intra-frame smoothing filtering is applied to all reference lines. However, the intra-frame smoothing filtering process will make the reference samples in different lines closer, which is not a desired design. Summary of the invention

[0006] According to an embodiment, a method for intra-frame prediction is performed by at least one processor for decoding a video sequence, the method comprising: based on a first reference line adjacent to a coding unit, applying an intra-frame smoothing filter only to the first reference line; wherein a plurality of reference lines are adjacent to the coding unit, the first reference line is a reference line closest to the coding unit among the plurality of reference lines, and the first reference line is signaled to a decoder based on a reference line index; based on the intra-frame smoothing filter being applied only to the first reference line, applying intra-frame prediction to the coding unit; and based on the intra-frame prediction being applied to the coding unit, applying a position-dependent intraprediction combination (PDPC) only to the first reference line.

[0007] According to an embodiment, a device for controlling intra-frame prediction for decoding of a video sequence, for decoding of a video sequence, the device comprising: at least one memory configured to store computer program code; and at least one processor configured to access the at least one memory and operate according to the computer program code. The computer program code comprises: a first application code configured to cause at least one processor to apply intra-frame smoothing filtering only to a first reference line adjacent to a coding unit based on a first reference line adjacent to the coding unit; wherein a plurality of reference lines are adjacent to the coding unit, the first reference line is a reference line closest to the coding unit among the plurality of reference lines, and the first reference line is signaled to a decoder based on a reference line index; a second application code configured to cause at least one processor to apply intra-frame smoothing filtering only to the first reference line to the coding unit; and a third application code configured to cause at least one processor to apply PDPC only to the first reference line based on the intra-frame smoothing filtering being applied to the coding unit.

[0008] According to an embodiment, a non-transitory computer-readable storage medium storing instructions causes a processor to apply intra-frame smoothing filtering only to a first reference line adjacent to a coding unit based on the first reference line adjacent to the coding unit; wherein multiple reference lines are adjacent to the coding unit, the first reference line is a reference line closest to the coding unit among the multiple reference lines, and the first reference line is signaled to a decoder based on a reference line index; based on the intra-frame smoothing filtering being applied only to the first reference line, intra-frame prediction is applied to the coding unit; and based on the intra-frame prediction being applied to the coding unit, PDPC is applied only to the first reference line.

[0009] It can be seen that there are multiple reference lines adjacent to the coding unit, the first reference line is the reference line closest to the coding unit among the multiple reference lines, and based on the first reference line adjacent to the coding unit, only the first reference line is applied to the intra-frame smoothing filter. Based on the intra-frame smoothing filter being applied only to the first reference line, the intra-frame prediction is applied to the coding unit; and based on the intra-frame prediction being applied to the coding unit, the position-dependent intra-frame prediction combination PDPC is based on determining the first reference line closest to the coding unit from multiple reference lines, and only applying the intra-frame smoothing filter to the first reference line, so that PDPC and intra-frame smoothing filter will not be applied to all reference lines, and the prediction samples generated by different reference lines will not be made more similar by PDPC processing, and the reference samples in different lines will not be made closer by intra-frame smoothing filter processing. BRIEF DESCRIPTION OF THE DRAWINGS

[0010] Figure 1 is a diagram of intra prediction modes in HEVC;

[0011] Figure 2 is a simplified block diagram of a communication system according to an embodiment;

[0012] Figure 3 is a diagram of placement of a video encoder and a video decoder in a streaming environment according to an embodiment;

[0013] Figure 4 is a functional block diagram of a video decoder according to an embodiment;

[0014] Figure 5 is a functional block diagram of a video encoder according to an embodiment;

[0015] Figure 6 It is a diagram of intra prediction mode in the next generation video coding (Versatile Video Coding, VVC) draft 2;

[0016] Figure 7 is a diagram showing DC mode PDPC weights (wL, wT, wTL) at positions (0, 0) and (1, 0) within a 4×4 block;

[0017] Figure 8 is a diagram of four reference rows adjacent to a coding block unit for intra prediction according to an embodiment;

[0018] Fig. 9 is a flowchart illustrating a method of controlling intra prediction for decoding of a video sequence according to an embodiment;

[0019] Fig.10is a simplified block diagram of an apparatus for controlling intra-prediction for decoding of a video sequence according to an embodiment;

[0020] Fig.11 is a diagram of a computer system suitable for implementing embodiments. DETAILED DESCRIPTION

[0021] Figure 2 is a block diagram of a communication system (200) according to an embodiment. The communication system (200) may include at least two terminals (210-220) interconnected via a network (250). For unidirectional transmission of data, a first terminal (210) may encode video data at a local location for transmission to other terminals (220) via the network (250). A second terminal (220) may receive encoded video data from other terminals from the network (250), decode the encoded data and display the recovered video data. Unidirectional data transmission may be common in media service applications and the like.

[0022] Figure 2 A second pair of terminals (230, 240) is shown, which are provided to support bidirectional transmission of encoded video, such as may occur during a video conference. For bidirectional transmission of data, each terminal (230, 240) can encode video data collected at a local location for transmission to the other terminal via a network (250). Each terminal (230, 240) can also receive encoded video data transmitted by the other terminal, can decode the encoded data, and can display the recovered video data at a local display device.

[0023] exist Figure 2 In the embodiment, the terminals (210-240) can be shown as servers, personal computers and smart phones, but the principles of the embodiments are not limited thereto. The embodiments are applicable to laptop computers, tablet computers, media players and / or dedicated video conferencing equipment. The network (250) represents any number of networks that transmit encoded video data between the terminals (210-240), including, for example, wired and / or wireless communication networks. The communication network (250) can exchange data in circuit switching and / or packet switching channels. Representative networks include telecommunication networks, local area networks, wide area networks and / or the Internet. For the purposes of this discussion, unless explained below, the architecture and topology of the network (250) may be irrelevant to the operation of the present embodiment.

[0024] Figure 3 is a diagram of placement of a video encoder and a video decoder in a streaming environment according to an embodiment. The disclosed subject matter may be 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., etc.

[0025] The streaming system may include a capture subsystem (313) that may include a video source (301), such as a digital camera, that creates, for example, an uncompressed video sample stream (302). The sample stream (302) is depicted as a thick line to emphasize the high amount of data compared to an encoded video bitstream, and the sample stream may be processed by an encoder (303) coupled to the camera (301). The encoder (303) may include hardware, software, or a combination thereof to implement or implement various aspects of the disclosed subject matter as described in more detail below. The encoded video bitstream (304) is depicted as a thin line to emphasize the low amount of data compared to the sample stream, and the encoded video bitstream may be stored on a streaming server (305) for future use. One or more streaming clients (306, 308) may access the streaming server (305) to retrieve a copy (307, 309) of the encoded video bitstream (304). The client (306) may include a decoder (310) that decodes an incoming copy (307) of an encoded video bitstream (307) and creates an outgoing video sample stream (311) that may be presented on a display (312) or other presentation device (not depicted). In some streaming systems, the video bitstreams (304, 307, 309) may be encoded according to certain video encoding / compression standards. Examples of such standards include ITU-T Recommendation H.265. The video coding standard being developed is informally referred to as VVC. The disclosed subject matter may be used in the context of VVC.

[0026] Figure 4 is a functional block diagram of a video decoder (310) according to an embodiment.

[0027] The receiver (410) may receive one or more codec video sequences to be decoded by the decoder (310); in the same embodiment or in another embodiment, one coded video sequence at a time, wherein the decoding of each coded video sequence is independent of the other coded video sequences. The coded video sequence may be received from a channel (412), which may be a hardware / software link to a storage device storing the coded video data. The receiver (410) may receive the coded video data as well as other data, such as coded audio data and / or auxiliary data streams that may be forwarded to their respective consuming entities (not depicted). The receiver (410) may separate the coded video sequence from the other data. To prevent network jitter, a buffer memory (415) may be coupled between the receiver (410) and the entropy decoder / parser (420) (hereinafter referred to as "parser"). When the receiver (410) receives data from a store / forward device with sufficient bandwidth and controllability or from an isochronous network, the buffer (415) may not be needed, or the buffer may be small. For use over a traffic packet network such as the Internet, a buffer (415) may be required, which may be relatively large and may advantageously have an adaptive size.

[0028] The decoder (310) may include a parser (420) to reconstruct symbols (421) from an entropy coded video sequence. The categories of these symbols include information for managing the operation of the decoder (310) and potentially for controlling a presentation device such as a display (312) that is not part of the decoder but may be coupled to the decoder, such as Figure 4As shown. The control information for the rendering device may be in the form of a supplementary enhancement information (SEI (Supplementary Enhancement Information, SEI) message) or a video usability information (VUI) parameter set fragment (not depicted). The parser (420) may parse / entropy decode the received coded video sequence. The encoding of the coded video sequence may be performed according to a video coding technique or standard, and may follow principles well known to those skilled in the art, including: variable length coding, Huffman coding, arithmetic coding with or without context sensitivity, etc. The parser (420) may extract a subgroup parameter set for at least one subgroup of the subgroups of pixels in the video decoder from the coded video sequence based on at least one parameter corresponding to the group. The subgroup may include: a group of pictures (Group of Picture, GOP), a picture, a tile, a slice, a macroblock, a coding unit (Coding Unit, CU), a block, a transform unit (Transform Unit, TU), a prediction unit (Prediction Unit, PU), etc. The entropy decoder / parser can also extract information from the encoded video sequence, such as transform coefficients, quantizer parameter (QP) values, motion vectors, etc.

[0029] The parser (420) may perform entropy decoding / parsing operations on a video sequence received from the buffer (415) to create symbols (421). The parser (420) may receive encoded data and selectively decode specific symbols (421). In addition, the parser (420) may determine whether a specific symbol (421) is to be provided to a motion compensation prediction unit (453), a scaler / inverse transform unit (451), an intra prediction unit (452), or a loop filter (454).

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

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

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

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

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

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

[0036] The output of the loop filter unit (454) may be a sample stream that may be output to a rendering device (312) and stored in a reference picture buffer (457) for use in future inter-picture prediction.

[0037] Once fully reconstructed, certain coded pictures can be used as reference pictures for future prediction. Once a coded picture is fully reconstructed and the coded picture is identified as a reference picture (e.g., by a parser (420)), the current reference picture (456) can become part of the reference picture buffer (457) and a new current picture memory can be reallocated before starting reconstruction of a subsequent coded picture.

[0038] The decoder (310) may perform decoding operations according to a predetermined video compression technique that may be recorded in a standard such as ITU-T H.265 Recommendation. The encoded video sequence may conform to the syntax specified by the video compression technology or standard being used, in the sense that the encoded video sequence follows the syntax of the video compression technology or standard, as specified in the video compression technology document or standard and explicitly in the profile document therein. 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 technology or standard. In some cases, the hierarchy limits the maximum picture size, maximum frame rate, maximum reconstruction sample rate (measured in, for example, megasamples per second), maximum reference picture size, etc. In some cases, the limits set by the hierarchy may be further defined by the Hypothetical Reference Decoder (HRD) specification and metadata of the HRD buffer management signaled in the encoded video sequence.

[0039] In an embodiment, the receiver (410) 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 decoder (310) to correctly 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.

[0040] Figure 5 is a functional block diagram of a video encoder (303) according to an embodiment.

[0041] The encoder (303) may receive video samples from a video source (301) (which is not part of the encoder) that may capture video images to be encoded by the encoder (303).

[0042] The video source (301) may provide a source video sequence in the form of a digital video sample stream to be encoded by the encoder (303), which may have any suitable bit depth (e.g., 8-bit, 10-bit, 12-bit, ...), any color space (e.g., BT.601 Y CrCB, RGB, ...), and any suitable sampling structure (e.g., Y CrCb 4:2:0, Y CrCb 4:4:4). In a media service system, the video source (301) may be a storage device storing previously prepared videos. In a video conferencing system, the video source (301) may be a camera 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 in sequence. The pictures themselves may be organized as a spatial pixel array, wherein each pixel may include one or more samples, depending on the sampling structure, color space, etc. used. The relationship between pixels and samples may be easily understood by those skilled in the art. The following description focuses on samples.

[0043] According to an embodiment, the encoder (303) can encode and compress the pictures of the source video sequence into an encoded video sequence (543) in real time or under any other time constraints required by the application. Implementing the appropriate encoding speed is a function of the controller (550). The controller controls other functional units described below and is functionally coupled to these units. For the sake of brevity, the coupling is not depicted. The parameters set by the controller may include: rate control related parameters (picture skipping, quantizer, lambda value of rate distortion optimization technology...), picture size, picture group (GOP) layout, maximum motion vector search range, etc. Those skilled in the art can easily identify other functions of the controller (550) because they may belong to the encoder (303) optimized for a specific system design.

[0044] Some video encoders operate in a manner that is readily recognizable to those skilled in the art as a "coding loop". As a very simplified description, the coding loop may include an encoding portion of an encoder (530) (hereinafter referred to as a "source encoder"), which is responsible for creating symbols based on an input picture to be encoded and a reference picture, and a (local) decoder (533) embedded in the encoder (303), which reconstructs the symbols to create sample data that the (remote) decoder will also create (because any compression between the symbols and the encoded video bitstream is lossless in the video compression techniques considered in the disclosed subject matter). The reconstructed sample stream is input to a reference picture memory (534). Since the decoding of the symbol stream produces bit-accurate results that are independent of the decoder location (local or remote), the reference picture buffer contents are also bit-accurate between the local encoder and the remote encoder. In other words, the reference picture samples "seen" by the prediction portion of the encoder are exactly the same sample values ​​that the decoder will "see" when using prediction during decoding. This basic principle of reference picture synchronization (and the drift that results when synchronization cannot be maintained, for example due to channel errors) is well known to those skilled in the art.

[0045] The operation of the "local" decoder (533) can be combined with the above Figure 4 The operation of the "remote" decoder (310) described in detail is the same. However, reference is also briefly made to Figure 4 , when symbols are available and encoding / decoding of the symbols into a coded video sequence by the entropy encoder (545) and the parser (420) can be lossless, the entropy decoding portion of the decoder (310) - including the channel (412), the receiver (410), the buffer memory (415) and the parser (420) - may not be fully implemented in the decoder (533).

[0046] At this point it can be observed that any decoder techniques other than parsing / entropy decoding present in the decoder must also be present in the corresponding encoder in substantially the same functional form. Since encoder techniques are inverse to the decoder techniques described comprehensively, the description of encoder techniques can be simplified. A more detailed description is only required and provided in certain areas below.

[0047] As part of its operation, the source encoder (530) may perform motion compensated predictive coding, which predictively encodes an input frame with reference to one or more previously encoded frames from a video sequence (which are designated as "reference frames"). In this manner, the encoding engine (532) encodes the differences between pixel blocks of an input frame and pixel blocks of a reference frame that may be selected as a prediction reference for the input frame.

[0048] The decoder (533) can decode the encoded video data of the frame that can be designated as the reference frame based on the symbol created by the source encoder (530). The operation of the encoding engine (532) can advantageously be lossy processing. When the encoded video data can be decoded at the video decoder ( Figure 4 When decoded at a remote video decoder (not shown), the reconstructed video sequence may typically be a copy of the source video sequence with some errors. The decoder (533) replicates the decoding process that may be performed on the reference frame by the video decoder and may cause the reconstructed reference frame to be stored in the reference picture memory (534). In this way, the encoder (303) may locally store a copy of the reconstructed reference frame that has common content (absent transmission errors) with the reconstructed reference frame that will be obtained by the remote video decoder.

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

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

[0051] The outputs of all the above functional units may be entropy encoded in an entropy encoder (545). The entropy encoder converts the symbols generated by the various functional units into a coded video sequence by losslessly compressing the symbols according to techniques known to those skilled in the art (e.g., Huffman coding, variable length coding, arithmetic coding, etc.).

[0052] The transmitter (540) can buffer the encoded video sequence created by the entropy encoder (545) in preparation for transmission via a communication channel (560), which can be a hardware / software link to a storage device that can store the encoded video data. The transmitter (540) can combine the encoded video data from the source encoder (530) with other data to be transmitted, such as encoded audio data and / or auxiliary data streams (source not shown).

[0053] The controller (550) may manage the operation of the encoder (303). During encoding, the controller (550) may assign a specific coded picture type to each coded picture, which may affect the coding techniques that may be applied to the corresponding picture. For example, a picture may generally be assigned one of the following frame types:

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

[0055] A predictive picture (P picture) may be a picture that may be encoded and decoded using intra prediction or inter prediction, which predicts sample values ​​of each block using at most one motion vector and a reference index.

[0056] Bidirectional predictive pictures (B pictures) 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 sample values ​​for each block. Similarly, multiple predictive pictures can use more than two reference pictures and associated metadata for reconstruction of a single block.

[0057] 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 each) and encoded block by block. The blocks may be predictively encoded with reference to other (already encoded) blocks as determined by the coding allocation applied to the blocks' corresponding pictures. For example, blocks of an I picture may be non-predictively encoded, or may be predictively encoded (spatial prediction or intra-frame prediction) with reference to already encoded blocks of the same picture. Pixel blocks of a P picture may be non-predictively encoded via spatial prediction or via temporal prediction with reference to one previously encoded reference picture. Blocks of a B picture may be non-predictively encoded via spatial prediction or via temporal prediction with reference to one or two previously encoded reference pictures.

[0058] The encoder (303) may perform encoding operations according to a predetermined video encoding technique or standard, such as ITU-T H265 Recommendation. In the operation of the video encoder, the encoder (303) may perform various compression operations, including predictive encoding operations that exploit temporal and spatial redundancy in the input video sequence. Thus, the encoded video data may conform to the syntax specified by the video encoding technique or standard used.

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

[0060] Figure 6 This is a diagram of the intra prediction mode in VVC Draft 2.

[0061] In VVC draft 2, there are a total of 87 intra prediction modes, such as Figure 6 As shown, mode 18 (601) is a horizontal mode, mode 50 (602) is a vertical mode, and mode 2 (603), mode 34 (604) and mode 66 (605) are diagonal modes. Modes -1 to 10 and modes 67 to 76 are called Wide-Angle Intra Prediction (WAIP) modes.

[0062] PDPC is applied to the following intra-frame modes without signaling: planar mode, DC mode, WAIP mode, horizontal mode, vertical mode, lower left corner mode (mode 2 (603)) and its 8 adjacent corner modes (modes 3 to 10), and upper right corner mode (mode 66 (605)) and its 8 adjacent corner modes (modes 58 to 65).

[0063] The prediction sample pred(x, y) at position (x, y) is predicted using a linear combination of the intra prediction mode (DC, planar, angular) and the reference samples according to the following PDPC expression:

[0064] pred(x,y)=(wL×R -1,y +wT×R x,-1 wxya -1,-1 +(64-wL-wT+wTL)×pred(x, y)+32)>>6, (Formula 1)

[0065] Where R x,-1 , R -1,y denote the reference samples located at the top (T) and left (L) of the current sample (x, y), and R-1, -1 denotes the reference sample located at the top-left (TL) corner of the current block.

[0066] For DC mode, for a block with dimensions of width and height, the weights (wL, wT, wTL) are calculated as follows:

[0067] wT=32>>((y<<1)>>shift), wL=32>>((x<<1)>>shift),

[0068] wTL=(wL>>4)+(wT>>4), (Formula 2)

[0069] Among them, shift=(log2(width)-2+log2(height)-2+2)>>2.

[0070] For planar mode, wTL=0, for horizontal mode, wTL=wT, and for vertical mode, wTL=wL. The PDPC weights can be calculated by only addition and shifting. The value of pred(x, y) can be calculated in a single step using Equation 1.

[0071] Figure 7 is a diagram showing DC mode PDPC weights (wL, wT, wTL) at the (0, 0) and (1, 0) positions within a 4×4 block in VVC-Draft 2.

[0072] Reference Figure 7 Part (a) shows the DC mode PDPC weights (wL, wT, wTL) at the (0, 0) position in a 4×4 block. Part (b) shows the DC mode PDPC weights (wL, wT, wTL) at the (1, 0) position in a 4×4 block.

[0073] If PDPC is applied to DC mode, planar mode, horizontal mode, and vertical mode, no other boundary filters, such as HEVC DC mode boundary filter or horizontal / vertical mode edge filters, are required.

[0074] Figure 7 Part (a) shows the definition of PDPC reference samples Rx,-1, R-1,y and R-1,-1 applied to the upper right corner mode or the diagonal mode. The prediction sample pred(x',y') is located at (x',y') within the prediction block. The coordinate x of the reference sample Rx,-1 is given by x=x'+y'+1, and the coordinate y of the reference sample R-1,y is similarly given by y=x'+y'+1.

[0075] 8.2.4.2.9 Position-dependent intra-frame prediction combination processing

[0076] The input to this process is:

[0077] -Intra prediction mode PredModelntra,

[0078] - the variable nTbW, which specifies the transform block width,

[0079] - the variable nTbH which specifies the transform block height,

[0080] - the variable refW, which specifies the reference sample width,

[0081] - a variable refH which specifies the reference sample height,

[0082] - predicted samples predSamples[x][y], where x=0..nTbW-1 and y=0..nTbH-1),

[0083] - neighboring samples p[x][y], where x=-1, y=-1..refH-1, and x=0..refW-1, y=-1)

[0084] - The variable cldx specifies the color components of the current block.

[0085] The output of this process is the modified prediction samples predSamples[x][y], where x=0..nTbW-1, y=0..nTbH-1.

[0086] Depending on the value of cldx, the function cliplCmp is set up as follows:

[0087] - If cldx is equal to 0, cliplCmp is set equal to Clipl Y .

[0088] - Otherwise, cliplCmp is set equal to Clipl C .

[0089] The variable nScale is set to ((Log2(nTbW)+Log2(nTbH)-2)>>2).

[0090] The reference sample arrays mainRef[x] and sidRef[y] are derived as follows, where x=0..refW and V=0..refH):

[0091]

[0092] The variables refL[x][y], refT[x][y], wT[y], wL[x] and wTL[x][y], where x=0..nTbW-1 and y=0..nTbH-1) are derived as follows:

[0093] - If predModelntra is equal to INTRA_PLANAR, INTRA_DC, INTRA_ANGULAR18, or INTRA_ANGULAR50, the following applies:

[0094] refL[x][y]=p[-1][y] (8-75)

[0095] refT[x][y]=p[x][-1] (8-76)

[0096] wT[y]=32>>((y<<1)>>nScale) (8-77)

[0097] wL[x]=32>>((x<<1)>>nScale) (8-78)

[0098] wTL[x][y]=(predModelntra==INTRA_DC)? ((wL[x]>>4)+(wT[y]>>4)):0(8-79)

[0099] Otherwise, if predModelntra is equal to INTRA_ANGULAR2 or INTRA_ANGULAR66, the following applies:

[0100] refL[x][y]=p[-1][x+y+1] (8-80)

[0101] refT[x][y]=p[x+y+1][-1] (8-81)

[0102] wT[y]=(32>>1)>>((y<<1)>>nScale) (8-82)

[0103] wL[x]=(32>>1)>>((x<<1)>>nScale) (8-83)

[0104] wTL[x][y]=0 (8-84)

[0105] - Otherwise, if predModeIntra is less than or equal to INTRA_ANGULR10, then the following steps are applied in the following order:

[0106] - The variables dXPos[y], dXFrac[y], dXInt[y] and dX[y] are derived from IntraPredMode using invAngle as specified in clause 8.2.4.2.7 as follows:

[0107]

[0108] - The variables refL[x][y], refT[x][y], wT[y], wL[x] and wTL[x][y] are derived as follows:

[0109] refL[x][y]=0 (8-86)

[0110]

[0111] wT[y]=(dX[y]<refW-1)? 32>>((y<<1)>>nScale):0 (8-88)

[0112] WL[x]=0 (8-89)

[0113] wTL[x][y]=0 (8-90) - Otherwise, if predModeIntra is greater than or equal to INTRA_ANGLULAR58, then the following sequence of steps is applied:

[0114] - The variables dYPos[x], dYFrac[x], dYInt[x] and dY[x] are derived from IntraPredMode using InvAngle as specified in clause 8.2.4.2.7 as follows:

[0115]

[0116] - The variables refL[x][y], refT[x][y], wT[y], wL[x] and wTL[x][y] are derived as follows:

[0117]

[0118] refT[x][y]=0 (8-93)

[0119] wT[y]=0 (8-94)

[0120] wL[x]=(dY[x]<refH-1)? 32>>((x<<1)>>nScale):0 (8-95)

[0121] wTL[x][y]=0 (8-96)

[0122] Otherwise, refL[x][y], refT[x][y], wT[y], wL[x] and wTL[x][y] are all set equal to 0. The value of the filtered samples filtSamples[x][y] (where x=0..nTbW-1, y=0..nTbH-1) is obtained as follows:

[0123]

[0124] In VVC Draft 2, for the luminance component, the adjacent samples used for intra-frame prediction sample generation are filtered before the generation process (i.e., intra-frame smoothing filtering process). The filtering is controlled by a given intra-frame prediction mode and transform block size. If the intra-frame prediction mode is DC mode or the transform block size is equal to 4×4, the adjacent samples are not filtered. If the distance between a given intra-frame prediction mode and a vertical mode (or horizontal mode) is greater than a predefined threshold, the filtering process is enabled. For adjacent sample filtering, a [1, 2, 1] filter and a bilinear filter are used.

[0125] The following clause from VVC draft 2 describes the intra-frame smoothing filtering process:

[0126] 8.2.4.2.4 Reference sample filtering

[0127] The input to this process is:

[0128] - (unfiltered) neighboring samples refUfilt[x][y], where x=-1, y=-1..refH-1, and x=0..refW-1, y=-1),

[0129] - the variable nTbW, which specifies the transform block width,

[0130] - the variable nTbH which specifies the transform block height,

[0131] - the variable refW, which specifies the reference sample width,

[0132] - a variable refH which specifies the reference sample height,

[0133] - A variable cIdx which specifies the color component of the current block.

[0134] The output of this process is the reference samples p[x][y], where x=-1, y=-1 .. refH-1, and x=0 .. refW-1, y=-1).

[0135] The variable nTbS is set equal to (Log2(nTbW)+Log2(nTbH))>>1.

[0136] The variable whRatio is set equal to min(abs(Log2(nTbW / nTbH)), 2).

[0137] The variable wideAngle is derived as follows:

[0138] -If all of the following conditions are true, wideAngle is set equal to 1.

[0139] -nTbW is greater than nTbH

[0140] -predModeIntra greater than or equal to 2

[0141] -predModeIntra is less than (whRatio>1)? 12:8

[0142] Otherwise, if all of the following conditions are true, wideAngle is set equal to 1.

[0143] -nTbH is greater than nTbW

[0144] _predModeIntra is less than or equal to 66

[0145] -predModeIntra is greater than (whRatio>1)? 56:60

[0146] Otherwise, wideAngle is set to 0.

[0147] The variable filterFlag is derived as follows:

[0148] - filterFlag is set equal to 0 if one or more of the following conditions are true:

[0149] -predModeIntra is equal to INTRA_DC,

[0150] -cIdx is not equal to 0.

[0151] - Otherwise, the following applies:

[0152] -The variable minDistVerHor is set equal to

[0153] Min(Abs(predModeIntra-50), Abs(predModeIntra-18)).

[0154] -The variable intraHorVerDistThres[nTb S] is defined in detail in Table 8-4.

[0155] -The variable filterFlag is derived as follows:

[0156] -If minDistVerHor is greater than intraHorVerDistThres[nTbS] or WideAngle is equal to 1, filterFlag is set equal to 1.

[0157] -Otherwise, filterFlag is set equal to 0.

[0158] Table 8-4 – Definition of intraHorVerDistThres[nTbS] for various transform block sizes

[0159] nTbS=2 nTbS=3 nTbS=4 nTbS=5 nTbS=6 nTbS=7 intraHorVerDistThres[nTbS] 20 14 2 0 20 0

[0160] For the derivation of the reference sample p[x][y], the following applies:

[0161] - If filterFlag is equal to 1, the filtered sample value p[x][y] (where x=-1, y=-1..refH-1, and x=0..refW-1, y=-1) is derived as follows:

[0162] p[-I][-I]=(refUnfilt[-1][0]+2*refUnfilt[-1][-1]+refUnfilt[0][-1]+2)>>2(8-20) for y=0..refH-2

[0163] p[-1][y]=(refUnfilt[-I][y+I]+2*refUnfilt[-1][y]+refUnfilt[-I][yI]+2)>>2 (8-21)

[0164] p[-1][refH-1]=refUnfilt[-1][refH-1] (8-22)

[0165] For x=0..refW-2

[0166] p[x][-1]=(refUnfilt[x-1][-1]+2*refUnfilt[x][-1]+refUnfilt[x+1][-1]+2)>>2 (8-23)

[0167] p[refW-1][-1]=refUnfilt[refW-1][-1] (8-24)

[0168] - Otherwise, the reference sample value p[x][y] is set equal to the unfiltered sample value refUnfilt[x][y], where x=-1, y=-1..refH-1 and x=0..refW-1, y=-1).

[0169] In VVC draft 2, multi-line intra prediction uses more reference lines for intra prediction, and the encoder decides and signals which reference line to use to generate the intra predictor. The reference line index is signaled before the intra prediction mode, and the planar mode and DC mode are excluded from the intra prediction mode when a non-zero reference line index is signaled.

[0170] Figure 8 is a diagram of four reference lines (881 to 884) adjacent to a coding block unit (810) for intra prediction according to an embodiment.

[0171] Reference Figure 8 , an example of 4 reference rows (881 to 884) is depicted, and each of the reference rows (881 to 884) includes six segments A to F (820 to 870). The upper left reference sample (880) is also depicted in black at the upper left of the block unit (810). In addition, segments A and F (820 to 870) are filled with the closest samples (890) from segments B and E (830 and 860), respectively.

[0172] Refer again Figure 6 , wide angles beyond the prediction direction range covered by the conventional intra prediction mode are indicated by dashed arrows and correspond to wide-angle intra prediction modes, respectively. Non-square blocks can be applied to these wide angles as follows:

[0173] If the block width is greater than the block height, then the angle in the upper right direction (intra prediction mode 34 in HEVC) exceeds 45 degrees.

[0174] If the block height is greater than the block width, then the angle in the lower left direction (intra prediction mode 2 in HEVC) exceeds 45 degrees.

[0175] The replaced mode is signaled using the original method and remapped to the index of the wide-angle intra prediction mode after parsing.The total number of intra prediction modes remains unchanged, i.e. 35, and the intra mode encoding remains unchanged.

[0176] Currently, PDPC is applied to all reference rows. However, the PDPC process will make the generated prediction samples similar by using different reference rows, which is not a desired design.

[0177] Currently, intra-frame smoothing filtering is applied to all reference lines. However, the intra-frame smoothing filtering process will make the reference samples in different lines closer, which is not a desired design.

[0178] To address these issues, embodiments are discussed below, which can be used alone or in any order. In the following description, the nearest reference line (i.e., Figure 8 The row index of the reference row 881) is 0. The maximum signaled reference row number is denoted as N. Furthermore, the term "PDPC" may refer to a simplified PDPC as described in VVC draft 2 clause 8.2.4.2.9.

[0179] In an embodiment, PDPC is applied only to the most recent reference row.

[0180] In an embodiment, the intra-frame smoothing filtering process is applied only to the most recent reference line.

[0181] In an embodiment, only certain reference rows (i.e., Figure 8 In an embodiment, the intra-frame smoothing filtering process is applied only to reference line 0 (ie, Figure 8 881) and 1 (i.e., Figure 8 In another embodiment, an intra-frame smoothing filter process is applied to reference lines 0 and 3 (ie, Figure 8 In yet another embodiment, an intra-frame smoothing filter process is applied to reference lines 0 and 2 (ie, Figure 8 In another embodiment, the intra-frame smoothing filter process is not applied to one reference line, and the intra-frame smoothing filter process is applied to all other reference lines. For example, the intra-frame smoothing filter process is not applied to reference line 3.

[0182] In an embodiment, PDPC is applied only to certain selected reference rows. In an embodiment, PDPC is applied only to reference rows 0 and 1. In another embodiment, PDPC is applied to reference rows 0 and 3. In yet another embodiment, PDPC is applied to reference rows 0 and 2. In yet another embodiment, PDPC is not applied to one reference row, and PDPC is applied to all other reference rows. For example, PDPC is not applied to reference row 3.

[0183] In an embodiment, only non-zero reference rows (i.e., Figure 8 882 to 884) apply PDPC, but when PDPC is applied to a non-zero reference line, PDPC is only applied to certain intra prediction modes. The following embodiments may be applied individually or in combination in any order. In an embodiment, when a non-zero reference line is used, PDPC is only applied to planar mode and / or DC mode. In an embodiment, when a non-zero reference line is used, PDPC is only applied to horizontal mode and vertical mode. In yet another embodiment, when a non-zero reference line is used, PDPC is only applied to diagonal mode (such as Figure 6 In yet another embodiment, when a non-zero reference line is used, PDPC is only applied to intra prediction modes close to mode 2 and mode 66, e.g. Figure 6 Modes 3 to 10 and modes 58 to 65 shown in . In yet another embodiment, PDPC is only applied to WAIP mode when a non-zero reference line is used.

[0184] In an embodiment, different combinations of PDPC and intra-frame smoothing filtering are used for different reference lines. In an embodiment, PDPC and intra-frame smoothing filtering are applied to reference line 0, PDPC is only applied to reference line 1, intra-frame smoothing filtering is only applied to reference line 2, and neither PDPC nor intra-frame smoothing filtering is applied to reference line 3. In another embodiment, if N is equal to 4, both PDPC and intra-frame smoothing filtering are applied to reference line 0, and / or there is at least one reference line to which only PDPC or intra-frame smoothing filtering is applied but not both, and / or there is at least one reference line to which neither PDPC nor intra-frame smoothing filtering is applied. In yet another embodiment, if N is equal to 3, both PDPC and intra-frame smoothing filtering are applied to reference line 0, PDPC is only applied to one of the non-zero reference lines, and neither PDPC nor intra-frame smoothing filtering is applied to one of the reference lines. In yet another embodiment, if N is equal to 3, both PDPC and intra-frame smoothing filtering are applied to reference line 0, only intra-frame smoothing filtering is applied to at least one of the non-zero reference lines, and neither PDPC nor intra-frame smoothing filtering is applied to at least one of the reference lines.

[0185] In an embodiment, the planar mode and the DC mode are also used for non-zero reference lines, but the PDPC and the intra-frame smoothing filter used for the planar mode and the DC mode in different reference lines are different. In an embodiment, the PDPC and the intra-frame smoothing filter are applied to the planar mode and the DC mode in the most recent reference line, and the PDPC and the intra-frame smoothing filter are not applied to the planar mode and the DC mode in other reference lines. In another embodiment, the PDPC and the intra-frame smoothing filter are applied to the planar mode and the DC mode in the most recent reference line, and either of the PDPC and the intra-frame smoothing filter is applied to the planar mode and the DC mode in the non-zero reference line, or neither the PDPC and the intra-frame smoothing filter is applied to the planar mode and the DC mode.

[0186] In an embodiment, for non-zero reference rows, PDPC is not applied to the wide angle.

[0187] In an embodiment, for non-zero reference lines, intra-frame smoothing filtering is not applied to the wide angle.

[0188] In an embodiment, intra-frame smoothing filtering is reference line dependent. That is, for different reference lines, intra-frame smoothing filtering is applied to different intra-frame prediction modes. The threshold that controls which intra-frame prediction modes close to the horizontal / vertical mode are excluded from intra-frame smoothing filtering depends on the reference line index. In an embodiment, an intra-frame prediction mode that applies intra-frame smoothing filtering to a specific reference line index is completely overwritten by an intra-frame prediction mode that applies intra-frame smoothing filtering to a smaller reference line index value, wherein the smaller reference line index value refers to a reference line that is closer to the current block to be predicted.

[0189] In an embodiment, the intra prediction mode using PDPC is different for different reference lines. In an embodiment, in reference line 0, PDPC is applied in the vertical direction and the horizontal direction. However, in non-zero reference lines, PDPC is not applied in the vertical direction and the horizontal direction.

[0190] The following text describes text changes (using underlining and strikethrough) for an implementation based on the use of VVC draft 2 to disable intra smoothing filtering for non-zero reference lines.

[0191] 8.2.4.2.1 General intra-frame sample prediction

[0192] The input to this process is:

[0193] - sample position (xTbCmp, yTbCmp) which specifies the top left sample of the current transform block relative to the top left sample of the current picture;

[0194] - the variable predModeIntra, which specifies the intra prediction mode,

[0195] - the variable nTbW, which specifies the transform block width,

[0196] - the variable nTbH which specifies the transform block height,

[0197] - The variable refLine, which specifies the reference line index,

[0198] - A variable cIdx which specifies the color component of the current block.

[0199] The output of this process is the prediction samples predSamples[x][y], where

[0200] x=0..nTbW-1, y=0..nTbH-1.

[0201] The variable whRatio is set equal to min(abs(Log2(nTbW / nTbH)), 2).

[0202] The variables refW and refH are derived as follows:

[0203] refW=(nTbH>nTbW)? (nTbW+(nTbH>>whRatio)+Ceil(nTbH / 32)): (nTbW*2) (8-15)

[0204] refH=(nTbW>nTbH)? (nTbH+(nTbW>>whRatio)+Ceil(nTbW / 32)): (nTbH*2) (8-16)

[0205] For the generation of reference samples p[x][y] (where x=-1, y=-1..refH-1 and x=0..refW-1, y=-1), the following sequential steps are applied:

[0206] 1. Invoke the reference sample availability marking process as specified in clause 8.2.4.2.2 with sample position (xTbCmp, yTbCmp), reference sample width refW, reference sample height refH, color component index cIdx as input, and reference sample refUnfilt[x][y] (where x=-1, y=-1..refH-1 and x=0..refW-1, y=-1) as output.

[0207] 2. When at least one sample refUnfilt[x][y] (where x=-1, y=-1..refH-1, and x=0..refW-1, y=-1) is marked as "not available for intra prediction", the reference sample substitution process as specified in clause 8.2.4.2.3 is invoked with the reference sample width refW, the reference sample height refH, the reference samples refUnfilt[x][y] (where x=-I, y=-1..refH-1, and x=0..refW-I, y=-I) and the color component index cIdx as input, and with the modified reference samples refUnfilt[x][y] (where x=-1, y=-1..refH-1, and x=0..refW-1, y=-1) as output.

[0208] 3. Using unfiltered samples refUnfilt[x][y] (where x=-1, y=-1..refH-1, and x=0..refW-1, y=-1), transform block width nTbW, transform block height nTbH, reference sample width refW, reference sample height refH, Reference line index refLineand color component index cIdx as input, and with reference samples p[x][y] (where x=-1, y=-1 .. refH-1, and x=0 .. refW-1, y=-1) as output, invoke the reference sample filtering process as specified in clause 8.2.4.2.4.

[0209] The following applications are processed according to the intra-frame sample prediction of predModeIntra:

[0210] - If predModeIntra is equal to INTRA_PLANAR, the corresponding intra prediction mode process specified in clause 8.2.4.2.5 is called with as input the reference sample array p, the transform block width nTbW and the transform block height nTbH, and the output is the prediction sample array predSamples.

[0211] - Otherwise, if predModeIntra is equal to INTRA_DC, the corresponding intra prediction mode process specified in clause 8.2.4.2.6 is called with transform block width nTbW, transform block height nTbH and reference sample array p as input, and the output is the prediction sample array predSamples.

[0212] - Otherwise if predModeIntra is equal to INTRA_CCLM, then the corresponding intra prediction mode process specified in clause 8.2.4.2.8 is called with the sample position (xTbC, yTbC) set equal to (xTbCmp, yTbCmp), the prediction block width nTbW and the prediction block height nTbH, and the reference sample array p as input, and the output is the prediction sample array predSampes.

[0213] Otherwise, invoke the corresponding intra prediction mode process specified in clause 8.2.4.2.7 with the intra prediction mode predModeIntra, transform block width nTbW, transform block height nTbH, reference sample width refW, reference sample height refH and reference sample array p as input, and with the modified intra prediction mode predModeIntra and prediction sample array predSamples as output.

[0214] When one of the following conditions is true, the position-dependent prediction combining process specified in clause 8.2.4.2.9 is called with as input the intra prediction mode predModeIntra, transform block width nTbW, transform block height nTbH, prediction samples predSamples[x][y] (where x=0..nTbW-1, y=0..nTbH-1), reference sample width refW, reference sample height refH, reference samples p[x][y] (where x=-1, y=-1..refH-1, and x=0..refW-1, y=-1) and color component index cIdx, and the output is the modified prediction sample array predSamples.

[0215] -predModeIntra equals INTRA_PLANAR

[0216] -predModeIntra equals INTRA_DC

[0217] -predModeIntra equals INTRA_ANGULARI8

[0218] -predModeIntra equals INTRA_ANGULAR50

[0219] -predModeIntra is less than or equal to INTRA_ANGULARI0

[0220] -predModeIntra greater than or equal to INTRA_ANGULAR58

[0221] 8.2.4.2.4 Reference sample filtering

[0222] The input to this process is:

[0223] - the (unfiltered) neighboring samples refUnfilt[x][y] (where x=-1, y=-1 .. refH-1, and x=0 .. refW-1, y=-1),

[0224] - the variable nTbW which specifies the transform block width,

[0225] - the variable nTbH which specifies the transform block height,

[0226] - the variable refW, which specifies the reference sample width,

[0227] - a variable refH which specifies the reference sample height,

[0228] - The variable refLine, which specifies the reference line index ,

[0229] - A variable cIdx which specifies the color component of the current block.

[0230] The output of this process is the reference sample p[x][y], (where x=-1, y=-1 .. refH-1, and x=0 .. refW-1, y=-1).

[0231] The variable nTbS is set equal to (Log2(nTbW)+Log2(nTbH))>>1.

[0232] The variable whRatio is set equal to min(abs(Log2(nTbW / nTbH)), 2).

[0233] The variable wideAngle is derived as follows:

[0234] - If all of the following conditions are true, then set wideAngle equal to 1.

[0235] -nTbW is greater than nTbH

[0236] _predModeIntra is greater than or equal to 2

[0237] -predModeIntra is less than (whRatio>1)? 12:8

[0238] - Otherwise, if all of the following conditions are true, then set wideAngle equal to 1.

[0239] -nTbH is greater than nTbW

[0240] _predModeIntra is less than or equal to 66

[0241] -predM0deIntra greater than (whRatio>1)? 56:60

[0242] Otherwise, wideAngle is set to 0.

[0243] The variable filterFlag is derived as follows:

[0244] - Set filterFlag equal to 0 if one or more of the following conditions are true:

[0245] -predModeIntra is equal to INTRA_DC,

[0246] -cIdx is not equal to 0.

[0247] - refLine is not equal to 0 .

[0248] - Otherwise, the following applies:

[0249] - Set the variable minDistVerHor equal to

[0250] Min(Abs(predModeIntra-50), Abs(predModeIntra-18)).

[0251] -The variable intraHorVerDistThres[nTbS] is specified in detail in Table 8-4.

[0252] -The variable filterFlag is derived as follows:

[0253] - If minDistVerHor is greater than intraHorVerDistThres[nTbS] or wideAngle is equal to 1, set filterFlag equal to 1.

[0254] Otherwise, set filterFlag equal to 0.

[0255] Table 8-4 - Specification of intraHorVerDistThres[nTbS] for various transform block sizes

[0256] nTbS=2 nTbS=3 nTbS=4 nTbS=5 nTbS=6 nTbS=7 intraHorVerDistThres[nTbS] 20 14 2 0 20 0

[0257] For the derivation of the reference sample p[x][y], the following applies:

[0258] - If filterFlag is equal to 1, the filtered sample value p[x][y] (where x=-1, y=-1..refH-1, and x=0..refW-1, y=-1) is derived as follows:

[0259] p[-I][-I]=(refUnfilt[-1][0]+2*refUnfilt[-1][-1]+refUnfilt[0][-1]+2)>>2 (8-20)

[0260] For y=0..refH-2

[0261] p[-1][y]=(refUnfilt[-I][y+I]+2*refUnfilt[-1][y]+refUnfilt[-I][yI]+2)>>2(8-21)

[0262] p[1][refH1]=refUnfilt[1][refH-1] (8-22)

[0263] For x=0..refW-2

[0264] p[x][-1]=(refUnfilt[x-1][-1]+2*refUnfilt[x][-1]+refUnfilt[,+1][-1]+2)>>2 (8-23)

[0265] p[refN-1][-1]=refUnfilt[refW-1][-1] (8-24)

[0266] Otherwise, the reference sample value p[x][y] is set equal to the unfiltered sample value refUnfilt[x][y], (where x=-1, y=-1..refH-1 and x=0..refW-1, y=-1).

[0267] The following text describes text changes (using underscores and strikethroughs) for an implementation that uses disabling PDPC for non-zero reference lines based on the latest version of VVC draft 2.

[0268] 8.2.4.2.1 General intra-frame sample prediction

[0269] The input to this process is:

[0270] - sample position (xTbCmp, yTbCmp) which specifies the top left sample of the current transform block relative to the top left sample of the current picture;

[0271] - the variable predModeIntra, which specifies the intra prediction mode,

[0272] - the variable nTbW which specifies the transform block width,

[0273] - the variable nTbH which specifies the transform block height,

[0274] - The variable refLine specifies the reference line.

[0275] - A variable cIdx which specifies the color component of the current block.

[0276] The output of this process is the prediction samples predSamples[x][y] (where x=0..nTbW-1, y=0..nTbH-1).

[0277] The variable whRatio is set equal to min(abs(Log2(nTbW / nTbH)), 2).

[0278] The variables refW and refH are derived as follows:

[0279] refw=(nTbH>nTbw)? (nTbW+(nTbH>>whRatio)+Ceil(nTbH / 32)): (nTbW*2) (8-15)

[0280] refH=(nTbW>nTbH)? (nTbH+(nTbW>>whRatio)+Ceil(nTbW / 32)): (nTbH*2) (8-16)

[0281] For the generation of reference samples p[x][y] (where x=-1, y=-1..refH-1 and x=0..refW-1, y=-1), the following sequential steps are applied:

[0282] 4. Invoke the reference sample availability marking process as specified in clause 8.2.4.2.2 with the sample position (xTbCmp, yTbCmp), reference sample width refW, reference sample height refH, color component index cIdx as input, and reference sample refUnfilt[x][y] (where x=-1, y=-1..refH-1 and x=0..refW-1, y=-1) as output.

[0283] 5. When at least one sample refUnfilt[x][y] (where x=-1, y=-1..refH-1, and x=0..refW-1, y=-1) is marked as "not available for intra prediction", the reference sample substitution process as specified in clause 8.2.4.2.3 is invoked with the reference sample width refW, the reference sample height refH, the reference sample refUnfilt[x][y] (where x=-I, y=-1..refH-1, and x=0..refW-I, y=-I) and the color component index cIdx as input, and with the modified reference sample refUnfihf[x][y] (where x=-1, y=-1..refH-1, and x=0..refW-1, y=-1) as output.

[0284] 6. Invoke the reference sample filtering process as specified in clause 8.2.4.2.4 with as input the unfiltered samples refUnfilt[x][y] (where x=-1, y=-1 ..refH-1, and x=0 ..refW-1, y=-1), the transform block width nTbW, the transform block height nTbH, the reference sample width refW, the reference sample height refH, and the color component index cIdx, and with as output the reference samples p[x][y] (where x=-1, y=-1 ..refH-1, and x=0 ..refW-1, y=-1).

[0285] The intra-frame sample prediction processing according to predModeIntra is applied as follows:

[0286] - If predModeImra is equal to INTRA_PLANAR, the corresponding intra prediction mode process specified in clause 8.2.4.2.5 is called with as input the reference sample array p, the transform block width nTbW and the transform block height nTbH, and the output is the prediction sample array predSamples.

[0287] - Otherwise, if predModeIntra is equal to INTRA_DC, the corresponding intra prediction mode process specified in clause 8.2.4.2.6 is called with transform block width nTbW, transform block height nTbH and reference sample array p as input, and the output is the prediction samples samples predSamples.

[0288] - Otherwise if predModeIntra is equal to INTRA_CCLM, then the corresponding intra prediction mode process specified in clause 8.2.4.2.8 is called with the sample position (xTbC, yTbC) set equal to (xTbCmp, yTbCmp), the prediction block width nTbW and height nTbH, and the reference sample array p as input, and the output is the prediction sample array predSampes.

[0289] Otherwise, invoke the corresponding intra prediction mode process specified in clause 8.2.4.2.7 with the intra prediction mode predModeIntra, transform block width nTbW, transform block height nTbH, reference sample width refW, reference sample height refH and reference sample array p as input, and with the modified intra prediction mode predModeIntra and prediction sample array predSamples as output.

[0290] When one of the following conditions is true, the position-dependent prediction combining process specified in clause 8.2.4.2.9 is invoked with as input the intra prediction mode predModeIntra, transform block width nTbW, transform block height nTbH, prediction samples predSamples[x][y] (where x=0..nTbW-1, y=0..nTbH-1), reference sample width refW, reference sample height refH, reference samples p[x][y] (where x=-1, y=-1..refH-1, and x=0..refW-1, y=-1) and color component index cIdx, and the output is the modified prediction sample array predSamples:

[0291] -predModeIntra equals INTRA_PLANAR

[0292] -predModeIntra equals INTRA_DC

[0293] -predModeIntra equals INTRA_ANGULARI8

[0294] -predModeIntra equals INTRA_ANGULAR50

[0295] -predModeIntra is less than or equal to INTRA_ANGULARI0

[0296] -predModeIntra greater than or equal to INTRA_ANGULAR58

[0297] refLine is 0

[0298] Fig. 9 is a flowchart illustrating a method (900) of intra-frame prediction according to an embodiment, the method being used for decoding of a video sequence. In some implementations, Fig. 9 One or more processing blocks of may be performed by the decoder 310. In some implementations, Fig. 9 One or more processing blocks of may be performed by another device or group of devices (eg, encoder (303)) separate from or including the decoder (310).

[0299] Reference Fig. 9 , in a first block (910), the method (900) includes: based on a first reference line adjacent to a coding unit, applying intra-frame smoothing filtering only to the first reference line; wherein a plurality of reference lines are adjacent to the coding unit, the first reference line is a reference line closest to the coding unit among the plurality of reference lines, and the first reference line is signaled to a decoder based on a reference line index.

[0300] In a second block (920), the method (900) includes applying intra prediction to the coding unit based on intra smoothing filtering being applied only to the first reference line.

[0301] In a third block (930), the method (900) includes applying PDPC only to the first reference row based on intra prediction being applied to the coding unit.

[0302] The method (900) may further include applying intra-frame smoothing filtering to a second reference line among the plurality of reference lines.

[0303] The method (900) may further include: if the multiple reference lines include a single reference line, applying intra-frame smoothing filtering to other reference lines among the multiple reference lines except the single reference line.

[0304] The method (900) may further include applying PDPC to a second reference line among the plurality of reference lines based on intra prediction being applied to the coding unit.

[0305] The method (900) may further include: if a single reference line is included among the multiple reference lines, based on intra prediction being applied to the coding unit, applying PDPC to other reference lines among the multiple reference lines except the single reference line.

[0306] The method (900) may also include: determining whether an intra-frame prediction angle corresponding to an intra-frame prediction mode is greater than a predetermined angle corresponding to a diagonal direction of the coding unit, the intra-frame prediction mode being used to decode the video sequence; and based on the intra-frame prediction angle being determined to be greater than the predetermined angle, preventing intra-frame smoothing filtering from being applied to other reference rows among the multiple reference rows except the first reference row.

[0307] The method (900) may also include: determining whether an intra-frame prediction angle corresponding to an intra-frame prediction mode is greater than a predetermined angle corresponding to a diagonal direction of the coding unit, wherein the intra-frame prediction mode is used to decode the video sequence; and based on the intra-frame prediction angle being determined to be greater than the predetermined angle, preventing PDPC from being applied to other reference rows among multiple reference rows except the first reference row.

[0308] The method (900) may further include: applying intra-frame smoothing filtering to at least one reference line based on an intra-frame prediction mode used to decode the video sequence and an index of at least one reference line; the at least one reference line is among the multiple reference lines other than the first reference line.

[0309] The method (900) may also include: determining a threshold index range corresponding to multiple intra-frame prediction modes based on an index of a second reference row among multiple reference rows, and the multiple intra-frame prediction modes are adjacent to the coding unit in the horizontal direction; determining whether a current index value of a current intra-frame prediction mode used to decode a video sequence is within the threshold index range, and preventing intra-frame smoothing filtering from being applied to the second reference row based on the current index value being determined to be within the threshold index range.

[0310] The method (900) may also include: determining a threshold index range corresponding to multiple intra-frame prediction modes based on an index of a second reference row among multiple reference rows, and the multiple intra-frame prediction modes are adjacent to the coding unit in a vertical direction; determining whether a current index value of a current intra-frame prediction mode used to decode a video sequence is within the threshold index range, and preventing intra-frame smoothing filtering from being applied to the second reference row based on the current index value being determined to be within the threshold index range.

[0311] although Fig. 9 Example blocks of method (900) are shown, but in some implementations, Fig. 9 The method (900) may include additional blocks, fewer blocks, different blocks, or differently arranged blocks than those depicted. Additionally or alternatively, two or more blocks of the method (900) may be performed in parallel.

[0312] In addition, the proposed method can be implemented by a processing circuit (eg, one or more processors or one or more integrated circuits). In an example, one or more processors execute a program stored in a non-transitory computer-readable medium to perform one or more of the proposed methods.

[0313] Fig.10 is a simplified block diagram of an apparatus (1000) for controlling intra-prediction for decoding of a video sequence according to an embodiment.

[0314] Reference Fig.10 The device (1000) is used for decoding a video sequence, and includes a first application code (1010), a second application code (1020) and a third application code (1030).

[0315] The first application code (1010) is configured to apply intra-frame smoothing filtering only to a first reference line adjacent to a coding unit, wherein there are a plurality of reference lines adjacent to the coding unit, the first reference line being a reference line closest to the coding unit among the plurality of reference lines, and the first reference line being signaled to a decoder based on a reference line index.

[0316] The second application code (1020) is configured to apply intra prediction to the coding unit based on the intra smoothing filtering being applied only to the first reference line.

[0317] The third application code (1030) is configured to be applied to the coding unit based on intra prediction, applying PDPC only to the first reference line.

[0318] The first application code (1010) may also be configured to apply intra-frame smoothing filtering to a second reference line among the plurality of reference lines.

[0319] If the multiple reference lines include a single reference line, the first application code (1010) may be further configured to apply intra-frame smoothing filtering to other reference lines among the multiple reference lines except the single reference line.

[0320] The third application code (1030) may also be configured to apply PDPC to a second reference line among the plurality of reference lines based on intra prediction being applied to the coding unit.

[0321] If the multiple reference lines include a single reference line, the third application code (1030) may also be configured to be applied to the coding unit based on intra-frame prediction, and to apply PDPC to other reference lines among the multiple reference lines except the single reference line.

[0322] The first application code (1010) can also be configured to determine whether an intra-frame prediction angle corresponding to an intra-frame prediction mode is greater than a predetermined angle corresponding to a diagonal direction of the coding unit, and the intra-frame prediction mode is used to decode the video sequence; and based on the intra-frame prediction angle being determined to be greater than the predetermined angle, prevent intra-frame smoothing filtering from being applied to other reference rows among multiple reference rows except the first reference row.

[0323] The third application code (1030) can also be configured to determine whether an intra-frame prediction angle corresponding to an intra-frame prediction mode is greater than a predetermined angle corresponding to a diagonal direction of the coding unit, wherein the intra-frame prediction mode is used to decode the video sequence; and based on the intra-frame prediction angle being determined to be greater than the predetermined angle, prevent PDPC from being applied to other reference rows among multiple reference rows except the first reference row.

[0324] The first application code (1010) can also be configured to apply intra-frame smoothing filtering to at least one reference line based on an intra-frame prediction mode used to decode the video sequence and an index of at least one reference line, wherein the at least one reference line is among the multiple reference lines other than the first reference line.

[0325] The first application code (1010) can also be configured to determine a threshold index range corresponding to multiple intra-frame prediction modes based on an index of a second reference row among multiple reference rows, and the multiple intra-frame prediction modes are adjacent to the coding unit in the horizontal direction, determine whether a current index value of a current intra-frame prediction mode used to decode a video sequence is within the threshold index range, and based on the current index value being determined to be within the threshold index range, prevent intra-frame smoothing filtering from being applied to the second reference row.

[0326] The first application code (1010) can also be configured to determine a threshold index range corresponding to multiple intra-frame prediction modes based on an index of a second reference row among multiple reference rows, and the multiple intra-frame prediction modes are adjacent to the coding unit in a vertical direction, determine whether a current index value of a current intra-frame prediction mode used to decode a video sequence is within the threshold index range, and based on the current index value being determined to be within the threshold index range, prevent intra-frame smoothing filtering from being applied to the second reference row.

[0327] The above-described techniques may be implemented as computer software using computer-readable instructions and physically stored in one or more computer-readable media.

[0328] Fig.11 is a diagram of a computer system (1100) suitable for implementing embodiments.

[0329] Computer software may be encoded using any suitable machine code or computer language, which may be subjected to mechanisms such as assembly, compilation, linking, etc. to create code comprising instructions that may be executed directly by a computer central processing unit (CPU), graphics processing unit (GPU), etc., or through interpretation, microcode execution, etc.

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

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

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

[0333] Input human interface devices may include one or more of the following (only one of each is depicted): keyboard (1101), mouse (1102), touchpad (1103), touch screen (1110), data glove (1104), joystick (1105), microphone (1106), scanner (1107), camera (1108).

[0334] The computer system (1100) may also include certain human interface output devices. Such human interface output devices may stimulate one or more senses of a human user through, for example, tactile output, sound, light, and smell / taste. Such human-machine interface output devices may include: tactile output devices (e.g., tactile feedback achieved through a touch screen (1110), a data glove (1104), or a joystick 1105, but there may also be tactile feedback devices that do not function as input devices), audio output devices (e.g., speakers (1109), headphones (not depicted)), visual output devices (e.g., screens (1110), including cathode ray tube (CRT) screens, liquid crystal display (LCD) screens, plasma screens, organic light-emitting diode (OLED) screens, each with or without touch screen input capabilities, each with or without tactile feedback capabilities - some of which may be capable of outputting two-dimensional visual outputs or more than three-dimensional outputs through means such as stereographic output; virtual reality glasses (not depicted), holographic displays, and cigarette cans (not depicted)), and printers (not depicted).

[0335] The computer system (1100) may also include human-accessible storage devices and their associated media, such as optical media including CD / DVD ROM / RW (1120) with CD / DVD etc. media (1121), thumb drives (1122), removable hard drives or solid-state drives (1123), legacy magnetic media such as tapes and floppy disks (not depicted), dedicated ROM / ASIC / PLD based devices such as security dongles (not depicted), and the like.

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

[0337] The computer system (1100) may also include an interface to one or more communication networks. The network may be, for example, wireless, wired, optical. The network may also be local, wide area, urban, vehicle-mounted and industrial, real-time, delay-tolerant, etc. Examples of networks include: local area networks such as Ethernet, wireless LANs, cellular networks including global systems for mobile communication (GSM), third generation (3G), fourth generation (4G), fifth generation (5G), Long-Term Evolution (LTE), etc., television wired or wireless wide area digital networks including cable television, satellite television and terrestrial broadcast television, vehicle-mounted and industrial networks including CANBus, etc. Some networks typically require an external network interface adapter attached to some universal data port or peripheral bus (1149) (such as, for example, a universal serial bus (USB) port of the computer system (1100); other networks are typically integrated into the core of the computer system (1100) by attaching to a system bus as described below (e.g., an Ethernet interface to a PC computer system or a cellular network interface to a smartphone computer system). Using any of these networks, the computer system (1100) can communicate with other entities. Such communications can be one-way, receive-only (e.g., broadcast television), one-way send-only (e.g., CANbus to certain CANbus devices), or two-way (e.g., using local or wide area digital networks to other computer systems). Certain protocols and protocol stacks can be used on each of these networks and network interfaces as described above.

[0338] The above-mentioned human-machine interface device, human-accessible storage device, and network interface may be attached to the core ( 1140 ) of the computer system ( 1100 ).

[0339] The core (1140) may include one or more central processing units (CPUs) (1141), graphics processing units (GPUs) (1142), dedicated programmable processing units in the form of field programmable gate arrays (FPGAs) (1143), hardware accelerators for certain tasks (1144), etc. These devices, along with read-only memory (ROM) (1145), random-access memory (RAM) (1146), internal mass storage devices (e.g., internal non-user accessible hard drives, solid-state drives (SSDs), etc.) (1147), may be connected via a system bus 1148. In some computer systems, the system bus (1148) may be accessed in the form of one or more physical plugs to enable expansion by additional CPUs, GPUs, etc. Peripheral devices may be attached to the core's system bus (1148) directly or via a peripheral bus (1149). The architecture of the peripheral bus includes peripheral component interconnect (PCI), USB, etc.

[0340] The CPU (1141), GPU (1142), FPGA (1143) and accelerator (1144) can execute certain instructions, which in combination can constitute the above-mentioned computer code. The computer code can be stored in ROM (1145) or RAM (1146). Transition data can also be stored in RAM (1146), while permanent data can be stored in, for example, an internal mass storage device (1147). Fast storage and retrieval of any storage device in the storage device can be achieved by using a cache memory, which can be closely associated with one or more CPUs (1141), GPUs (1142), mass storage devices (1147), ROMs (1145), RAMs (1146), etc.

[0341] The computer readable medium may have 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 embodiment, or they may be of a type well known and available to those skilled in the art of computer software.

[0342] As an example and not limitation, a computer system having architecture (1100) - in particular, core (1140) - can provide functionality due to a processor (including a CPU, GPU, FPGA, accelerator, etc.) executing software implemented in one or more tangible computer-readable media. Such computer-readable media can be media associated with a user-accessible mass storage device as described above, as well as certain storage devices of the core (1140) having non-transitory properties, such as a core mass storage device (1147) or ROM (1145). Software implementing various embodiments can be stored in such a device and executed by the core (1140). Depending on specific needs, the computer-readable medium may include one or more memory devices or chips. The software can enable the core (1140) - in particular, the processor therein (including a CPU, GPU, FPGA, etc.) - to perform specific processing or specific parts of specific processing described herein, including defining data structures stored in RAM (1146) and modifying such data structures according to processing defined by the software. Additionally or alternatively, the computer system may provide functionality due to hardwired logic or logic otherwise implemented in circuits (e.g., accelerators (1144)) that may operate in place of or in conjunction with software to perform specific processes or specific portions of specific processes described herein. Where appropriate, references to software may include logic, and vice versa. Where appropriate, references to computer-readable media may include circuits (e.g., integrated circuits (ICs)) storing software for execution, circuits implementing logic for execution, or both. The present embodiments include any suitable combination of hardware and software.

[0343] Although the present disclosure has described several exemplary embodiments, there are changes, permutations, and various substitution equivalents that fall within the scope of the present disclosure. It will therefore be appreciated that those skilled in the art will be able to conceive of many systems and methods that, although not explicitly shown or described herein, implement the principles of the present disclosure and are therefore within its spirit and scope.

Claims

1. A method for intra-frame prediction for decoding a video sequence, characterized in that: The method comprises: Based on a first reference line adjacent to a coding unit, applying an intra-frame smoothing filter to the first reference line; wherein the coding unit is adjacent to a plurality of reference lines for intra-frame prediction, and the first reference line is a reference line closest to the coding unit among the plurality of reference lines adjacent to the coding unit; Applying intra prediction to the coding unit; and Based on the intra prediction being applied to the coding unit, in DC mode, applying a position-dependent intra prediction combination PDPC to the first reference line, wherein if the first reference line is a non-zero reference line, the PDPC is not applied in a vertical direction and a horizontal direction; The applying the intra-frame smoothing filter to the first reference line includes: applying the intra-frame smoothing filter only to the first reference line, and disabling the intra-frame smoothing filter for other reference lines among the plurality of reference lines except the first reference line.

2. The method according to claim 1, characterized in that The applying the position-dependent intra prediction combination PDPC to the first reference line comprises: The PDPC is applied only to the first reference line, and the PDPC is disabled for other reference lines among the plurality of reference lines except the first reference line.

3. The method according to claim 1, characterized in that The method further comprises: determining whether an intra-frame prediction angle corresponding to an intra-frame prediction mode is greater than a predetermined angle corresponding to a diagonal direction of the coding unit; the intra-frame prediction mode is used to decode the video sequence; and Based on the intra prediction angle being determined to be greater than the predetermined angle, the intra smoothing filter is prevented from being applied to reference lines other than the first reference line among the plurality of reference lines.

4. The method according to claim 1, characterized in that: The method further comprises: determining whether an intra-frame prediction angle corresponding to an intra-frame prediction mode is greater than a predetermined angle corresponding to a diagonal direction of the coding unit; the intra-frame prediction mode is used to decode the video sequence; and Based on the intra prediction angle being determined to be greater than the predetermined angle, the PDPC is prevented from being applied to reference lines other than the first reference line among the plurality of reference lines.

5. The method according to claim 1, characterized in that The method further comprises: determining a threshold index range corresponding to a plurality of intra prediction modes based on an index of a second reference line among the plurality of reference lines, the plurality of intra prediction modes being adjacent to a horizontal direction mode of the coding unit, the second reference line being a reference line other than the first reference line; determining whether a current index value of a current intra-frame prediction mode used for decoding the video sequence is within the threshold index range; and Based on the current index value being determined to be within the threshold index range, applying the intra-frame smoothing filter to the second reference row is blocked.

6. The method according to any one of claims 1 to 5, characterized in that: The method further comprises: determining a threshold index range corresponding to a plurality of intra prediction modes based on an index of a second reference line among the plurality of reference lines, the plurality of intra prediction modes being adjacent to a vertical direction mode of the coding unit, the second reference line being a reference line other than the first reference line; determining whether a current index value of a current intra-frame prediction mode used for decoding the video sequence is within the threshold index range; and Based on the current index value being determined to be within the threshold index range, applying the intra-frame smoothing filter to the second reference row is blocked.

7. An intra-frame prediction device for performing decoding of a video sequence, characterized in that: The device comprises a first application unit, a second application unit and a third application unit: The first application unit is configured to apply an intra-frame smoothing filter to a first reference line that is closest to the coding unit among a plurality of reference lines adjacent to the coding unit; wherein the coding unit is adjacent to a plurality of reference lines for intra-frame prediction, and the first reference line is signaled to a decoder based on a reference line index; The second application unit is configured to apply intra-frame prediction to the coding unit; and The third application unit is configured to apply a position-dependent intra prediction combination PDPC to the first reference line in a DC mode based on the intra prediction being applied to the coding unit, wherein if the first reference line is a non-zero reference line, the PDPC is not applied in a vertical direction and a horizontal direction; The first application unit is further configured to apply intra-frame smoothing filtering only to the first reference line, and disable the intra-frame smoothing filtering for other reference lines among the plurality of reference lines except the first reference line.

8. A method for intra-frame prediction for encoding a video, characterized in that: The method comprises: Based on a first reference line adjacent to a current coding unit in a video, applying an intra-frame smoothing filter to the first reference line; wherein the coding unit is adjacent to a plurality of reference lines for intra-frame prediction, and the first reference line is a reference line closest to the coding unit among the plurality of reference lines adjacent to the coding unit; Applying intra prediction to the coding unit; and Based on the intra prediction being applied to the coding unit, in DC mode, applying a position-dependent intra prediction combination PDPC to the first reference line, wherein if the first reference line is a non-zero reference line, the PDPC is not applied in a vertical direction and a horizontal direction; The applying the intra-frame smoothing filter to the first reference line includes: applying the intra-frame smoothing filter only to the first reference line, and disabling the intra-frame smoothing filter for other reference lines among the plurality of reference lines except the first reference line.

9. A non-transitory computer-readable storage medium storing instructions, wherein the instructions enable a processor to execute the method according to any one of claims 1 to 6, or to execute the method according to claim 8.

10. A computer device, characterized in that: The device comprises a processor and a memory: The memory is used to store program code and transmit the program code to the processor; The processor is configured to execute the method according to any one of claims 1 to 6 or the method according to claim 8 according to the instructions in the program code.