Video coding and decoding method and device and computer readable storage medium

Dynamically adjusting the use of the deblocking filter through advanced control syntax elements and flags solves the problems of unsuitable operation and poor effect of the deblocking filter in the existing technology, and improves the efficiency of video encoding and decoding.

CN118678070APending Publication Date: 2024-09-20TENCENT AMERICA LLC
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410974278.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Priority Date
2020-10-22
Filing Date
2020-11-09
Publication Date
2024-09-20

AI Technical Summary

Technical Problem

In the existing video encoding and decoding technology, the adaptability and effect of the deblocking filter operation are poor, and the use of multiple different deblocking filters cannot be effectively controlled, resulting in low encoding and decoding efficiency.

Method used

Allow and control multiple different deblocking filter operations through advanced control syntax elements and flags, determine the boundary strength of the deblocking filter based on syntax elements, and select the appropriate filter to apply to the current block to improve the adaptability of deblocking filtering and effect.

Benefits of technology

It improves the adaptability and effect of deblocking filtering, enhances the efficiency of video encoding and decoding, can dynamically adjust the use of filters according to different conditions, and optimizes the encoding and decoding process.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118678070A_ABST
    Figure CN118678070A_ABST
Patent Text Reader

Abstract

Aspects of the present application provide methods, apparatus, and non-transitory computer-readable storage media for video encoding / decoding. An apparatus includes processing circuitry that decodes prediction information for a current block. The prediction information includes a first syntax element and a second syntax element. The processing circuitry determines, based on the first syntax element, whether a plurality of processes for determining a boundary strength (BS) of a deblocking filter are allowed for the current block. When the plurality of processes are allowed for the current block, the processing circuitry determines a subset of the plurality of processes for determining the BS of the deblocking filter for the current block based on the second syntax element. The processing circuitry determines the BS of the deblocking filter for the current block based on a subset of the plurality of processes for determining the BS of the deblocking filter.
Need to check novelty before this filing date? Find Prior Art

Description

Reference Merge

[0001] This application is a divisional of the Chinese patent application with application number 202080061362.5 filed on November 9, 2020. All the disclosed contents of the parent case are hereby incorporated by reference. Technical Field

[0002] The present application relates to video coding and decoding technology, and in particular to a video coding and decoding method, device and computer-readable storage medium. Background Art

[0003] The background description provided herein is for the purpose of generally presenting the context of the present application. The work of the presently named inventors, to the extent that the work is described in this background section, and in all aspects of the specification that may not constitute prior art at the time of filing, is neither explicitly nor implicitly admitted to be prior art to the present application.

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

[0005] One purpose of video encoding and decoding can be to reduce redundancy in the input video signal by compression. Compression can help reduce the aforementioned bandwidth or storage space requirements, in some cases by two orders of magnitude or more. Both lossless and lossy compression and their combinations can be used. Lossless compression refers to a technique that can reconstruct an exact copy of the original signal from the compressed original signal. When lossy compression is used, the reconstructed signal may not be the same as the original signal, but the distortion between the original signal and the reconstructed signal is small enough to make the reconstructed signal useful for the intended application. In the case of video, lossy compression is widely used. The amount of distortion allowed depends on the application; for example, users of certain consumer streaming applications can tolerate higher distortion than users of television distribution applications. The achievable compression ratio can reflect that higher allowable / tolerable distortion can produce higher compression ratios.

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

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

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

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

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

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

[0012] Still referring to FIG. 1A , at the top left, a block (104) of 4×4 samples is depicted (indicated by a dashed bold line). Block (104) includes 16 samples, each of which is labeled with "S", its position in the Y dimension (e.g., row index), and its position in the X dimension (e.g., column index). For example, sample S21 is the second sample in the Y dimension (from the top) and the first sample in the X dimension (from the left). Similarly, sample S44 is the fourth sample in the Y dimension and the X dimension in block (104). Since the size of the block is 4×4 samples, S44 is at the bottom right. Reference samples are further shown that follow a similar numbering scheme. The reference samples are labeled with R, their Y position (e.g., row index), and X position (column index) relative to block (104). In both H.264 and H.265, the prediction samples are adjacent to the block being reconstructed; therefore, there is no need to use negative values.

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

[0014] In some cases, the values ​​of multiple reference samples may be combined, such as by interpolation, in order to calculate the reference sample; in particular when the directions do not divide evenly by 45 degrees.

[0015] As video coding technology has developed, the number of possible directions has also increased. In H.264 (2003), nine different directions could be represented. This increased to 33 in H.265 (2013), and when disclosed JEM / VVC / BMS can support up to 65 directions. Experiments have been conducted to identify the most likely directions, and certain techniques in entropy coding are used to represent those possible directions with a small number of bits, thereby accepting certain penalties for less likely directions. In addition, the direction itself can sometimes be predicted from neighboring directions used in adjacent decoded blocks.

[0016] FIG. 1B shows a schematic diagram ( 105 ) depicting 65 intra prediction directions according to JEM to illustrate the increase in the number of prediction directions over time.

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

[0018] Motion compensation may be a lossy compression technique, and may involve a technique where a block of sample data from a previously reconstructed picture or portion thereof (reference picture) is used to predict a newly reconstructed picture or picture portion after being spatially shifted in a direction indicated by a motion vector (hereafter MV). In some cases, the reference picture may be the same as the picture currently being reconstructed. The MV may have two dimensions, X and Y, or three dimensions, the third dimension being an indication of the reference picture in use (the latter may indirectly be a temporal dimension).

[0019] In some video compression techniques, the MV applicable to a region of sample data can be predicted from other MVs, such as an MV associated with another region of sample data that is spatially adjacent to the region being reconstructed and precedes the MV in decoding order. Doing so can significantly reduce the amount of data required to encode the MV, thereby eliminating redundancy and increasing compression. MV prediction can work effectively, for example, because when encoding an input video signal obtained from a camera (called natural video), there is a statistical possibility that a larger region than the region to which a single MV applies moves in a similar direction, and therefore in some cases similar motion vectors obtained from MVs of adjacent regions can be used for prediction. This results in the MV found for a given region being similar or identical to the MV predicted from the surrounding MVs, and in turn can be represented after entropy coding with fewer bits than the number of bits used to directly encode the MV. In some cases, MV prediction can be an example of lossless compression of a signal (i.e., MV) derived from the original signal (i.e., sample stream). In other cases, MV prediction itself may be lossy, for example, because of rounding errors when calculating predictors from several surrounding MVs.

[0020] Various MV prediction mechanisms are described in H.265 / HEVC (ITU-T Rec. H.265, "High Efficiency Video Coding", December 2016). Among the many MV prediction mechanisms provided by H.265, this article describes a technique that is hereinafter referred to as "spatial merging".

[0021] 1C, the current block (111) may include samples found by the encoder during a motion search process to be predicted from a previous block of the same size that has been spatially shifted. Instead of directly encoding the MV, the MV associated with any of the five surrounding samples denoted A0, A1 and B0, B1, B2 (112 to 116, respectively) may be used, derived from metadata associated with one or more reference pictures, such as from the most recent (in decoding order) reference picture. In H.265, MV prediction may use a predictor from the same reference picture being used by a neighboring block.

[0022] In the prior art, it is not possible to allow and control multiple different deblocking filter operations through advanced control syntax elements or flags, which results in unsatisfactory adaptability and effect of deblocking filtering in video coding and decoding. Summary of the invention

[0023] Aspects of the present application provide a device for video encoding / decoding. A device includes a processing circuit that decodes prediction information for a current block in a current picture, the current picture being part of an encoded video sequence. The prediction information includes a first syntax element and a second syntax element. The processing circuit determines whether multiple processes for determining the boundary strength (BS) of a deblocking filter are allowed for the current block based on the first syntax element. The deblocking filter is applied to the boundary of the current block. When multiple processes for determining the BS of the deblocking filter are allowed for the current block, the processing circuit determines a subset of the multiple processes for determining the BS of the deblocking filter for the current block based on the second syntax element. The processing circuit determines the BS of the deblocking filter for the current block based on a subset of the multiple processes for determining the BS of the deblocking filter.

[0024] In an embodiment, the BS of the deblocking filter for the current block is determined based on a plurality of samples located in one of two regions separated by a boundary of the current block. In an example, the number of the plurality of samples located in one of two regions separated by a boundary of the current block is one of two and four.

[0025] In an embodiment, the processing circuit determines whether the sample value difference between two samples separated by the boundary of the current block is greater than a threshold. When the sample value difference between two samples separated by the boundary of the current block is greater than the threshold, the processing circuit determines that no deblocking filter is applied to the boundary of the current block.

[0026] In an embodiment, the first syntax element is at sequence parameter set level.

