Video processing method, video processing apparatus, encoder, decoder, medium, and computer program

The video processing method initializes a history-based motion vector prediction list for each CTU row and supports wavefront parallel processing to enhance encoding and decoding efficiency, addressing the challenge of further compression beyond HEVC.

JP2024124416AActive Publication Date: 2024-09-12HUAWEI TECH CO LTD

Patent Information

Application Number
JP2024095942
Authority / Receiving Office
JP · JP
Patent Type
Applications
Current Assignee / Owner
Priority Date
2018-08-10
Filing Date
2024-06-13
Publication Date
2024-09-12
Estimated Expiration
2039-08-12

AI Technical Summary

Technical Problem

Existing video coding techniques face challenges in achieving further compression efficiency beyond High Efficiency Video Coding (HEVC) without degrading picture quality, particularly in handling motion vector prediction processes.

Method used

A video processing method that initializes a history-based motion vector prediction (HMVP) list for each coding tree unit (CTU) row, allowing independent processing without relying on previous rows, and supports wavefront parallel processing (WPP) to enhance encoding and decoding efficiency.

Benefits of technology

This approach improves coding efficiency by enabling simultaneous processing of CTU rows, reducing dependency on previous rows and optimizing motion vector prediction, thus enhancing compression performance.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 2024124416000001
    Figure 2024124416000001
Patent Text Reader

Abstract

To provide a video processing method and a corresponding device for improving coding efficiency.SOLUTION: A video processing method comprises the steps of: initializing an HMVP list for a current CTU row when the current CTU is a beginning CTU of the current CTU row; and processing the current CTU row based on the HMVP list. By performing the method, encoding efficiency and decoding efficiency are improved.SELECTED DRAWING: Figure 9
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] TECHNICAL FIELD Embodiments of the present application (disclosure) relate generally to the field of video coding, and more particularly to video processing methods, video processing apparatus, encoders, decoders, media, and computer programs. [Background technology]

[0002] Video coding (video encoding and video decoding) is used in a wide range of digital video applications, such as broadcast digital TV, video transmission over the Internet and mobile networks, real-time conversation applications such as video chat, video conferencing, DVDs and Blu-ray® discs, video content acquisition and editing systems, and camcorders for security applications.

[0003] Since the development of the block-based hybrid video coding approach in the H.261 standard in 1990, new video coding techniques and video coding tools have been developed to form the basis of new video coding standards. Additional video coding standards include MPEG-1 video, MPEG-2 video, ITU-T H.262 / MPEG-2, ITU-T H.263, ITU-T H.264 / MPEG-4, Part 10, Advanced Video Coding (AVC), ITU-T H.265 / High Efficiency Video Coding (HEVC), ITU-T H.266 / Versatile Video Coding (VVC), and extensions of these standards, such as scalability and / or three-dimensional (3D) extensions. As video production and use becomes more and more ubiquitous, video traffic becomes the largest burden on communication networks and data storage, and therefore one of the goals of many video coding standards has been to achieve a reduction in bit rate compared to its predecessor without sacrificing picture quality. Even the latest High Efficiency Video Coding (HEVC) can compress video about twice as much as AVC without sacrificing quality, and there is a need to further compress video compared to HEVC. Summary of the Invention [Means for solving the problem]

[0004] SUMMARY OF THE DISCLOSURE The embodiments of the present application provide a video processing method and corresponding apparatus for improving coding efficiency.

[0005] The above and other objects are achieved by the subject matter of the independent claims. Further implementations are evident from the independent claims, the detailed description and the figures.

[0006] A first aspect of the present invention provides a video processing method, comprising the steps of initializing a history-based motion vector prediction (HMVP) list for a current coding tree unit (CTU) row when the CTU is a start CTU of a current CTU row, and processing the current CTU row based on the HMVP list. The start CTU, sometimes called a starting CTU, is the first CTU of the CTUs of the same CTU row being processed.

[0007] It can be seen that the HMVP list for the current CTU row is initialized at the start of processing of the current CTU row, and the process of the current CTU row does not need to be based on the HMVP list of the previous CTU row, which can improve encoding and decoding efficiency.

[0008] Referring to the first aspect, in a first possible implementation method of the first aspect, the number of candidate motion vectors in the initialized HMVP list is zero.

[0009] With reference to the first aspect, or any one of the above-mentioned implementation methods of the first aspect, in a second possible implementation method of the first aspect, the current CTU row belongs to a picture area consisting of multiple CTU rows, and the current CTU row is any one of the multiple CTU rows, for example, the first (e.g., the top) CTU row, the second CTU row, ... and the last (e.g., the bottom) CTU row of the picture area.

[0010] With reference to the first aspect or any one of the above-mentioned implementation methods of the first aspect, in a third possible implementation method of the first aspect, the method further includes a step of initializing an HMVP list for each of a plurality of CTU rows, except for a current CTU row, where the HMVP lists for the plurality of CTU rows are identical or different. In other words, the embodiment may additionally initialize the HMVP list for all other CTU rows of the picture area, i.e., initialize the HMVP list for all CTU rows of the picture area.

[0011] With reference to the first aspect or any one of the aforementioned implementation methods of the first aspect, in a fourth possible implementation method of the first aspect, the step of processing a current CTU row based on the HMVP list includes a step of processing a current CTU of the current CTU row, a step of updating the initialized HMVP list based on the processed current CTU, and a step of processing a second CTU of the current CTU row based on the updated HMVP list.

[0012] With reference to the first aspect, or any one of the aforementioned implementation methods of the first aspect, in a fifth possible implementation method of the first aspect, the HMVP list is updated according to the processed CTU of the current CTU row.

[0013] With reference to the first aspect, or any one of the aforementioned implementation methods of the first aspect, in a sixth possible implementation method of the first aspect, the HMVP list for the current CTU row is initialized as follows, i.e., to empty the HMVP list for the current CTU row.

[0014] With reference to the first aspect, or any one of the aforementioned implementation methods of the first aspect, in a seventh possible implementation method of the first aspect, the step of processing the current CTU row based on the HMVP list includes a step of processing the current CTU row based on an HMVP list from a second CTU of the current CTU row, where the second CTU is adjacent to the start CTU.

[0015] Referring to the first aspect or any one of the aforementioned implementation methods of the first aspect, in an eighth possible implementation method of the first aspect, multiple CTU rows are processed in wavefront parallel processing (WPP) mode.

[0016] It can be seen that because the HMVP list for the current CTU row is initialized at the start of processing of the current CTU row, when combined with WPP mode, CTU rows of a picture frame or picture area can be processed simultaneously, thereby further improving encoding and decoding efficiency.

[0017] With reference to the first aspect, or any one of the aforementioned implementation methods of the first aspect, in a ninth possible implementation method of the first aspect, a current CTU row starts to be processed (or processing of the current CTU row begins) when a particular CTU of a previous CTU row is processed.

[0018] With reference to the first aspect, or any one of the aforementioned implementation methods of the first aspect, in a tenth possible implementation method of the first aspect, the previous CTU row is a CTU row that is directly adjacent to the current CTU row and above or above the current CTU row.

[0019] With reference to the ninth implementation method of the first aspect or the tenth implementation method of the first aspect, in an eleventh possible implementation form of the first aspect, a particular CTU in a previous CTU row is a second CTU in the previous CTU row; or, a particular CTU in a previous CTU row is a first CTU in the previous CTU row.

[0020] A second aspect of the present invention provides a video processing device including: an initialization unit configured to initialize a history-based motion vector prediction (HMVP) list for a current coding tree unit (CTU) row when the CTU is a start CTU of the current CTU row; and a processing unit configured to process the current CTU row based on the HMVP list.

[0021] Referring to the second aspect of the present invention, in a first possible implementation method of the second aspect, the number of candidate motion vectors in the initialized HMVP list is zero.

[0022] With reference to the second aspect, or any one of the above-mentioned implementation methods of the second aspect, in a second possible implementation method of the second aspect, the current CTU row belongs to a picture area consisting of multiple CTU rows, and the current CTU row is any one of the multiple CTU rows.

[0023] With reference to the second aspect, or any one of the aforementioned implementation methods of the second aspect, in a third possible implementation method of the second aspect, the initialization unit is further configured to initialize an HMVP list for each of a plurality of CTU rows, excluding a current CTU row, wherein the HMVP lists for the plurality of CTU rows are the same or different.

[0024] With reference to the second aspect, or any one of the aforementioned implementation methods of the second aspect, in a fourth possible implementation method of the second aspect, the processing unit is further configured to process a current CTU of a current CTU row, update the initialized HMVP list based on the processed current CTU, and process a second CTU of the current CTU row based on the updated HMVP list.

[0025] With reference to the second aspect, or any one of the aforementioned implementation methods of the second aspect, in a fifth possible implementation method of the second aspect, the HMVP list is updated according to the processed CTU of the current CTU row.

[0026] With reference to the second aspect, or any one of the aforementioned implementation methods of the second aspect, in a sixth possible implementation method of the second aspect, the initialization unit is further configured to initialize an HMVP list for the current CTU row as follows, i.e., to empty the HMVP list for the current CTU row.

[0027] With reference to the second aspect or any one of the aforementioned implementation methods of the second aspect, in a seventh possible implementation method of the second aspect, the processing unit is further configured to process the current CTU row based on the HMVP list as follows, i.e., to process the current CTU row based on the HMVP list from a second CTU of the current CTU row, where the second CTU is adjacent to the start CTU.

[0028] Referring to the second aspect, or any one of the aforementioned implementation methods of the second aspect, in an eighth possible implementation method of the second aspect, multiple CTU rows are processed in wavefront parallel processing (WPP) mode.

[0029] With reference to the second aspect, or any one of the aforementioned implementation methods of the second aspect, in a ninth possible implementation method of the second aspect, a current CTU row starts to be processed (or processing of the current CTU row begins) when a particular CTU of a previous CTU row is processed.

[0030] Referring to the second aspect, or any one of the aforementioned implementation methods of the second aspect, in a tenth possible implementation method of the second aspect, the previous CTU row is a CTU row that is directly adjacent to and above the current CTU row.

[0031] With reference to the ninth implementation method of the second aspect or the tenth implementation method of the second aspect, in an eleventh possible implementation method of the second aspect, a particular CTU in a previous CTU row is a second CTU in the previous CTU row; or a particular CTU in a previous CTU row is a first CTU in the previous CTU row.

[0032] A third aspect of the present invention provides a coding method implemented by a decoding device, the coding method including the steps of building / initializing an HMVP list for a current CTU row, and processing CTUs in the current CTU row based on the built / initialized HMVP list. Referring to the third aspect, in a first possible implementation method of the third aspect, the HMVP list for the current CTU row is constructed / initialized as follows: i.e., to empty the HMVP list for the current CTU row and / or to set a default value for the HMVP list for the current CTU row, and / or to construct / initialize the HMVP list for the current CTU row based on the HMVP list of the CTUs of the previous CTU row.

[0033] Referring to the first possible implementation method of the third aspect, in a second possible implementation method of the third aspect, the step of setting a default value for the HMVP list for the current CTU row includes a step of populating the MV of the HMVP list as an MV of a uni-predictive method, where the MV of the uni-predictive method is either a zero motion vector or a non-zero motion vector, and the reference picture includes a first reference picture in the L0 list, and / or a step of populating the MV of the HMVP list as an MV of a bi-predictive method, where the MV of the bi-predictive method is either a zero motion vector or a non-zero motion vector, and the reference picture includes the first reference picture in the L0 list and the first reference picture in the L1 list.

[0034] Referring to the first possible implementation method of the third aspect, in the third possible implementation method of the third aspect, each co-located picture can store a temporal HMVP list for each CTU row or for the entire picture, and the step of setting a default value for the HMVP list for the current CTU row includes a step of initializing / constructing the HMVP list for the current CTU row based on the temporal HMVP list.

[0035] With reference to the first possible implementation method of the third aspect, in a fourth possible implementation method of the third aspect, the previous CTU row is a CTU row that is directly adjacent to and above the current CTU row.

[0036] With reference to the fourth possible implementation method of the third aspect, in a fifth possible implementation method of the third aspect, the CTU of the previous CTU row is the second CTU of the previous CTU row.

[0037] With reference to the fourth possible implementation method of the third aspect, in a fifth possible implementation method of the third aspect, the CTU of the previous CTU row is the first CTU of the previous CTU row.

