Method and apparatus for encoding or decoding a video

By enabling the motion vector angle prediction process and the allocation of predefined motion information, the coding efficiency problem of large coding units in skip mode or direct mode is solved, thereby improving video coding performance and hardware resource utilization efficiency.

CN117499626BActive Publication Date: 2026-11-24ALIBABA (CHINA) CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202311475832.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Priority Date
2020-03-26
Filing Date
2021-03-16
Publication Date
2026-11-24
Estimated Expiration
2041-03-16

AI Technical Summary

Technical Problem

Existing video coding technologies suffer from low computational complexity and coding efficiency when dealing with large coding units, especially in skip mode or direct mode, where the application of motion vector angle prediction is insufficient, resulting in poor coding performance.

Method used

By enabling the motion vector angle prediction process, selectively storing motion vector angle prediction candidates in a candidate list, and assigning predefined motion information when the reference list is unavailable, the motion vector angle prediction process is simplified and is suitable for skip mode or direct mode coding.

Benefits of technology

It improves encoding performance, optimizes the utilization of hardware resources, and enhances the efficiency of encoders and decoders, especially when dealing with large-size encoding units, reducing the use of unnecessary encoding tools.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117499626B_ABST
    Figure CN117499626B_ABST
Patent Text Reader

Abstract

This disclosure provides a computer-implemented video decoding method. The method includes: receiving a bitstream of coding units comprising video frames, the coding units being encoded in a skip mode or a direct mode; determining whether the coding unit has a width greater than a threshold width or a height greater than a threshold height; in response to the coding unit having a width greater than a threshold width or a height greater than a threshold height, enabling a motion vector angle prediction process to store one or more motion vector angle prediction candidates in a candidate list, the candidate list storing a plurality of motion candidates associated with the coding unit; and performing inter-frame prediction on the coding unit based on the candidate list and an index parsed from the bitstream.
Need to check novelty before this filing date? Find Prior Art

Description

[0001] Cross-references to related applications This application is based on the application filed on March 26, 2020, entitled "METHODS FOR The application, entitled “MOTION VECTOR ANGULAR PREDICTION”, U.S. Provisional Application No. 63 / 000,095, which claims priority, is incorporated herein by reference in its entirety. Technical Field

[0002] This disclosure generally relates to video data processing, and more specifically, to the use of motion vector angle prediction. Background Technology

[0003] Video is a set of still images (or "frames") that capture visual information. To reduce storage memory and transmission bandwidth, video can be compressed before storage or transmission and then decompressed before display. The compression process is usually called encoding, and the decompression process is usually called decoding. There are various video coding formats that use standardized video coding techniques, the most common being based on prediction, transform, quantization, entropy coding, and in-loop filtering. Standardization organizations have developed video coding standards, such as the High Efficiency Video Coding (HEVC / H.265) standard, the Universal Video Coding (VVC / H.266) standard, and the AVS standard, specifying particular video coding formats. As more and more advanced video coding techniques are adopted in video standards, the coding efficiency of new video coding standards is becoming increasingly higher. Summary of the Invention

[0004] In some exemplary embodiments, a computer-implemented method for decoding video is provided. The method includes: receiving a bitstream of coding units comprising video frames, the coding units being encoded in a skip mode or a direct mode; determining whether the coding unit has a width greater than a threshold width or a height greater than a threshold height; in response to the coding unit having a width greater than a threshold width or a height greater than a threshold height, enabling a motion vector angle prediction process to store one or more motion vector angle prediction candidates in a candidate list, the candidate list storing a plurality of motion candidates associated with the coding unit; and performing inter-frame prediction on the coding unit based on the candidate list and an index parsed from the bitstream.

[0005] Embodiments of this disclosure provide an apparatus. In some embodiments, the apparatus includes: a memory configured to store instructions; and a processor coupled to the memory and configured to execute the instructions such that the apparatus: receives a bitstream of coding units comprising video frames, the coding units being encoded in a skip mode or a direct mode; determines whether the coding unit has a width greater than a threshold width or a height greater than a threshold height; in response to the coding unit having a width greater than a threshold width or a height greater than a threshold height, enables a motion vector angle prediction process to store one or more motion vector angle prediction candidates in a candidate list, the candidate list storing a plurality of motion candidates associated with the coding unit; and performs inter-frame prediction on the coding unit based on the candidate list and an index parsed from the bitstream.

[0006] Embodiments of this disclosure provide a non-transitory computer-readable storage medium storing an instruction set executable by one or more processors of a device to cause the device to perform a method for motion vector prediction. The method includes: dividing an encoding unit into a plurality of sub-blocks; populating a reference list associated with the encoding unit by: populating the reference unit with motion information of adjacent blocks of the encoding unit if motion information of adjacent blocks associated with a reference unit in the reference list is available; populating the first reference unit with predefined motion information if motion information of a first adjacent block associated with a first reference unit that is a first entry in the reference list is unavailable; and populating the remaining reference units with motion information of previously adjacent reference units populated in the reference list if motion information of adjacent blocks associated with remaining reference units is unavailable; and performing a motion vector angle prediction process to obtain one or more motion vector angle prediction candidates for each sub-block by using the reference list according to one or more prediction directions. Attached Figure Description

[0007] Embodiments and aspects of this disclosure are illustrated in the following detailed description and accompanying drawings. The various features shown in the figures are not drawn to scale.

[0008] Figure 1 The structure of an exemplary video sequence consistent with some embodiments of this disclosure is shown.

[0009] Figure 2 A schematic diagram of an exemplary encoder in a video encoding system consistent with some embodiments of the present disclosure is shown.

[0010] Figure 3 A schematic diagram of an exemplary decoder in a video encoding system consistent with some embodiments of this disclosure is shown.

[0011] Figure 4 A block diagram of an exemplary apparatus for encoding or decoding video is shown, consistent with some embodiments of this disclosure.

[0012] Figure 5 A flowchart illustrating an exemplary process for a video encoding method consistent with some embodiments of this disclosure is shown.

[0013] Figure 6 An exemplary neighboring block for deriving spatial motion vector prediction (SMVP) is shown, consistent with some embodiments of this disclosure.

[0014] Figure 7 A flowchart illustrating an exemplary process for a video decoding method consistent with some embodiments of this disclosure is shown.

[0015] Figure 8 A flowchart of an exemplary MVAP process consistent with some embodiments of this disclosure is shown.

[0016] Figure 9 A sub-block in the coding unit of an MVAP process consistent with some embodiments of this disclosure is shown.

[0017] Figure 10 An exemplary list of reference motion information for use in the MVAP process is shown, consistent with some embodiments of this disclosure.

[0018] Figure 11A An exemplary process for filling a list of reference motion information used in the MVAP process is shown, consistent with some embodiments of this disclosure.

[0019] Figure 11B Another exemplary process is shown that is consistent with some embodiments of this disclosure for filling a list of reference motion information used in the MVAP process.

[0020] Figure 12A Exemplary MVAP candidates for each sub-block in a first direction are shown, consistent with some embodiments of this disclosure.

[0021] Figure 12B Exemplary MVAP candidates for each sub-block in a second direction are shown, consistent with some embodiments of this disclosure.

[0022] Figure 12C Exemplary MVAP candidates for each sub-block, consistent with some embodiments of this disclosure, are shown in a third-party uplink configuration.

[0023] Figure 12D Exemplary MVAP candidates for each sub-block in the fourth direction are shown, consistent with some embodiments of this disclosure.

[0024] Figure 12E Exemplary MVAP candidates for each sub-block in the fifth direction are shown, consistent with some embodiments of this disclosure.

[0025] Figure 13 A flowchart of another exemplary MVAP process consistent with some embodiments of this disclosure is shown.

[0026] Figure 14 A flowchart of yet another exemplary MVAP process consistent with some embodiments of this disclosure is shown. Detailed Implementation

[0027] Exemplary embodiments will now be described in detail, examples of which are illustrated in the accompanying drawings. The following description refers to the accompanying drawings, wherein, unless otherwise stated, the same numerals in different drawings denote the same or similar elements. The embodiments set forth in the following description of the exemplary embodiments do not represent all embodiments consistent with this disclosure. Rather, they are merely examples of apparatuses and methods consistent with aspects of this disclosure as described in the appended claims. Specific aspects of this disclosure are described below in more detail. In the event of any conflict with terms and / or definitions incorporated by reference, the terms and definitions provided herein shall prevail.

[0028] The Audio Video Coding Standard (AVS) Working Group is the standards-setting organization for the AVS series of video standards. The AVS Working Group is currently developing the AVS3 video standard, the third generation of the AVS series. AVS3's predecessors, AVS1 and AVS2, were released in 2006 and 2016, respectively. The AVS3 standard is based on the same hybrid video coding system used in modern video compression standards such as AVS1, AVS2, H.264 / AVC, and H.265 / HEVC.

[0029] The AVS working group selected the High Performance Model (HPM) as the new reference software platform for the development of the AVS3 standard. The initial technologies in HPM were inherited from the AVS2 standard, and then modified and enhanced with new advanced video coding techniques to improve compression performance. Compared to its predecessor AVS2, the final first phase of AVS3 achieved a coding performance improvement of over 20%. AVS continues to include coding techniques to improve compression performance, and the second phase of the AVS3 standard is being developed on top of the first phase to improve coding efficiency.

[0030] Video is a set of still images (or “frames”) arranged in chronological order to store visual information. These images can be captured and stored in chronological order using video capture devices (e.g., cameras), and displayed in a time-series using video playback devices (e.g., televisions, computers, smartphones, tablets, video players, or any end-user terminal with a display capability). Furthermore, in some applications, video capture devices can transmit captured video in real time to video playback devices (e.g., computers with monitors), such as for surveillance, conferencing, or live broadcasting.

[0031] To reduce the storage space and transmission bandwidth required for such applications, video can be compressed. For example, video can be compressed before storage and transmission, and decompressed before display. Compression and decompression can be implemented by software executed by a processor (e.g., a processor in a general-purpose computer) or dedicated hardware. The module or circuit used for compression is generally called an "encoder," and the module or circuit used for decompression is generally called a "decoder." Encoders and decoders can be collectively referred to as "codecs." Encoders and decoders can be implemented as any of a variety of suitable hardware, software, or combinations thereof. For example, hardware implementations of encoders and decoders can include circuits such as one or more microprocessors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), discrete logic, or any combination thereof. Software implementations of encoders and decoders can include program code embedded in a computer-readable medium, computer-executable instructions, firmware, or any suitable computer-implemented algorithm or process. Video compression and decompression can be implemented using various algorithms or standards, such as MPEG-1, MPEG-2, MPEG-4, the H.26x series, the AVS standard, etc. In some applications, a codec can decompress video from a first encoding standard and recompress the decompressed video using a second encoding standard; in this case, the codec can be called a "transcoder".

[0032] The video encoding process identifies and retains useful information that can be used to reconstruct the image. If ignoring unimportant information prevents complete reconstruction, the encoding process can be called "lossy." Otherwise, it can be called "lossless." Most encoding processes are lossy, a trade-off between reducing required storage space and transmission bandwidth.

[0033] In many cases, useful information about an encoded image (referred to as the "current image") includes changes relative to a reference image (e.g., a previously encoded and reconstructed image). Such changes can include variations in pixel position, brightness, or color; changes in the position of a set of pixels representing an object can reflect the object's movement between the reference and current images.

[0034] An image encoded without referencing another image (i.e., it is its own reference image) is called an "I-image". If some or all blocks of an image (e.g., blocks of a portion of a video, typically a specific part) are predicted using intra-frame prediction or inter-frame prediction (e.g., one-way prediction) with a reference image, the image is called a "P-image". If at least one block in an image is predicted using two reference images (e.g., two-way prediction), the image is called a "B-image".

[0035] In this disclosure, a simplified motion vector angle prediction (MVAP) process can be applied to the encoder and decoder in skip mode or direct mode encoding by selectively enabling or disabling the MVAP process based on the size of the coding unit and assigning predefined motion information when the first entry in the reference list is unavailable in the MVAP process. This modification can improve encoding performance by disabling less useful encoding tools for the current coding unit during the encoding and decoding process of the video stream, and implement hardware-friendly methods for skip mode or direct mode encoding on both the encoder and decoder sides.

[0036] Figure 1 The structure of an exemplary video sequence consistent with embodiments of this disclosure is shown. Video sequence 100 may be live video or pre-captured and archived video. Video sequence 100 may be real-life video, computer-generated video (e.g., computer game video), or a combination thereof (e.g., real-life video with augmented reality effects). Video sequence 100 may receive video from a video capture device (e.g., a camera), a video archive containing previously captured video (e.g., a video file stored on a storage device), or a video feed interface (e.g., a video broadcast transceiver) from a video content provider. Figure 1 In the illustrated embodiment, video sequence 100 may include a series of images arranged temporally along a timeline, including images 102, 104, 106, and 108. Images 102-106 are consecutive, with more images between images 106 and 108.

[0037] When video is compressed or decompressed, useful information about the encoded image (referred to as the "current image") includes changes with respect to a reference image (e.g., an image that was previously encoded and reconstructed). Such changes can include changes in pixel position, brightness, or color. For example, changes in the position of a set of pixels can reflect the movement of an object represented by those pixels between two images (e.g., a reference image and the current image).