[0027] In an embodiment, the processing circuit determines a subset of a plurality of processes for determining a BS of a deblocking filter for the current block based on a second syntax element and a deblocking control flag indicating that a filtering operation is enabled for the current block. In an example, the second syntax element is at one of a picture level, a slice level, and a level the same as the deblocking control flag.

[0028] Aspects of the present application provide a method for video encoding / decoding. In the method, prediction information for a current block in a current picture is decoded, and the current picture is part of an encoded video sequence. The prediction information includes a first syntax element and a second syntax element. Based on the first syntax element, multiple processes for determining a BS of a deblocking filter are determined for the current block. The deblocking filter is applied to the boundary of the current block. When multiple processes for determining the BS of the deblocking filter are allowed for the current block, a subset of the multiple processes for determining the BS of the deblocking filter for the current block is determined based on the second syntax element. The BS of the deblocking filter for the current block is determined based on a subset of the multiple processes for determining the BS of the deblocking filter.

[0029] Aspects of the present application also provide a non-transitory computer-readable medium storing instructions that, when executed by a computer for video decoding, cause the computer to perform any one or a combination of the methods for video decoding.

[0030] The video encoding / decoding apparatus and method provided in the present application can allow and control multiple different deblocking filter operations through advanced control syntax elements and / or flags, thereby improving the adaptability of deblocking filtering and improving the effect of deblocking filtering. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0032] FIG1A is a schematic illustration of an exemplary subset of intra prediction modes;

[0033] FIG1B is a diagram of exemplary intra prediction directions;

[0034] FIG1C is a schematic diagram of a current block and its surrounding spatial merging candidates in an example;

[0035] Figure 2 is a schematic illustration of a simplified block diagram of a communication system according to an embodiment of the present application;

[0036] Figure 3 is a schematic illustration of a simplified block diagram of a communication system according to another embodiment of the present application;

[0037] Figure 4 is a schematic illustration of a simplified block diagram of a decoder according to an embodiment of the present application;

[0038] Figure 5 is a schematic illustration of a simplified block diagram of an encoder according to another embodiment of the present application;

[0039] Figure 6 A block diagram of an encoder according to an embodiment of the present application is shown;

[0040] Figure 7 A block diagram of a decoder according to an embodiment of the present application is shown;

[0041] Figure 8 A flowchart showing an exemplary process for determining a boundary strength value according to an embodiment of the present application is shown;

[0042] Fig. 9 An exemplary sample position for determining a boundary strength value according to an embodiment of the present application is shown;

[0043] Fig.10shows an exemplary sample position for determining a boundary strength value according to another embodiment of the present application;

[0044] Fig.11 A flowchart showing an exemplary process according to an embodiment of the present application; and

[0045] Fig.12 is a schematic diagram of a computer system according to an embodiment of the present application. DETAILED DESCRIPTION

[0046] I. Video Decoder and Encoder Systems

[0047] Figure 2 A simplified block diagram of a communication system (200) according to an embodiment of the present application is shown. The communication system (200) includes a plurality of terminal devices that can communicate with each other via, for example, a network (250). For example, the communication system (200) includes a first pair of terminal devices (210) and (220) interconnected via the network (250). Figure 2 In the example, a first pair of terminal devices (210) and (220) perform unidirectional transmission of data. For example, the terminal device (210) can encode video data (e.g., a stream of video pictures captured by the terminal device (210)) for transmission to another terminal device (220) via the network (250). The encoded video data can be sent in the form of one or more encoded video bitstreams. The terminal device (220) can receive the encoded video data from the network (250), decode the encoded video data to recover the video picture, and display the video picture based on the recovered video data. Unidirectional data transmission may be common in media service applications, etc.

[0048] In another example, the communication system (200) includes a second pair of terminal devices (230) and (240) that perform bidirectional transmission of encoded video data that may occur, for example, during a video conference. For the bidirectional transmission of data, in the example, each of the terminal devices (230) and (240) can encode video data (e.g., a stream of video images captured by the terminal device) for transmission to the other of the terminal devices (230) and (240) via the network (250). Each of the terminal devices (230) and (240) can also receive the encoded video data transmitted by the other of the terminal devices (230) and (240), and can decode the encoded video data to recover the video picture, and can display the video picture at an accessible display device based on the recovered video data.

[0049] exist Figure 2In the example, terminal devices (210), (220), (230) and (240) can be illustrated as servers, personal computers and smart phones, but the principles of the present application may not be limited to this. Embodiments of the present application may be applied to laptop computers, tablet computers, media players and / or dedicated video conferencing equipment. Network (250) represents any number of networks that transmit encoded video data between terminal devices (210), (220), (230) and (240), including, for example, wired (wired) and / or wireless communication networks. 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 purpose of this discussion, unless otherwise described in this article below, the architecture and topology of network (250) may be unimportant to the operation of the present application.

[0050] Figure 3 The arrangement of a video encoder and a video decoder in a streaming environment as an example of an application of the disclosed subject matter is described. The disclosed subject matter can also be applied to other applications with video functions, including, for example, video conferencing, digital TV, storing compressed video on digital media including CDs, DVDs, memory sticks, etc.

[0051] 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 picture stream (302). In an example, the video picture stream (302) includes samples captured by the digital camera. The video picture stream (302), depicted as thick lines to emphasize the high amount of data when compared to the encoded video data (304) (or encoded video bitstream), may be processed by an electronic device (320) including a video encoder (303) coupled to the video source (301). The video encoder (303) may include hardware, software, or a combination thereof to implement or realize various aspects of the disclosed subject matter as described in more detail below. The encoded video data (304) (or encoded video bitstream (304)), depicted as thin lines to emphasize the lower amount of data when compared to the video picture stream (302), may be stored on a streaming server (305) for future use. One or more streaming client subsystems, such as Figure 3The client subsystems (306) and (308) in the video streaming server (305) can access the encoded video data (304) copies (307) and (309). The client subsystem (306) can include, for example, a video decoder (310) in an electronic device (330). The video decoder (310) decodes the input copy (307) of the encoded video data and creates an output stream of video pictures (311) that can be presented on a display (312) (e.g., a display screen) or other presentation device (not depicted). In some streaming systems, the encoded video data (304), (307), and (309) (e.g., video bitstreams) can be encoded according to certain video encoding / compression standards. Examples of these standards include ITU-T Recommendation H.265. In the example, the video coding standard under development is informally referred to as Versatile Video Coding (VVC). The disclosed subject matter can be used in the context of VVC.

[0052] Note that the electronic devices (320) and (330) may include other components (not shown). For example, the electronic device (320) may include a video decoder (not shown), and the electronic device (330) may also include a video encoder (not shown).

[0053] Figure 4 A block diagram of a video decoder (410) according to an embodiment of the present application is shown. The video decoder (410) may be included in an electronic device (430). The electronic device (430) may include a receiver (431) (e.g., a receiving circuit). The video decoder (410) may be used to replace Figure 3 The video decoder (310) of the example.

[0054] The receiver (431) can receive one or more encoded video sequences to be decoded by the video decoder (410); in the same or another embodiment, one encoded video sequence at a time, wherein the decoding of each encoded video sequence is independent of the other encoded video sequences. The encoded video sequence can be received from a channel (401), which can be a hardware / software link to a storage device storing the encoded video data. The receiver (431) can receive the encoded video data with other data, such as encoded audio data and / or auxiliary data streams, which can be forwarded to their respective consuming entities (not depicted). The receiver (431) can separate the encoded video sequence from the other data. To combat network jitter, a buffer memory (415) can be coupled between the receiver (431) and the entropy decoder / parser (420) (hereinafter referred to as "parser (420)"). In some applications, the buffer memory (415) is part of the video decoder (410). In other embodiments, the buffer memory can be external to the video decoder (410) (not depicted). In other embodiments, there may be a buffer memory (not depicted) external to the video decoder (410), for example to combat network jitter, and in addition there may be another buffer memory (415) internal to the video decoder (410), for example to handle playout timing. When the receiver (431) receives data from a store / forward device with sufficient bandwidth and controllability or from an isochronous network, the buffer memory (415) may not be required, or the buffer memory may be very small. For use over a best-effort packet network such as the Internet, a buffer memory (415) may be required, which may be relatively large and may advantageously have an adaptive size, and may be implemented at least in part in an operating system or similar element (not depicted) external to the video decoder (410).