[0038] A fourth aspect of the present invention provides a coding method implemented by an encoding device, the coding method including the steps of building / initializing an HMVP list for a current CTU row, and processing CTUs in the current CTU row based on the built / initialized HMVP list.

[0039] Referring to the fourth aspect, in a first possible implementation method of the fourth aspect, the HMVP list for the current CTU row is constructed / initialized as follows: i.e., to empty the HMVP list for the current CTU row; and / or to set a default value for the HMVP list for the current CTU row, and / or to construct / initialize the HMVP list for the current CTU row based on the HMVP list of the CTUs of the previous CTU row.

[0040] Referring to the first possible implementation method of the fourth aspect, in a second possible implementation method of the fourth aspect, the step of setting a default value for the HMVP list for the current CTU row includes a step of populating the MV of the HMVP list as an MV of a uni-predictive method, where the MV of the uni-predictive method is either a zero motion vector or a non-zero motion vector, and the reference picture includes a first reference picture in the L0 list; and / or a step of populating the MV of the HMVP list as an MV of a bi-predictive method, where the MV of the bi-predictive method is either a zero motion vector or a non-zero motion vector, and the reference picture includes a first reference picture in the L0 list and a first reference picture in the L1 list.

[0041] Referring to the first possible implementation method of the fourth aspect, in a third possible implementation method of the fourth aspect, each co-located picture can store a temporal HMVP list for each CTU row or for the entire picture, and the step of setting a default value for the HMVP list for the current CTU row includes a step of initializing / constructing the HMVP list for the current CTU row based on the temporal HMVP list.

[0042] Referring to the first possible implementation method of the fourth aspect, in the fourth possible implementation method of the fourth aspect, the previous CTU row is a CTU row that is directly adjacent to the current CTU row and above or above the current CTU row.

[0043] Referring to the fourth possible implementation method of the fourth aspect, in a fifth possible implementation method of the fourth aspect, the CTU of the previous CTU row is the second CTU of the previous CTU row.

[0044] Referring to the fourth possible implementation method of the fourth aspect, in a sixth possible implementation method of the fourth aspect, the CTU of the previous CTU row is the first CTU of the previous CTU row.

[0045] A fifth aspect of the present invention provides an encoder, the encoder including a processing circuit for performing a method according to the first aspect or any one of the implementation methods of the first aspect, or according to the third aspect or any one of the implementation methods of the third aspect, or according to the fourth aspect or any one of the implementation methods of the fourth aspect. For example, the encoder may include an initialization circuit configured to initialize a history-based motion vector prediction (HMVP) list for a current coding tree unit (CTU) row when the current CTU is a start CTU of the current CTU row, and a processing circuit configured to process the current CTU row based on the HMVP list.

[0046] A sixth aspect of the present invention provides a decoder, the decoder including a processing circuit for performing a method according to the first aspect or any one of the implementation methods of the first aspect, or according to the third aspect or any one of the implementation methods of the third aspect, or according to the fourth aspect or any one of the implementation methods of the fourth aspect. For example, the decoder may include an initialization circuit configured to initialize a history-based motion vector prediction (HMVP) list for a current coding tree unit (CTU) row when the CTU is a start CTU of the current CTU row, and a processing circuit configured to process the current CTU row based on the HMVP list.

[0047] A seventh aspect of the present invention provides a computer program product comprising a program code for carrying out a method according to the first aspect or any one of the methods of implementing the first aspect, or according to the third aspect or any one of the methods of implementing the third aspect, or according to the fourth aspect or any one of the methods of implementing the fourth aspect.

[0048] An eighth aspect of the present invention provides a computer readable storage medium having stored thereon computer instructions which, when executed by one or more processors, cause the one or more processors to perform a method according to the first aspect or any one of the methods of implementing the first aspect, or according to the third aspect or any one of the methods of implementing the third aspect, or according to the fourth aspect or any one of the methods of implementing the fourth aspect.

[0049] A ninth aspect of the present invention provides a decoder comprising one or more processors and a non-transitory computer readable storage medium coupled to the processors and having programming stored thereon for execution by the processors, the programming which when executed by the processor configures the decoder to perform a method according to the first aspect or any one of the methods of implementing the first aspect, or according to the third aspect or any one of the methods of implementing the third aspect, or according to the fourth aspect or any one of the methods of implementing the fourth aspect.

[0050] A tenth aspect of the present invention provides an encoder comprising: one or more processors; and a non-transitory computer readable storage medium coupled to the processors and having programming stored thereon for execution by the processor, the programming, when executed by the processor, configures the encoder to perform a method according to the first aspect or any one of the methods of implementing the first aspect, or according to the third aspect or any one of the methods of implementing the third aspect, or according to the fourth aspect or any one of the methods of implementing the fourth aspect.

[0051] In the following, embodiments of the invention are explained in more detail with reference to the accompanying figures and drawings. [Brief description of the drawings]

[0052] [Figure 1A]1 is a block diagram illustrating an example of a video coding system configured to implement embodiments of the present invention. [Figure 1B] 2 is a block diagram illustrating another example of a video coding system configured to implement embodiments of the present invention. [Diagram 2] FIG. 1 is a block diagram illustrating an example of a video encoder configured to implement embodiments of the present invention. [Diagram 3] 1 is a block diagram showing one exemplary structure of a video decoder configured to implement embodiments of the present invention. [Figure 4] FIG. 1 is a block diagram showing an example of an encoding device or a decoding device. [Diagram 5] FIG. 13 is a block diagram showing another example of an encoding device or a decoding device. [Figure 6] A diagram showing the locations of spatially adjacent blocks used in merging and AMVP candidate list construction. [Figure 7] 1 is a decoding flow diagram of the HMVP method. [Figure 8] FIG. 2 is a block diagram showing a WPP processing order. [Figure 9] 4 is a flow diagram illustrating an exemplary operation of a video decoder according to one embodiment. [Figure 10] 1 is a flow diagram illustrating an exemplary operation according to one embodiment. [Figure 11] FIG. 1 is a block diagram illustrating an example of a video processing device. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0053] Hereinafter, unless there is any specific note regarding the differences between identical reference signs, those identical reference signs refer to identical or at least functionally equivalent features.

[0054] In the following description, reference is made to the accompanying figures, which form a part of this disclosure and which show, by way of example, certain aspects of embodiments of the invention or in which embodiments of the invention may be used. It is understood that embodiments of the invention may be used in other ways and include structural or logical changes not shown in these figures. The following detailed description is therefore not to be taken in a limiting sense, and the scope of the present invention is defined by the appended claims.

[0055] For example, it is understood that disclosures about a described method may also be valid for a corresponding device or system configured to perform the method, and vice versa. For example, when one or more specific method steps are described, the corresponding device may include one or more units, e.g., functional units, for performing one or more of the described method steps, even if such one or more units are not explicitly described or shown in the figure. On the other hand, when, for example, a particular apparatus is described based on one or more units, e.g., functional units, the corresponding method may include one step for performing the functionality of one or more units, even if such one or more steps are not explicitly described or shown in the figure (e.g., one step performs the functionality of one or more units, or multiple steps each perform the functionality of one or more units). Furthermore, it is understood that the features of various exemplary embodiments and / or aspects described herein may be combined with each other, unless expressly specified otherwise.

[0056] Video coding generally refers to the processing of a sequence of pictures that form a video or a video sequence. Instead of the term "picture", the terms "frame" or "image" are sometimes used synonymously in the field of video coding. Video coding as used in this application (or in this disclosure) refers to either video encoding or video decoding. Video encoding generally occurs at the source side, including processing the original video picture (e.g., by compression) to reduce the amount of data required to represent the video picture (for more efficient storage and / or transmission). Video decoding occurs at the destination side, and generally involves reverse processing compared to an encoder to reconstruct the video picture. It should be understood that embodiments referring to "coding" of a video picture (or, as will be described later, a picture in general) relate to either "encoding" or "decoding" for a video sequence. The combination of the encoding and decoding parts is also referred to as CODEC (coding and decoding).

[0057] In the case of lossless video coding, the original video pictures are reconstructable, i.e., the reconstructed video pictures have the same quality as the original video pictures (assuming there is no transmission loss or other data loss during storage or transmission). In the case of lossy video coding, further compression, e.g., by quantization, is performed to reduce the amount of data representing the video pictures, but these video pictures cannot be completely reconstructed at the decoder, i.e., the quality of the reconstructed video pictures is lower or worse than the quality of the original video pictures.

[0058] Since H.261, several video coding standards belong to the group of "lossy hybrid video codecs" (i.e., they combine spatial and temporal prediction in the sample domain with 2D transform coding to apply quantization in the transform domain). Each picture of a video sequence is generally divided into a set of non-overlapping blocks and coding is generally performed at the block level. In other words, at the encoder, the video is generally processed, i.e., encoded, at the block (video block) level, for example, by using spatial (intra-picture) and temporal (inter-picture) prediction to generate a predictive block, subtracting the predictive block from a current block (the block currently being / to be processed) to obtain a residual block, transforming the residual block and quantizing the residual block in the transform domain to reduce the amount of data to be transmitted (compression), while at the decoder, in contrast to the encoder, an inverse process is partly applied to the coded or compressed block in order to reconstruct the current block for representation. Additionally, the encoder replicates the decoder processing loop so that both generate the same predictions (eg, intra-prediction and inter-prediction) and / or reconstructions for processing, i.e., coding, subsequent blocks.

[0059] The term "block" as used herein may be a portion of a picture or a frame. For ease of explanation, embodiments of the present invention are described herein with reference to High Efficiency Video Coding (HEVC) or Versatile Video Coding (VVC) reference software developed by the ITU-T Video Coding Experts Group (VCEG) and the ISO / IEC Motion Picture Experts Group (MPEG) Joint Collaboration Team for Video Coding (JCT-VC). Those skilled in the art will appreciate that embodiments of the present invention are not limited to HEVC or VVC. Embodiments of the present invention may refer to CUs, PUs, and TUs. In HEVC, a CTU is divided into CUs by using a quadtree structure, denoted as a coding tree. The decision on whether to code a picture area using inter-picture (temporal) prediction or intra-picture (spatial) prediction is made at the CU level. Each CU may be further divided into 1, 2, or 4 PUs according to the PU partition type. Within one PU, the same prediction process is applied and related information is transmitted to the decoder on a PU basis. After obtaining the residual block by applying the prediction process based on the PU partition type, the CU may be partitioned into transform units (TUs) according to another quadtree structure similar to the coding tree for CUs. In the latest development of video compression technology, quadtree and binary tree (QTBT) partitioned frames are used to partition the coding block. In the QTBT block structure, the CU may have either a square or rectangular shape. For example, the coding tree unit (CTU) is first partitioned by a quadtree structure. The quadtree leaf node is further partitioned by a binary tree structure. The binary tree leaf node is called the coding unit (CU), and its segmentation is used for prediction and transform processing without further partitioning. This means that the CU, PU, ​​and TU have the same block size in the QTBT coding block structure. In parallel, multi-partitioning, for example, ternary tree partitioning, has also been proposed to be used with the QTBT block structure.

[0060] In the following, embodiments of the encoder 20, the decoder 30 and the coding system 10 are described on the basis of FIGS.

[0061] 1A is a conceptual or schematic block diagram illustrating one exemplary coding system 10, e.g., a video coding system 10 that may utilize techniques of the present application (this disclosure). An encoder 20 (e.g., video encoder 20) and a decoder 30 (e.g., video decoder 30) of video coding system 10 represent examples of devices that may be configured to perform techniques according to various examples described in the present application. As shown in FIG. 1A, coding system 10 includes a source device 12 configured to provide encoded data 13, e.g., encoded pictures 13, to, e.g., a destination device 14, for decoding the encoded data 13.

[0062] The source device 12 includes an encoder 20, and may additionally, i.e. optionally, include a picture source 16, a pre-processing unit 18, for example a picture pre-processing unit 18, and a communication interface or unit 22.

[0063] The picture source 16 may include or be, for example, any kind of picture capture device for capturing real-world pictures, and / or any kind of picture or comment (in the case of screen content coding, some text on the screen is also considered as part of the picture or image to be coded) generation device, for example a computer graphics processor for generating computer-animated pictures, or any kind of device for obtaining and / or providing real-world pictures, computer-animated pictures (e.g., screen content, virtual reality (VR) pictures), and / or any combination thereof (e.g., augmented reality (AR) pictures).