[0038] For example, such as Figure 1As shown, image 102 is an I-image, using itself as a reference image. As indicated by the arrows, image 104 is a P-image using image 102 as its reference image. Image 106 is a B-image, using images 104 and 108 as its reference images, as indicated by the arrows. In some embodiments, the reference image of an image may or may not be immediately preceding or following the image. For example, the reference image of image 104 may be an image preceding image 102, i.e., not an image immediately preceding image 104. Figure 1 The above reference images 102-106 shown are merely examples and are not intended to limit this disclosure.

[0039] Due to computational complexity, in some embodiments, the video codec can segment an image into multiple basic segments and encode or decode the image segments one by one. That is, the video codec does not need to encode or decode the entire image at once. In this disclosure, such basic segments are referred to as basic processing units (“BPUs”). For example, Figure 1 An exemplary structure 110 for images (e.g., any one of images 102-108) of video sequence 100 is also shown. For example, structure 110 can be used to segment image 108. Figure 1 As shown, image 108 is divided into 4×4 basic processing units. In some embodiments, the basic processing unit may be referred to as a “coding tree unit” (“CTU”) in some video coding standards (e.g., AVS3, H.265 / HEVC, or H.266 / VVC), or as a “macroblock” in some video coding standards (e.g., MPEG family, H.261, H.263, or H.264 / AVC). In AVS3, the CTU can be the largest block unit and can be as large as 128x128 luminance samples (plus corresponding chrominance samples, depending on the chrominance format).

[0040] Figure 1 The basic processing unit 1 in the image is for illustrative purposes only. The basic processing unit can have a variable size in the image, such as 128×128, 64×64, 32×32, 16×16, 4×8, 16×32, or pixels of any shape and size. The size and shape of the basic processing unit can be selected for the image based on a balance between coding efficiency and maintaining the level of detail within the basic processing unit.

[0041] A basic processing unit can be a logical unit that may include a set of different types of video data stored in computer memory (e.g., in a video frame buffer). For example, a basic processing unit for a color image may include a luminance component (Y) representing achromatic luminance information, one or more chrominance components (e.g., Cb and Cr) representing color information, and associated syntax elements, where the luminance and chrominance components may have the same size as the basic processing unit. In some video coding standards, the luminance and chrominance components may be referred to as “code tree blocks” (“CTBs”). Any operation performed on a basic processing unit may be repeated on each of its luminance and chrominance components.

[0042] During multiple operational phases in video coding, the size of a basic processing unit may still be too large for processing, and therefore it can be further divided into segments referred to herein as "basic processing subunits." For example, in the mode decision phase, the encoder may break down a basic processing unit into multiple basic processing subunits and determine the prediction type for each individual basic processing subunit. Figure 1 As shown, the basic processing unit 112 in structure 110 is further divided into 4×4 basic processing subunits. For example, in AVS3, the CTU can be further divided into coding units (CUs) using a quadtree, binary tree, or extended binary tree. Figure 1 The basic processing subunits in this document are for illustrative purposes only. Different basic processing units for the same image can be divided into basic processing subunits in different schemes. Basic processing subunits may be referred to as “coding units” (“CUs”) in some video coding standards (e.g., AVS3, H.265 / HEVC, or H.266 / VVC), or as “blocks” in others (e.g., MPEG family, H.261, H.263, or H.264 / AVC). The size of a basic processing subunit may be the same as or smaller than the size of a basic processing unit. Similar to a basic processing unit, a basic processing subunit is also a logical unit that may include a set of different types of video data (e.g., Y, Cb, Cr, and associated syntax elements) stored in computer memory (e.g., in a video frame buffer). The operations performed on the basic processing subunits can be repeatedly performed on their luminance and chrominance components. This division can be performed at further levels as needed for processing, and different schemes can be used to divide the basic processing units at different stages. At the leaf nodes of the partition structure, the coding information required for the corresponding coding mode (e.g., intra-prediction mode or inter-prediction mode), motion information (e.g., reference index, motion vector (MV) etc.), and quantization residual coefficients are sent.

[0043] In some cases, the basic processing unit (BJU) may still be too large to handle at certain operational stages in video coding (e.g., the prediction stage or the transform stage). Therefore, the encoder can further divide the BJU into smaller segments (e.g., referred to as "prediction blocks" or "PBs") at which prediction operations can be performed. Similarly, the encoder can further divide the BJU into smaller segments (e.g., referred to as "transform blocks" or "TBs") at which transform operations can be performed. The partitioning scheme of the same BJU can differ between the prediction and transform stages. For example, the prediction blocks (PBs) and transform blocks (TBs) of the same CU can have different sizes and numbers. The operations in the mode decision stage, prediction stage, and transform stage will be discussed in later paragraphs. Figure 2 and Figure 3 The provided example is described in detail.

[0044] In some implementations, to provide parallel processing capabilities and fault tolerance for video encoding and decoding, an image can be divided into regions for processing, such that the encoding or decoding process for a given region of the image can be independent of information from any other region of the image. In other words, each region of the image can be processed independently. By doing so, the codec can process different regions of the image in parallel, thereby improving encoding efficiency. Furthermore, when data in one region is corrupted during processing or lost during network transmission, the codec can correctly encode or decode other regions of the same image without relying on the corrupted or lost data, thus providing fault tolerance. In some video coding standards, images can be divided into different types of regions. For example, H.265 / HEVC and H.266 / VVC provide two types of regions: "slices" and "tiles." Different images in video sequence 100 can have different partitioning schemes for dividing the image into regions.

[0045] Some standards support two modes of striping. In raster scan striping mode, the strip comprises a sequence of patches in a patch raster scan of the image. In rectangular striping mode, the strip comprises one or more patches that together form a rectangular region of the image, or one or more consecutive CTU rows of a patch that together forms a rectangular region of the image. Patches within a rectangular strip can be scanned in patch raster scan order within the rectangular region corresponding to that strip. For example, in... Figure 1In the image, structure 110 is divided into 16 blocks (4 blocks in columns and 4 blocks in rows) and 3 raster scan strips 114, 116, and 118, whose boundaries are shown as solid lines inside structure 110. Strip 114 includes four basic processing units. Strips 116 and 118 each include six basic processing units. In some embodiments, a sub-image may include one or more strips that commonly cover a rectangular region of the image. It should be noted that... Figure 1 The basic processing units, basic processing sub-units, and blocks and stripes of structure 110 are merely examples and do not imply any limitation on this disclosure.

[0046] Figure 2 A schematic diagram of an exemplary encoder 200 in a video coding system (e.g., AVS3 or H.26x series) consistent with some embodiments of this disclosure is shown. The input video is processed block by block. As described above, in the AVS3 standard, the CTU is the largest block unit and can be as large as 128×128 luma samples (depending on the chroma format, plus the corresponding chroma samples). A CTU can be further divided into CUs using quadtrees, binary trees, or ternary trees. Figure 2 As shown, encoder 200 can receive video sequence 202 generated by a video acquisition device (e.g., a camera). The term "receive" as used herein can refer to any action that receives, inputs, acquires, retrieves, obtains, reads, accesses, or is used for inputting data in any manner. Encoder 200 can encode video sequence 202 into video bitstream 228. Similar to... Figure 1 Video sequence 100 and video sequence 202 may include a set of images arranged in chronological order (referred to as "original images"). Similar to... Figure 1 In structure 110, any raw image of video sequence 202 can be divided into basic processing units, basic processing sub-units, or regions by encoder 200 for processing. In some embodiments, encoder 200 can perform processing at the level of basic processing units of the raw images of video sequence 202. For example, encoder 200 can perform processing iteratively. Figure 2 The process involves encoder 200 encoding basic processing units in one iteration of the process. In some embodiments, encoder 200 can encode regions (e.g., regions of the original image of video sequence 202) in parallel. Figure 1 The strips 14-18 in the image are processed.

[0047] Components 202, 2042, 2044, 206, 208, 210, 212, 214, 216, 226, and 228 can be referred to as the "forward path." In Figure 2In this process, encoder 200 can feed a basic processing unit (referred to as "raw BPU") of the raw image of video sequence 202 to two prediction stages, intra-frame prediction (also known as "intra-image prediction" or "spatial prediction") stage 2042 and inter-frame prediction (also known as "inter-image prediction," "motion-compensated prediction," or "temporal prediction") stage 2044, to perform prediction operations and generate corresponding prediction data 206 and prediction BPU 208. Specifically, encoder 200 can receive the raw BPU and prediction reference 224, which can be generated from the reconstruction path of previous iterations of the process.

[0048] The purpose of the intra-frame prediction phase 2042 and the inter-frame prediction phase 2044 is to reduce information redundancy by extracting prediction data 206 from prediction data 206 and prediction reference 224 that can be used to reconstruct the original BPU as the predicted BPU 208. In some embodiments, intra-frame prediction can use pixels from one or more already encoded neighboring BPUs in the same image to predict the current BPU. That is, the prediction reference 224 in intra-frame prediction can include neighboring BPUs, so that spatially adjacent samples can be used to predict the current block. Intra-frame prediction can reduce the inherent spatial redundancy of the image.

[0049] In some embodiments, inter-frame prediction can use regions from one or more already encoded images (“reference images”) to predict the current BPU. That is, prediction reference 224 in inter-frame prediction can include encoded images. Inter-frame prediction can reduce the inherent temporal redundancy of images.

[0050] In the forward path, encoder 200 performs prediction operations in the intra-frame prediction phase 2042 and the inter-frame prediction phase 2044. For example, in the intra-frame prediction phase 2042, encoder 200 may perform intra-frame prediction. For the original BPU of the image being encoded, prediction reference 224 may include one or more adjacent BPUs that have been encoded (in the forward path) and reconstructed (in the reconstruction path) in the same image. Encoder 200 can generate predicted BPU 208 by interpolating adjacent BPUs. Interpolation techniques may include, for example, linear interpolation or interpolation, polynomial interpolation or interpolation, etc. In some embodiments, encoder 200 may perform interpolation at the pixel level, for example, by interpolating to predict the value of the corresponding pixel for each pixel of BPU 208. The adjacent BPUs used for interpolation can be located in various directions relative to the original BPU, such as in the vertical direction (e.g., at the top of the original BPU), the horizontal direction (e.g., to the left of the original BPU), the diagonal direction (e.g., at the lower left, lower right, upper left, or upper right of the original BPU), or any direction defined in the video coding standard used. For intra-frame prediction, prediction data 206 may include, for example, the location (e.g., coordinates) of the adjacent BPUs used, the size of the adjacent BPUs used, the interpolation parameters, the orientation of the adjacent BPUs used relative to the original BPU, etc.

[0051] In another example, during the inter-frame prediction phase 2042, encoder 200 can perform inter-frame prediction. For the original BPU of the current image, prediction reference 224 may include one or more images (referred to as "reference images") that have been encoded (in the forward path) and reconstructed (in the reconstruction path). In some embodiments, the reference images can be encoded and reconstructed on a BPU-by-BPU basis. For example, the encoder can add the reconstructed residual BPU 222 to the prediction BPU 208 to generate a reconstructed BPU. When all reconstructed BPUs for the same image have been generated, the encoder can generate a reconstructed image as the reference image. Encoder 200 can perform a "motion estimation" operation to search for matching regions within the range of the reference image (referred to as a "search window"). The position of the search window in the reference image can be determined based on the position of the original BPU in the current image. For example, the search window can be centered at a position in the reference image that has the same coordinates as the original BPU in the current image and can extend outward by a predetermined distance. When encoder 200 identifies a region similar to the original BPU within the search window (e.g., using the PEL recursive algorithm, block matching algorithm, etc.), the encoder can determine such a region as a matching region. The matching region can have a different size than the original BPU (e.g., less than, equal to, greater than, or with a different shape). This is because the reference image and the current image are temporally separated on the timeline (e.g., as...). Figure 1As shown), the matching region can be considered to "move" to the original BPU's location over time. The encoder can record the direction and distance of this movement as a "motion vector (MV)". When using multiple reference images (e.g., such as...), Figure 1 In the image 106, encoder 200 can search for matching regions and determine the associated MV for each reference image. In some embodiments, encoder 200 can assign weights to the pixel values ​​of the matching regions of each matching reference image.

[0052] Motion estimation can be used to identify various types of motion, such as translation, rotation, scaling, etc. For inter-frame prediction, prediction data 206 may include, for example, a reference index, the location (e.g., coordinates) of the matching region, the MV associated with the matching region, the number of reference images, the weights associated with the reference images, or other motion information.

[0053] To generate the predicted BPU 208, encoder 200 can perform a "motion compensation" operation. Motion compensation can be used to reconstruct the predicted BPU 208 based on the predicted data 206 (e.g., MV) and the predicted reference 224. For example, encoder 200 can move the matching region of the reference image according to the MV, where encoder 200 can predict the original BPU of the current image. When using multiple reference images (e.g., such as...), Figure 1 In the image 106), encoder 200 can move the matching region of the reference image according to the individual MV and average pixel values ​​of the matching region. In some embodiments, if encoder 200 has already assigned weights to the pixel values ​​of the matching regions of the respective matching reference images, encoder 200 can add the weighted sum of the pixel values ​​of the moved matching regions.

[0054] In some embodiments, inter-frame prediction may utilize unidirectional or bidirectional prediction, and may be either unidirectional or bidirectional. Unidirectional inter-frame prediction may use one or more reference images in the same temporal direction relative to the current image. For example, Figure 1 Image 104 in the image is a one-way inter-frame prediction image, where the reference image (i.e., image 102) precedes image 104. In one-way prediction, only one MV pointing to a reference image is used to generate the prediction signal for the current block.