[0055] The video decoder (410) may include a parser (420) to reconstruct symbols (421) from the encoded video sequence. The categories of these symbols include information for managing the operation of the video decoder (410) and potentially for controlling a rendering device, such as a rendering device (412) (e.g., a display screen) that is not part of the electronic device (430) but can be coupled to the electronic device (430), such as Figure 4As shown. The control information for the rendering device may be in the form of a supplemental enhancement information (SEI message) or a video usability information (VUI) parameter set fragment (not depicted). The parser (420) may parse / entropy decode the received coded video sequence. The coding of the coded video sequence may be based on a video coding technique or standard and may follow various principles, including variable length coding, Huffman coding, arithmetic coding with or without context sensitivity, etc. The parser (420) may extract a set of subgroup parameters for at least one 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 (Groups 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 parser (420) may also extract information such as transform coefficients, quantizer parameter values, motion vectors, etc. from the coded video sequence.

[0056] The parser (420) may perform entropy decoding / parsing operations on the video sequence received from the buffer memory (415) to create symbols (421).

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

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

[0059] The first unit is a scaler / inverse transform unit (451). The scaler / inverse transform unit (451) receives quantized transform coefficients from the parser (420) as symbols (421) along with control information including which transform to use, block size, quantization factor, quantization scaling matrix, etc. The scaler / inverse transform unit (451) may output a block including sample values ​​which may be input into an aggregator (455).

[0060] In some cases, the output samples of the scaler / inverse transform (451) may relate to intra-coded blocks; that is, blocks that do not use predictive information from a previously reconstructed picture, but instead 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 obtained from a current picture buffer (458) to generate a block of the same size and shape as the block being reconstructed. The current picture buffer (458) buffers, for example, a partially reconstructed current picture and / or a fully reconstructed current picture. 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.

[0061] In other cases, the output samples of the scaler / inverse transform unit (451) may relate to an inter-coded and possibly motion compensated block. In such a case, the motion compensated prediction unit (453) may access a reference picture memory (457) to obtain samples for prediction. After motion compensation of the obtained samples according to the symbols 421 associated with the block, these samples may be added by an aggregator (455) to the output of the scaler / inverse transform unit 451 (in this case referred to as residual samples or residual signals) to generate output sample information. The address within the reference picture memory (457) from which the motion compensated prediction unit (453) obtains the predicted samples may be controlled by a motion vector, which may be used by the motion compensated prediction unit (453) in the form of a symbol (421) that may have, for example, X, Y and reference picture components. Motion compensation may also include interpolation of sample values ​​obtained from the reference picture memory (457) when sub-sample accurate motion vectors are in use, motion vector prediction mechanisms, etc.

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

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

[0064] Certain coded pictures, once fully reconstructed, can be used as reference pictures for future predictions. For example, once a coded picture corresponding to a current picture is fully reconstructed and the coded picture has been identified as a reference picture (e.g., by the parser (420)), the current picture buffer (458) can become part of the reference picture memory (457), and a new current picture buffer can be reallocated before starting to reconstruct a subsequent coded picture.

[0065] The video decoder (410) may perform decoding operations according to a predetermined video compression technique in a standard (e.g., ITU-T Recommendation H.265). The encoded video sequence may conform to the syntax specified by the video compression technology or standard used in the sense that the encoded video sequence complies with both the syntax of the video compression technology or standard and the profile documented in the video compression technology or standard. Specifically, the profile may select certain tools from all the tools available in the video compression technology or standard as the only tools available according to the matching profile. It is also necessary for compliance that the complexity of the encoded video sequence is within the range defined by the level of the video compression technology or standard. In some cases, the level limits the maximum picture size, the maximum frame rate, the maximum reconstruction sampling rate (e.g., measured in millions of samples per second), the maximum reference picture size, etc. In some cases, the limits set by the level may be further limited by the Hypothetical Reference Decoder (HRD) specification and metadata for HRD buffer management signaled in the encoded video sequence.

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

[0067] Figure 5 A block diagram of a video encoder (503) according to an embodiment of the present application is shown. The video encoder (503) is included in an electronic device (520). The electronic device (520) includes a transmitter (540) (e.g., a transmitting circuit). The video encoder (503) can be used to replace Figure 3 The video encoder (303) in the example.

[0068] The video encoder (503) can be used to obtain the video source (501) (which is not Figure 5 In another example, the video source (501) is a part of the electronic device (520) to receive the video samples, and the video source can capture the video images to be encoded by the video encoder (503). In another example, the video source (501) is a part of the electronic device (520).

[0069] The video source (501) can provide a source video sequence to be encoded by the video encoder (503) in the form of a digital video sample stream, which can have any appropriate bit depth (e.g., 8 bits, 10 bits, 12 bits, ...), any color space (e.g., BT.601 Y CrCB, RGB, ...), and any appropriate sampling structure (e.g., Y CrCb 4:2:0, Y CrCb 4:4:4). In a media service system, the video source (501) can be a storage device that stores pre-prepared videos. In a video conferencing system, the video source (501) can be a camera that captures local image information as a video sequence. The video data can be provided as multiple individual pictures that are given motion when viewed sequentially. The picture itself can be organized as a spatial array of pixels, where each pixel can include one or more samples, depending on the sampling structure, color space, etc. in use. The relationship between pixels and samples can be easily understood by those skilled in the art. The following description focuses on samples.

[0070] According to an embodiment, the video encoder (503) 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. Enforcing an appropriate encoding speed is a function of the controller (550). In some embodiments, the controller (550) controls other functional units as described below and is functionally coupled to the other functional units. For the sake of clarity, the coupling is not depicted. The parameters set by the controller (550) may include rate control related parameters (picture skipping, quantizer, lambda value of rate distortion optimization technology...), picture size, picture group (group of picture, GOP) layout, maximum allowed motion vector reference area, etc. The controller (550) can be configured to have other appropriate functions related to the video encoder (503) optimized for a specific system design.

[0071] In some embodiments, the video encoder (503) is configured to operate in an encoding loop. As an oversimplified description, in an example, the encoding loop may include a source encoder (530) (e.g., responsible for creating symbols such as a symbol stream based on an input picture to be encoded and a reference picture) and a (local) decoder (533) embedded in the video encoder (503). The decoder (533) reconstructs the symbols to create sample data in a similar manner to what 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 (sample data) is input to a reference picture memory (534). Since the decoding of the symbol stream results in a bit-exact result that is independent of the decoder location (local or remote), the contents in the reference picture memory (534) are also bit-exact between the local encoder and the remote encoder. In other words, the prediction part of the encoder "sees" the exact same sample values ​​that the decoder will "see" as reference picture samples when using prediction during decoding. This basic principle of reference picture synchronization (and the drift that results if synchronization cannot be maintained, eg due to channel errors) is also used in some related techniques.

[0072] The operation of the "local" decoder (533) may be identical to that of a "remote" decoder, which is a decoder that has been combined with Figure 4 The video decoder (410) is described in detail above. However, referring briefly to Figure 4 , since the symbols are available and encoding / decoding the symbols into an encoded video sequence can be lossless through the entropy encoder (545) and the parser (420), the entropy decoding portion of the video decoder 410 (including the buffer memory (415) and the parser (420)) may not be fully implemented in the local decoder (533).

[0073] It can be observed at this point that any decoder technology other than parsing / entropy decoding present in the decoder must also be present in the corresponding encoder in substantially the same functional form. For this reason, the disclosed subject matter focuses on the decoder operation. The description of encoder technology can be simplified because they are the opposite technology of the fully described decoder technology. A more detailed description is provided below only in certain areas.

[0074] During operation, in some examples, the source encoder (530) may perform motion compensated predictive encoding, which predictively encodes an input picture with reference to one or more previously encoded pictures from a video sequence designated as “reference pictures.” In this manner, the encoding engine (532) encodes the differences between pixel blocks of the input picture and pixel blocks of a reference picture that may be selected as a prediction reference for the input picture.

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

[0076] The predictor (535) may perform a prediction search of the encoding engine (532). That is, for a new picture 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 serve as appropriate prediction references for the new picture. The predictor (535) may operate on a block of samples, pixel block by pixel block, to find an appropriate prediction reference. In some cases, as determined by the search results obtained by the predictor (535), the input picture may have prediction references obtained from multiple reference pictures stored in the reference picture memory (534).

[0077] The controller (550) may manage encoding operations of the source encoder (530), including, for example, the setting of parameters and sub-group parameters for encoding video data.

[0078] The outputs of all the aforementioned functional units may be subjected to entropy coding in an entropy encoder (545). The entropy encoder (545) converts the symbols generated by the various functional units into a coded video sequence by losslessly compressing the symbols according to techniques such as Huffman coding, variable length coding, arithmetic coding, etc.

[0079] 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 will store the encoded video data. The transmitter (540) can combine the encoded video data from the video encoder (503) with other data to be transmitted, such as encoded audio data and / or auxiliary data streams (source not shown).

[0080] The controller (550) can manage the operation of the video encoder (503). During encoding, the controller (550) can assign a specific encoded picture type to each encoded picture, which can affect the encoding techniques that can be applied to the corresponding picture. For example, a picture can generally be assigned one of the following picture types:

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

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

[0083] Bidirectional prediction pictures (B pictures) can be pictures that are encoded and decoded using intra prediction or inter prediction, where intra prediction or inter prediction uses up to two motion vectors and reference indices to predict the sample values ​​of each block. Similarly, multi-prediction pictures can use more than two reference pictures and associated metadata to reconstruct a single block.

[0084] A source picture may typically be spatially subdivided into multiple blocks of samples (e.g., blocks of 4×4, 8×8, 4×8, or 16×16 samples each) and encoded block by block. Blocks may be predictively encoded with reference to other (already encoded) blocks determined by the encoding specifications applied to the respective pictures of the blocks. For example, blocks of an I picture may be non-predictively encoded, or they may be predictively encoded (spatial prediction or intra prediction) with reference to already encoded blocks of the same picture. Blocks of pixels of a P picture may be predictively encoded via spatial prediction or via temporal prediction with reference to one previously encoded reference picture. Blocks of a B picture may be predictively encoded via spatial prediction or via temporal prediction with reference to one or two previously encoded reference pictures.

[0085] The video encoder (503) may perform encoding operations according to a predetermined video encoding technique or standard (e.g., ITU-T Recommendation H.265). In its operation, the video encoder (503) 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.

[0086] In an embodiment, the transmitter (540) may send 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, SEI messages, VUI parameter set fragments, etc.

[0087] Video may be captured as multiple source pictures (video pictures) in a temporal sequence. Intra-picture prediction (often abbreviated as intra-frame prediction) exploits spatial correlations in a given picture, and inter-picture prediction exploits (temporal or other) correlations between pictures. In an example, a particular picture under encoding / decoding, referred to as the current picture, is divided into blocks. When a block in the current picture is similar to a reference block in a previously encoded and still buffered reference picture in the video, the block in the current picture may be encoded by a vector referred to as a motion vector. The motion vector points to a reference block in a reference picture, and in the case of using multiple reference pictures, may have a third dimension identifying the reference picture.

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

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

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

[0091] Figure 6 A diagram of a video encoder (603) according to another embodiment of the present application is shown. The video encoder (603) is configured to receive a processed block (e.g., a prediction block) of sample values ​​within a current video picture in a sequence of video pictures, and encode the processed block into an encoded picture that is part of an encoded video sequence. In an example, the video encoder (603) is used instead of Figure 3 The video encoder (303) in the example.

[0092] In the HEVC example, a video encoder (603) receives a matrix of sample values ​​for a processing block (e.g., a prediction block of 8×8 samples, etc.). The video encoder (603) determines whether the processing block is best encoded using intra mode, inter mode, or a bi-directional prediction mode such as rate-distortion optimization. When the processing block is to be encoded in intra mode, the video encoder (603) may use intra prediction techniques to encode the processing block into an encoded picture; and when the processing block is to be encoded in inter mode or bi-directional prediction mode, the video encoder (603) may encode the processing block into an encoded picture using inter prediction or bi-directional prediction techniques, respectively. In some video coding techniques, the merge mode may be an inter-picture prediction sub-mode, in which the motion vector is derived from one or more motion vector predictors without benefiting from encoded motion vector components outside the predictors. In some other video coding techniques, there may be motion vector components that can be applied to the object block. In the example, the video encoder (603) includes other components, such as a mode decision module (not shown) for determining the mode of the processing block.

[0093] exist Figure 6 In this example, the video encoder (603) includes Figure 6 An inter-frame encoder (630), an intra-frame encoder (622), a residual calculator (623), a switch (626), a residual encoder (624), a general controller (621), and an entropy encoder (625) are shown coupled together.

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

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

[0096] The general controller (621) is configured to determine general control data and control other components of the video encoder (603) based on the general control data. In an example, the general controller (621) determines a mode of a block and provides a control signal to a switch (626) based on the mode. For example, when the mode is an intra-frame mode, the general controller (621) controls the switch (626) to select an intra-frame mode result for use by the residual calculator (623), and controls the entropy encoder (625) to select intra-frame prediction information and include the intra-frame prediction information in the bitstream; and when the mode is an inter-frame mode, the general controller (621) controls the switch (626) to select an inter-frame prediction result for use by the residual calculator (623), and controls the entropy encoder (625) to select inter-frame prediction information and include the inter-frame prediction information in the bitstream.

[0097] The residual calculator (623) is configured to calculate the difference (residual data) between the received block and the prediction result selected from the intra encoder (622) or the inter encoder (630). The residual encoder (624) is configured to operate based on the residual data to encode the residual data to generate a transform coefficient. In an example, the residual encoder (624) is configured to convert the residual data from the spatial domain to the frequency domain and generate a transform coefficient. Then, the transform coefficient is quantized to obtain a quantized transform coefficient. In various embodiments, the video encoder (603) also includes a residual decoder (628). The residual decoder (628) is configured to perform an inverse transform and generate decoded residual data. The decoded residual data can be used appropriately by the intra encoder (622) and the inter encoder (630). For example, the inter encoder (630) can generate a decoded block based on the decoded residual data and the inter prediction information, and the intra encoder (622) can generate a decoded block based on the decoded residual data and the intra prediction information. In some examples, the decoded blocks are appropriately processed to generate a decoded picture, and the decoded picture may be buffered in a memory circuit (not shown) and used as a reference picture.

[0098] The entropy encoder (625) is configured to format a bitstream to include the encoded blocks. The entropy encoder (625) is configured to include various information according to a suitable standard such as HEVC. In an example, the entropy encoder (625) is configured to include general control data, selected prediction information (e.g., intra-frame prediction information or inter-frame prediction information), residual information, and other suitable information in the bitstream. Note that in accordance with the disclosed subject matter, when the block is encoded in inter-frame mode or the merge sub-mode of the bidirectional prediction mode, there is no residual information.

[0099] Figure 7A diagram of a video decoder (710) according to another embodiment of the present application is shown. The video decoder (710) is configured to receive an encoded picture as part of an encoded video sequence and decode the encoded picture to generate a reconstructed picture. In an example, the video decoder (710) is used instead of Figure 3 The video decoder (310) of the example.

[0100] exist Figure 7 In this example, the video decoder (710) includes Figure 7 An entropy decoder (771), an inter-frame decoder (780), a residual decoder (773), a reconstruction module (774), and an intra-frame decoder (772) are shown coupled together.

[0101] The entropy decoder (771) may be configured to reconstruct certain symbols representing syntax elements constituting the encoded picture from the encoded picture. Such symbols may include, for example, a mode for encoding a block (such as, intra mode, inter mode, bidirectional prediction mode, the latter two in a merge submode or another submode), prediction information (such as, intra prediction information or inter prediction information) of certain samples or metadata that may be identified for prediction by an intra decoder (772) or an inter decoder (780), for example, residual information in the form of quantized transform coefficients, etc. In an example, when the prediction mode is an inter mode or a bidirectional prediction mode, the inter prediction information is provided to the inter decoder (780); and when the prediction type is an intra prediction type, the intra prediction information is provided to the intra decoder (772). The residual information may be inverse quantized and provided to the residual decoder (773).

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

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

[0104] The residual decoder (773) is configured to perform inverse quantization to extract dequantized transform coefficients, and process the dequantized transform coefficients to convert the residual from the frequency domain to the spatial domain. The residual decoder (773) may also require certain control information (to include quantizer parameters (Quantizer Parameter, QP)), and this information can be provided by the entropy decoder (771) (data path is not depicted because this may only be low-capacity control information).

[0105] The reconstruction module (774) is configured to combine the residual output by the residual decoder (773) and the prediction result (output by the inter-frame prediction module or the intra-frame prediction module as appropriate) in the spatial domain to form a reconstructed block, which can be part of a reconstructed picture, which can be part of a reconstructed video. Note that other suitable operations, such as deblocking operations, etc., can be performed to improve visual quality.

[0106] Note that the video encoders (303), (503) and (603) and the video decoders (310), (410) and (710) may be implemented using any suitable technology. In an embodiment, the video encoders (303), (503) and (603) and the video decoders (310), (410) and (710) may be implemented using one or more integrated circuits. In another embodiment, the video encoders (303), (503) and (603) and the video decoders (310), (410) and (710) may be implemented using one or more processors that execute software instructions.

[0107] II. Deblocking Filter in HEVC

[0108] According to aspects of the present application, a video encoding technique may include a filtering operation that is performed on reconstructed samples so that artifacts produced by lossy compression (e.g., by quantization) can be reduced. In one such filtering operation, a deblocking filter process is used, wherein a block boundary between two adjacent blocks can be filtered so that a smoother transition of sample values ​​from one block to another can be achieved.

[0109] In some related examples (e.g., HEVC), deblocking filtering can be applied to samples adjacent to block boundaries. Deblocking filtering can be performed on each CU in the same order as the decoding process. For example, deblocking filtering can be performed by first horizontally filtering the vertical boundaries of the entire picture and then vertically filtering the horizontal boundaries of the entire picture. Filtering can be applied to 8×8 block boundaries, which are determined to be filtered for both luminance and chrominance components. 4×4 block boundaries are not processed to reduce complexity.

[0110] Boundary strength (BS) may be used to indicate the degree or strength of deblocking filtering processing. In an embodiment, a BS value of 2 indicates strong filtering, 1 indicates weak filtering, and 0 indicates no deblocking filtering.

[0111] Figure 8 FIG. 8 is a flowchart of a process (800) for determining a BS value according to an embodiment of the present application. Note that in other embodiments, Figure 8The order of the steps in the description may be re-sequenced, or one or more steps may be omitted or replaced.

[0112] exist Figure 8 In the example, P and Q are two adjacent blocks, and there is a boundary between the two adjacent blocks. In the case of a vertical boundary, P may represent a block located on the left side of the boundary, and Q may represent a block located on the right side of the boundary. In the case of a horizontal boundary, P may represent a block located above the boundary, and Q may represent a block located below the boundary.

[0113] exist Figure 8 In the present invention, the BS value may be determined based on a prediction mode (eg, intra coding mode), a non-zero transform coefficient (or the presence of a non-zero transform coefficient), a reference picture, the number of motion vectors, and / or a motion vector difference.

[0114] At step (S810), the process (800) determines whether P or Q is encoded in an intra-frame prediction mode. When it is determined that at least one of P and Q is encoded in an intra-frame prediction mode, the process (800) determines a first value (e.g., 2) of BS. Otherwise, the process (800) proceeds to step (S820).

[0115] At step (S820), the process (800) determines whether P or Q has a non-zero transform coefficient. When it is determined that at least one of P and Q has a non-zero transform coefficient, the process (800) determines a second value (e.g., 1) of BS. Otherwise, the process (800) proceeds to step (S830).

[0116] At step (S830), the process (800) determines whether P and Q have different reference pictures. When it is determined that P and Q have different reference pictures, the process (800) determines a third value (e.g., 1) of BS. Otherwise, the process (800) proceeds to step (S840).

[0117] At step (S840), the process (800) determines whether P and Q have different numbers of motion vectors. When it is determined that P and Q have different numbers of motion vectors, the process (800) determines a fourth value (e.g., 1) of BS. Otherwise, the process (800) proceeds to step (S850).

[0118] At step (S850), the process (800) determines whether the motion vector difference between P and Q is greater than or equal to a threshold value T. When it is determined that the motion vector difference between P and Q is greater than or equal to the threshold value T, the process (800) determines a fifth value of BS (e.g., 1). Otherwise, the process (800) determines a sixth value of BS (e.g., 0). In an embodiment, the threshold value T is set to 1 pixel. Figure 8In the example, the MV accuracy is 1 / 4 pixel, so the value of the MV difference threshold can be set to 4. In another example, if the MV accuracy is 1 / 16, the value of the MV difference can be set to 16.

[0119] It is worth noting that in Figure 8 In the example, the second to fifth values ​​are set to 1. However, in another example, part or all of the second to fifth values ​​may be set to different values.

[0120] In some embodiments, the BS may be calculated based on a 4×4 block, but the BS may be remapped to an 8×8 grid. For example, the maximum of two values ​​of the BS corresponding to the 8 pixels comprising a line in the 4×4 grid is selected as the BS of the boundary in the 8×8 grid.

[0121] III. Deblocking Filter in VVC

[0122] In some related examples, such as VVC Test model 5 (VTM5), the deblocking filtering process can be based on the process used in HEVC and include some modifications. For example, the filtering strength of the deblocking filter can depend on the average brightness level of the reconstructed samples, and the deblocking table t can be extended. C , stronger deblocking filters can be used for luma and chroma components, the luma deblocking filter can be applied to a 4×4 sample grid, and the chroma deblocking filter can be applied to an 8×8 sample grid.

[0123] In some related examples, such as HEVC, the filtering strength of the deblocking filter can be obtained from the average quantization parameter qP L The resulting variables β and t C In some related examples, such as VTM5, the deblocking filter can be controlled by adding an offset to the average quantization parameter qP according to the brightness level of the reconstructed samples. L To control the filtering strength. The reconstructed brightness level LL can be derived as, LL=((p 0,0 +p 0,3 +q 0,0 +q 0,3 )>>2) / (1<<bitDepth) (Formula 1) Among them, Fig. 9 As shown, the sample values ​​p for i=0..3 and k=0 and 3 are obtained. i,k and q i,k .

[0124] The variable qPL can be derived as, qPL=((Qp Q +Qp P+1)>>1)+qpOffset (Formula 2) Among them, Qp Q and Qp P Respectively represent the samples q 0,0 and p 0,0 The quantization parameter of the coding unit of qpOffset is determined by the transfer function and the reconstructed luminance level LL. The mapping function and luminance level of qpOffset can be signaled in the sequence parameter set (SPS) and derived from the transfer characteristics of the content, as the transfer function can vary between video formats.

[0125] In some related examples, such as VTM5, the maximum QP can be extended to 63. In order to reflect the corresponding changes in the deblocking table based on the value of the deblocking parameter obtained based on the block QP, the tC table can adapt to the expansion of the QP range and be t C =[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,5,5,6,6,7,8,9,10,11,13,14,16,18,20,22,25,28,31,35,39,44,50,56,63,70,79,88,99].

[0126] In some related examples, a stronger deblocking filter (e.g., a bilinear filter) may be used when samples on either side of the boundary belong to large blocks. A large block may be defined as when the width of the block is greater than or equal to 32 for vertical edges, and when the height of the block is greater than or equal to 32 for horizontal edges. The block boundary samples pi for i=0 to Sp-1 and qj for j=0 to Sq-1 are then replaced by linear interpolation as follows: p i ′=(f i *Middle s,t +(64-f i )*P s +32)>>6), trim to p i ±tcPD i (Formula 3) q j ′=(g j *Middle s,t +(64-g j )*Q s +32)>>6), trim to q j ±tcPD j (Formula 4) Among them, the parameter tcPD iand tcPD j is a position-dependent clipping parameter and is given in Table 1. j 、f i 、Middle s,t , P s and Q s . Table 1