[0064] A (digital) picture can be considered as a two-dimensional array or matrix of samples with intensity values. The samples in the array are sometimes called pixels (short for picture element) or pels. The number of samples in the horizontal and vertical directions (or axes) of the array or picture defines the size and / or resolution of the picture. To represent color, three color components are generally employed, i.e., a picture can be represented in or contain three sample arrays. In an RBG format or color space, a picture contains corresponding red, green, and blue sample arrays. However, in video coding, each pixel is generally represented in a luma / chroma format or color space, e.g., YCbCr, which contains a luma component denoted by Y (sometimes, instead, L is also used) and two chroma components denoted by Cb and Cr. The luma (or, for short, luma) component Y represents brightness or density intensity (e.g., as in a grayscale picture), and the two chroma (or, for short, chroma) components Cb and Cr represent color or color information components. Thus, a picture in YCbCr format includes a luma sample array of luma sample values ​​(Y) and two chroma sample arrays of chroma values ​​(Cb and Cr). A picture in RGB format can be converted or transformed to YCbCr format, and vice versa, a process also called color transformation or conversion. If a picture is monochrome, the picture may include only a luma sample array.

[0065] In monochrome sampling, there is only one sample array, nominally considered the luma array.

[0066] In 4:2:0 sampling, each of the two chroma arrays has half the height and half the width of the luma array.

[0067] In 4:2:2 sampling, each of the two chroma arrays has the same height and half the width of the luma array.

[0068] For 4:4:4 sampling, depending on the value of separate_colour_plane_flag the following applies: - If separate_colour_plane_flag is equal to 0, each of the two chroma arrays has the same height and width as the luma array. - Otherwise (separate_colour_plane_flag is equal to 1), the three colour planes are processed separately as a monochrome sampled picture.

[0069] The picture source 16 (e.g., video source 16) may be, for example, a camera for capturing a picture, a memory, for example, a picture memory that contains or stores previously captured or generated pictures, and / or any kind of interface (internal or external) for acquiring or receiving pictures. The camera may be, for example, a local camera or an integrated camera, for example, integrated in the source device, and the memory may be a local memory or an integrated memory, for example, integrated in the source device. The interface may be, for example, an external interface for receiving pictures from an external video source, for example, a camera, an external memory, or an external picture generating device, for example, an external computer graphics processor, computer, or server, or other external picture capture device. The interface may be any kind of interface, for example, a wired or wireless interface, an optical interface, with any property or standardized interface protocol. The interface for acquiring picture data 17 may be the same interface as the communication interface 22 or may be part of the communication interface 22.

[0070] To distinguish from pre-processing unit 18 and the processing performed by pre-processing unit 18 , pictures or picture data 17 (eg, video data 16 ) are sometimes referred to as raw pictures or raw picture data 17 .

[0071] Pre-processing unit 18 is configured to receive (raw) picture data 17 and perform pre-processing on the picture data 17 to obtain a pre-processed picture 19 or pre-processed picture data 19. The pre-processing performed by pre-processing unit 18 may include, for example, cropping, color format conversion (e.g., from RGB to YCbCr), color correction, or noise removal. It may be understood that pre-processing unit 18 may be an optional component.

[0072] An encoder 20 (e.g., video encoder 20) is configured to receive pre-processed picture data 19 and provide encoded picture data 21 (further details are described below, e.g., based on FIG. 2 or FIG. 4).

[0073] The communications interface 22 of the source device 12 may be configured to receive the encoded picture data 21 and transmit it to another device, e.g., the destination device 14 or any other device, for storage or direct reconstruction, or to process the encoded picture data 21 before storing the encoded data 13 and / or before transmitting the encoded data 13 to another device, e.g., the destination device 14 or any other device, for decoding or storage, respectively.

[0074] Destination device 14 includes a decoder 30 (eg, a video decoder 30) and may additionally, i.e. optionally, include a communications interface or unit 28, a post-processing unit 32, and a display device 34.

[0075] The communications interface 28 of the destination device 14 is configured to receive the encoded picture data 21 or the encoded data 13, for example directly from the source device 12 or from any other source, for example a storage device, for example a coded picture data storage device.

[0076] The communication interface 22 and the communication interface 28 may be configured to transmit or receive the encoded picture data 21 or the encoded data 13 via a direct communication link between the source device 12 and the destination device 14, e.g., a direct wired or wireless connection, or via any type of network, e.g., a wired or wireless network, or any type of combination thereof, or any type of private and public network, or any type of combination thereof.

[0077] The communications interface 22 may be configured to package the encoded picture data 21 in a suitable format, eg, packets, for transmission over a communications link or network.

[0078] The counterpart of the communication interface 22 , the communication interface 28 , may for example be configured to unpackage the encoded data 13 to obtain the encoded picture data 21 .

[0079] Both communication interface 22 and communication interface 28 may be configured as unidirectional communication interfaces, as indicated by the arrow for encoded picture data 13 in FIG. 1A pointing from source device 12 to destination device 14, or as bidirectional communication interfaces, and may be configured, for example, to send and receive messages to set up a connection and acknowledge and exchange any other information related to the communication link and / or data transmission, e.g., the encoded picture data transmission.

[0080] The decoder 30 is configured to receive the encoded picture data 21 and provide decoded picture data 31 or decoded pictures 31 (further details are described below, for example with reference to Figure 3 or Figure 5).

[0081] The post-processor 32 of the destination device 14 is configured to post-process the decoded picture data 31 (also referred to as reconstructed picture data), e.g., the decoded picture 31, to obtain post-processed picture data 33, e.g., a post-processed picture 33. The post-processing performed by the post-processing unit 32 may include, for example, color format conversion (e.g., from YCbCr to RGB), color correction, cropping, or resampling, or any other processing to prepare the decoded picture data 31 for, e.g., display, by, e.g., a display device 34.

[0082] A display device 34 of destination device 14 is configured to receive the post-processed picture data 33 for displaying the picture, e.g., to a user or viewer. Display device 34 may be or comprise any type of display, e.g., an integrated or external display or monitor, for presenting the reconstructed picture. The display may include, for example, a liquid crystal display (LCD), an organic light emitting diode (OLED) display, a plasma display, a projector, a micro LED display, liquid crystal on silicon (LCoS), a digital light processor (DLP), or any type of other display.

[0083] 1A illustrates source device 12 and destination device 14 as separate devices, an embodiment of the devices may comprise both or both functionality, source device 12 or corresponding functionality, and destination device 14 or corresponding functionality. In such an embodiment, source device 12 or corresponding functionality and destination device 14 or corresponding functionality may be implemented using the same hardware and / or software, or by separate hardware and / or software, or any combination thereof.

[0084] As will be clear to one of ordinary skill in the art based on the description, the presence and (exact) separation of the functionality of different units or functionality within source device 12 and / or destination device 14, as shown in FIG. 1A, may vary depending on the actual device and application.

[0085] Encoder 20 (e.g., video encoder 20) and decoder 30 (e.g., video decoder 30) may each be implemented as any of a variety of suitable circuits, such as one or more microprocessors, digital signal processors (DSPs), application specific integrated circuits (ASICs), field programmable gate arrays (FPGAs), discrete logic, hardware, or any combination thereof. Where these techniques are implemented in part in software, the device may store instructions for the software in a suitable, non-transitory computer-readable storage medium and may execute the instructions in the hardware using one or more processors to perform the techniques of this disclosure. Any of the foregoing (including hardware, software, a combination of hardware and software, etc.) may be considered as one or more processors. Video encoder 20 and video decoder 30 may each be included in one or more encoders or decoders, any of which may be integrated as part of a combined encoder / decoder (CODEC) in the respective device.

[0086] Source device 12 may be referred to as a video encoding device or video encoding apparatus. Destination device 14 may be referred to as a video decoding device or video decoding apparatus. Source device 12 and destination device 14 may be examples of video coding devices or video coding apparatus.

[0087] The source device 12 and the destination device 14 may comprise any of a wide range of devices, including any type of handheld or fixed device, such as a notebook or laptop computer, a mobile phone, a smartphone, a tablet or tablet computer, a camera, a desktop computer, a set-top box, a television, a display device, a digital media player, a video game console, a video streaming device (such as a content service server or content delivery server), a broadcast receiver device, a broadcast transmitter device, and the like, and may use no operating system or any type of operating system.

[0088] In some cases, source device 12 and destination device 14 may be equipped for wireless communication. Thus, source device 12 and destination device 14 may be wireless communication devices.

[0089] In some cases, the video coding system 10 shown in FIG. 1A is merely an example, and the techniques of the present application may be applied to video coding settings (e.g., video encoding or video decoding) that do not necessarily include any data communication between the encoding device and the decoding device. In other examples, data may be retrieved from local memory, streamed over a network, etc. A video encoding device may encode data and store it in memory, and / or a video decoding device may retrieve data from memory and decode it. In some examples, encoding and decoding are performed by devices that do not communicate with each other, but simply encode data to memory and / or retrieve data from memory and decode it.

[0090] For each of the above examples described with reference to video encoder 20, it should be understood that video decoder 30 may be configured to perform the inverse process. With respect to signaling of syntax elements, video decoder 30 is configured to receive and parse such syntax elements and, accordingly, decode the associated video data. In some examples, video encoder 20 may entropy encode one or more syntax elements into an encoded video bitstream. In such examples, video decoder 30 may parse such syntax elements and, accordingly, decode the associated video data.

[0091] 1B is an exemplary diagram of another exemplary video coding system 40 including the encoder 20 of FIG. 2 and / or the decoder 30 of FIG. 3 according to one exemplary embodiment. The system 40 may implement techniques according to various examples described in this application. In the illustrated implementation, the video coding system 40 may include an imaging device 41, a video encoder 100, a video decoder 30 (and / or a video coder implemented via logic circuitry 47 of a processing unit 46), an antenna 42, one or more processors 43, one or more memory stores 44, and / or a display device 45.

[0092] As illustrated, imaging device 41, antenna 42, processing unit 46, logic circuitry 47, video encoder 20, video decoder 30, processor 43, memory store 44, and / or display device 45 may be in communication with one another. As discussed above, while shown with both video encoder 20 and video decoder 30, video coding system 40 may include only video encoder 20 or only video decoder 30 in various examples.

[0093] As shown, in some examples, video coding system 40 may include antenna 42. Antenna 42 may be configured to transmit or receive, for example, an encoded bitstream of video data. Additionally, in some examples, video coding system 40 may include display device 45. Display device 45 may be configured to present the video data. As shown, in some examples, logic circuitry 47 may be implemented via processing unit 46. Processing unit 46 may include application specific integrated circuit (ASIC) logic, a graphics processor, a general purpose processor, etc. Video coding system 40 may also include optional processor 43, which may also include application specific integrated circuit (ASIC) logic, a graphics processor, a general purpose processor, etc. In some examples, logic circuitry 47 may be implemented via hardware, video coding dedicated hardware, etc., and processor 43 may be implemented via general purpose software, an operating system, etc. Additionally, memory store 44 may be any type of memory, such as volatile memory (e.g., static random access memory (SRAM), dynamic random access memory (DRAM), etc.) or non-volatile memory (e.g., flash memory, etc.). In a non-limiting example, memory store 44 may be implemented by a cache memory. In some examples, logic circuitry 47 may access memory store 44 (e.g., for implementation of an image buffer). In other examples, logic circuitry 47 and / or processing unit 46 may include a memory store (e.g., a cache, etc.) for implementation of an image buffer, etc.

[0094] In some examples, video encoder 100 implemented via logic circuitry may include an image buffer (e.g., via either processing unit 46 or memory store 44) and a graphics processing unit (e.g., via processing unit 46). The graphics processing unit may be communicatively coupled to the image buffer. The graphics processing unit may include video encoder 100 implemented via logic circuitry 47 to perform various modules as described with respect to FIG. 2 and / or any other encoder system or subsystem described herein. The logic circuitry may be configured to perform various operations as described herein.

[0095] The video decoder 30 may be implemented in a manner similar to that implemented via logic circuitry 47 to implement various modules as described with respect to the decoder 30 of FIG. 3 and / or any other decoder system or subsystem described herein. In some examples, the video decoder 30 may be implemented via logic circuitry and may include an image buffer (e.g., via either the processing unit 420 or the memory store 44) and a graphics processing unit (e.g., via the processing unit 46). The graphics processing unit may be communicatively coupled to the image buffer. The graphics processing unit may include the video decoder 30 as implemented via logic circuitry 47 to implement various modules as described with respect to FIG. 3 and / or any other decoder system or subsystem described herein.