[0055] On the other hand, bidirectional inter-frame prediction can use one or more reference images in two temporal directions relative to the current image. For example, Figure 1Image 106 in the image is a bidirectional inter-frame prediction image, where reference images (e.g., images 104 and 08) are in the opposite time direction relative to image 104. In bidirectional prediction, two MVs, each pointing to its own reference image, are used to generate the prediction signal for the current block. After generating video bitstream 228, the MVs and reference indices can be sent to the decoder in video bitstream 228 to identify where one or more prediction signals for the current block originate.

[0056] For inter-frame prediction CU, motion parameters may include the MV increment, reference image index, and reference image list index, or other additional information required to encode the features to be used. Motion parameters can be signaled explicitly or implicitly. In AVS3, under certain inter-frame coding modes (such as skip mode or direct mode), motion parameters (e.g., MV increment and reference image index) are not encoded and signaled in the video bitstream 228. Instead, motion parameters can be derived on the decoder side using the same rules defined in encoder 200. Details of skip mode and direct mode will be discussed in the following paragraphs.

[0057] Following the intra-frame prediction phase 2042 and the inter-frame prediction phase 2044, in the mode decision phase 230, the encoder 200 can select a prediction mode (e.g., one of intra-frame prediction or inter-frame prediction) for the current iteration of the process. For example, the encoder 200 can execute a rate-distortion optimization method, whereby the encoder 200 selects a prediction mode based on the bit rate of the candidate prediction mode and the distortion of the reconstructed reference image under the candidate prediction mode to minimize the value of the cost function. Depending on the selected prediction mode, the encoder 200 can generate a corresponding prediction BPU 208 (e.g., prediction block) and prediction data 206.

[0058] In some embodiments, the predicted BPU 208 may be the same as the original BPU. However, due to non-ideal prediction and reconstruction operations, the predicted BPU 208 is typically slightly different from the original BPU. To record such differences, after generating the predicted BPU 208, the encoder 200 may subtract it from the original BPU to generate a residual BPU 210, also known as the prediction residual.

[0059] For example, encoder 200 can subtract the pixel value (e.g., grayscale or RGB value) of predicted BPU 208 from the value of the corresponding pixel in the original BPU. Each pixel of residual BPU 210 can have a residual value as the result of this subtraction between the corresponding pixel in the original BPU and predicted BPU 208. Compared to the original BPU, predicted data 206 and residual BPU 210 can have fewer bits, but they can be used to reconstruct the original BPU without significant quality degradation. Therefore, the original BPU is compressed.

[0060] After generating the residual BPU 210, the encoder 200 can feed the residual BPU 210 to the transform stage 212 and the quantization stage 214 to produce quantized residual coefficients 216. To further compress the residual BPU 210, in the transform stage 212, the encoder 200 can reduce its spatial redundancy by decomposing the residual BPU 210 into a set of two-dimensional “basic patterns”. Each basic pattern is associated with a “transform coefficient”. The basic patterns can have the same size (e.g., the size of the residual BPU 210), and each basic pattern can represent a frequency component of the residual BPU 210 (e.g., the frequency of brightness variation). None of the basic patterns can be reproduced from any combination of any other basic patterns (e.g., a linear combination). In other words, the decomposition decomposes the variations of the residual BPU 210 into the frequency domain. This decomposition is analogous to the discrete Fourier transform of a function, where the basic images are analogous to the basic functions of the discrete Fourier transform (e.g., trigonometric functions), and the transform coefficients are analogous to the coefficients associated with the basic functions.