[0127] In some embodiments, a stronger luminance filter may be used only when conditions 1, 2, and 3 are all true. Condition 1 is called the large block condition. This condition detects whether the samples at the P side and the Q side belong to a large block. Conditions 2 and 3 are determined as follows: Condition 2 = (d < β)? True: False (Formula 5) Where d, dpq, sp, and sq are the magnitudes of the gradient calculations to determine the amount of detail compared to a threshold based on β to avoid removing detail by filtering, where β is a QP-dependent coding noise threshold. Similarly, it is also checked whether the magnitude of the gradient across the boundary is less than a threshold based on t C A threshold value, wherein the threshold value is a QP-related deblocking strength threshold value.

[0128] In some embodiments, a strong deblocking filter for chroma may be defined as follows: p2′=(3*p3+2*p2+p1+p0+q0+4)>>3 (Formula 7) p1′=(2*p3+p2+2*p1+P0+q0+q1+4)>>3 (Formula 8) p0′=(p3+p2+p1+2*p0+q0+q1+q2+4)>>3 (Formula 9)

[0129] In an embodiment, a strong deblocking filter for chroma can perform deblocking on an 8×8 chroma sample grid. A chroma strong filter can be used on samples on both sides of a block boundary. For example, a chroma strong filter can be selected when both sides of a block boundary are greater than or equal to 8 (in units of chroma samples) and the following three decisions are met. The first decision is to determine whether any one of the two blocks separated by the block boundary is a large block. The second and third decisions are the deblocking filter on / off decision and the strong filter decision, respectively, which may be the same as the decisions in some related examples such as HEVC. In the first decision, the BS can be modified for chroma filtering, as shown in Table 2. The conditions in Table 2 are checked sequentially. If the conditions are met, the remaining conditions with lower priority are skipped. Table 2