[0096] In some examples, antenna 42 of video coding system 40 may be configured to receive an encoded bitstream of video data. As described, the encoded bitstream may include data, indicators, index values, mode selection data, etc., associated with encoding video frames as described herein, such as data related to a coding partition (e.g., transform coefficients or quantized transform coefficients, any indicators (as described), and / or data defining the coding partitions). Video coding system 40 may also include a video decoder 30 coupled to antenna 42 and configured to decode the encoded bitstream. Display device 45 is configured to present the video frames.

[0097] Encoder and encoding method FIG. 2 illustrates a schematic / conceptual block diagram of one exemplary video encoder 20 configured to implement the techniques of the present application. In the example of FIG. 2, the video encoder 20 includes a residual calculation unit 204, a transform processing unit 206, a quantization unit 208, an inverse quantization unit 210, and an inverse transform processing unit 212, a reconstruction unit 214, a buffer 216, a loop filter unit 220, a decoded picture buffer (DPB) 230, a prediction processing unit 260, and an entropy coding unit 270. The prediction processing unit 260 may include an inter prediction unit 244, an intra prediction unit 254, and a mode selection unit 262. The inter prediction unit 244 may include a motion estimation unit and a motion compensation unit (not shown). The video encoder 20 as illustrated in FIG. 2 may also be referred to as a hybrid video encoder, or a video encoder with a hybrid video codec.

[0098] For example, the residual calculation unit 204, the transform processing unit 206, the quantization unit 208, the prediction processing unit 260, and the entropy coding unit 270 form a forward signal path of the encoder 20, while, for example, the inverse quantization unit 210, the inverse transform processing unit 212, the reconstruction unit 214, the buffer 216, the loop filter 220, the decoded picture buffer (DPB) 230, and the prediction processing unit 260 form a backward signal path of the encoder, which corresponds to the signal path of the decoder (see decoder 30 in FIG. 3).

[0099] The encoder 20 is configured to receive, for example, via an input 202, a block 203 of picture 20 or picture 201, for example a picture of a sequence of pictures forming a video or a video sequence. Picture block 203 may also be referred to as a current picture block or a picture block to be coded, and picture 201 may also be referred to as a current picture or a picture to be coded (particularly in video coding, to distinguish the current picture from other pictures, for example previously coded and / or decoded pictures of the same video sequence, i.e. a video sequence that also includes the current picture).

[0100] Split An embodiment of encoder 20 may include a division unit (not shown in FIG. 2) configured to divide picture 201 into a number of blocks, typically non-overlapping blocks, such as block 203. The division unit may be configured to use the same block size for all pictures of a video sequence and a corresponding grid defining the block sizes, or to vary the block size between pictures or between subsets or groups of pictures, and to divide each picture into corresponding blocks.

[0101] In one example, prediction processing unit 260 of video encoder 20 may be configured to perform any combination of the partitioning techniques described above.

[0102] Like picture 201, block 203 may be or may be considered as a two-dimensional array or matrix of samples having intensity values ​​(sample values), again of smaller dimensions than picture 201. In other words, block 203 may include, for example, one sample array (e.g., one luma array for monochrome picture 201), or three sample arrays (e.g., one luma array and two chroma arrays for color picture 201), or any other number and / or type of arrays, depending on the applied color format. The number of samples in the horizontal and vertical directions (or axes) of block 203 defines the size of block 203.

[0103] The encoder 20 shown in FIG. 2 is arranged to code a picture 201 block-wise, eg, coding and prediction is performed for each block 203.

[0104] Residual calculation The residual calculation unit 204 is configured to calculate the residual block 205 based on the picture block 203 and the prediction block 265 (further details regarding the prediction block 265 are described later), for example, by subtracting sample values ​​of the prediction block 265 from sample values ​​of the picture block 203 on a sample-by-sample (pixel-by-pixel) basis to obtain the residual block 205 in the sample domain.

[0105] conversion The transform processing unit 206 is configured to apply a transform, for example a discrete cosine transform (DCT) or a discrete sine transform (DST), to the sample values ​​of the residual block 205 to obtain transform coefficients 207 in the transform domain. The transform coefficients 207, sometimes referred to as transform residual coefficients, represent the residual block 205 in the transform domain.