[0061] Different transformation algorithms can use different basic patterns. Various transformation algorithms can be used in the transformation stage 212, such as discrete cosine transform, discrete sine transform, etc. The transformation at transformation stage 212 is reversible. That is, the encoder 200 can recover the residual BPU 210 through the inverse operation of the transformation (called the "inverse transform"). For example, to recover the pixels of the residual BPU 210, the inverse transform can be to multiply the values ​​of the corresponding pixels of the basic pattern by the corresponding correlation coefficients and sum the products to produce a weighted sum. For video coding standards, the encoder 200 and the corresponding decoder (e.g., Figure 3 Both encoder 200 and decoder 300 can use the same transform algorithm (and therefore have the same basic pattern). Therefore, encoder 200 can record only the transform coefficients, from which the decoder can reconstruct the residual BPU 210 without receiving the basic pattern from encoder 200. Transform coefficients can have fewer bits than residual BPU 210, but they can be used to reconstruct residual BPU 210 without significant quality degradation. Therefore, residual BPU 210 is further compressed.

[0062] The encoder can further compress the transform coefficients during the quantization stage 214. During the transform process, different fundamental patterns can represent different frequencies of change (e.g., brightness change frequencies). Because the human eye is generally better at recognizing low-frequency changes, the encoder can ignore information about high-frequency changes without causing significant quality degradation in decoding. For example, in the quantization stage 214, the encoder 200 can generate quantization residual coefficients 216 by dividing each transform coefficient by an integer value (called a "quantization parameter") and rounding the quotient to its nearest integer. After such an operation, some transform coefficients of the high-frequency fundamental patterns can be converted to zero, and the transform coefficients of the low-frequency fundamental patterns can be converted to smaller integers. The encoder can ignore the zero-valued quantization residual coefficients 216, thereby further compressing the transform coefficients. This quantization process is also reversible, where the quantization residual coefficients 216 can be reconstructed into transform coefficients in the inverse operation of quantization (called "inverse quantization").

[0063] Because encoder 200 ignores the remainder of the division during rounding, quantization stage 214 may be lossy. Typically, quantization stage 214 contributes the most to information loss during encoding. The greater the information loss, the fewer bits are required for the quantization residual coefficients 216. To obtain different levels of information loss, encoder 200 can use different quantization parameter values ​​or any other parameters of the quantization process.

[0064] Encoder 200 can feed the prediction data 206 and quantization residual coefficients 216 to the binary encoding stage 226 to generate a video bitstream 228 to complete the forward path. In the binary encoding stage 226, encoder 200 216 can use binary encoding techniques to encode the prediction data 206 and quantization residual coefficients, such as entropy coding, variable-length coding, arithmetic coding, Huffman coding, context-adaptive binary arithmetic coding (CABAC), or any other lossless or lossy compression algorithm.

[0065] For example, the CABAC encoding process in binary encoding stage 226 may include a binarization step, a context modeling step, and a binary arithmetic encoding step. If the syntax elements are not binary, encoder 200 first maps the syntax elements to a binary sequence. Encoder 200 can choose a context encoding mode or a bypass encoding mode for encoding. In some embodiments, for the context encoding mode, the probability model of the binary (bin) to be encoded is selected by the "context," which refers to previously encoded syntax elements. The bin and the selected context model are then passed to the arithmetic encoding engine, which encodes the bin and updates the corresponding probability distribution of the context model. In some embodiments, for the bypass encoding mode, the bin is encoded with a fixed probability (e.g., a probability equal to 0.5) without selecting a probability model via the "context." In some embodiments, a bypass encoding mode is selected for a particular bin to accelerate the entropy encoding process with negligible loss in encoding efficiency.

[0066] In some embodiments, in addition to the prediction data 206 and the quantization residual coefficients 216, the encoder 200 may encode other information in the binary encoding stage 226, such as the prediction mode selected in the prediction stage (e.g., intra-frame prediction stage 2042 or inter-frame prediction stage 2044), parameters of the prediction operation (e.g., intra-frame prediction mode, motion information, etc.), the transform type at the transform stage 212, parameters of the quantization process (e.g., quantization parameters), encoder control parameters (e.g., bit rate control parameters), etc. That is, the encoded information can be sent to the binary encoding stage 226 to further reduce the bit rate before being packaged into the video bitstream 228. The encoder 200 can use the output data of the binary encoding stage 226 to generate the video bitstream 228. In some embodiments, the video bitstream 228 can be further packaged for network transmission.

[0067] Components 218, 220, 333, 224, 232, and 234 may be referred to as "reconstruction paths." Reconstruction paths can be used to ensure that encoder 200 and its corresponding decoder (e.g., Figure 3 The decoder 300 in the middle uses the same reference data for prediction.

[0068] In this process, after quantization stage 214, encoder 200 can feed the quantized residual coefficients 216 to inverse quantization stage 218 and inverse transform stage 220 to generate reconstruction residual BPU 222. In inverse quantization stage 218, encoder 200 can perform inverse quantization on the quantized residual coefficients 216 to generate reconstruction transform coefficients. In inverse transform stage 220, encoder 200 can generate reconstruction residual BPU 222 based on the reconstruction transform coefficients. Encoder 200 can add reconstruction residual BPU 222 to prediction BPU 208 to generate prediction reference 224 to be used in prediction stages 2042 and 2044 in the next iteration.

[0069] In the reconstruction path, if intra-frame prediction mode has been selected in the forward path, encoder 200 can directly feed prediction reference 224 (e.g., the current BPU that has been encoded and reconstructed in the current image) to intra-frame prediction stage 2042 for later use (e.g., for interpolating the next BPU of the current image) after generating prediction reference 224. If inter-frame prediction mode has been selected in the forward path, encoder 200 can feed prediction reference 224 to loop filtering stage 232 after generating prediction reference 224 (e.g., the current image for which all BPUs have been encoded and reconstructed). At this location, encoder 200 can apply a loop filter to prediction reference 224 to reduce or eliminate distortions introduced by inter-frame prediction (e.g., block artifacts). Encoder 200 can apply various loop filter techniques at loop filtering stage 232, such as deblocking, sample adaptive offset (SAO), adaptive loop filter (ALF), etc. In SAO, after the deblocking filter, a nonlinear amplitude mapping is introduced in the inter-frame prediction loop to reconstruct the original signal amplitude using a lookup table, which is described by some additional parameters determined by histogram analysis on the encoder side.

[0070] The loop-filtered reference image can be stored in buffer 234 (or "decoded image buffer") for later use (e.g., as an inter-frame prediction reference image for future images of video sequence 202). Encoder 200 can store one or more reference images in buffer 234 to be used in inter-frame prediction stage 2044. In some embodiments, encoder 200 can encode parameters of the loop filter (e.g., loop filter strength) as well as quantization residual coefficients 216, prediction data 206, and other information at binary encoding stage 226.

[0071] Encoder 200 can iteratively execute the process discussed above to encode each raw BPU (in the forward path) of the original image and generate a prediction reference 224 for encoding the next raw BPU (in the reconstruction path) of the original image. After encoding all raw BPUs of the original image, encoder 200 can continue to encode the next image in video sequence 202.

[0072] It should be noted that other variations of the encoding process can be used to encode video sequence 202. In some embodiments, the encoder 200 may perform the stages of the process in different orders. In some embodiments, one or more stages of the encoding process may be combined into a single stage. In some embodiments, a single stage of the encoding process may be divided into multiple stages. For example, transform stage 212 and quantization stage 214 may be combined into a single stage. In some embodiments, the encoding process may include... Figure 2 Additional stages not shown. In some embodiments, the encoding process may be omitted. Figure 2 One or more stages in the process.

[0073] For example, in some embodiments, encoder 200 can operate in a transform skip mode. In transform skip mode, transform stage 212 is bypassed, and a transform skip flag is signaled to the TB. This can improve compression of some types of video content, such as computer-generated images or graphics mixed with camera view content (e.g., scrolling text). Furthermore, encoder 200 can also operate in a lossless mode. In lossless mode, transform stage 212, quantization stage 214, and other processing that affects the decoded image (e.g., SAO and deblocking filters) are bypassed. The residual signal from intra-frame prediction stage 2042 or inter-frame prediction stage 2044 is fed to binary encoding stage 226 using the same neighborhood context applied to the quantization transform coefficients. This allows for mathematically lossless reconstruction. Therefore, both transform and transform skip residual coefficients are encoded in non-overlapping CGs. That is, each CG may include one or more transform residual coefficients, or one or more transform skip residual coefficients.

[0074] Figure 3 A block diagram of an exemplary decoder 300 for a video encoding system (e.g., the H.26x series) consistent with some embodiments of this disclosure is shown. Decoder 300 can perform... Figure 2 The compression process corresponds to the decompression process. The corresponding stages of the compression and decompression processes are described in [the original text]. Figure 2 and Figure 3 The same numbers are used to mark them.

[0075] In some embodiments, the decompression process can be similar to Figure 2The reconstruction path in the code. Decoder 300 can correspondingly decode video bitstream 228 into video stream 304. Video stream 304 can be very similar to... Figure 2 The video sequence 202 in the video. However, due to the compression and decompression processes (e.g., Figure 2 Information loss during the quantization stage 214) may cause video stream 304 to differ from video sequence 202. Similar to... Figure 2 The encoder 200 and decoder 300 can perform decoding processing at the level of a basic processing unit (BPU) for each image encoded in the video bitstream 228. For example, the decoder 300 can perform the process iteratively, where the decoder 300 can decode a basic processing unit in one iteration. In some embodiments, the decoder 300 can perform the decoding process in parallel for a region (e.g., stripes 114-118) of each image encoded in the video bitstream 228.

[0076] exist Figure 3 In the binary decoding stage 302, decoder 300 can feed a portion of the video bitstream 228 associated with the basic processing unit (referred to as the "coded BPU") of the encoded image to the binary decoding stage 302. In the binary decoding stage 302, decoder 300 can unpack and decode the video bitstream into prediction data 206 and quantization residual coefficients 216. Decoder 300 can use the prediction data 206 and quantization residual coefficients to reconstruct the video stream 304 corresponding to the video bitstream 228.

[0077] Decoder 300 can perform the inverse operation of the binary encoding technique used by encoder 200 (e.g., entropy coding, variable-length coding, arithmetic coding, Huffman coding, context-adaptive binary arithmetic coding, or any other lossless compression algorithm) in binary decoding stage 302. In some embodiments, in addition to prediction data 206 and quantization residual coefficients 216, decoder 300 can decode other information in binary decoding stage 302, such as prediction mode, parameters of prediction operation, transform type, parameters of quantization process (e.g., quantization parameters), encoder control parameters (e.g., bit rate control parameters), etc. In some embodiments, if video bitstream 228 is transmitted in packets over a network, decoder 300 can unpack it before feeding video bitstream 228 to binary decoding stage 302.

[0078] Decoder 300 can feed the quantized residual coefficients 216 to the inverse quantization stage 218 and the inverse transform stage 220 to generate the reconstructed residual BPU 333. Decoder 300 can feed the prediction data 206 to the intra-frame prediction stage 2042 and the inter-frame prediction stage 2044 to generate the predicted BPU 208. Specifically, for the coding basic processing unit (referred to as the "current BPU") of the decoded coded image (referred to as the "current image"), the prediction data 206 decoded from the binary decoding stage 302 of decoder 300 can include various types of data depending on the prediction mode used by encoder 200 to encode the current BPU. For example, if intra-frame prediction is used by encoder 200 to encode the current BPU, the prediction data 206 can include encoded information such as prediction mode indicators (e.g., flag values) indicating intra-frame prediction, parameters of the intra-frame prediction operation, etc. Parameters for the intra-frame prediction operation may include, for example, the positions (e.g., coordinates) of one or more neighboring BPUs used as references, the sizes of the neighboring BPUs, interpolation parameters, and the orientations of the neighboring BPUs relative to the original BPU. In another example, if inter-frame prediction is used by encoder 200 to encode the current BPU, the prediction data 206 may include encoded information such as prediction mode indicators (e.g., flag values) indicating inter-frame prediction, parameters for the inter-frame prediction operation, etc. Parameters for the inter-frame prediction operation may include, for example, the number of reference images associated with the current BPU, the weights associated with each reference image, the positions (e.g., coordinates) of one or more matching regions in each reference image, and one or more MVs associated with each matching region, etc.

[0079] Therefore, the prediction mode indicator can be used to select whether to invoke the inter-frame prediction module or the intra-frame prediction module. Then, the parameters of the corresponding prediction operation can be sent to the corresponding prediction module to generate the prediction signal. Specifically, based on the prediction mode indicator, the decoder 300 can determine whether to perform intra-frame prediction in the intra-frame prediction stage 2042 or inter-frame prediction in the inter-frame prediction stage 2044. The details of performing such intra-frame or inter-frame prediction are detailed in... Figure 2 As described in the text, it will not be repeated here. After performing this intra-frame prediction or inter-frame prediction, the decoder 300 can generate the predicted BPU208.

[0080] After generating the prediction BPU 208, the decoder 300 can add the reconstructed residual BPU 333 to the prediction BPU 208 to generate the prediction reference 224. In some embodiments, the prediction reference 224 can be stored in a buffer (e.g., a decoded image buffer in computer memory). The decoder 300 can feed the prediction reference 224 to the intra-frame prediction stage 2042 and the inter-frame prediction stage 2044 for use in performing prediction operations in the next iteration.

[0081] For example, if intra-frame prediction is used to decode the current BPU in intra-frame prediction stage 2042, then after generating prediction reference 224 (e.g., the decoded current BPU), decoder 300 can directly feed prediction reference 224 to intra-frame prediction stage 2042 for later use (e.g., for interpolating the next BPU of the current image). If inter-frame prediction is used to decode the current BPU in inter-frame prediction stage 2044, then after generating prediction reference 224 (e.g., a reference image where all BPUs have been decoded), decoder 300 can feed prediction reference 224 to loop filter stage 232 to reduce or eliminate distortion (e.g., block artifacts). Furthermore, prediction data 206 may also include parameters of the loop filter (e.g., loop filter strength). Therefore, decoder 300 can, as... Figure 2 The illustrated method applies a loop filter to prediction reference 224. For example, a loop filter such as deblocking, SAO, or ALF can be applied to form a loop-filtered reference image, which is stored in buffer 234 (e.g., a decoded image buffer (DPB) in computer memory) for later use (e.g., inter-frame prediction stage 2044 for predicting future encoded frames of video bitstream 228). In some embodiments, the reconstructed image from buffer 234 can also be sent to a display, such as a TV, PC, smartphone, or tablet, for viewing by an end user.

[0082] Decoder 300 can iteratively perform the decoding process to decode each encoded BPU of the encoded image and generate a prediction reference 224 for encoding the next encoded BPU of the encoded image. After decoding all encoded BPUs of the encoded image, decoder 300 can output the image to video stream 304 for display and continue decoding the next encoded image in video bit stream 228.

[0083] Figure 4 This is a block diagram of an exemplary apparatus 400 for encoding or decoding video according to some embodiments of this disclosure. Figure 4As shown, device 400 may include processor 402. When processor 402 executes the instructions described herein, device 400 may become a dedicated machine for video encoding or decoding. Processor 402 may be any type of circuit capable of manipulating or processing information. For example, processor 402 may include any combination of any number of central processing units (or “CPU”), graphics processing units (or “GPU”), neural processing units (“NPU”), microcontroller units (“MCU”), optical processors, programmable logic controllers, microprocessors, digital signal processors, intellectual property (IP) cores, programmable logic arrays (PLAs), programmable array logic (PALs), general-purpose array logic (GALs), complex programmable logic devices (CPLDs), field-programmable gate arrays (FPGAs), system-on-a-chip (SoCs), application-specific integrated circuits (ASICs), etc. In some embodiments, processor 402 may also be a group of processors grouped into individual logic components. For example, as Figure 4 As shown, processor 402 may include multiple processors, including processor 402a, processor 402b and processor 402n.

[0084] The device 400 may also include a memory 404 configured to store data (e.g., a set of instructions, computer code, intermediate data, etc.). For example, such as Figure 4 As shown, the stored data may include program instructions (e.g., for implementing...) Figure 2 and Figure 3 The processor 402 can access the program instructions and data for processing (e.g., video sequence 202, video bitstream 228, or video stream 304). The processor 402 can access the program instructions and data for processing (e.g., via bus 410) and execute the program instructions to perform operations or manipulations on the data for processing. The memory 404 can include a high-speed random access memory device or a non-volatile memory device. In some embodiments, the memory 404 can include any combination of any number of random access memories (RAM), read-only memories (ROM), optical discs, magnetic disks, hard disks, solid-state drives, flash drives, secure digital cards (SD cards), memory sticks, compact flash (CF) cards, etc. The memory 404 can also be a group of memories grouped into single logical components. Figure 4 (Not shown in the image).

[0085] Bus 410 may be a communication device for transmitting data between components within device 400, such as an internal bus (e.g., CPU-memory bus), an external bus (e.g., a Universal Serial Bus port, a Peripheral Component Interconnect Fast Port), or the like.

[0086] For ease of explanation and to avoid ambiguity, the processor 402 and other data processing circuitry are collectively referred to as "data processing circuitry" in this disclosure. The data processing circuitry may be implemented entirely in hardware, or as a combination of software, hardware, or firmware. Furthermore, the data processing circuitry may be a single, independent module, or it may be wholly or partially integrated into any other component of the device 400.

[0087] The device 400 may also include a network interface 406 to provide wired or wireless communication with a network (e.g., the Internet, intranet, local area network, mobile communication network, etc.). In some embodiments, the network interface 406 may include any combination of any number of network interface controllers (NICs), radio frequency (RF) modules, transceivers, transceivers, modems, routers, gateways, wired network adapters, wireless network adapters, Bluetooth adapters, infrared adapters, near field communication (“NFC”) adapters, cellular network chips, etc.

[0088] In some embodiments, optionally, the device 400 may further include a peripheral interface 408 to provide connectivity to one or more peripheral devices. Figure 4 As shown, peripheral devices may include, but are not limited to, cursor control devices (e.g., mouse, touchpad, or touchscreen), keyboards, displays (e.g., cathode ray tube displays, liquid crystal displays, or light-emitting diode displays), video input devices (e.g., cameras or input interfaces coupled to video files), etc.

[0089] It should be noted that the video codec (e.g., the codec that performs the process of encoder 200 or decoder 300) can be implemented as any combination of any software or hardware modules in device 400. For example, some or all stages of process encoder 200 or decoder 300 can be implemented as one or more software modules of device 400, such as program instructions that can be loaded into memory 404. As another example, some or all stages of process encoder 200 or decoder 300 can be implemented as one or more hardware modules of device 400, such as dedicated data processing circuitry (e.g., FPGA, ASIC, NPU, etc.).

[0090] As described above, different modes can be used to implement the video encoding or decoding process. In some normal inter-frame coding modes, encoder 200 can signal the video (MV) for each CU, the corresponding reference image index for each reference image list, the reference image list usage flag, or other information. On the other hand, when encoding CUs using skip mode and / or direct mode, motion information, including reference indices and motion vectors, is not signaled to decoder 300 in the video bitstream 228. Instead, motion information can be derived at decoder 300 using the same rules as encoder 200.

[0091] For example, when encoding a CU in skip mode, the CU is associated with a PU and there are no significant residual coefficients, no encoded MV increments, or a reference image index. In skip mode, signaling of residual data can be skipped by setting the residual to zero. In direct mode, residual data is transmitted while deriving motion information and partitioning. Therefore, compared to inter-frame modes that signal motion information, bits dedicated to motion information can be saved in either skip or direct modes.

[0092] In some embodiments, encoder 200 and decoder 300 need to follow the rules specified in the standard to derive motion vectors and reference indices to perform inter-frame prediction 2044. In some embodiments, skip mode and direct mode can share the same motion information derivation rules. The derivation of motion information can be based on spatially or temporally adjacent blocks. Therefore, skip mode and direct mode are suitable when the motion information of the current block is close to the motion information of the spatially or temporally adjacent blocks.

[0093] For example, in AVS3, skip mode or direct mode allows motion information (e.g., reference index, mv, etc.) to be inherited from spatial or temporal (co-local) neighbors. A candidate list of motion candidates can be generated from these neighbors. In some embodiments, to derive motion information for inter-frame prediction 2044 in skip mode or direct mode, encoder 200 can first derive the candidate list of motion candidates and select one of the motion candidates to perform inter-frame prediction 2044. When signaling the video bitstream 228, encoder 200 can signal the index of the selected candidate. On the decoder side, decoder 300 can obtain the index parsed from video bitstream 228, derive the same candidate list, and use the same motion candidate to perform inter-frame prediction 2044.

[0094] The candidate list for motion candidates can include multiple candidates obtained based on different methods. For example, in the AVS3 specification, the candidate list can have 12 candidates, including Temporal Motion Vector Prediction (TMVP) candidates, one or more Spatial Motion Vector Prediction (SMVP) candidates, one or more Motion Vector Angle Prediction (MVAP) candidates, and one or more History-Based Motion Vector Prediction (HMVP) candidates. In some embodiments, the encoder or decoder can first export and add TMVP and SMVP candidates from the candidate list. After adding TMVP and SMVP candidates, the encoder or decoder exports and adds MVAP and HMVP candidates. In some embodiments, the number of MVAP candidates stored in the candidate list can vary depending on the number of available directions during the MVAP process. For example, the number of MVAP candidates can be between 0 and a maximum number (e.g., 5). After adding MVAP candidates, one or more HMVP candidates can be added to the candidate list until the total number of candidates reaches a target number (e.g., 12 candidates in the AVS3 specification).

[0095] Figure 5 A flowchart of an exemplary video encoding method 500 consistent with some embodiments of this disclosure is shown. In some embodiments, the video encoding method 500 may be generated by an encoder (e.g., Figure 2 The encoder 200 in the code performs operations to generate a video bitstream associated with a video frame. For example, the encoder can be implemented for processing video sequences (e.g., ...). Figure 2 A device for encoding or transcoding a video sequence (e.g., 202) Figure 4 One or more software or hardware components of the device 400 in the middle are used to generate a bitstream for video frames or video sequences including one or more CUs (e.g., Figure 2 The video bitstream 228 in the video stream. For example, the processor (e.g., Figure 4 The processor 402 in the middle can execute video encoding method 500.

[0096] Referring to video coding method 500, in steps 510-570, the encoder derives a candidate list for inter-frame prediction. In step 510, the encoder stores the TMVP candidate associated with the current CU as one of the motion candidates in the candidate list. In some embodiments, the TMVP can be derived from the MV of a juxtaposed block in a reference frame. Here, a reference frame is specified as the reference frame with reference index 0 in reference image list 1 (i.e., list 1) of B-frames (i.e., bidirectional prediction images) or reference image list 0 (i.e., list 0) of P-frames (i.e., prediction images). When the MV of the juxtaposed block is unavailable, the MV predictor (MVP) derived from the MV of spatially adjacent blocks can be used as the TMVP.

[0097] In step 520, the encoder stores one or more SMVP candidates associated with the current CU as one or more motion candidates in the candidate list. Now refer to Figure 6 The document illustrates exemplary neighboring blocks 620A, 620B, 620C, 620D, 620F, and 620G, consistent with some embodiments of this disclosure, for deriving a spatial motion vector prediction (SMVP) for a CU 610.

[0098] In some embodiments, the candidate list may include three SMVP candidates associated with the current CU. For example... Figure 6 As shown, these SMVP candidates can be derived from adjacent blocks 620F, 620G, 620C, 620B, 620A, and 620D of CU 610. For example, the first SMVP candidate can be a dual prediction candidate, the second SMVP candidate can be a unidirectional prediction candidate with a reference frame in reference image list 0 (i.e., RefPicList0 or list0), and the third SMVP candidate can be a unidirectional prediction candidate with a reference frame in reference image list 1 (i.e., RefPicList 1 or list1). Each reference image list can include zero or more reference images. In some embodiments, the above-mentioned SMVP candidates are set as the first available MV of the six adjacent blocks 620F, 620G, 620C, 620B, 620A, and 620D in a specified order, but this disclosure is not limited thereto.

[0099] Return to reference Figure 5 In step 530, the encoder determines whether the current CU has a width greater than a threshold width (e.g., 8 pixels) or a height greater than a threshold height (e.g., 8 pixels). In response to the encoding unit (step 530 - yes) having a width greater than the threshold width or a height greater than the threshold height, in step 540, the encoder initiates an MVAP process to obtain one or more MVAP candidates. In step 550, the encoder stores the obtained MVAP candidates in a candidate list. Details of the MVAP process will be discussed in the following paragraphs.

[0100] In response to the current CU having a width equal to the threshold width and a height equal to the threshold height (step 530 - No), the encoder disables the MVAP process at step 560. Therefore, steps 540 and 550 are not executed, and the encoder exports a candidate list without storing MVAP candidates in the candidate list.

[0101] In step 570, the encoder stores one or more HMVP candidates associated with the current CU in the candidate list. HMVPs can be derived from motion information of previously encoded or decoded blocks. For example, after encoding (or decoding) an inter-coded block, Figure 2 Encoder 200 (or Figure 3 The decoder 300 can add motion information associated with the encoded / decoded block to the last entry of the HMVP table. In some embodiments, the size of the HMVP table can be set to 8, but this disclosure is not limited thereto. When inserting a new motion candidate into the table, a constrained first-in-first-out (FIFO) rule can be used. Redundancy checks can be applied first to determine if the same motion candidate already exists in the table. If the same motion candidate is found in the table, it can be moved to the last entry of the table instead of inserting a new identical entry. Multiple candidates in the HMVP table serve as HMVP candidates for skip mode and direct mode.

[0102] In some embodiments, the encoder may first check whether the HMVP candidate stored in the HMVP table is the same as any motion candidate in the candidate list. If the HMVP is different from a motion candidate in the candidate list, the encoder stores the HMVP candidate in the candidate list. This process may be referred to as the "pruning" process.

[0103] For example, the HMVP table can be checked from its last entry to its first entry. If a candidate in the HMVP table is different from any candidate in the candidate list (e.g., a TMVP or SMVP candidate), the candidate in the HMVP table is added to the candidate list as an HMVP candidate. If a candidate in the HMVP table is the same as either a TMVP or an SMVP candidate, that candidate is not added to the candidate list to avoid redundancy.

[0104] After deriving the candidate list associated with the current CU for inter-frame prediction in steps 510-570, in step 580, the encoder performs inter-frame prediction on the CU based on the motion candidates selected from the candidate list (e.g., Figure 2 Inter-frame prediction 2044). Then, in step 590, the encoder can notify the bitstream associated with the video frame (e.g., Figure 2 The video bitstream (228) may include CUs encoded in skip mode or direct mode and indices of selected motion candidates.

[0105] As described above, the video bitstream 228 generated by the encoder 200 using the video encoding method 500 can be decoded by the decoder 300 through inverse operation. Figure 7 This corresponds to some embodiments of the present invention. Figure 5 An exemplary video decoding method 700 is described in the video encoding method 500. In some embodiments, it can be provided by a decoder (e.g., Figure 3 The decoder 300 in the middle executes video decoding method 700 to decode. Figure 3The video bitstream 228 in the video stream. For example, a decoder can be implemented for bitstreams (e.g., Figure 3 A device for decoding the video bitstream 228 in the video (e.g., Figure 4 One or more software or hardware components of the device 400 in the middle are used to reconstruct video frames or video sequences of a bitstream (e.g., Figure 3 The video stream in the video stream (304). For example, the processor (e.g., Figure 4 The processor 402 in the middle can execute video decoding method 700.

[0106] Referring to video decoding method 700, in step 710, the decoder receives a bitstream (e.g., Figure 3 The bitstream received from the encoder side includes one or more CUs of the video frame, and an index of the selected motion candidate for the CU encoded in skip mode or direct mode.

[0107] In steps 720-780, similar to steps 510-570 of video coding method 500, the decoder also derives the same candidate list for inter-frame prediction. In step 720, the decoder stores the TMVP candidate associated with the current CU as one of the motion candidates in the candidate list. In step 730, the decoder stores one or more SMVP candidates associated with the current CU as one or more motion candidates in the candidate list. In step 740, the decoder determines whether the current CU has a width greater than a threshold width or a height greater than a threshold height. In response to a coding unit having a width greater than the threshold width or a height greater than the threshold height (step 740 - Yes), in step 750, the decoder enables the MVAP process to obtain one or more MVAP candidates associated with the current CU. In step 760, the decoder stores the obtained one or more MVAP candidates in the candidate list. In response to a coding unit having a width equal to the threshold width and a height equal to the threshold height (step 740 - No), the decoder disables the MVAP process at step 770. Therefore, steps 750 and 760 are not performed, and the decoder derives the candidate list without storing one or more MVAP candidates in the candidate list. In step 780, the decoder stores one or more HMVP candidates in the candidates.

[0108] The process of deriving the candidate list in steps 720-780 performed by the decoder is similar to the process in steps 510-570 performed by the encoder, which has been discussed in detail previously and will not be repeated here.

[0109] After deriving a candidate list associated with the current CU used for inter-frame prediction, in step 790, the decoder performs inter-frame prediction on the CU based on the candidate list and the indexes resolved from the bitstream. Using the indexes resolved from the bitstream, the decoder can select the same motion candidates for inter-frame prediction on the decoder side, and thus reconstruct video frames or video sequences of the bitstream including CUs encoded in skip mode or direct mode.

[0110] In the MVAP process mentioned above, a CU is divided into multiple sub-blocks (e.g., 8×8 sub-blocks), and each sub-block has its own motion information. If the MVAP process is applied to multiple CUs with a threshold size (e.g., 8×8), a CU will only include one sub-block. As a result, the MVAP candidates for the sub-blocks of a CU may be the same as the SMVP candidates, leading to redundancy in the candidate list. By applying the MVAP process to CUs larger than the threshold size (e.g., 8×8) in methods 500 and 700, potential redundancy in the candidate lists of skip mode and direct mode can be removed.

[0111] Furthermore, by disabling the MVAP process for CUs with a threshold size, the number of loops used to build the candidate list can be less than that used for larger CUs. Therefore, candidate list construction can be simplified, which can reduce the hardware resources required by the encoder and decoder.

[0112] Figure 8 A flowchart of an exemplary MVAP process 800 associated with an encoding unit, consistent with some embodiments of this disclosure, is shown. Figure 8 As shown, the MVAP process 800 includes steps 810, 820, 830, 842, 844, and 850. In some embodiments, the MVAP mode, as one of the inter-frame prediction modes, can be applied to CUs with a width and height greater than 4 pixels to perform the MVAP process 800.

[0113] In step 810, the encoder 200 or decoder 300 divides the encoding unit into sub-blocks. Now refer to... Figure 9 This illustrates sub-blocks S1-S8 in the coding unit 910 associated with video frame 900 during the MVAP process, consistent with some embodiments of this disclosure. During the MVAP process, CU 910 is divided into sub-blocks S1-S8. In some embodiments, each sub-block S1-S8 is 8×8 in size. For each 8×8 sub-block, motion information including a reference index and the MV is predicted from the reference motion information. Figure 9As shown, the reference motion information of sub-block S3 in the current CU 910 is the motion information of the horizontal and vertical adjacent blocks 920 and 930 of the current CU 910 in five different directions from D0 to D4 (e.g., reference MV). For example, direction D0 is called the horizontal direction, direction D1 is called the vertical direction, direction D2 is called the horizontal upward direction, direction D3 is called the horizontal downward direction, and direction D4 is called the vertical downward direction.

[0114] Figure 10 An exemplary reference motion information list 1000, consistent with some embodiments of this disclosure, is shown for use in the MVAP process. For an M×N CU encoded in MVAP mode, the reference motion information list is populated with motion information from adjacent blocks. The number and size of the reference motion information list 1000 are in units of 4×4 (2M / 4 + 2N / 4 + 1). For example, as... Figure 10 As shown, for the 32×16 CU 910, the reference motion information list 1000 includes 25 4×4 units U0-U24.

[0115] By executing steps 820, 830, 842, and 844, encoder 200 or decoder 300 populates one or more reference cells in reference motion information list 1000 (e.g., ...). Figure 10 Reference units U0-U24 in the code). In step 820, encoder 200 or decoder 300 encodes the unit (e.g., reference units U0-U24). Figure 10 Motion information of one or more adjacent blocks of CU 910 is filled into the reference list (e.g., Figure 10 One or more reference elements in the reference motion information list 1000 (e.g., Figure 10 One or more reference units U0-U24 in the system, if motion information is available.

[0116] Optionally, in Figure 8 In step 820, the available motion information is copied to one of the corresponding reference units U0-U24. For some adjacent blocks, if the adjacent blocks are encoded in intra-frame coding mode, the motion information may be unavailable, and the corresponding reference units U0-U24 remain blank.

[0117] In step 830, to reduce redundant candidates, encoder 200 or decoder 300 checks the availability of each prediction direction from five prediction directions (e.g., Figure 9One or more available directions (D0-D4) can be selected. For example, encoder 200 or decoder 300 can check the availability of the five predicted directions by comparing reference motion information. In some embodiments, to reduce complexity, a subset of 4×4 units U0-U24 is involved in the comparison, rather than comparing the motion information of each of the 4×4 units U0-U24. The subset of 4×4 units U0-U24 can vary depending on the different predicted directions D0-D4.

[0118] exist Figure 10 In one example provided, for direction D0, the MV in units U11 and U9 is compared. For direction D1, the MV in units U13 and U17 is compared. For direction D2, the MV in units U11, U12, and U13 is compared. For direction D3, the MV in units U3, U7, and U9 is compared. For direction D4, the MV in units U17, U21, and U23 is compared. Note that the subset of 4×4 units U0-U24 used in the comparisons disclosed herein is merely an example and is not intended to limit this disclosure. Different subsets may be used in various embodiments.

[0119] When the motion information of subsets of 4×4 cells is different, the corresponding prediction direction is available. For example, if the motion information in cell U11 is different from the motion information in cell U9, the corresponding prediction direction D0 is available, and a MVAP candidate corresponding to direction D0 can be obtained. In some embodiments, if any one of the motion information subsets of 4×4 cells is unavailable, the motion information of the subsets of 4×4 cells is considered to be the same.

[0120] If the motion information of a subset of 4×4 cells is the same, the corresponding prediction direction is unavailable. For example, if the motion information in cell U11 is the same as the motion information in cell U9, the corresponding prediction direction D0 is unavailable, and no MVAP candidate corresponding to direction D0 can be obtained. Optionally, the number of MVAP candidates ranges from 0 to 5, depending on the number of available directions.

[0121] Return to reference Figure 8In steps 842 and 844, encoder 200 or decoder 300 fills in the remaining one or more reference cells where motion information is unavailable based on predefined motion information or motion information in adjacent reference cells. Specifically, in step 842, if motion information associated with the first reference cell is unavailable, encoder 200 or decoder 300 fills in the first reference cell in the reference list (e.g., cell U0) with predefined motion information. In step 844, if motion information associated with the remaining one or more reference cells is unavailable, encoder 200 or decoder 300 fills in the remaining one or more reference cells (e.g., one or more cells U1-U24) with motion information from previously adjacent reference cells filled in the reference list.

[0122] Figure 11A An exemplary process is shown that populates a list of reference motion information for the MVAP process in steps 842 and 844, consistent with some embodiments of this disclosure. In some embodiments, the availability of motion information can be checked from the lower left cell (e.g., cell U0) to the upper right cell (e.g., cell U24). If motion information is unavailable for the first entry in the list of reference motion information (e.g., lower left cell U0), predefined motion information 1110 is populated in the first entry. For example, in some embodiments, encoder 200 or decoder 300 may populate the first reference cell with a zero motion vector and a reference index set to zero. In some other embodiments, encoder 200 or decoder 300 may populate the first reference cell with motion information stored in the last entry of the HMVP table. In still other embodiments, encoder 200 or decoder 300 may populate the first reference cell with motion information of TMVP candidate or SMVP candidate.

[0123] In step 844, if motion information for any of the units U1-U24 is unavailable, motion information can be copied from the adjacent 4×4 units at the bottom or left. For example, if motion information for unit U10 is unavailable, unit U10 is filled with motion information from the bottom adjacent unit U9, such as... Figure 11A As shown. If the motion information of unit U20 is unavailable, unit U20 is filled with motion information from the left adjacent unit U19, as follows. Figure 11A As shown.

[0124] Figure 11B Another exemplary process for filling a list of reference motion information for the MVAP process is shown, consistent with some embodiments of this disclosure. Figure 11B In this embodiment, if the motion information of the lower left unit U0 is unavailable, unit U0 is filled with the first available motion information found in the reference motion information list (e.g., unit U6), such as... Figure 11B As shown.

[0125] and Figure 11B Compared to the previous embodiment, when motion information for the lower left unit U0 is unavailable, by executing the MVAP process 800 and allocating predefined motion information in step 832, there is no need for the encoder 200 or decoder 300 to search. Figure 11B The first available motion information is shown. Therefore, a simplified and hardware-friendly process can be implemented to populate the reference motion information list.

[0126] Return to reference Figure 8 After steps 820-844, each reference cell in the reference motion information list is populated with motion information. Then, in step 850, encoder 200 or decoder 300 may perform the MVAP process to obtain one or more MVAP candidates for each sub-block by using the reference list according to one or more prediction directions.

[0127] In some embodiments, MVAP candidates for each 8×8 sub-block can be predicted from a list of reference motion information based on the selected prediction direction. Figures 12A-12E Exemplary MVAP candidates for each sub-block S1-S8 are shown, consistent with some embodiments of this disclosure. For example... Figure 12A As shown, in the prediction direction D0, the MVAP candidates of sub-blocks S1, S2, S3 and S4 can be motion information filled in reference cell U11, and the MVAP candidates of sub-blocks S5, S6, S7 and S8 can be motion information filled in reference cell U9.

[0128] like Figure 12B As shown, in the prediction direction D1, the MVAP candidates for sub-blocks S1 and S5 can be the motion information filled in reference cell U13, the MVAP candidates for sub-blocks S2 and S6 can be the motion information filled in reference cell U15, the MVAP candidates for sub-blocks S3 and S7 can be the motion information filled in reference cell U17, and the MVAP candidates for sub-blocks S4 and S8 can be the motion information filled in reference cell U19.

[0129] like Figure 12C As shown, in the prediction direction D2, the MVAP candidate of sub-block S5 can be the motion information filled in reference cell U10, the MVAP candidate of sub-blocks S1 and S6 can be the motion information filled in reference cell U12, the MVAP candidate of sub-blocks S2 and S7 can be the motion information filled in reference cell U14, the MVAP candidate of sub-blocks S3 and S8 can be the motion information filled in reference cell U16, and the MVAP candidate of sub-block S4 can be the motion information filled in reference cell U18.

[0130] like Figure 12DAs shown, in the prediction direction D3, the MVAP candidate of sub-block S1 can be the motion information filled in reference cell U9, the MVAP candidate of sub-blocks S2 and S5 can be the motion information filled in reference cell U7, the MVAP candidate of sub-blocks S3 and S6 can be the motion information filled in reference cell U5, the MVAP candidate of sub-blocks S4 and S7 can be the motion information filled in reference cell U3, and the MVAP candidate of sub-block S8 can be the motion information filled in reference cell U1.

[0131] like Figure 12E As shown, in the prediction direction D4, the MVAP candidates for sub-block S1 can be the motion information filled in reference cell U15, the MVAP candidates for sub-blocks S2 and S5 can be the motion information filled in reference cell U17, the MVAP candidates for sub-blocks S3 and S6 can be the motion information filled in reference cell U19, the MVAP candidates for sub-blocks S4 and S7 can be the motion information filled in reference cell U21, and the MVAP candidates for sub-block S8 can be the motion information filled in reference cell U23. Figures 12A-12E As shown, MV prediction can be applied to the 8×8 sub-blocks S1-S8 within the current block. Therefore, MVAP candidates are sub-block level candidates, and different sub-blocks S1-S8 within the current block can have different MVs.

[0132] Figure 13 A flowchart of another exemplary MVAP process 1300 consistent with some embodiments of this disclosure is shown. Compared to MVAP process 800, in MVAP process 1300, encoder 200 or decoder 300 can bypass step 820 and enable the MVAP process for the encoding unit without checking the availability of prediction directions. Therefore, encoder 200 or decoder 300 can derive a candidate list for storing motion candidates based on five prediction directions D0-D4, the motion candidates including five MVAP candidates for each sub-block (e.g., ...). Figures 12A-12E (MVAP candidates shown).

[0133] Figure 14 A flowchart of another exemplary MVAP process 1400 consistent with some embodiments of this disclosure is shown. Figure 8 Compared to or similar to the MVAP process in 800 Figure 13 Compared to the MVAP process 1300, in the MVAP process 1400, the encoder 200 or decoder 300 can perform steps 1410-1430 after filling in the available motion information in step 820.

[0134] In step 1410, encoder 200 or decoder 300 counts the number of one or more reference units filled with available motion information. In step 1420, encoder 200 or decoder 300 determines whether the number of one or more reference units filled with available motion information has reached a predetermined threshold or percentage (e.g., 25% or 50% of the total).

[0135] In response to the number of reference cells filled with available motion information reaching a threshold (step 1420 - Yes), encoder 200 or decoder 300 enables the motion vector angle prediction process for the encoded cells and continues to execute steps 842, 844, and 850. Therefore, encoder 200 or decoder 300 can derive a candidate list of stored motion candidates based on five prediction directions D0-D4, the motion candidates including five MVAP candidates for each sub-block (e.g., ...). Figures 12A-12E (MVAP candidates shown).

[0136] In response to the number of reference cells filled with available motion information being less than a threshold (step 1420 - No), encoder 200 or decoder 300 disables the MVAP process for the current CU in step 1430. Therefore, encoder 200 or decoder 300 derives a candidate list instead of storing MVAP candidates in the candidate list.

[0137] In some embodiments, the motion information comparison performed in step 830 is complex for hardware implementation. By eliminating Figure 13 Comparison step 830 in MVAP process 1300 or Figure 14 The MVAP process 1400 in the middle can simplify the derivation of MVAP candidates, which reduces computational complexity and provides more efficient processing.

[0138] exist Figure 13 In the MVAP process 1300, the step of filling the reference motion information list can be simplified to steps 820, 842, and 844. In step 820, available motion information is copied and filled into the reference cells. In steps 842 and 844, the remaining reference cells due to unavailable motion information can be filled with predetermined motion information or motion information filled in adjacent reference cells.

[0139] exist Figure 14 In the MVAP process 1400, if the available motion information in neighboring blocks is insufficient to predict accurate MVAP candidates, the MVAP process can be disabled and terminated. Therefore, with Figure 13 Compared to the MVAP process 1300, coding efficiency can be improved by slightly increasing coding complexity.

[0140] In view of the above description, as proposed in various embodiments of this disclosure, the MVAP process can be enabled or disabled depending on the size of the coding unit by using a simplified MVAP process to encode and decode the bitstream in skip mode or direct mode. Therefore, encoding and decoding complexity can be reduced. Furthermore, in some embodiments, by allocating predefined motion information when the first entry in the reference list is unavailable, it is not necessary to search for the first available motion information in the reference list when submitting the reference list. Therefore, a simplified and hardware-friendly MVAP process can be implemented. Moreover, in some embodiments, the motion information comparison step in the MVAP process can be eliminated or replaced with a simplified method to further reduce encoding and decoding complexity.

[0141] The various exemplary embodiments described herein are described in the general context of method steps or processes that may be implemented in one aspect by a computer program product embodied in a computer-readable medium, including computer-executable instructions, such as program code, that are executed by a computer in a networked environment. Typically, program modules may include routines, programs, objects, components, data structures, etc., that perform a particular task or implement a particular abstract data type. The computer-executable instructions, associated data structures, and program modules represent examples of program code for performing steps of the methods disclosed herein. A particular sequence of such executable instructions or associated data structures represents examples of corresponding actions for implementing the functionality described in such steps or processes.

[0142] In some embodiments, a non-transitory computer-readable storage medium including instructions is also provided, and these instructions can be executed by a device (such as the disclosed encoder and decoder) to perform the methods described above. Common forms of non-transitory media include, for example, floppy disks, hard disks, solid-state drives, magnetic tape or any other magnetic data storage media, CD-ROMs, any other optical data storage media, any physical media with a perforated pattern, RAM, PROMs and EPROMs, FLASH-EPROMs or any other flash memory, NVRAM, caches, registers, any other memory chips or cassettes, and their networking versions. The device may include one or more processors (CPUs), input / output interfaces, network interfaces, or memory.

[0143] It should be noted that relational terms in this document, such as “first” and “second”, are used only to distinguish an entity or operation from another entity or operation and do not require or imply any actual relationship or order between these entities or operations. Furthermore, the words “including,” “having,” “containing,” and “comprising,” and other similar forms, are semantically equivalent and open-ended, because one or more items following any of these words do not imply an exhaustive list of such items or that the list is limited to only one or more items.

[0144] As used herein, unless otherwise specified, the term "or" includes all possible combinations except where impractical. For example, if a database is declared to include A or B, then unless otherwise expressly stated or impractical, the database may include A, or B, or A and B. As a second example, if a database is declared to include A, B, or C, then unless otherwise expressly stated or impractical, the database may include A, or B, or C, or A and B, or A and C, or B and C, or A, B, and C.

[0145] It should be understood that the above embodiments can be implemented by hardware, software (program code), or a combination of hardware and software. If implemented by software, it can be stored on the above-described computer-readable medium. When executed by a processor, the software can perform the disclosed methods. The computing units and other functional units described in this disclosure can be implemented by hardware, software, or a combination of hardware and software. Those skilled in the art will also understand that the above-described multiple modules / units can be combined into one module / unit, and each of the above-described modules / units can be further divided into multiple sub-modules / sub-units.

[0146] In the foregoing description, numerous specific details have been described with reference to embodiments, which may vary with implementation. Certain modifications and changes may be made to the described embodiments. Other embodiments will be apparent to those skilled in the art from the description and implementation herein. This description and embodiments are to be considered exemplary only, and the true scope and spirit of the invention are indicated by the appended claims. The sequence of steps shown in the accompanying drawings is for illustrative purposes only and is not intended to be limited to any particular sequence of steps. Therefore, those skilled in the art will understand that these steps may be performed in different orders while implementing the same method.

[0147] The embodiments may be further described using the following terms: 1. A video decoding method, characterized in that it includes: Receive a bitstream comprising encoding units of video frames, the encoding units being encoded in either a skip mode or a direct mode; Determine whether the encoding unit has a width greater than the threshold width or a height greater than the threshold height; In response to the encoding unit having a width greater than a threshold width or a height greater than a threshold height, a motion vector angle prediction process is enabled to store one or more motion vector angle prediction candidates in a candidate list, the candidate list storing multiple motion candidates associated with the encoding unit; and Inter-frame prediction is performed on the coding unit based on the candidate list and the index parsed from the bitstream.

[0148] 2. The method described in Clause 1 further includes: In response to another encoding unit having a width equal to the threshold width and a height equal to the threshold height, the motion vector angle prediction process is disabled to derive the candidate list without storing any motion vector angle prediction candidates in the candidate list, which stores the plurality of motion candidates associated with the other encoding unit.

[0149] 3. The method described pursuant to Clause 1 or Clause 2 further includes: The candidate list for the inter-frame prediction is exported as follows: Store the time motion vector prediction as one of the motion candidates in the candidate list; The spatial motion vector prediction is stored as one of the motion candidates in the candidate list; and In response to enabling the motion vector angle prediction process, the one or more motion vector angle prediction candidates are stored as one or more motion candidates in the candidate list.

[0150] 4. The method according to Clause 3, wherein deriving the candidate list further includes: Check whether the historical motion vector predictions stored in the HMVP table are identical to any motion candidates in the candidate list; and In response to the historical motion vector prediction being different from the motion candidates in the candidate list, the historical motion vector prediction is stored as one of the motion candidates in the candidate list.

[0151] 5. A video encoding method, characterized in that it includes: Determine whether the coding unit of the video frame has a width greater than the threshold width or a height greater than the threshold height; In response to the encoding unit having a width greater than a threshold width or a height greater than a threshold height, a motion vector angle prediction process is enabled to store one or more motion vector angle prediction candidates in a candidate list, the candidate list storing multiple motion candidates associated with the encoding unit; Inter-frame prediction is performed on the coding unit based on motion candidates selected from the candidate list; and The signal is sent to the bitstream associated with the video frame, the bitstream including one or more of the coding units encoded in skip mode or direct mode, and an index of the selected motion candidate.

[0152] 6. The method described in Clause 5 further includes: In response to another encoding unit having a width equal to the threshold width and a height equal to the threshold height, the motion vector angle prediction process is disabled to derive the candidate list without storing any motion vector angle prediction candidates in the candidate list, which stores the plurality of motion candidates associated with the other encoding unit.

[0153] 7. The method described pursuant to Clause 5 or Clause 6 further includes: The candidate list for the inter-frame prediction is derived as follows: The time motion vector prediction is stored as one of the motion candidates in the candidate list; The spatial motion vector prediction is stored as one of the motion candidates in the candidate list; and In response to enabling the motion vector angle prediction process, the one or more motion vector angle prediction candidates are stored as one or more motion candidates in the candidate list.

[0154] 8. The method according to Clause 7, wherein deriving the candidate list further includes: Check if the historical motion vector predictions stored in the HMVP table are identical to any motion candidates in the candidate list; and In response to the historical motion vector prediction being different from the motion candidates in the candidate list, the historical motion vector prediction is stored as one of the motion candidates in the candidate list.

[0155] 9. A method for motion vector prediction, comprising: The coding unit is divided into multiple sub-blocks; The reference list associated with the coding unit is populated in the following manner: If motion information of the adjacent block associated with the reference unit is available, the reference unit in the reference list is filled with the motion information of the adjacent block of the coding unit; If motion information for a first adjacent block associated with a first reference unit that is a first entry in the reference list is unavailable, then the first reference unit is filled with predefined motion information; and If motion information of neighboring blocks associated with the remaining reference cell is unavailable, the remaining reference cell is filled with motion information from the previously adjacent reference cells in the reference list; and Perform a motion vector angle prediction process to obtain one or more motion vector angle prediction candidates for each sub-block by using a reference list based on one or more prediction directions.

[0156] 10. The method according to Clause 9, wherein filling the first reference unit with the predefined motion information comprises: The first reference cell is filled with a zero motion vector and a reference index set to zero.

[0157] 11. The method according to Clause 9, wherein filling the first reference unit with the predefined motion information comprises: The first reference cell is populated with motion information from the last entry in the history-based motion vector prediction table.

[0158] 12. The method according to Clause 9, wherein filling the first reference unit with the predefined motion information comprises: The first reference cell is populated with motion information from either a Time Motion Vector Predictor (TVP) candidate or a Spatial Motion Vector Predictor (SMVP) candidate.

[0159] 13. The method according to any one of clauses 9-12 further includes: In response to the number of reference cells filled with available motion information of adjacent blocks being less than a threshold: Disable the motion vector angle prediction process for the coding unit; and Export a candidate list containing multiple motion candidates without storing any vector angle prediction candidates in the candidate list.

[0160] 14. The method according to any one of clauses 9-12 further includes: In response to the number of reference cells filled with available motion information from neighboring blocks reaching a threshold: Enable the motion vector angle prediction process for the encoding unit; and Based on multiple prediction directions, a candidate list is derived and stored, which includes multiple motion vector angle prediction candidates for each sub-block.

[0161] 15. The method according to any one of clauses 9-12 further includes: Without checking the availability of the one or more prediction directions, enable the motion vector angle prediction process for the encoding unit; and Based on multiple prediction directions, a candidate list is derived and stored, which includes multiple motion vector angle prediction candidates for each sub-block.

[0162] 16. The method according to any one of clauses 9-12 further includes: By checking the availability of each prediction direction, one or more available directions are selected from multiple prediction directions; and The motion vector angle prediction process is performed based on the one or more available directions to obtain the one or more motion vector angle prediction candidates.

[0163] 17. The method according to Clause 16, wherein the number of the one or more vector angle prediction candidates is between 0 and 5, depending on the number of the one or more available directions.

[0164] 18. The method according to any one of clauses 9-17, wherein, for an M×N coding unit, the number of the reference units in the reference motion information list is (2M / 4+2N / 4+1), where M and N are integers.

[0165] 19. The method according to any one of clauses 9-18, wherein the size of the reference cell in the reference motion information list is 4×4.

[0166] 20. The method according to any one of clauses 9-19 further includes: Export a candidate list containing multiple motion candidates using the following method: Storage-time motion vector prediction and spatial motion vector prediction; In response to enabling the motion vector angle prediction process, the one or more motion vector angle prediction candidates are stored; and Store historical motion vector predictions.

[0167] 21. An apparatus comprising: A memory configured to store instructions; and A processor, coupled to the memory and configured to execute the instructions to cause the device to perform: Receive a bitstream comprising encoding units of video frames, the encoding units being encoded in either a skip mode or a direct mode; Determine whether the encoding unit has a width greater than the threshold width or a height greater than the threshold height; In response to the encoding unit having a width greater than a threshold width or a height greater than a threshold height, a motion vector angle prediction process is enabled to store one or more motion vector angle prediction candidates in a candidate list, the candidate list storing multiple motion candidates associated with the encoding unit; and Inter-frame prediction is performed on the coding unit based on the candidate list and the index parsed from the bitstream.

[0168] 22. The apparatus according to clause 21, wherein the processor is configured to execute the instructions to cause the apparatus to: In response to another encoding unit having a width equal to the threshold width and a height equal to the threshold height, the motion vector angle prediction process is disabled to derive the candidate list without storing any motion vector angle prediction candidates in the candidate list, which stores the plurality of motion candidates associated with the other encoding unit.

[0169] 23. The apparatus according to clause 21 or clause 22, wherein the processor is configured to execute the instructions to cause the apparatus to: Export the candidate list for inter-frame prediction as follows: Store the time motion vector prediction as one of the motion candidates in the candidate list; Store the spatial motion vector prediction as one of the motion candidates in a candidate list; and In response to enabling the motion vector angle prediction process, the one or more motion vector angle prediction candidates are stored as one or more motion candidates in the candidate list.

[0170] 24. The apparatus according to clause 23, wherein the processor is configured to execute the instructions to cause the apparatus to derive the candidate list in such a way as: Check whether the historical motion vector predictions stored in the HMVP table are identical to any motion candidates in the candidate list; and In response to a historical motion vector prediction that differs from a motion candidate in the candidate list, the historical motion vector prediction is stored as one of the motion candidates in the candidate list.

[0171] 25. An apparatus comprising: A memory configured to store instructions; and A processor, coupled to the memory and configured to execute the instructions to cause the device to perform: Determine whether the coding unit of the video frame has a width greater than the threshold width or a height greater than the threshold height; In response to the encoding unit having a width greater than a threshold width or a height greater than a threshold height, a motion vector angle prediction process is enabled to store one or more motion vector angle prediction candidates in a candidate list, the candidate list storing multiple motion candidates associated with the encoding unit; Inter-frame prediction is performed on the coding unit based on motion candidates selected from the candidate list; and The signal is sent to the bitstream associated with the video frame, the bitstream including one or more of the coding units encoded in skip mode or direct mode, and an index of the selected motion candidate.

[0172] 26. The apparatus according to clause 25, wherein the processor is configured to execute the instructions to cause the apparatus to: In response to another encoding unit having a width equal to the threshold width and a height equal to the threshold height, the motion vector angle prediction process is disabled to derive the candidate list without storing any motion vector angle prediction candidates in the candidate list, which stores the plurality of motion candidates associated with the other encoding unit.

[0173] 27. The apparatus according to clause 25 or clause 26, wherein the processor is configured to execute the instructions to cause the apparatus to: The candidate list for the inter-frame prediction is derived as follows: The time motion vector prediction is stored as one of the motion candidates in the candidate list; The spatial motion vector prediction is stored as one of the motion candidates in the candidate list; and In response to enabling the motion vector angle prediction process, the one or more motion vector angle prediction candidates are stored as one or more motion candidates in the candidate list.

[0174] 28. The apparatus according to clause 27, wherein the processor is configured to execute the instructions to cause the apparatus to derive the candidate list in such a way as: Check if the historical motion vector predictions stored in the HMVP table are identical to any motion candidates in the candidate list; and In response to the historical motion vector prediction being different from the motion candidates in the candidate list, the historical motion vector prediction is stored as one of the motion candidates in the candidate list.

[0175] 29. An apparatus comprising: A memory configured to store instructions; and A processor, coupled to the memory and configured to execute the instructions to cause the device to perform: The coding unit is divided into multiple sub-blocks; The reference list associated with the coding unit is populated in the following manner: If motion information of the adjacent blocks associated with the reference unit is available, the reference units in the reference list are filled with the motion information of the adjacent blocks of the coding unit; If motion information for a first adjacent block associated with a first reference unit that is the first entry in the reference list is unavailable, then the first reference unit is populated with predefined motion information; and If motion information of neighboring blocks associated with the remaining reference cell is unavailable, the remaining reference cell is filled with motion information from the previously adjacent reference cells in the reference list; and A motion vector angle prediction process is performed to obtain one or more motion vector angle prediction candidates for each sub-block by using the reference list based on one or more prediction directions.

[0176] 30. The apparatus according to clause 29, wherein the processor is configured to execute the instructions to cause the apparatus to fill the first reference unit with the predefined motion information in such a way that: The first reference cell is filled with a zero motion vector and a reference index set to zero.

[0177] 31. The apparatus according to clause 29, wherein the processor is configured to execute the instructions to cause the apparatus to fill the first reference unit with the predefined motion information in such a way that: The first reference cell is populated with motion information from the last entry in the history-based motion vector predictor table.

[0178] 32. The apparatus according to clause 29, wherein the processor is configured to execute the instructions to cause the apparatus to fill the first reference unit with the predefined motion information in such a way that: The first reference cell is populated with motion information from either the temporal motion vector prediction (TMVP) candidate or the spatial motion vector prediction (SMVP) candidate.

[0179] 33. The apparatus according to any one of clauses 29-32, wherein the processor is configured to execute the instructions to cause the apparatus to: In response to the number of reference cells filled with the available motion information of the adjacent blocks being less than a threshold: Disable the motion vector angle prediction process of the encoding unit; and Export a candidate list containing multiple motion candidates without storing any vector angle prediction candidates in the candidate list.

[0180] 34. The apparatus according to any one of clauses 29-32, wherein the processor is configured to execute the instructions to cause the apparatus to: In response to the number of reference cells filled with available motion information of the adjacent blocks reaching a threshold: Enable the motion vector angle prediction process for the encoding unit; and Based on multiple prediction directions, a candidate list is derived and stored, which includes multiple motion vector angle prediction candidates for each sub-block.

[0181] 35. The apparatus according to any one of clauses 29-32, wherein the processor is configured to execute the instructions to cause the apparatus to: Without checking the availability of the one or more prediction directions, enable the motion vector angle prediction process for the encoding unit; and Based on multiple prediction directions, a candidate list is derived and stored, which includes multiple motion vector angle prediction candidates for each sub-block.

[0182] 36. The apparatus according to any one of clauses 29-32, wherein the processor is configured to execute the instructions to cause the apparatus to: By checking the availability of each prediction direction, one or more available directions are selected from multiple prediction directions; and The motion vector angle prediction process is performed based on the one or more available directions to obtain the one or more motion vector angle prediction candidates.

[0183] 37. The apparatus according to clause 36, wherein the number of the one or more vector angle prediction candidates is between 0 and 5, depending on the number of the one or more available directions.

[0184] 38. The apparatus according to any one of clauses 29-37, wherein for an M×N coding unit, the number of the reference units in the reference motion information list is (2M / 4+2N / 4+1), where M and N are integers.

[0185] 39. The apparatus according to any one of clauses 29-38, wherein the size of the reference unit in the reference motion information list is 4×4.

[0186] 40. The apparatus according to any one of clauses 29-39, wherein the processor is configured to execute the instructions to cause the apparatus to: Export a candidate list containing multiple motion candidates using the following method: Storage-time motion vector prediction and spatial motion vector prediction; In response to enabling the motion vector angle prediction process, the one or more motion vector angle prediction candidates are stored; and Store historical motion vector predictions.

[0187] 41. A non-transitory computer-readable storage medium storing an instruction set executable by one or more processors of a device to cause the device to perform a method for decoding video, comprising: Receive a bitstream comprising encoding units of video frames, the encoding units being encoded in either a skip mode or a direct mode; Determine whether the encoding unit has a width greater than the threshold width or a height greater than the threshold height; In response to the encoding unit having a width greater than a threshold width or a height greater than a threshold height, a motion vector angle prediction process is enabled to store one or more motion vector angle prediction candidates in a candidate list, the candidate list storing multiple motion candidates associated with the encoding unit; and Inter-frame prediction is performed on the coding unit based on the candidate list and the index parsed from the bitstream.

[0188] 42. A non-transitory computer-readable storage medium as described in Clause 41, wherein the set of instructions executable by the one or more processors of the device causes the device to further perform: In response to another encoding unit having a width equal to the threshold width and a height equal to the threshold height, the motion vector angle prediction process is disabled to derive the candidate list without storing any motion vector angle prediction candidates in the candidate list, which stores the plurality of motion candidates associated with the other encoding unit.

[0189] 43. A non-transitory computer-readable storage medium as described in Clause 41 or Clause 42, wherein the set of instructions executable by the one or more processors of the device causes the device to further perform: Export the candidate list for inter-frame prediction as follows: Store the time motion vector prediction as one of the motion candidates in the candidate list; Store the spatial motion vector prediction as one of the motion candidates in a candidate list; and In response to enabling the motion vector angle prediction process, the one or more motion vector angle prediction candidates are stored as one or more motion candidates in the candidate list.

[0190] 44. A non-transitory computer-readable storage medium as described in Clause 43, wherein the set of instructions executable by the one or more processors of the device causes the device to further derive the candidate list by: Check whether the historical motion vector predictions stored in the HMVP table are identical to any motion candidates in the candidate list; and In response to a historical motion vector prediction that differs from a motion candidate in the candidate list, the historical motion vector prediction is stored as one of the motion candidates in the candidate list.

[0191] 45. A non-transitory computer-readable storage medium storing an instruction set executable by one or more processors of a device to cause the device to perform a method for encoding video, comprising: Determine whether the coding unit of the video frame has a width greater than the threshold width or a height greater than the threshold height; In response to the encoding unit having a width greater than a threshold width or a height greater than a threshold height, a motion vector angle prediction process is enabled to store one or more motion vector angle prediction candidates in a candidate list, the candidate list storing multiple motion candidates associated with the encoding unit; Inter-frame prediction is performed on the coding unit based on motion candidates selected from the candidate list; and The signal is sent to the bitstream associated with the video frame, the bitstream including one or more of the coding units encoded in skip mode or direct mode, and an index of the selected motion candidate.

[0192] 46. ​​A non-transitory computer-readable storage medium as described in Clause 45, wherein the set of instructions executable by the one or more processors of the device causes the device to further perform: In response to another encoding unit having a width equal to the threshold width and a height equal to the threshold height, the motion vector angle prediction process is disabled to derive the candidate list without storing any motion vector angle prediction candidates in the candidate list, which stores the plurality of motion candidates associated with the other encoding unit.

[0193] 47. A non-transitory computer-readable storage medium as described in Clause 45 or Clause 46, wherein the set of instructions executable by the one or more processors of the device causes the device to further perform: The candidate list for the inter-frame prediction is derived as follows: The time motion vector prediction is stored as one of the motion candidates in the candidate list; The spatial motion vector prediction is stored as one of the motion candidates in the candidate list; and In response to enabling the motion vector angle prediction process, the one or more motion vector angle prediction candidates are stored as one or more motion candidates in the candidate list.

[0194] 48. A non-transitory computer-readable storage medium as described in Clause 47, wherein the set of instructions executable by the one or more processors of the device causes the device to further derive the candidate list by: Check if the historical motion vector predictions stored in the HMVP table are identical to any motion candidates in the candidate list; and In response to the historical motion vector prediction being different from the motion candidates in the candidate list, the historical motion vector prediction is stored as one of the motion candidates in the candidate list.

[0195] 49. A non-transitory computer-readable storage medium storing an instruction set executable by one or more processors of a device to cause the device to perform a method for motion vector prediction, comprising: The coding unit is divided into multiple sub-blocks; The reference list associated with the coding unit is populated in the following manner: If motion information of the adjacent blocks associated with the reference unit is available, the reference units in the reference list are filled with the motion information of the adjacent blocks of the coding unit; If motion information for a first adjacent block associated with a first reference unit that is the first entry in the reference list is unavailable, then the first reference unit is populated with predefined motion information; and If motion information of neighboring blocks associated with the remaining reference cell is unavailable, the remaining reference cell is filled with motion information from the previously adjacent reference cells in the reference list; and A motion vector angle prediction process is performed to obtain one or more motion vector angle prediction candidates for each sub-block by using the reference list based on one or more prediction directions.

[0196] 50. A non-transitory computer-readable storage medium as described in Clause 49, wherein the set of instructions executable by the one or more processors of the device causes the device to fill the first reference cell with the predefined motion information in such a way that: The first reference cell is filled with a zero motion vector and a reference index set to zero.

[0197] 51. A non-transitory computer-readable storage medium as described in Clause 49, wherein the set of instructions executable by the one or more processors of the device causes the device to fill the first reference cell with the predefined motion information in such a way that: The first reference cell is populated with motion information from the last entry in the history-based motion vector predictor table.

[0198] 52. A non-transitory computer-readable storage medium as described in Clause 49, wherein the set of instructions executable by the one or more processors of the device causes the device to fill the first reference cell with the predefined motion information in such a way that: The first reference cell is populated with motion information from either the temporal motion vector prediction (TMVP) candidate or the spatial motion vector prediction (SMVP) candidate.

[0199] 53. A non-transitory computer-readable storage medium according to any one of clauses 49-52, wherein the set of instructions executable by the one or more processors of the device causes the device to further perform: In response to the number of reference cells filled with the available motion information of the adjacent blocks being less than a threshold: Disable the motion vector angle prediction process of the encoding unit; and Export a candidate list containing multiple motion candidates without storing any vector angle prediction candidates in the candidate list.

[0200] 54. A non-transitory computer-readable storage medium according to any one of clauses 49-52, wherein the set of instructions executable by the one or more processors of the device causes the device to further perform: In response to the number of reference cells filled with available motion information of the adjacent blocks reaching a threshold: Enable the motion vector angle prediction process for the encoding unit; and Based on multiple prediction directions, a candidate list is derived and stored, which includes multiple motion vector angle prediction candidates for each sub-block.

[0201] 55. A non-transitory computer-readable storage medium according to any one of clauses 49-52, wherein the set of instructions executable by the one or more processors of the device causes the device to further perform: Without checking the availability of the one or more prediction directions, enable the motion vector angle prediction process for the encoding unit; and Based on multiple prediction directions, a candidate list is derived and stored, which includes multiple motion vector angle prediction candidates for each sub-block.

[0202] 56. A non-transitory computer-readable storage medium according to any one of clauses 49-52, wherein the set of instructions executable by the one or more processors of the device causes the device to further perform: By checking the availability of each prediction direction, one or more available directions are selected from multiple prediction directions; and The motion vector angle prediction process is performed based on the one or more available directions to obtain the one or more motion vector angle prediction candidates.

[0203] 57. The non-transitory computer-readable storage medium as described in Clause 56, wherein the number of the one or more vector angle prediction candidates is between 0 and 5, depending on the number of the one or more available directions.

[0204] 58. A non-transitory computer-readable storage medium according to any one of clauses 49-57, wherein, for an M×N coded unit, the number of the reference units in the list of reference motion information is (2M / 4+2N / 4+1), where M and N are integers.

[0205] 59. A non-transitory computer-readable storage medium according to any one of clauses 49-58, wherein the size of the reference cell in the reference motion information list is 4×4.

[0206] 60. A non-transitory computer-readable storage medium according to any one of clauses 49-59, wherein the set of instructions executable by the one or more processors of the device causes the device to further perform: Export a candidate list containing multiple motion candidates using the following method: Storage-time motion vector prediction and spatial motion vector prediction; In response to enabling the motion vector angle prediction process, the one or more motion vector angle prediction candidates are stored; and Store historical motion vector predictions.

[0207] Exemplary embodiments have been disclosed in the accompanying drawings and description. However, many variations and modifications can be made to these embodiments. Therefore, although specific terminology has been used, it is used only in a general and descriptive sense and not for limiting purposes.

Claims

1. A method for encoding a video sequence into a bitstream, the method comprising: Receive video sequences; Encode one or more images from the video sequence; and Generate bitstream, in, The encoding includes: The coding unit is divided into multiple sub-blocks; The reference list associated with the coding unit is populated in the following manner: If motion information of a neighboring block associated with any reference unit in the reference list is available, then the reference unit is filled with the motion information of that neighboring block of the coding unit; or If motion information for a first adjacent block associated with a first reference unit that is a first entry in the reference list is unavailable, then the first reference unit is filled with predefined motion information; and A motion vector angle prediction process is performed on the plurality of sub-blocks to obtain one or more motion vector angle prediction candidates based on one or more prediction directions using the reference list.

2. The method according to claim 1, wherein, The reference unit is the lower left unit of the coding unit.

3. The method according to claim 1, characterized in that, The step of filling the first reference unit with predefined motion information includes: The first reference cell is filled with a zero motion vector and a reference index set to zero.

4. The method according to claim 1, further comprising: The motion vector angle prediction process is disabled for coding units with a size equal to or less than 8×8.

5. The method according to claim 1, further comprising: If motion information of neighboring blocks associated with the remaining reference cell is unavailable, the remaining reference cell is filled with motion information from the previously adjacent reference cells that are filled in the reference list.

6. The method according to claim 1, characterized in that, The step of filling the first reference unit with predefined motion information includes: The first reference cell is populated with motion information from the last entry in the history-based motion vector predictor table.

7. The method according to claim 1, characterized in that, The step of filling the first reference unit with predefined motion information includes: The first reference cell is populated with motion information from either a Time Motion Vector Predictor (TMVP) candidate or a Spatial Motion Vector Predictor (SMVP) candidate.

8. The method according to claim 1, further comprising: In response to the number of reference cells filled with available motion information of adjacent blocks being less than a threshold: Disable the motion vector angle prediction process for the encoding unit; and Export a candidate list that stores multiple motion candidates, without storing any vector angle prediction candidates in the candidate list.

9. The method according to claim 1, further comprising: In response to the number of reference cells filled with available motion information from neighboring blocks reaching a threshold: Enable the motion vector angle prediction process of the encoding unit; and A candidate list for storing multiple motion candidates is derived based on multiple prediction directions, the multiple motion candidates including multiple motion vector angle prediction candidates for each sub-block.

10. The method according to claim 1, further comprising: Enable the motion vector angle prediction process for the coding unit without checking the availability of the one or more prediction directions; and A candidate list for storing multiple motion candidates is derived based on multiple prediction directions, the multiple motion candidates including multiple motion vector angle prediction candidates for each sub-block.

11. The method according to claim 1, further comprising: By checking the availability of each prediction direction, one or more available directions are selected from multiple prediction directions; and The motion vector angle prediction process is performed according to one or more available directions to obtain one or more motion vector angle prediction candidates.

12. The method of claim 11, wherein the number of the one or more motion vector angle prediction candidates is between 0 and 5, depending on the number of the one or more available directions.

13. The method according to claim 1, wherein, For M N encoding units, the number of reference units in the reference list is 2M / 4+2N / 4+1, where M and N are integers.

14. The method of claim 1, wherein, The size of the reference cell in the reference list is 4.

4.

15. The method according to claim 1, further comprising: Export a candidate list containing multiple motion candidates using the following steps: Storage time motion vector predictor and spatial motion vector predictor; In response to the activation of the motion vector angle prediction process, the one or more motion vector angle prediction candidates are stored; and Store historical motion vector predictors.

16. A video encoding apparatus, comprising: A memory, wherein the memory stores an instruction set; and One or more processors, the one or more processors being configured to execute the instruction set to cause the device to perform operations, the operations including: The coding unit is divided into multiple sub-blocks; The reference list associated with the coding unit is populated in the following manner: If motion information of a neighboring block associated with any reference unit in the reference list is available, then the reference unit is populated with the motion information of that neighboring block of the coding unit; and If motion information of the first adjacent block associated with the first reference unit, which is the first entry in the reference list, is unavailable, the first reference unit is filled with predefined motion information. A motion vector angle prediction process is performed on the plurality of sub-blocks to obtain one or more motion vector angle prediction candidates based on one or more prediction directions using the reference list; and Encode indices associated with the one or more motion vector angle prediction candidates in the bit stream.

17. The apparatus according to claim 16, wherein, The reference unit is the lower left unit of the encoding unit.

18. The apparatus of claim 16, wherein, in filling the first reference unit with predefined motion information, the one or more processors are configured to execute the instruction set to cause the apparatus to perform: The first reference cell is filled with a zero motion vector and a reference index set to zero.

19. A non-transitory computer-readable storage medium storing a computer program / instructions and a bitstream associated with a video sequence, characterized in that, When executed by a processor, the computer program / instructions implement the video encoding method of claim 1 to generate the bitstream; wherein the bitstream includes: The candidate list includes information identifying one or more motion vector angle prediction candidates associated with the coding unit. The one or more motion vector angle prediction candidates are generated using the following operations, which include: The coding unit is divided into multiple sub-blocks; The reference list associated with the coding unit is populated in the following manner: If motion information of a neighboring block associated with any reference unit in the reference list is available, then the reference unit is filled with the motion information of that neighboring block of the coding unit; or If motion information for a first adjacent block associated with a first reference unit that is a first entry in the reference list is unavailable, then the first reference unit is filled with predefined motion information; and A motion vector angle prediction process is performed on the plurality of sub-blocks to obtain one or more motion vector angle prediction candidates based on one or more prediction directions using the reference list.

20. The non-transitory computer-readable storage medium of claim 19, wherein the reference unit is the lower left unit of the encoding unit.

21. The non-transitory computer-readable storage medium according to claim 19, wherein, Filling the first reference unit with the predefined motion information includes: The first reference cell is filled with a zero motion vector and a reference index set to zero.

22. The non-transitory computer-readable storage medium according to claim 19, wherein, The encoding unit has a size greater than 8×8, and at least one of the height or width of the encoding unit is greater than 8.

23. A video decoding method, characterized in that, The method includes: Receive the bitstream associated with the video sequence; Decode the bitstream; wherein, The decoding includes: Determine multiple sub-blocks of the coding unit; The candidate list associated with the coding unit is populated in the following manner: If motion information of a neighboring block associated with any reference unit in the candidate list is available, then the reference unit is filled with the motion information of that neighboring block of the coding unit; or If motion information for a first neighboring block associated with a first reference unit that is a first entry in the candidate list is unavailable, the first reference unit is filled with predefined motion information; A motion vector angle prediction process is performed on the plurality of sub-blocks to obtain one or more motion vector angle prediction candidates based on one or more prediction directions using a padded candidate list.

Citation Information

Patent Citations

  • Method for decoding inter predictive encoded motion pictures

    CN103370940A

  • Video coding with helper data for spatial intra-prediction

    CN108353186A