[0130] In an embodiment, when BS is equal to 2, or BS is equal to 1, and a large block boundary is detected, chroma deblocking may be performed. In such a case, the second and third decisions are substantially the same as the HEVC luma strong filter decision.

[0131] In some related examples, such as VVC, a deblocking filter can be enabled on a 4×4 grid for luma and an 8×8 grid for chroma. The deblocking filtering process can be applied to CU boundaries and sub-block boundaries. Sub-block boundaries can include prediction unit boundaries introduced by sub-block-based temporal motion vector prediction (SbTMVP) and affine mode, and transform unit boundaries introduced by sub-block transform (SBT) and intra sub-partition (ISP) mode.

[0132] For SBT and ISP sub-blocks, the deblocking filter for TU in HEVC can be applied. For example, when there are non-zero coefficients in any of the sub-blocks separated by the boundary, the deblocking filter can be applied to the TU boundary.

[0133] For SbTMVP and affine sub-blocks on a 4×4 grid, a deblocking filter for PUs in HEVC may be applied. For example, a deblocking filter for PU boundaries may be applied taking into account the difference between reference pictures and motion vectors of neighboring sub-blocks.

[0134] IV. Deblocking Filter in the Audio Video Coding (AVS) Standard

[0135] In some related examples, such as the third generation AVS standard (AVS3), deblocking filtering operations can be processed at luma 8×8 and chroma 8×8 sample boundaries (including vertical and horizontal boundaries for each considered sample block). First, it can be checked whether the boundaries need to be filtered. Cases such as picture boundaries, segmentation boundaries (e.g., slice / tile boundaries), boundaries within coding blocks, or transform block boundaries do not need to be filtered. If the boundaries need to be filtered, BS can be calculated. For example, depending on how much change can be achieved in sample value changes after filtering, BS can be set to 0 (no filter), 1 (weak filter), or 2 (strong filter). For example, a strong filter can change sample values ​​near the boundaries in a more significant way.