[0106] The transform processing unit 206 may be configured to apply an integer approximation of a DCT / DST, such as the transform specified for HEVC / H.265. Compared to an orthogonal DCT transform, such an integer approximation is generally scaled by a factor. In order to keep the residual blocks processed by the forward and inverse transforms compliant, an additional scaling factor is applied as part of the transform process. The scaling factor is generally chosen based on certain constraints, such as the scaling factor being a power of two for shift operations, the bit depth of the transform coefficients, a trade-off between accuracy and implementation cost, etc. A particular scaling factor may be specified for the inverse transform (and corresponding inverse transform (e.g., by the inverse transform processing unit 212) at the decoder 30, for example, and a corresponding scaling factor may be specified for the forward transform (e.g., by the inverse transform processing unit 212) at the encoder 20 accordingly, for example.

[0107] quantization The quantization unit 208 is configured to quantize the transform coefficients 207 to obtain quantized transform coefficients 209, for example, by applying scalar or vector quantization. The quantized transform coefficients 209 may also be referred to as quantized residual coefficients 209. The quantization process may reduce a bit depth associated with some or all of the transform coefficients 207. For example, an n-bit transform coefficient may be truncated to an m-bit transform coefficient during quantization, where n is greater than m. The degree of quantization may be modified by adjusting a quantization parameter (QP). For example, in the case of scalar quantization, different scaling may be applied to achieve finer or coarser quantization. A smaller quantization step size corresponds to a finer quantization, whereas a larger quantization step size corresponds to a coarser quantization. The applicable quantization step size may be indicated by a quantization parameter (QP). The quantization parameter may be, for example, an index to a predefined set of applicable quantization step sizes. For example, a small quantization parameter may correspond to fine quantization (small quantization step size), a large quantization parameter may correspond to coarse quantization (large quantization step size), or vice versa. Quantization may include division by the quantization step size, and the corresponding or inverse dequantization, e.g., by inverse quantization 210, may include multiplication by the quantization step size. Some standards, e.g., embodiments according to HEVC, may be configured to use the quantization parameter to determine the quantization step size. In general, the quantization step size may be calculated based on the quantization parameter using a fixed-point approximation of the equation, including the division. To restore the reference of the residual block, an additional scaling factor may be introduced for quantization and dequantization, and the reference of the residual block may be modified by the scaling used in the fixed-point approximation of the equation for the quantization step size and the quantization parameter. In one example implementation, the scaling of the inverse transform and dequantization may be combined.Alternatively, customized quantization tables may be used and signaled, for example, in the bitstream, from the encoder to the decoder. Quantization is a lossy operation, and the loss increases with increasing quantization step size.

[0108] Inverse quantization unit 210 is configured to apply the inverse quantization of quantization unit 208 to the quantized coefficients to obtain dequantized coefficients 211, e.g., by applying the inverse of the quantization scheme applied by quantization unit 208, based on or using the same quantization step size as quantization unit 208. The dequantized coefficients 211, sometimes referred to as dequantized residual coefficients 211, generally correspond to the transform coefficients 207, although they are not identical to the transform coefficients due to losses due to quantization.

[0109] The inverse transform processing unit 212 is configured to apply an inverse transform of the transform applied by the transform processing unit 206, e.g., an inverse discrete cosine transform (DCT) or an inverse discrete sine transform (DST), to obtain an inverse transform block 213 in the sample domain. The inverse transform block 213 may also be referred to as an inverse transformed dequantized block 213 or an inverse transformed residual block 213.

[0110] The reconstruction unit 214 (e.g., adder 214) is configured to add the inverse transform block 213 (i.e., the reconstructed residual block 213) to the prediction block 265, for example by adding sample values ​​of the reconstructed residual block 213 and sample values ​​of the prediction block 265, to obtain a reconstructed block 215 in the sample domain.

[0111] An optional buffer unit 216 (or "buffer" 216 for short), e.g., a line buffer 216, is configured to buffer or store the reconstructed blocks 215 and the respective sample values, e.g., for intra-prediction. In further embodiments, the encoder may be configured to use the unfiltered reconstructed blocks and / or the respective sample values ​​stored in the buffer unit 216 for any type of estimation and / or prediction, e.g., intra-prediction.

[0112] Embodiments of encoder 20 may be configured, for example, such that buffer unit 216 is used to store reconstructed blocks 215 not only for intra prediction 254 but also for loop filter unit 220 (not shown in FIG. 2), and / or such that buffer unit 216 and decoded picture buffer unit 230 form one buffer, for example. Further embodiments may be configured to use filtered blocks 221 and / or blocks or samples from decoded picture buffer 230 (both not shown in FIG. 2) as input or basis for intra prediction 254.

[0113] Loop filter unit 220 (or “loop filter” 220 for short) is configured to filter reconstructed block 215 to obtain filtered block 221, e.g., to smooth pixel transitions or otherwise improve video quality. Loop filter unit 220 is intended to represent one or more loop filters, such as a deblocking filter, a sample-adaptive offset (SAO) filter, or other filters, e.g., a bilateral filter, or an adaptive loop filter (ALF), or a sharpening or smoothing filter, or a collaborative filter. Although loop filter unit 220 is illustrated in FIG. 2 as being an in-loop filter, in other configurations loop filter unit 220 may be implemented as a post-loop filter. Filtered block 221 may also be referred to as filtered reconstructed block 221. Decoded picture buffer 230 may store the reconstructed coding block after loop filter unit 220 performs a filtering operation on the reconstructed coding block.

[0114] An embodiment of encoder 20 (respectively, loop filter unit 220) may be configured to output loop filter parameters (such as sample adaptive offset information), e.g., directly or entropy encoded via entropy encoding unit 270 or any other entropy coding unit, such that decoder 30 can receive and apply the same loop filter parameters for decoding.

[0115] The decoded picture buffer (DPB) 230 may be a reference picture memory that stores reference picture data for use in encoding the video data by the video encoder 20. The DPB 230 may be formed by any of a variety of memory devices, such as dynamic random access memory (DRAM), including synchronous DRAM (SDRAM), magnetoresistive RAM (MRAM), resistive RAM (RRAM), or other types of memory devices. The DPB 230 and the buffer 216 may be provided by the same memory device or separate memory devices. In some examples, the decoded picture buffer (DPB) 230 is configured to store the filtered block 221. The decoded picture buffer 230 may further be configured to store other previously filtered blocks, e.g., previously reconstructed filtered block 221, of the same current picture or of a different picture, e.g., a previously reconstructed picture, and may provide a complete previously reconstructed, i.e., decoded picture (and corresponding reference blocks and samples) and / or a partially reconstructed current picture (and corresponding reference blocks and samples), e.g., for inter prediction. In some examples, if the reconstructed block 215 is reconstructed without in-loop filtering, the decoded picture buffer (DPB) 230 is configured to store the reconstructed block 215.

[0116] The prediction processing unit 260, sometimes referred to as block prediction processing unit 260, is configured to receive or obtain block 203 (the current block 203 of the current picture 201) and reconstructed picture data, e.g., reference samples of the same (current) picture, from the buffer 216 and / or reference picture data 231 from one or more previously decoded pictures from the decoded picture buffer 230, and to process such data for prediction, i.e., to provide a prediction block 265, which may be an inter-predicted block 245 or an intra-predicted block 255.

[0117] The mode selection unit 262 may be configured to select a prediction mode (e.g., intra prediction mode or inter prediction mode) and / or a corresponding prediction block 245 or 255 to be used as the prediction block 265 for calculation of the residual block 205 and for reconstruction of the reconstructed block 215.

[0118] An embodiment of the mode selection unit 262 may be configured to select (e.g., from prediction modes supported by the prediction processing unit 260) the prediction mode that gives the best match, i.e., in other words, the one that gives the smallest residual (smallest residual means better compression for transmission or storage), or the smallest signaling overhead (smallest signaling overhead means better compression for transmission or storage), or that considers both or balances both. The mode selection unit 262 may be configured to determine the prediction mode based on rate distortion optimization (RDO), i.e., select the prediction mode that provides the smallest rate distortion optimization, or which associated rate distortion at least satisfies a prediction mode selection criterion.

[0119] The prediction process (eg, by prediction processing unit 260) and mode selection (eg, by mode selection unit 262) performed by one exemplary encoder 20 are described in more detail below.

[0120] As mentioned above, the encoder 20 is configured to determine or select a best or optimal prediction mode from a (predetermined) set of prediction modes, which may include, for example, intra-prediction modes and / or inter-prediction modes.

[0121] The set of intra prediction modes may include 35 different intra prediction modes, e.g., omnidirectional modes such as DC (or average) mode and planar mode, or directional modes, e.g., as defined in H.265, or may include 67 different intra prediction modes, e.g., omnidirectional modes such as DC (or average) mode and planar mode, or directional modes, e.g., as defined in the currently under development H.266.

[0122] The set of inter prediction modes (or possible inter prediction modes) depends on the available reference pictures (i.e., previous, at least partially decoded pictures stored, for example, in DBP 230) and other inter prediction parameters, such as whether the entire reference picture of the reference picture is used to search for the best matching reference block or only a portion of the reference picture, for example a search window area around the area of ​​the current block, is used, and / or, for example, pixel interpolation, for example half / semi-pel and / or 1 / 4-pel interpolation, is or is not applied.

[0123] In addition to the above prediction modes, skip mode and / or direct mode may be applied.

[0124] The prediction processing unit 260 may be further configured to divide the block 203 into smaller block partitions or sub-blocks, e.g., using quad-tree partitioning (QT), binary-tree partitioning (BT), or ternary-tree partitioning (TT), or any combination thereof, iteratively, and to perform prediction for each of the block partitions or sub-blocks, e.g., where the mode selection includes a tree structure of the divided block 203 and selection of a prediction mode to be applied to each of the block partitions or sub-blocks.

[0125] The inter prediction unit 244 may include a motion estimation (ME) unit (not shown in FIG. 2) and a motion compensation (MC) unit (not shown in FIG. 2). The motion estimation unit is configured to receive or obtain a picture block 203 (current picture block 203 of current picture 201) and a decoded picture 231, or at least one or more previously reconstructed blocks, e.g., reconstructed blocks of one or more other / different previously decoded pictures 231, for motion estimation. For example, a video sequence may include the current picture and the previously decoded picture 231, or in other words, the current picture and the previously decoded picture 231 may be part of or form a sequence of pictures forming a video sequence.

[0126] The encoder 20 may be configured to, for example, select one reference block from multiple reference blocks of the same or different pictures of multiple other pictures, and provide the reference picture (or reference picture index, ...) and / or an offset (spatial offset) between the position (x coordinate, y coordinate) of the reference block and the position of the current block as an inter-prediction parameter to a motion estimation unit (not shown in FIG. 2). This offset is also called a motion vector (MV).

[0127] The motion compensation unit is configured to obtain, e.g., receive, inter prediction parameters and perform inter prediction based on or using the inter prediction parameters to obtain inter prediction block 245. The motion compensation performed by the motion compensation unit (not shown in FIG. 2) may require performing interpolation to sub-pixel accuracy based on the motion / block vectors determined by motion estimation to fetch or generate a prediction block, possibly. Interpolation filtering may generate additional pixel samples from known pixel samples, thereby potentially increasing the number of candidate prediction blocks that may be used to code the picture block. Upon receiving a motion vector for the PU of the current picture block, the motion compensation unit 246 may locate the prediction block to which the motion vector points in one of the reference picture lists. The motion compensation unit 246 may also generate syntax elements associated with the blocks and video slices for use by video decoder 30 in decoding picture blocks of the video slices.

[0128] The intra prediction unit 254 is configured to obtain, for example, receive, the picture block 203 (current picture block) and one or more previously reconstructed blocks of the same picture, for example, reconstructed neighboring blocks, for intra estimation. The encoder 20 may be configured, for example, to select an intra prediction mode from a plurality of (predetermined) intra prediction modes.

[0129] An embodiment of the encoder 20 may be configured to select an intra prediction mode based on an optimization criterion, for example, a minimum residual (e.g., the intra prediction mode that provides the predicted block 255 that is most similar to the current picture block 203) or a minimum rate distortion.

[0130] The intra prediction unit 254 is further configured to determine an intra prediction block 255 based on the intra prediction parameters, e.g., the selected intra prediction mode. In either case, after selecting the intra prediction mode for the block, the intra prediction unit 254 is also configured to provide the intra prediction parameters, i.e., information indicating the selected intra prediction mode for the block, to the entropy coding unit 270. In one example, the intra prediction unit 254 may be configured to perform any combination of the intra prediction techniques described below.

[0131] The entropy encoding unit 270 is configured to apply an entropy encoding algorithm or scheme (e.g., a variable length coding (VLC) scheme, a context adaptive VLC scheme (CALVC), an arithmetic coding scheme, a context adaptive binary arithmetic coding (CABAC), a syntax-based context-adaptive binary arithmetic coding (SBAC), probability interval partitioning entropy (PIPE) coding, or other entropy encoding methodology or technique) to the quantized residual coefficients 209, the inter-prediction parameters, the intra-prediction parameters, and / or the loop filter parameters, individually or jointly (or not at all) to obtain encoded picture data 21, which may be output via an output 272, for example in the form of an encoded bitstream 21. The encoded bitstream 21 may be transmitted to video decoder 30 or may be archived for later transmission or retrieval by video decoder 30. Entropy encoding unit 270 may further be configured to entropy encode other syntax elements for the current video slice being coded.

[0132] Other structural variations of the video encoder 20 may be used to encode the video stream. For example, a non-transform-based encoder 20 may directly quantize the residual signal for certain blocks or frames, without the transform processing unit 206. In other implementations, the encoder 20 may combine the quantization unit 208 and the inverse quantization unit 210 into a single unit.

[0133] 3 shows one exemplary video decoder 30 configured to implement the techniques of the present application. Video decoder 30 is configured to receive encoded picture data (e.g., encoded bitstream) 21, e.g., encoded by encoder 100, to obtain decoded picture 131. During the decoding process, video decoder 30 receives video data, e.g., an encoded video bitstream and associated syntax elements representing picture blocks of an encoded video slice, from video encoder 100.

[0134] 3, the decoder 30 includes an entropy decoding unit 304, an inverse quantization unit 310, an inverse transform processing unit 312, a reconstruction unit 314 (e.g., summer 314), a buffer 316, a loop filter 320, a decoded picture buffer 330, and a prediction processing unit 360. The prediction processing unit 360 may include an inter prediction unit 344, an intra prediction unit 354, and a mode selection unit 362. The video decoder 30, in some examples, may perform a generally inverse decoding pass relative to the encoding pass described with respect to the video encoder 100 from FIG.

[0135] Entropy decoding unit 304 is configured to perform entropy decoding on encoded picture data 21, e.g., to obtain quantized coefficients 309 and / or decoded coding parameters (not shown in FIG. 3), e.g., (decoded) any or all of the inter-prediction parameters, intra-prediction parameters, loop filter parameters, and / or other syntax elements. Entropy decoding unit 304 is further configured to forward the inter-prediction parameters, intra-prediction parameters, and / or other syntax elements to prediction processing unit 360. Video decoder 30 may receive the syntax elements at a video slice level and / or a video block level.

[0136] The inverse quantization unit 310 may be identical in functionality to the inverse quantization unit 110, the inverse transform processing unit 312 may be identical in functionality to the inverse transform processing unit 112, the reconstruction unit 314 may be the identical reconstruction unit 114 in functionality, the buffer 316 may be identical in functionality to the buffer 116, the loop filter 320 may be identical in functionality to the loop filter 120, and the decoded picture buffer 330 may be identical in functionality to the decoded picture buffer 130.

[0137] Prediction processing unit 360 may include an inter prediction unit 344 and an intra prediction unit 354, which may be similar in functionality to inter prediction unit 144 and intra prediction unit 354, which may be similar in functionality to intra prediction unit 154. Prediction processing unit 360 is generally configured to perform block prediction and / or obtain a prediction block 365 from the encoded data 21, and to receive or obtain (explicitly or implicitly) parameters of the prediction relationship and / or information regarding the selected prediction mode, e.g., from entropy decoding unit 304.

[0138] When a video slice is coded as an intra-coded (I) slice, intra prediction unit 354 of prediction processing unit 360 is configured to generate a prediction block 365 for a picture block of the current video slice based on the signaled intra prediction mode and data from a block decoded prior to the current frame or picture. When a video frame is coded as an inter-coded (i.e., B or P) slice, inter prediction unit 344 (e.g., motion compensation unit) of prediction processing unit 360 is configured to create a prediction block 365 for a video block of the current video slice based on a motion vector and other syntax elements received from entropy decoding unit 304. For inter prediction, the prediction block may be created from one of the reference pictures in one of the reference picture lists. Video decoder 30 may construct the reference frame lists, i.e., list 0 and list 1, using a default construction technique based on the reference pictures stored in DPB 330.

[0139] Prediction processing unit 360 is configured to determine prediction information for the video blocks of the current video slice by parsing the motion vectors and other syntax elements, and uses the prediction information to create a predictive block for the current video block being decoded. For example, prediction processing unit 360 uses some of the received syntax elements to determine a prediction mode (e.g., intra prediction or inter prediction) to be used to code the video blocks of the video slice, an inter prediction slice type (e.g., a B slice, a P slice, or a GPB slice), construction information for one or more of the reference picture lists for the slice, motion vectors for each inter coded video block of the slice, an inter prediction state for each inter coded video block of the slice, and other information for decoding video blocks in the current video slice.

[0140] Inverse quantization unit 310 is configured to inverse quantize, i.e., dequantize, the quantized transform coefficients provided in the bitstream and decoded by entropy decoding unit 304. The inverse quantization process may include using quantization parameters calculated by video encoder 100 for each video block in a video slice to determine the degree of quantization, and similarly, the degree of inverse quantization to be applied.

[0141] Inverse transform processing unit 312 is configured to apply an inverse transform, eg, an inverse DCT, an inverse integer transform, or a conceptually similar inverse transform process, to the transform coefficients in order to produce residual blocks in the pixel domain.

[0142] The reconstruction unit 314 (e.g., adder 314) is configured to add the inverse transform block 313 (i.e., the reconstructed residual block 313) to the prediction block 365, for example by adding sample values ​​of the reconstructed residual block 313 and sample values ​​of the prediction block 365, to obtain a reconstructed block 315 in the sample domain.

[0143] The loop filter unit 320 is configured to filter the reconstructed block 315 (either during or after the coding loop) to obtain a filtered block 321, e.g., to smooth pixel transitions or otherwise improve video quality. In one example, the loop filter unit 320 may be configured to perform any combination of the filtering techniques described below. The loop filter unit 320 is intended to represent one or more loop filters, such as a deblocking filter, a sample adaptive offset (SAO) filter, or other filters, e.g., a bilateral filter, or an adaptive loop filter (ALF), or a sharpening or smoothing filter, or a collaborative filter. Although the loop filter unit 320 is illustrated in FIG. 3 as being an in-loop filter, in other configurations, the loop filter unit 320 may be implemented as a post-loop filter.

[0144] The decoded video blocks 321 in a given frame or picture are then stored in a decoded picture buffer 330, which stores reference pictures used for subsequent motion compensation.

[0145] The decoder 30 is arranged to output the decoded pictures 311, for example via an output 312, for presentation to or viewing by a user.

[0146] Other variations of the video decoder 30 may be used to decode the compressed bitstream. For example, the decoder 30 may create an output video stream without the loop filtering unit 320. For example, a non-transform-based decoder 30 may directly inverse quantize the residual signal without the inverse transform processing unit 312 for certain blocks or frames. In other implementations, the video decoder 30 may combine the inverse quantization unit 310 and the inverse transform processing unit 312 into a single unit.

[0147] 4 is a schematic diagram of a video coding device 400 according to one embodiment of the disclosure. The video coding device 400 is suitable for implementing the disclosed embodiments as described herein. In one embodiment, the video coding device 400 may be a decoder, such as the video decoder 30 of FIG. 1A, or an encoder, such as the video encoder 20 of FIG. 1A. In one embodiment, the video coding device 400 may be one or more components of the video decoder 30 of FIG. 1A or the video encoder 20 of FIG. 1A, as described above.

[0148] Video coding device 400 includes an ingress port 410 and a receiver unit (Rx) 420 for receiving data, a processor, logic unit, or central processing unit (CPU) 430 for processing data, a transmitter unit (Tx) 440 and an egress port 450 for transmitting data, and a memory 460 for storing data. Video coding device 400 may also include optical-to-electrical (OE) and electrical-to-optical (EO) components coupled to the ingress port 410, the receiver unit 420, the transmitter unit 440, and the egress port 450 for the egress or ingress of optical or electrical signals.

[0149] The processor 430 is implemented by hardware and software. The processor 430 may be implemented as one or more CPU chips, cores (e.g., multi-core processors, etc.), FPGAs, ASICs, and DSPs. The processor 430 is in communication with the ingress port 410, the receiver unit 420, the transmitter unit 440, the egress port 450, and the memory 460. The processor 430 includes a coding module 470. The coding module 470 implements the disclosed embodiments described above. For example, the coding module 470 implements, processes, prepares, or provides various coding operations. The inclusion of the coding module 470 thus provides a significant improvement to the functionality of the video coding device 400 and causes the video coding device 400 to transform into a different state. Alternatively, the coding module 470 is implemented as instructions stored in the memory 460 and executed by the processor 430.

[0150] Memory 460 may include one or more disks, tape drives, and solid state drives, and may be used as overflow data storage devices for storing programs when such programs are selected for execution, and for storing instructions and data read during program execution. Memory 460 may be volatile and / or non-volatile, and may be read only memory (ROM), random access memory (RAM), ternary content-addressable memory (TCAM), and / or static random access memory (SRAM).

[0151] 5 is a simplified block diagram of an apparatus 500 that may be used as either or both of the source device 310 and the destination device 320 from FIG. 1 according to one exemplary embodiment. The apparatus 500 may implement the techniques of the present application described above. The apparatus 500 may be in the form of a computing system including multiple computing devices or in the form of a single computing device, such as a mobile phone, a tablet computer, a laptop computer, a notebook computer, a desktop computer, etc.

[0152] The processor 502 in the device 500 may be a central processing unit. Alternatively, the processor 502 may be any other type of device, or devices, now existing or later developed, capable of manipulating or processing information. Although the disclosed implementations may be practiced with a single processor, e.g., processor 502, as shown, advantages in speed and efficiency may be achieved using two or more processors.

[0153] The memory 504 in the device 500 may be a read only memory (ROM) device or a random access memory (RAM) device in one implementation. Any other suitable type of storage device may be used as the memory 504. The memory 504 may include code and data 506 that are accessed by the processor 502 using a bus 512. The memory 504 may further include an operating system 508 and application programs 510, which include at least one program that allows the processor 502 to perform the methods described herein. For example, the application programs 510 may include applications 1 through N, which further include a video coding application that performs the methods described herein. The device 500 may include additional memory in the form of a secondary storage device 514, which may be, for example, a memory card used with a mobile computing device. Because video communication sessions may contain a significant amount of information, these sessions may be stored in whole or in part in the secondary storage device 514 and loaded into the memory 504 as needed for processing.

[0154] The device 500 may include one or more output devices, such as a display 518. The display 518, in one example, may be a touch-sensitive display that combines a display with a touch-sensitive element operable to sense touch input. The display 518 may be coupled to the processor 502 via the bus 512. In addition to or instead of the display 518, other output devices may be provided that allow a user to program or otherwise use the device 500. When the output device is or includes a display, the display may be implemented in a variety of ways, including by a liquid crystal display (LCD), a cathode ray tube (CRT) display, a plasma display, or a light emitting diode (LED) display, such as an organic LED (OLED) display.

[0155] The device 500 may include or be in communication with an image sensing device 520, e.g., a camera or any other now existing or later developed image sensing device 520 that may sense images, such as an image of a user operating the device 500. The image sensing device 520 may be positioned such that the image sensing device 520 faces a user operating the device 500. In one example, the position and optical axis of the image sensing device 520 may be configured such that the field of view is directly adjacent to the display 518 and includes an area from which the display 518 is viewable.

[0156] Apparatus 500 may include or be in communication with a voice sensing device 522, e.g., a microphone or any other now existing or later developed voice sensing device that may sense sound in the vicinity of apparatus 500. Voice sensing device 522 may be positioned such that voice sensing device 522 faces a user operating apparatus 500 and may be configured to receive sound, e.g., speech or other utterances, made by the user while the user is operating apparatus 500.

[0157] 5 depicts the processor 502 and memory 504 of the device 500 as being integrated into a single unit, other configurations may be utilized. The operations of the processor 502 may be distributed across multiple machines (each machine having one or more of the processors) that may be coupled directly or across a local area network or other network. The memory 504 may be distributed across multiple machines, such as a network-based memory or memory in multiple machines that perform the operations of the device 500. Although shown here as a single bus, the bus 512 of the device 500 may consist of multiple buses. Additionally, the secondary storage 514 may be directly coupled to other components of the device 500 or may be accessed over a network, and may include a single integrated unit, such as a memory card, or may include multiple units, such as multiple memory cards. The device 500 may thus be implemented in a wide variety of configurations.

[0158] In VVC, the motion vector of an inter-coded block can be signaled in two ways: Advanced motion vector prediction (AMVP) mode or merge mode. For AVMP mode, the difference between the actual motion vector and the motion vector prediction (MVP), a reference index pointing to the AMVP candidate list and an MVP index are signaled, where the reference index points to the reference picture from which the reference block is copied for motion compensation. For merge mode, a merge index pointing to the merge candidate list is signaled, and all motion information related to the merge candidate is inherited.

[0159] For both the AMVP candidate lists and the merge candidate lists, these are derived from coded blocks that are either temporally or spatially adjacent. More specifically, the merge candidate list is constructed by examining the following four types of merge MVP candidates in order: 1. As shown in FIG. 6, spatial merge candidates may be determined from five spatially adjacent blocks, namely, blocks A0 and A1 located in the lower left corner, blocks B0 and B1 located in the upper right corner, and block B2 located in the upper left corner. 2. Temporal MVP (TMVP) merging candidates. 3. Combined bi-predictive merging candidates. 4. Zero motion vector merging candidates.

[0160] The merge candidate list construction process terminates when the number of available merge candidates reaches the signaled maximum allowed merge candidates (e.g., 5 under typical test conditions). Note that the maximum allowed merge candidates may be different under different conditions.

[0161] Similarly, for the AMVP candidate list, three types of MVP candidates are examined in turn: 1. At most two spatial MVP candidates, one of the two is determined from blocks B0, B1, and B2 as shown in Fig. 6, and the other of the two is determined from blocks A0 and A1 as shown in Fig. 6. 2. Temporal MVP (TMVP) candidate. 3. Zero MVP candidates.

[0162] The History-Based Motion Vector Prediction (HMVP) method was introduced by JVETK104 (accessible at http: / / phenix.it-sudparis.eu / jvet / ), an input document for the Joint Video Experts Team (JVET) of ITU-T SG 16 WP 3 and ISO / IEC JTC 1 / SC29 / WG 11, Here, an HMVP candidate is defined as the motion information of a previously coded block. A table with multiple HMVP candidates is maintained during the encoding / decoding process. This table is emptied when a new slice is encountered. Whenever an inter-coded block is present, the associated motion information is added to the last entry of the table as a new HMVP candidate. The overall coding flow is shown in Figure 7, including:

[0163] Step 701: Load HMVP candidates into a table.

[0164] Step 702, decode the block with the HMVP candidates in the loaded table.

[0165] Step 703, when decoding a block, update the table with the decoded motion information.

[0166] Steps 701 to 703 may be performed cyclically.

[0167] The HMVP candidates may be used in the merge candidate list construction process. All HMVP candidates from the last entry to the first entry in the table are inserted after the TMVP candidate. Pruning may be applied to the HMVP candidates. When the total number of available merge candidates reaches the signaled maximum allowed merge candidates, the merge candidate list construction process ends.

[0168] The act of pruning refers to identifying identical motion estimator candidates in the list and removing one of the identical candidates from the list.

[0169] Similarly, HMVP candidates may be used in the AMVP candidate list construction process. The motion vectors of the last K HMVP candidates in the table are inserted after the TMVP candidates. In some implementations, only HMVP candidates that have the same reference picture as the AMVP target reference picture are used to construct the AMVP candidate list. Pruning may be applied to HMVP candidates.

[0170] To improve processing efficiency, a process called wavefront parallel processing (WPP) is introduced, where the WPP mode allows rows of CTUs to be processed simultaneously. In the WPP mode, each CTU row is processed relative to its preceding (directly adjacent) CTU row by using a delay of two consecutive CTUs. For example, referring to FIG. 8, a picture frame or picture area consists of multiple CTU rows, and each thread (row) includes 11 CTUs, i.e., thread 1 includes CTU0 to CTU10, thread 2 includes CTU11 to CTU21, thread 3 includes CTU22 to CTU32, thread 4 includes CTU33 to 43... Therefore, in WPP mode, when the encoding / decoding process of CTU1 in thread 1 is completed, the encoding / decoding process of CTU11 in thread 2 may start; similarly, when the encoding / decoding process of CTU12 in thread 2 is completed, the encoding / decoding process of CTU22 in thread 3 may start; when the encoding / decoding process of CTU23 in thread 3 is completed, the encoding / decoding process of CTU33 in thread 4 may start; and when the encoding / decoding process of CTU34 in thread 4 is completed, the encoding / decoding process of CTU44 in thread 5 may start.

[0171] However, when combining WPP with HMVP, as described above, an HMVP list is maintained and updated after processing each coding block, and thus continues to be updated until the last CTU in the CTU row, and one HMVP list is maintained, and therefore wavefront parallel processing is not possible because thread N needs to wait for the last CTU in the above CTU row to be processed.

[0172] 9 is a flow diagram illustrating one exemplary operation of a video decoder, such as the video decoder 30 of FIG. 3, according to one embodiment of the present application. One or more structural elements of the video decoder 30, including the inter prediction unit 344, may be configured to perform the techniques of FIG. 9. In the example of FIG. 9, the video decoder 30 may perform the following steps:

[0173] 901, at the start of processing a CTU row, a step is performed to build / initialize an HMVP list for the CTU row.

[0174] When the CTU to be processed is the first CTU (start CTU) in a CTU row, an HMVP list for the CTU row is constructed or initialized, so that the first CTU in the CTU row can be processed based on the HMVP list for the CTU row.

[0175] When the method is an encoding method, the HMVP list for the CTU row may be constructed or initialized by the inter prediction unit 344 of Figure 3. Alternatively, when the method is a decoding method, the HMVP list for the CTU row may be constructed or initialized by the inter prediction unit 244 of Figure 2.

[0176] In one implementation, all CTU rows with different HMVP lists may be maintained for a picture frame. In another implementation, all CTU rows with different HMVP lists may be maintained for a picture area, where the picture area consists of multiple CTU rows and the picture may be a VVC slice, tile, or brick.

[0177] Where a brick is a rectangular region of CTU rows within a particular tile in a picture, the tile may be divided into multiple bricks, each of which consists of one or more CTU rows within the tile. A tile that is not divided into multiple bricks is also called a brick. However, a brick that is a true subset of a tile is not called a tile.

[0178] Note that maintaining a different HMVP list for every CTU row simply means that a particular HMVP list may be maintained for a CTU row, but the candidates in the different HMVP lists may be the same, e.g., all candidates in one HMVP list are the same as candidates in other HMVP lists, and the candidates in one HMVP list may not have redundancy; or the candidates in different HMVP lists may have overlaps, e.g., some of the candidates in one HMVP list are the same as some of the candidates in other HMVP lists, and some of the candidates in one HMVP list do not have the same candidates in other HMVP lists; or the candidates in different HMVP lists may be completely different, e.g., none of the candidates in one HMVP list have the same candidates in other HMVP lists. Note that when all the CTUs in a CTU row have been processed, the HMVP list maintained for that CTU row may be released, thus reducing storage requirements.

[0179] This disclosure provided the following methods for building / initializing an HMVP list.

[0180] Method 1: At the start of processing a CTU row, the corresponding HMVP list is emptied or set to default values, which are predefined candidates known to both the encoder and the decoder.

[0181] For example, the corresponding HMVP list is populated with the default MVs as follows: a) a MV from a uni-prediction method, where the MV may be a zero motion vector and the reference picture may include the first reference picture in the L0 list; and / or b) a MV from a bi-predictive method, where the MV may be a zero motion vector and the reference pictures may include the first reference picture in the L0 list and the first reference picture in the L1 list; and / or c) MVs of previously processed pictures according to the picture processing order, more specifically, MVs that belong to previously processed pictures and are in the spatial neighborhood of the current block when the current block position is overlaid on the previous picture; and / or d) MVs of the temporal HMVP list, where each co-located picture may store a temporal HMVP list for each CTU row or for the entire picture, and thus the temporal HMVP list may be used to build / initialize the HMVP list for the current CTU row.

[0182] Method 2: At the start of processing of a current CTU row, the corresponding HMVP list is constructed / initialized based on the HMVP list of the second CTU of the previous CTU row, where the previous CTU row is the CTU row that is directly adjacent to and above the current CTU row.

[0183] Using Figure 8 as an example, when the current CTU row is the CTU row of thread 2, the previous CTU row is the CTU row of thread 1, and the second CTU of the previous row is CTU1; when the current CTU row is the CTU row of thread 3, the previous CTU row is the CTU row of thread 2, and the second CTU of the previous row is CTU12; when the current CTU row is the CTU row of thread 4, the previous CTU row is the CTU row of thread 3, and the second CTU of the previous row is CTU23; when the current CTU row is the CTU row of thread 5, the previous CTU row is the CTU row of thread 4, and the second CTU of the previous row is CTU34; when the current CTU row is the CTU row of thread 6, the previous CTU row is the CTU row of thread 5, and the second CTU of the previous row is CTU45.

[0184] Method 3: At the start of processing of a current CTU row, the corresponding HMVP list is constructed / initialized based on the HMVP list of the first CTU of the previous CTU row, which is the CTU row that is directly adjacent to and above the current CTU row.

[0185] Using Figure 8 as an example, when the current CTU row is the CTU row of thread 2, the previous CTU row is the CTU row of thread 1, and the first CTU in the previous row is CTU0; when the current CTU row is the CTU row of thread 3, the previous CTU row is the CTU row of thread 2, and the first CTU in the previous row is CTU11; when the current CTU row is the CTU row of thread 4, the previous CTU row is the CTU row of thread 3, and the first CTU in the previous row is CTU22; when the current CTU row is the CTU row of thread 5, the previous CTU row is the CTU row of thread 4, and the first CTU in the previous row is CTU33; when the current CTU row is the CTU row of thread 6, the previous CTU row is the CTU row of thread 5, and the first CTU in the previous row is CTU44.