[0136] In some embodiments, a strong filter may be applied to a boundary only when two regions separated by a boundary, such as a left region and a right region separated by a vertical boundary, are considered to be flat or smooth regions without high sample value fluctuations. Otherwise, a weak filter may be applied or no filter may be applied.

[0137] In some related examples such as AVS3, a sample difference between multiple samples such as two adjacent samples can be used to evaluate a smooth area near a boundary, where one of the multiple samples is adjacent to the boundary. The first sample is located to the right of the boundary, and the second sample is a direct neighbor of the first sample. Both the first sample and the second sample are in the same area on one side of the boundary. For example, in Fig.10 , the positions of samples close to the vertical boundary are shown, where L0 and L1 are two samples that can be used to evaluate the smoothness of the left region.

[0138] In some embodiments, some modifications for determining BS may be included in AVS3. For example, in a first modification, which may be referred to as modification #1, when two samples separated by a boundary (e.g., Fig.10 When the sample values ​​of L0 and R0 in (i.e., ...

[0139] V. Advanced Controls for Deblocking Filter Operation

[0140] Embodiments of the present application present advanced control methods for deblocking filter operations.

[0141] According to aspects of the present application, multiple deblocking filter operations may be available and allowed for the current block. For example, all deblocking filter operations in HEVC / VVC / AVS may be available and allowed for the current block. The availability of multiple deblocking filter operations may be indicated by a syntax element (e.g., an SPS flag) indicated by a first signal. When the SPS flag is true, multiple deblocking filter operations may be available and allowed for the current block. Otherwise, when the SPS flag is false, only the default deblocking filter operation may be available and allowed for the current block.

[0142] According to aspects of the present application, when multiple deblocking filter operations are available and allowed for the current block, a subset of the multiple deblocking filter operations can be enabled for the current block. The subset of multiple deblocking filter operations can be one or more deblocking filter operations in HEVC / VVC / AVS. The subset of multiple deblocking filter operations can be indicated by a second signaling syntax element (e.g., a picture-level flag). When the picture-level flag is true, one of the multiple deblocking filter operations corresponding to the picture-level flag is enabled for the current block. In another example, the picture-level flag can indicate a set of deblocking filter operations so that the set of deblocking filter operations can be enabled for the current block when the picture-level flag is true. In some embodiments, the second signaling syntax element can be a numerical value. Therefore, when the second signaling syntax element is equal to 1, a first deblocking filter operation, such as a deblocking filter operation in HEVC, is enabled for the current block. When the second signaling syntax element is equal to 2, a second deblocking filter operation, such as a deblocking filter operation in VVC, is enabled for the current block. When the second signaled syntax element is equal to 3, a third deblocking filter operation, such as a deblocking filter operation in AVS, is enabled for the current block.

[0143] The advanced control for deblocking filter operation presented in this application can be applied to various video standards and video codecs. For simplicity, the deblocking filter operation in AVS3 can be used as an example for illustrating the advanced control for deblocking filter operation. For example, the modified deblocking filter operation for AVS3, such as item #1 and item #2 modification, can be conditionally turned on. If item #1 and item #2 modification are turned off, the original / default method can still be used.

[0144] According to aspects of the present application, an SPS flag may be used to indicate whether a modified deblocking filter operation such as item #1 and item #2 modifications for AVS3 is available or allowed for the current block.

[0145] In an embodiment, two control flags, such as a first control flag and a second control flag, are used for item #1 and item #2 modification, respectively. The first control flag can be used to indicate whether item #1 modification is enabled for the current block, and the second control flag can be used to indicate whether item #2 modification is enabled for the current block. The first control flag and the second control flag can be included in a picture header, a slice header, or in a header in which a deblocking filter on / off control flag is present. Thus, the first control flag is used to control whether cross-boundary sample differences need to be considered in the decision to apply deblocking to the boundary. The second control flag is used separately to control whether four samples in the same area adjacent to the boundary can be used instead of two samples in the calculation of the BS.

[0146] In an example, the first flag and the second control flag may be conditionally signaled by the presence of the SPS flag. Only when the SPS flag is turned on (enabled), at a lower level such as a picture or slice header, or a header where a deblocking filter on / off control flag is present, the two flags may be signaled. Otherwise, the two flags are inferred to be false (not enabled).

[0147] In another example, in addition to the SPS flag being enabled, the first control flag and the second control flag are conditionally signaled by the presence of a deblocking filter on / off control flag. The two flags can be signaled only when the deblocking filter on / off control flag is turned on at a certain level, such as the picture level or the slice level. Otherwise, when the SPS flag is disabled and / or the deblocking filter on / off control flag is disabled, the two flags are inferred to be false (not enabled).

[0148] In an embodiment, one control flag is used to enable both item #1 and item #2 modifications in AVS3. The control flag can be added to the picture header or slice header, or to the header where the deblocking filter on / off control flag is present. Thus, one flag is used to control whether cross-boundary sample differences need to be considered in the decision to apply deblocking to the boundary. The same flag is used to control whether four samples in the same area adjacent to the boundary can be used in the calculation of the BS instead of two samples.

[0149] In an example, the control flag may be conditionally signaled by the presence of an SPS flag. The control flag may be signaled at a lower level, such as a picture or slice header, or a header where a deblocking filter on / off control flag is present, only when the SPS flag is on (enabled). Otherwise, the control flag is inferred to be false (not enabled).

[0150] In another example, in addition to the SPS flag being enabled, the control flag is conditionally signaled by the presence of a deblocking filter on / off control flag. The control flag can be signaled only when the deblocking filter on / off control flag is enabled at a certain level, such as the picture level or the slice level. Otherwise, when the SPS flag is disabled and / or the deblocking filter on / off control flag is disabled, the control flag is inferred to be false (not enabled).

[0151] Table 3 and Table 4 present SPS level and picture level syntax elements, respectively, according to embodiments of the present application. Table 3 Table 4

[0152] In Table 3, the syntax element sps_dbk_modified_flag is an SPS flag. In an embodiment, when sps_dbk_modified_flag is equal to 1, deblocking filter operation modifications such as item #1 and item #2 modifications can be used in the current sequence including the current block. When sps_dbk_modified_flag is equal to 0, deblocking filter operation modifications cannot be used in the current sequence. When not present, the value of sps_dbk_modified_flag is inferred to be 0.

[0153] In Table 4, the syntax element ph_dbk_modification_enabled_flag is a picture level control flag. When ph_dbk_modification_enabled_flag is equal to 1, one or more deblocking filter operation modifications, such as item #1 and item #2 modifications, are enabled in the current picture including the current block. When ph_dbk_modification_enabled_flag is equal to 0, one or more deblocking filter modifications are disabled in the current picture. When not present, the value of ph_dbk_modification_enabled_flag is inferred to be 0.

[0154] In one example, ph_dbk_modification_enabled_flag is used for item #1 modification. In another example, ph_dbk_modification_enabled_flag is used for item #2 modification. In another example, ph_dbk_modification_enabled_flag is used for both item #1 and item #2 modifications.