[0186] According to methods 1 to 3, the processing of a current CTU row does not need to wait for the processing of the CTU row before the current CTU row to be completed, and therefore may improve the processing efficiency of the current picture frame.

[0187] 902, process the CTUs in the CTU row based on the constructed / initialized HMVP list.

[0188] The processing of the CTU may be an inter-prediction process performed during the decoding process, i.e., the processing of the CTU may be implemented by the inter-prediction unit 344 of Figure 3. Alternatively, the processing of the CTU may be an inter-prediction process performed during the encoding process, i.e., the processing of the CTU may be implemented by the inter-prediction unit 244 of Figure 2.

[0189] It should be noted that the above method for constructing / initializing the HMVP list can also be used for normal HMVP processing without wavefronts, e.g., HMV processing without WPP. As a result, the HMVP processing is identical regardless of the application of WPP, which reduces the need for additional logic implementation.

[0190] It should be noted that the process of FIG. 9 may be an encoding process implemented by an encoder, such as the video encoder 20 of FIG. 2, according to one embodiment of the present application.

[0191] Furthermore, it should be noted that the above-described method for combining wavefront and HMVP-based prediction can also be used for intra prediction, i.e., the history intra mode may be used and the history table for each CTU row is initialized to a default value.

[0192] For example, the initialization of the HMVP list for each CTU row in intra prediction may be performed in a default intra mode, such as planar mode, DC mode, vertical mode, horizontal mode, mode 2 mode, VDIA mode, and DIA mode.

[0193] Figure 10 is a flow diagram illustrating one exemplary operation of a video decoder or video encoder, such as the video decoder 30 of Figure 3 according to an embodiment of the present application and the video encoder 20 of Figure 2 according to an embodiment of the present application. One or more structural elements of the video decoder 30 / encoder 20, including the inter prediction unit 344 / inter prediction unit 244, may be configured to perform the techniques of Figure 10. In the example of Figure 10, the video decoder 30 / video encoder 20 may perform the following steps:

[0194] Step 1010, when the current CTU is the start CTU of the current CTU row, initialize the HMVP list for the current CTU row.

[0195] It should be noted that the current CTU row may be any CTU row of a picture frame consisting of multiple CTU rows, or a picture area (which may be a portion of a picture frame) consists of multiple CTU rows, and the current CTU row may be any one of the multiple CTU rows.

[0196] Whether the current CTU is the start CTU (or the first CTU) of the current CTU row can be determined based on the index of the current CTU. For example, as disclosed in FIG. 8, each CTU has a unique index, and therefore, whether the current CTU is the first CTU of the current CTU row can be determined based on the index of the current CTU. For example, the CTUs with indexes 0, 11, 22, 33, 44, or 55... are the first CTUs of the CTU row, respectively. Alternatively, taking FIG. 8 as an example, each CTU row includes 11 CTUs, that is, the width of each CTU row is 11, therefore, the index of the CTU can be divided by the width of the CTU row to determine whether the remainder is 0, and if the remainder is 0, the corresponding CTU is the first CTU of the CTU row; otherwise, if the remainder is not 0, the corresponding CTU is not the first CTU of the CTU row. That is, if a CTU's index % CTU row width = 0, then the CTU is the first CTU in the CTU row; otherwise, if a CTU's index % CTU row width ≠ 0, then the CTU is not the first CTU in the CTU row. Note that when the process of a CTU row is from right to left, whether a CTU is the start CTU of a CTU row can be determined in a similar manner.

[0197] After the initialization of the HMVP list, the number of candidate motion vectors in the initialized HMVP list is zero.

[0198] Initialization may be performed by emptying the HMVP list for the current CTU row, i.e., by removing the contents of the HMVP list for the current CTU row, in other words, by setting the number of candidates in the HMVP list for the current CTU row to zero.

[0199] In another implementation method, the method may further include the following step: initializing an HMVP list for each of a plurality of CTU rows, excluding the current CTU row, where the HMVP lists for the plurality of CTU rows may be identical or different.

[0200] Initialization may be performed by setting default values ​​for the HMVP list for the current CTU row, or by initializing the HMVP list for the current CTU row based on the HMVP lists of the CTUs in the previous CTU row, as described above.

[0201] Step 1020 processes the current CTU row based on the HMVP list.

[0202] The process may be an inter-prediction process, whereby a predictive block may be obtained. Reconstruction may be performed based on the predictive block to obtain a reconstructed block, and finally, a decoded picture may be obtained based on the reconstructed block. Details of these processes are described above.

[0203] As shown in Fig. 8, the current picture frame includes multiple CTU rows to improve coding / decoding efficiency, and the multiple CTU rows can be processed in wavefront parallel processing (WPP) mode. That is, when a certain CTU of the previous CTU row is processed, the current CTU row starts to be processed (or the processing of the current CTU row starts), where the previous CTU row is a CTU row that is directly adjacent to and above the current CTU row, and the certain CTU of the previous CTU row is the second CTU of the previous CTU row; or the certain CTU of the previous CTU row is the first CTU of the previous CTU row. Using Fig. 8 as an example, when the current CTU row is thread 3, the previous CTU row is thread 2, and the certain CTU of the previous CTU row may be CTU12, that is, when CTU12 is processed, the decoder / encoder starts to process the CTU row of thread 3, that is, the decoder / encoder starts to process CTU22. Using Figure 8 as another example, when the current CTU row is thread 4, the previous CTU row is thread 3, and a particular CTU in the previous CTU row may be CTU23, i.e., when CTU23 is processed, the decoder / encoder begins processing the CTU row of thread 4, i.e., the decoder / encoder begins processing CTU33.

[0204] In one implementation method, the step of processing a current CTU row based on the HMVP list may include the steps of processing a current CTU of the current CTU row, updating the initialized HMVP list based on the processed current CTU, and processing a second CTU of the current CTU row based on the updated HMVP list.

[0205] FIG. 11 is a block diagram illustrating an example of a video processing device 1100 configured to implement an embodiment of the present invention, which may be an encoder 20 or a decoder 30 as shown in FIG. 11, and which includes:

[0206] An initialization unit 1110 configured to initialize an HMVP list for a current CTU row when the current CTU is a starting CTU (first CTU) of the current CTU row.

[0207] For details of the initialization performed by the initialization unit 1110, see step 1010.

[0208] A processing unit 1120 configured to process the current CTU row based on the HMVP list.

[0209] For details of the processing performed by the processing unit 1120, refer to step 1020.

[0210] The process may be an inter-prediction process, whereby a predictive block may be obtained. Reconstruction may be performed based on the predictive block to obtain a reconstructed block, and finally, a decoded picture may be obtained based on the reconstructed block. Details of these processes are described above.

[0211] As shown in FIG. 8, the current picture frame includes multiple CTU rows, and in order to improve coding / decoding efficiency, multiple CTU rows can be processed in WPP mode. That is, when a specific CTU of the previous CTU row is processed, the current CTU row starts to be processed, where the previous CTU row is a CTU row that is directly adjacent to and above the current CTU row, and the specific CTU of the previous CTU row is the second CTU of the previous CTU row; or the specific CTU of the previous CTU row is the first CTU of the previous CTU row. Using FIG. 8 as an example, when the current CTU row is thread 3, the previous CTU row is thread 2, and the specific CTU of the previous CTU row may be CTU12, that is, when CTU12 is processed, the decoder / encoder starts to process the CTU row of thread 3, that is, the decoder / encoder starts to process CTU22. Using Figure 8 as another example, when the current CTU row is thread 4, the previous CTU row is thread 3, and a particular CTU in the previous CTU row may be CTU23, i.e., when CTU23 is processed, the decoder / encoder begins processing the CTU row of thread 4, i.e., the decoder / encoder begins processing CTU33.

[0212] The present disclosure further discloses an encoder including a processing circuit for performing the video processing method or coding method of the present disclosure.

[0213] The present disclosure further discloses a decoder including a processing circuit for performing the video processing method or coding method of the present disclosure.

[0214] The present disclosure further discloses a computer program product comprising program code for performing the video processing method or coding method of the present disclosure.

[0215] The present disclosure further discloses a computer-readable storage medium having stored thereon computer instructions that, when executed by one or more processors, cause the one or more processors to perform a video processing method or coding method of the present disclosure. The computer-readable storage medium may be non-transitory or transitory.

[0216] The present disclosure further discloses a decoder including one or more processors and a non-transitory computer-readable storage medium coupled to the processors and storing programming for execution by the processors, the programming, when executed by the processors, configuring the decoder to perform a video processing method or coding method of the present disclosure.

[0217] The present disclosure further discloses an encoder including one or more processors and a non-transitory computer-readable storage medium coupled to the processors and storing programming for execution by the processors, the programming, when executed by the processors, configuring the encoder to perform a video processing method or coding method of the present disclosure.

[0218] The initialization process for the HMVP list is described in the VVC (Joint Video Experts Team (JVET) of ITU-T SG 16 WP 3 and ISO / IEC JTC 1 / SC 29 / WG 11, Multipurpose Video Coding (Draft 6)) generic slice data syntax, and clause 7.3.8.1 of VVC states:

[0219] [Table 1]

[0220] Here, j%BrickWidth[SliceBrickIdx[i]]) == 0 means that the CTU with index j is the starting CTU of the CTU row, and NumHmvpCand = 0 means that the quantity of candidates in the HMVP list is set to 0, in other words, the HMVP list has been emptied.