[0155] In an embodiment, syntax elements with different values ​​may be signaled for use of deblocking filter operation modifications. For example, syntax elements such as ph_dbk_modified_idc may be signaled at the picture level or the slice level. When ph_dbk_modified_idc is equal to 0, no modification is allowed. When ph_dbk_modified_idc is equal to 1, item #1 modification is used. When ph_dbk_modified_idc is equal to 2, item #2 modification is used. When ph_dbk_modified_idc is equal to 3, both item #1 and item #2 modification are used.

[0156] In an embodiment, syntax elements with different values ​​may be signaled for use of a set of deblocking filter operation modifications. For example, a syntax element such as ph_dbk_modification_enabled_idc may be signaled at a picture level or a slice level. When ph_dbk_modification_enabled_idc is equal to 0, modifications are not allowed. When ph_dbk_modification_enabled_idc is equal to 1, a first set of modifications such as item #1 and item #2 modifications are used. When ph_dbk_modification_enabled_idc is equal to 2, a second set of modifications is used. In an example, the first set of modifications may overlap with the second set of modifications. In another example, the first set of modifications may be different from the second set of modifications.

[0157] Thus, multiple different deblocking filter operations may be enabled and controlled through high-level control syntax elements and / or flags.

[0158] VI. Flowchart

[0159] Fig.11 A flowchart outlining an exemplary process (1100) according to an embodiment of the present application is shown. In various embodiments, the process (1100) is performed by a processing circuit, such as a processing circuit in a terminal device (210), (220), (230) and (240), a processing circuit that performs the functions of a video encoder (303), a processing circuit that performs the functions of a video decoder (310), a processing circuit that performs the functions of a video decoder (410), a processing circuit that performs the functions of an intra-frame prediction module (452), a processing circuit that performs the functions of a video encoder (503), a processing circuit that performs the functions of a predictor (535), a processing circuit that performs the functions of an intra-frame encoder (622), a processing circuit that performs the functions of an intra-frame decoder (772), etc. In some embodiments, the process (1100) is implemented in software instructions, so when the processing circuit executes the software instructions, the processing circuit performs the process (1100).

[0160] The process (1100) may generally begin at step (S1110), where the process (1100) decodes prediction information for a current block in a current picture, the current picture being part of an encoded video sequence. The prediction information includes a first syntax element and a second syntax element. The process (1100) then proceeds to step (S1120).

[0161] At step (S1120), the process (1100) determines whether multiple processes for determining the BS of the deblocking filter are allowed for the current block based on the first syntax element. The deblocking filter is applied to the boundary of the current block. When multiple processes for determining the BS of the deblocking filter are allowed for the current block, the process (1100) proceeds to step (S1130). Otherwise, the process (1100) proceeds to step (S1150).

[0162] At step (S1130), the process (1100) determines a subset of the multiple processes of the BS for determining the deblocking filter for the current block based on the second syntax element.Then, the process (1100) proceeds to step (S1140).

[0163] At step (S1140), the process (1100) determines a BS of a deblocking filter for the current block based on a subset of the plurality of processes for determining a BS of a deblocking filter.

[0164] At step (S1150), the process (1100) determines the BS of the deblocking filter for the current block based on the default deblocking filter process. Then, the process (1100) ends.

[0165] In an embodiment, the BS of the deblocking filter for the current block is determined based on a plurality of samples located in one of two regions separated by a boundary of the current block. In an example, the number of the plurality of samples located in one of two regions separated by a boundary of the current block is one of: two and four.

[0166] In an embodiment, the process (1100) determines whether the sample value difference between two samples separated by the boundary of the current block is greater than a threshold value. When the sample value difference between two samples separated by the boundary of the current block is greater than the threshold value, the process (1100) determines not to apply the deblocking filter to the boundary of the current block.

[0167] In an embodiment, the first syntax element is at sequence parameter set level.

[0168] In an embodiment, the process (1100) determines a subset of a plurality of processes of the BS for determining a deblocking filter for the current block based on the second syntax element and a deblocking control flag indicating that a filtering operation is enabled for the current block. In an example, the second syntax element is at one of a picture level, a slice level, and a level the same as the deblocking control flag.

[0169] VII. Computer System

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

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

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

[0173] Fig.12 The components for the computer system (1200) shown in the example are exemplary in nature and are not intended to impose any limitation on the scope of use or functionality of computer software implementing embodiments of the present application. Nor should the configuration of components be interpreted as having any dependency or requirement related to any component or combination of components shown in the exemplary embodiment of the computer system (1200).

[0174] The computer system (1200) may include certain human interface input devices. Such human interface input devices may be responsive to input from one or more human users through, for example, tactile input (such as keystrokes, swipes, data glove movements), audio input (such as voice, clapping), visual input (such as gestures), olfactory input (not depicted). Human 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 (such as voice, music, ambient sounds), images (such as scanned images, photographic images obtained from a still image camera), and videos (such as two-dimensional video, three-dimensional video including stereoscopic video).

[0175] Input human interface devices may include one or more of the following (only one of each is depicted): keyboard (1201), mouse (1202), trackpad (1203), touch screen (1210), data gloves (not shown), joystick (1205), microphone (1206), scanner (1207), camera (1208).

[0176] The computer system (1200) may also include certain human-machine interface output devices. Such human-machine interface output devices may stimulate the senses of one or more human users through, for example, tactile output, sound, light, and smell / taste. Such human-machine interface output devices may include tactile output devices (e.g., tactile feedback through a touch screen (1210), a data glove (not shown), or a joystick (1205), but there may also be tactile feedback devices that are not used as input devices), audio output devices (such as: speakers (1209), headphones (not depicted)), visual output devices (such as screens (1210), to include CRT screens, LCD screens, plasma screens, OLED screens, each with or without touch screen input capabilities, each with or without tactile feedback capabilities - some of which may output two-dimensional visual outputs or more than three-dimensional outputs through devices such as stereographic output, virtual reality glasses (not depicted), holographic displays, and smoke boxes (not depicted)), and printers (not depicted). These visual output devices (such as screens 1210) may be connected to the system bus 1248 through a graphics adapter 1250.

[0177] The computer system (1200) may also include human-accessible storage devices and their associated media, such as optical media including CD / DVD ROM / RW (1220) with CD / DVD etc. media (1221), thumb drives (1222), removable hard drives or solid-state drives (1223), traditional 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.

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

[0179] The computer system (1200) may also include a network interface (1254) to one or more communication networks (1255). The one or more communication networks (1255) may be, for example, wireless, wired, optical. The one or more communication networks (1255) may also be local, wide area, urban, vehicle-mounted and industrial, real-time, delay-tolerant, etc. Examples of the one or more communication networks (1255) include local area networks such as Ethernet, wireless LAN, cellular networks including GSM, 3G, 4G, 5G, LTE, etc., television wired or wireless wide area digital networks including cable television, satellite television, and terrestrial broadcast television, vehicle and industrial networks including CANBus, etc. Some networks typically require an external network interface adapter that attaches to some general data port or peripheral bus (1249) (e.g., a USB port of a computer system (1200)); others are typically integrated into the core of the computer system (1200) by attaching to a system bus as described below (e.g., an Ethernet interface integrated into a PC computer system or a cellular network interface integrated into a smartphone computer system). Using any of these networks, the computer system (1200) 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, such as to other computer systems using local or wide area digital networks. Certain protocols and protocol stacks can be used on each of those networks and network interfaces as described above.

[0180] The above-mentioned human interface devices, human-accessible storage devices, and network interfaces may be attached to the core (1240) of the computer system (1200).

[0181] The core (1240) may include one or more central processing units (CPUs) (1241), graphics processing units (GPUs) (1242), dedicated programmable processing units in the form of field programmable gate areas (FPGAs) (1243), hardware accelerators for certain tasks (1244), etc. These devices, together with read-only memory (ROM) (1245), random access memory (1246), internal mass storage devices such as internal non-user accessible hard disk drives, SSDs (1247), etc., can be connected via a system bus (1248). In some computer systems, the system bus (1248) can be accessed in the form of one or more physical plugs to enable expansion by additional CPUs, GPUs, etc. Peripheral devices can be attached to the core's system bus (1248) directly or via a peripheral bus 1249. Peripheral bus architectures include PCI, USB, etc.

[0182] The CPU (1241), GPU (1242), FPGA (1243) and accelerator (1244) can execute certain instructions, which can be combined to form the above-mentioned computer code. The computer code can be stored in ROM (1245) or RAM (1246). Transition data can also be stored in RAM (1246), while permanent data can be stored in, for example, an internal mass storage device (1247). Fast storage and retrieval of any memory device can be achieved by using a cache memory, which can be closely associated with one or more CPUs (1241), GPUs (1242), mass storage devices (1247), ROMs (1245), RAMs (1246), etc.