[0221] The update process for the HMVP list is described in Clause 8.5.2.16 of VVC (Joint Video Experts Team (JVET) of ITU-T SG 16 WP 3 and ISO / IEC JTC 1 / SC 29 / WG 11, Multipurpose Video Coding (Draft 6)), which states: The inputs to this process are: Luma motion vectors mvL0 and mvL1 with 1 / 16 fractional sample precision, Reference indices refIdxL0 and refIdxL1, Prediction list usage flags predFlagL0 and predFlagL1, Bi-prediction weight index bcwIdx. The MVP candidate hMvpCand consists of luma motion vectors mvL0 and mvL1, reference indices refIdxL0 and refIdxL1, prediction list usage flags predFlagL0 and predFlagL1, and a bi-prediction weight index bcwIdx. The candidate list HmvpCandList is modified with the candidate hMvpCands by the following ordered steps: The variable identicalCandExist is set equal to FALSE, and the variable removeIdx is set equal to 0. If NumHmvpCand is greater than 0, then for each index hMvpIdx, with hMvpIdx=0..NumHmvpCand-1, the following steps are applied until identicalCandExist is equal to TRUE: When hMvpCand is equal to HmvpCandList[hMvpIdx], identicalCandExist is set equal to TRUE and removeIdx is set equal to hMvpIdx. The candidate list HmvpCandList is updated as follows: If identicalCandExist is equal to TRUE or NumHmvpCand is equal to 5, the following applies: For each index i, with i=(removeIdx+1)..(NumHmvpCand-1), HmvpCandList[i-1] is set equal to HmvpCandList[i]. HmvpCandList[NumHmvpCand-1] is set equal to mvCand. Otherwise (identicalCandExist is equal to FALSE and NumHmvpCand is less than 5), the following applies: HmvpCandList[NumHmvpCand++] is set equal to mvCand.

[0222] In one or more examples, the functions described may be implemented in hardware, software, firmware, or any combination thereof. If implemented in software, the functions may be stored on or transmitted via a computer-readable medium as one or more instructions or code and executed by a hardware-based processing unit. A computer-readable medium may include a computer-readable storage medium corresponding to a tangible medium, such as a data storage medium, or a communication medium including any medium that facilitates the transfer of computer programs between each other, for example according to a communication protocol. In this manner, a computer-readable medium may generally correspond to (1) a tangible computer-readable storage medium that is non-transitory, or (2) a communication medium, such as a signal wave or carrier wave. A data storage medium may be any available medium that can be accessed by one or more computers or one or more processors to retrieve instructions, code, and / or data structures for implementing the techniques described in this disclosure. A computer program product may include a computer-readable medium.

[0223] By way of example, and not limitation, such computer-readable storage media may include RAM, ROM, EEPROM, CD-ROM or other optical disk storage, magnetic disk storage or other magnetic storage devices, flash memory, or any other medium that can be used to store desired program code in the form of instructions or data structures and that can be accessed by a computer. Any connection is also properly referred to as a computer-readable medium. For example, if instructions are transmitted from a website, server, or other remote source using coaxial cable, fiber optic cable, twisted pair, digital subscriber line (DSL), or wireless technologies such as infrared, radio, and microwave, the coaxial cable, fiber optic cable, twisted pair, DSL, or wireless technologies such as infrared, radio, and microwave are included within the definition of the medium. It should be noted, however, that computer-readable storage media and data storage media do not include connections, carrier waves, signals, or other transitory media, but instead cover non-transitory, tangible storage media. As used herein, disk and disc include compact disc (CD), laser disc, optical disc, digital versatile disc (DVD), floppy disk, and Blu-ray disc, where disks typically replicate data magnetically and discs replicate data optically using lasers. Combinations of the above should also be included within the scope of computer readable media.

[0224] The instructions may be executed by one or more processors, such as one or more digital signal processors (DSPs), general-purpose microprocessors, application specific integrated circuits (ASICs), field programmable logic arrays (FPGAs), or other equivalent integrated or discrete logic circuitry. Thus, the term "processor" as used herein may refer to any of the foregoing structures or any other structure suitable for implementing the techniques described herein. In addition, in some aspects, the functionality described herein may be provided in dedicated hardware and / or software modules configured to encode and decode, or may be incorporated in a combined codec. Also, these techniques may be fully implemented in one or more circuit or logic elements.

[0225] The techniques of this disclosure may be implemented in a wide variety of devices or apparatuses, including a wireless handset, an integrated circuit (IC), or a set of ICs (e.g., a chipset). Various components, modules, or units are described in this disclosure to highlight functional aspects of devices configured to perform the disclosed techniques, but do not necessarily require realization by different hardware units. Rather, as described above, the various units may be combined into a codec hardware unit or may be provided by a collection of interoperative hardware units, including one or more processors as described above, along with suitable software and / or firmware. [Explanation of symbols]

[0226] 10 Coding Systems 12 Source Device 13 Encoded Picture 14 Destination Device 16 Picture Source 17 Picture Data 18 Pretreatment Unit 19 Preprocessed Picture Data 20 Encoder 21 Encoded Picture Data 22 Communication Interface 28 Communication Interface 30 Decoder 31 Decoded Pictures 32 Post Processor 33 Post-processed pictures 34 Display Devices 40 Video Coding System 41 Imaging Device 42 Antenna 43 Processors 44 Memory Store 45 Display Devices 46 Processing Unit 47 Logic Circuits 110 Inverse Quantization Unit 112 Inverse Transformation Processing Unit 114 Reconstruction Unit 116 Buffers 120 Loop Filter 130 Decoded Picture Buffer 131 Decoded Pictures 144 Inter Prediction Units 154 intra prediction units 201 Pictures 202 Input 203 Picture Block 204 Residual Calculation Unit 205 Residual Blocks 206 Conversion Processing Unit 207 Conversion Factors 208 Quantization Units 209 Quantization Coefficients 210 Inverse Quantization Unit 211 Dequantization Coefficients 212 Inverse Transformation Processing Unit 213 Inverse Transformation Block 214 Reconstruction Unit 215 reconstructed blocks 216 Buffers 220 Loop Filter 221 Filtered Blocks 230 Decoded Picture Buffer 231 Decoded Pictures 244 Inter Prediction Units 245 Inter predicted blocks 254 intra prediction units 255 Intra predicted blocks 260 Prediction Processing Unit 262 Mode Selection Unit 265 predicted blocks 270 Entropy Coding Unit 272 Output 304 Entropy Decoding Unit 309 Quantization Coefficients 310 Inverse Quantization Unit 311 Decoded Picture 312 Inverse Transformation Processing Unit 313 Inverse Transformation Block 314 Reconstruction Unit 315 Reconstructed Blocks 316 Buffer 320 Loop Filter 321 Filtered Blocks 330 Decoded Picture Buffer 344 Inter Prediction Units 354 intra prediction units 360 Prediction Processing Unit 362 Mode Selection Unit 365 predicted blocks 400 Video Coding Device 410 Inlet Port 420 Tx / Rx 430 Processor 440 Tx / Rx 450 Exit Port 460 Memory 470 Coding Module 500 devices 502 processor 504 Memory 506 Data 508 Operating Systems 510 Application Program 512 Bus 514 Secondary storage device 518 Display 520 Image sensing device 522 Voice Sensing Devices 1100 Video Processing Device 1110 Initialization Unit 1120 Processing Unit

Claims

1. 1. A video processing method comprising the steps of: initializing a history-based motion vector prediction (HMVP) list for a current coding tree unit (CTU) row when the current CTU is a start CTU of the current CTU row; processing the current CTU row based on the HMVP list; A method comprising:

2. The method of claim 1 , wherein the number of candidate motion vectors in the initialized HMVP list is zero.

3. The method according to claim 1 or 2, wherein the current CTU row belongs to a picture area consisting of a plurality of CTU rows, and the current CTU row is any one of the plurality of CTU rows.

4. initializing an HMVP list for each of the plurality of CTU rows, except for the current CTU row, where the HMVP lists for the plurality of CTU rows may be the same or different.

4. The method of claim 1, further comprising:

5. The step of processing the current CTU row based on the HMVP list includes: processing the current CTU of the current CTU row; updating the initialized HMVP list based on the processed current CTU; processing a second CTU in the current CTU row based on the updated HMVP list; 5. The method according to claim 1 , comprising:

6. The method according to claim 1 , wherein the HMVP list is updated according to the processed CTUs of the current CTU row.

7. The HMVP list for the current CTU row is as follows: Empty the HMVP list for the current CTU row. The method according to any one of claims 1 to 6, wherein the first and second inputs are initialized.

8. The step of processing the current CTU row based on the HMVP list includes: processing the current CTU row based on the HMVP list from a second CTU in the current CTU row, the second CTU being adjacent to the starting CTU; 8. The method of claim 1 , comprising:

9. The method according to claim 3 , wherein the multiple CTU rows are processed in a wavefront parallel processing (WPP) mode.

10. The method of claim 9 , wherein the current CTU row begins to be processed when a particular CTU of a previous CTU row is processed.

11. The method of claim 10 , wherein the previous CTU row is the CTU row that is immediately adjacent to and above the current CTU row.

12. The method of claim 10 or 11, wherein the particular CTU of the previous CTU row is a second CTU of the previous CTU row; or the particular CTU of the previous CTU row is a first CTU of the previous CTU row.

13. 1. A video processing device comprising: an initialization unit configured to initialize a history-based motion vector prediction (HMVP) list for a current coding tree unit (CTU) row when the current CTU is a start CTU of the current CTU row; a processing unit configured to process the current CTU row based on the HMVP list; 23. A video processing device comprising:

14. The apparatus of claim 13 , wherein a quantity of candidate motion vectors in the initialized HMVP list is zero.

15. The device according to claim 13 or 14, wherein the current CTU row belongs to a picture area consisting of a plurality of CTU rows, and the current CTU row is any one of the plurality of CTU rows.

16. The initialization unit includes: Initializing an HMVP list for each of the plurality of CTU rows, except for the current CTU row, where the HMVP lists for the plurality of CTU rows may be the same or different. The apparatus of claim 15, further configured to:

17. The processing unit performs the following steps: process the current CTU in the current CTU row; updating the initialized HMVP list based on the processed current CTU; Process a second CTU in the current CTU row based on the updated HMVP list. like The apparatus of claim 13 , configured to process the current CTU row based on the HMVP list.

18. The apparatus of claim 13 , wherein the HMVP list is updated according to processed CTUs of the current CTU row.

19. The initialization unit is as follows: Empty the HMVP list for the current CTU row.

19. The apparatus of claim 13, further configured to initialize the HMVP list for the current CTU row.

20. The processing unit performs the following steps: and processing the current CTU row based on the HMVP list from a second CTU in the current CTU row, the second CTU being adjacent to the starting CTU.

14. The method of claim 13, further comprising: processing the current CTU row based on the HMVP list.

20. An apparatus according to any one of claims 1 to 19.

21. 21. The apparatus of claim 15, wherein the multiple CTU rows are processed in a wavefront parallel processing (WPP) mode.

22. The apparatus of claim 21 , wherein the current CTU row begins to be processed when a particular CTU of a previous CTU row is processed.

23. The apparatus of claim 22 , wherein the previous CTU row is the CTU row that is immediately adjacent to and above the current CTU row.

24. The apparatus of claim 22 or 23, wherein the particular CTU of the previous CTU row is a second CTU of the previous CTU row; or the particular CTU of the previous CTU row is a first CTU of the previous CTU row.

25. An encoder comprising processing circuitry for performing the method of any one of claims 1 to 12.

26. A decoder comprising processing circuitry for performing the method of any one of claims 1 to 12.

27. A computer program product comprising program code for performing the method according to any one of claims 1 to 12.

28. 13. A computer readable storage medium having stored thereon computer instructions which, when executed by one or more processors, cause the one or more processors to perform a method according to any one of claims 1 to 12.

29. A decoder comprising: one or more processors; a non-transitory computer-readable storage medium coupled to the processor and having programming stored thereon for execution by the processor; wherein the programming, when executed by the processor, configures the decoder to perform the method of any one of claims 1 to 12. decoder.

30. 1. An encoder comprising: one or more processors; a non-transitory computer-readable storage medium coupled to the processor and having programming stored thereon for execution by the processor; wherein the programming, when executed by the processor, configures the encoder to perform a method according to any one of claims 1 to 12. Encoder.

Citation Information

Patent Citations

  • MULTIPLE HISTORY BASED NON-ADJACENT MVPs FOR WAVEFRONT PROCESSING OF VIDEO CODING

    WO2020014389A1

  • Method and apparatus for history-based motion vector prediction with parallel processing

    WO2020018241A1

  • Method and apparatus for history-based motion vector prediction

    WO2020018297A1

  • Inter prediction method based on history-based motion vector, and device therefor

    WO2020036417A1

Cited By

  • Encoding device and decoding device

    WO2026094655A1