[0183] 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 this application, or they may be of a type well known and available to those skilled in the art of computer software.

[0184] As an example and not limitation, a computer system having architecture (1200), and in particular a core (1240), can provide functionality due to a processor (including a CPU, GPU, FPGA, accelerator, etc.) executing software contained in one or more tangible computer-readable media. Such a computer-readable medium can be a medium associated with a user-accessible mass storage device as described above and a specific storage device of the core (1240) having non-transitory properties such as a core internal mass storage device (1247) or ROM (1245). Software implementing various embodiments of the present application can be stored in such a device and executed by the core (1240). Depending on specific needs, the computer-readable medium may include one or more memory devices or chips. The software can enable the core (1240) and specifically the processor therein (including a CPU, GPU, FPGA, etc.) to perform a specific process or a specific part of a specific process described herein, including defining a data structure stored in RAM (1246) and modifying such a data structure according to a process defined by the software. Additionally or alternatively, the computer system may provide functionality as a result of logic hardwired or otherwise contained in a circuit (e.g., accelerator (1244)) that may replace software or operate in conjunction with software to perform a particular process or a particular portion of a particular process described herein. Where appropriate, references to software may include logic and vice versa. Where appropriate, references to computer-readable media may include circuits (such as integrated circuits (ICs)) storing software for execution, circuits containing logic for execution, or both circuits storing software for execution and circuits containing logic for execution. The present application includes any suitable combination of hardware and software.

[0185] Although the present application has described several exemplary embodiments, there are changes, permutations, and various alternative equivalents that fall within the scope of the present application. Therefore, it should be understood that those skilled in the art will be able to design many systems and methods that, although not explicitly shown or described herein, embody the principles of the present application and are therefore within the spirit and scope of the present application. Appendix A: Acronyms AMVP: Advanced Motion Vector Prediction ASIC: Application-Specific Integrated Circuit ATMVP: Alternative / Advanced Temporal Motion Vector Prediction BMS: Benchmark Set BV: Block Vector CANBus: Controller Area Network Bus CB: Coded Block CD: compact disc CPR: Current Picture Reference CPU: Central Processing Unit CRT: cathode ray tube CTB: Coding Tree Block CTU: Coding Tree Unit CU: Coding Unit DPB: Decoder Picture Buffer DVD: Digital Video Disc FPGA: Field Programmable Gate Array GOP: Group of Pictures GPU: Graphics Processing Unit GSM: Global System for Mobile Communications HEVC: High Efficiency Video Coding HRD: Hypothesized Reference Decoder IBC: Intra-Block Replication IC: Integrated Circuit JEM: Joint Exploration Model LAN: Local Area Network LCD: Liquid Crystal Display LTE: Long Term Evolution MV: Motion Vector OLED: Organic Light Emitting Diode PB: prediction block PCI: Peripheral Component Interconnect PLD: Programmable Logic Device PU: prediction unit RAM: Random Access Memory ROM: Read Only Memory SCC: Screen Content Coding SEI: Supplemental Enhancement Information SNR: Signal to Noise Ratio SSD: Solid State Drive TU: Transform Unit USB: Universal Serial Bus VUI: Video Availability Information VVC: Versatile Video Coding

Claims

1. A video decoding method, characterized in that: The method comprises: decoding prediction information for a current block in a current picture, the current picture being part of an encoded video sequence, the prediction information comprising a first syntax element and a second syntax element, the first syntax element indicating that a deblocking filter process is enabled for the current block, the deblocking filter process being applied to a boundary of the current block; the second syntax element indicating the number of samples to be used for calculating a boundary strength of the deblocking filter process, wherein a first value of the second syntax element indicates that two samples will be used for calculating the boundary strength of the deblocking filter process, and a second value of the second syntax element indicates that four samples will be used for calculating the boundary strength of the deblocking filter process; and Based on the second syntax element having the first value or the second value, a boundary strength of the deblocking filtering process is determined using the two samples or the four samples, and the deblocking filtering process is performed on the current block based on the boundary strength.

2. The method according to claim 1, characterized in that Determining the boundary strength of the deblocking filtering process includes: The boundary strength of the deblocking filtering process is determined for the current block using the two samples or the four samples indicated by the second syntax element, wherein the two samples or the four samples are located in one of two regions separated by a boundary of the current block.

3. The method according to any one of claims 1 or 2, characterized in that Determining the boundary strength of the deblocking filtering process includes: Determine whether the sample value difference of the sample is greater than a threshold; and Based on the sample value difference of the samples being greater than the threshold, it is determined not to apply the deblocking filtering process to the boundary of the current block.

4. The method according to claim 1 or 2, characterized in that: The second syntax element is at one of a picture level, a slice level, and a same level as the first syntax element.

5. The method according to claim 1 or 2, characterized in that: The prediction information includes a third syntax element, and the third syntax element indicates whether multiple deblocking filtering operations can be used for the current block.

6. The method according to claim 5, characterized in that The third syntax element is at sequence parameter set level.

7. A video encoding method, characterized in that: include: Determining a boundary strength of a deblocking filtering process for a boundary of a current block in a current picture, wherein the current picture is part of a video sequence to be encoded; determining prediction information for the current block, the prediction information comprising a first syntax element and a second syntax element, the first syntax element indicating that the deblocking filtering process is enabled for the current block, the second syntax element indicating the number of samples to be used for calculating the boundary strength of the deblocking filtering process, wherein a value of the second syntax element is determined based on determining the boundary strength of the deblocking filtering process using two samples or four samples, the first value of the second syntax element indicating that the two samples will be used to calculate the boundary strength of the deblocking filtering process, and the second value of the second syntax element indicating that the four samples will be used to calculate the boundary strength of the deblocking filtering process; and The prediction information of the current block is encoded to generate a code stream of the video sequence to be encoded.

8. A video decoding device, characterized in that: include: A decoding module for decoding prediction information for a current block in a current picture, the current picture being part of an encoded video sequence, the prediction information comprising a first syntax element and a second syntax element; The first syntax element indicates that a deblocking filter process is enabled for the current block, and the deblocking filter process is applied to a boundary of the current block; the second syntax element indicates the number of samples to be used for calculating the boundary strength of the deblocking filter process, wherein a first value of the second syntax element indicates that two samples will be used for calculating the boundary strength of the deblocking filter process, and a second value of the second syntax element indicates that four samples will be used for calculating the boundary strength of the deblocking filter process; as well as A boundary strength determination module is used to determine the boundary strength of the deblocking filtering process using the two samples or the four samples based on the second syntax element having the first value or the second value, and perform the deblocking filtering process on the current block based on the boundary strength.

9. The device according to claim 8, characterized in that The boundary strength determination module is used for: The boundary strength of the deblocking filtering process is determined for the current block using the two samples or the four samples indicated by the second syntax element, wherein the two samples or the four samples are located in one of two regions separated by a boundary of the current block.

10. The device according to any one of claims 8 or 9, characterized in that The boundary strength determination module is used for: Determine whether the sample value difference of the sample is greater than a threshold; and Based on the sample value difference of the samples being greater than the threshold, it is determined not to apply the deblocking filtering process to the boundary of the current block.

11. The device according to claim 8 or 9, characterized in that The second syntax element is at one of a picture level, a slice level, and a same level as the first syntax element.

12. The device according to claim 8 or 9, characterized in that The prediction information includes a third syntax element, and the third syntax element indicates whether multiple deblocking filtering operations can be used for the current block.

13. The device according to claim 12, characterized in that The third syntax element is at sequence parameter set level.

14. A video encoding device, characterized in that: include: A first determination module determines a boundary strength of a deblocking filter process for a boundary of a current block in a current picture, wherein the current picture is part of a video sequence to be encoded; a second determination module, determining prediction information for the current block, the prediction information comprising a first syntax element and a second syntax element, the first syntax element indicating that the deblocking filter process is enabled for the current block, the second syntax element indicating the number of samples to be used for calculating the boundary strength of the deblocking filter process, wherein a value of the second syntax element is determined based on determining the boundary strength of the deblocking filter process using two samples or four samples, the first value of the second syntax element indicating that the two samples will be used for calculating the boundary strength of the deblocking filter process, and the second value of the second syntax element indicating that the four samples will be used for calculating the boundary strength of the deblocking filter process; as well as The encoding module encodes the prediction information of the current block to generate a code stream of the video sequence to be encoded.

15. A non-transitory computer-readable storage medium storing a program, characterized in that: The program can be executed by at least one processor to perform the method according to any one of claims 1 to 7.

16. A computer device comprising a processor and a memory, characterized in that: The memory stores computer-readable instructions, and when the computer-readable instructions are executed by the processor, the computer device performs the method according to any one of claims 1 to 7.