Block size limit for illumination compensation
By selectively disabling illumination compensation in video decoding, especially on blocks of a specific block size or incompatible with the pipeline architecture, the processing complexity and memory bandwidth introduced by illumination compensation are addressed, thereby improving decoding efficiency.
Patent Information
- Application Number
- CN201980086680.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Priority Date
- 2019-12-23
- Filing Date
- 2019-12-24
- Publication Date
- 2024-09-20
- Estimated Expiration
- 2039-12-24
AI Technical Summary
Existing video decoding technologies may introduce additional processing costs and complexity when processing video data blocks due to illumination compensation, leading to increased memory bandwidth and computational costs, especially inconsistencies and compatibility issues at specific block sizes.
By selectively disabling or not applying illuminance compensation, especially on blocks of a specific block size or incompatible with the pipeline architecture, processing complexity and memory bandwidth requirements can be reduced. For example, in the VVC standard, bidirectional inter-frame prediction for 4x4 blocks is limited, and illuminance compensation for blocks larger than 64x64 is disabled in a 64x64 pipeline architecture.
It effectively reduces the processing complexity and memory bandwidth requirements of specific blocks during video decoding, avoids additional processing costs and complexity, and improves decoding efficiency.
Smart Images

Figure CN113287300B_ABST
Abstract
Description
Technical Field
[0001] The present application is related to video coding and compression. More specifically, the present application relates to systems and methods for performing improved local illumination compensation. Background Art
[0002] Many devices and systems allow video data to be processed and output for consumption. Digital video data includes large amounts of data to meet the needs of consumers and video providers. For example, consumers of video data expect the highest quality video, with high fidelity, high resolution, high frame rate, etc. As a result, the large amounts of video data required to meet these needs burden the communication networks and devices that process and store video data.
[0003] Various video coding techniques can be used to compress video data. Video coding can be performed according to one or more video coding standards. For example, video coding standards include High Efficiency Video Coding (HEVC), Advanced Video Coding (AVC), MPEG-2 Part 2 Coding (MPEG stands for Moving Picture Experts Group), VP9, Alliance for Open Media (AOMedia) Video 1 (AV1), Basic Video Coding (EVC), etc. Video coding generally utilizes prediction methods (e.g., inter-frame prediction, intra-frame prediction, etc.), which utilize redundancy present in video images or sequences. The goal of video coding technology is to compress video data into a form that uses a lower bit rate while avoiding or minimizing degradation of video quality. As evolving video services become available, coding techniques with better coding efficiency are needed. Summary of the invention
[0004] Illumination compensation can be used to compensate for illumination changes between one or more pictures. However, when processing blocks of video data, illumination compensation may introduce additional processing costs (e.g., memory costs, computational costs, performance costs, etc.) and complexity. Accordingly, in some examples, in order to avoid certain incompatibilities or inconsistencies and reduce processing bandwidth, power, cost, and complexity, the techniques herein may selectively disable (e.g., limit, prohibit, suppress, avoid, not apply, etc.) illumination compensation when processing blocks of a specific size. In some cases, video decoding techniques may provide restrictions on specific prediction modes for blocks of a specific size in order to reduce processing complexity for such blocks. The techniques disclosed herein may similarly reduce processing complexity for such blocks (or avoid introducing additional processing complexity) by also disabling illumination compensation for these blocks.
[0005] For example, some video coding techniques may limit bidirectional inter prediction for blocks of a certain size to reduce worst-case memory bandwidth and complexity. For example, in the Joint Exploration Video Team (JVET) Universal Video Coding (VVC) standard, 4x4 blocks provide worst-case complexity. Therefore, in VVC, bidirectional inter prediction for 4x4 is limited to reduce worst-case memory bandwidth and complexity. Other example coding techniques may similarly limit bidirectional inter prediction for specific block sizes to reduce complexity.
[0006] To similarly reduce processing complexity for a particular block size (such as a block size where bidirectional inter prediction is limited as described above), the techniques described herein may disable illumination compensation for blocks of such size. For example, a system and / or process may prevent illumination compensation from being applied to a block of a particular size for which bidirectional inter prediction is limited. The system and / or process may determine that bidirectional inter prediction will not be applied for a block of a particular size. The system and / or process may then determine that illumination compensation is not applied for the block. For example, the system and / or process may disable illumination compensation for the block or decide not to enable illumination compensation for the block. By disabling or not applying illumination compensation for those blocks for which bidirectional inter prediction is limited to reduce complexity, the system and / or process may reduce processing cost and complexity for those blocks and / or avoid introducing additional complexity for illumination compensation.
[0007] To further illustrate, using the VVC example above (where bidirectional inter prediction is restricted for 4x4 blocks), the system and / or process may limit or avoid using illumination compensation for 4x4 blocks in order to reduce the processing complexity for such blocks or avoid introducing additional complexity of illumination compensation. Therefore, the system and / or process may process 4x4 blocks without illumination compensation. In some cases, when the system and / or process determines that illumination compensation is not applied to a block, the system and / or process may determine not to signal an illumination compensation flag (or illumination compensation (IC) flag) for the block. In other cases, in response to determining that illumination compensation is not applied to a block, the system and / or process may determine to signal an illumination compensation flag for the block, the illumination compensation flag having a value indicating that illumination compensation will not be performed for the block.
[0008] The techniques described herein may also limit the use of illumination compensation for block sizes that exceed the size of a block in a video decoding pipeline structure. For example, if a codec is implemented using a 64x64 pipeline structure, problems may arise when illumination compensation is applied to larger blocks (such as 128xN blocks) that do not fit within the 64x64 pipeline structure. To further illustrate, using a 128xN block as an example, 128 reference samples of the reference and neighboring samples for the current block would be required to derive illumination compensation parameters. However, since 128 samples do not fit within the 64x64 pipeline structure, the system and / or process may disable or decide not to enable / apply illumination compensation for blocks larger than 64x64 in order to avoid problems caused by using illumination compensation for these blocks.
[0009] Although a 64x64 pipeline structure and a 128xN block size are used as examples above, the techniques herein may be similarly applied to any block size and / or pipeline structure. For example, in the case of a pipeline structure different from the 64x64 pipeline structure in the above example, the system and / or process may disable or decide not to enable / apply illumination compensation for blocks larger than the blocks in the particular pipeline structure. In some cases, the system and / or process may not signal an illumination compensation mode flag for blocks that cause illumination compensation to be disabled or otherwise not enabled / applied. In some examples, in response to determining that illumination compensation is not applied to these blocks, the system and / or process may determine to signal one or more illumination compensation flags for these blocks, which have a value indicating that illumination compensation will not be performed for those blocks.
[0010] Systems, methods, and computer-readable media for selectively applying local illumination compensation (LIC) with various prediction modes are described herein. According to at least one example, a method for decoding video data is provided. The method may include: obtaining a block of a picture of video data; determining the size of the block; determining whether the size of the block is equal to or less than a first block size associated with a block size restriction or whether the size of the block is greater than a second block size associated with a video decoding pipeline structure, the block size restriction being used to restrict bidirectional inter-frame prediction for blocks having corresponding sizes equal to or less than the first block size associated with the block size restriction; determining whether the size of the block is equal to or less than the first block size associated with the block size restriction or greater than the second block size associated with the video decoding pipeline structure; and disabling illumination compensation for the block based on determining that the size of the block is equal to or less than the first block size associated with the block size restriction or greater than the second block size associated with the video decoding pipeline structure.
[0011] According to at least one example, a device for decoding video data is provided. The device may include: at least one memory; and one or more processors implemented in a circuit and configured to: obtain a block of a picture of video data; determine the size of the block; determine whether the size of the block is equal to or less than a first block size associated with a block size restriction or whether the size of the block is greater than a second block size associated with a video decoding pipeline structure, wherein the block size restriction is used to restrict bidirectional inter-frame prediction for blocks having a corresponding size equal to or less than the first block size associated with the block size restriction; determine whether the size of the block is equal to or less than the first block size associated with the block size restriction or greater than the second block size associated with the video decoding pipeline structure; and disable illumination compensation for the block based on determining that the size of the block is equal to or less than the first block size associated with the block size restriction or greater than the second block size associated with the video decoding pipeline structure.
[0012] According to at least one example, a non-transitory computer-readable medium for decoding video data is provided. The non-transitory computer-readable medium may include instructions stored thereon, which, when executed by one or more processors, cause the one or more processors to perform the following operations: obtain a block of a picture of video data; determine the size of the block; determine whether the size of the block is equal to or less than a first block size associated with a block size restriction or whether the size of the block is greater than a second block size associated with a video decoding pipeline structure, wherein the block size restriction is used to restrict bidirectional inter-frame prediction for blocks having a corresponding size equal to or less than the first block size associated with the block size restriction; determine whether the size of the block is equal to or less than the first block size associated with the block size restriction or greater than the second block size associated with the video decoding pipeline structure; and disable illumination compensation for the block based on determining that the size of the block is equal to or less than the first block size associated with the block size restriction or greater than the second block size associated with the video decoding pipeline structure.
[0013] According to at least one example, a device for decoding video data is provided. The device may include a unit for performing the following operations: obtaining a block of a picture of the video data; determining the size of the block; determining whether the size of the block is equal to or less than a first block size associated with a block size restriction or whether the size of the block is greater than a second block size associated with a video decoding pipeline structure, wherein the block size restriction is used to restrict bidirectional inter-frame prediction for blocks having a corresponding size equal to or less than the first block size associated with the block size restriction; determining whether the size of the block is equal to or less than the first block size associated with the block size restriction or greater than the second block size associated with the video decoding pipeline structure; and disabling illumination compensation for the block based on determining that the size of the block is equal to or less than the first block size associated with the block size restriction or greater than the second block size associated with the video decoding pipeline structure.
[0014] In some aspects, the above-mentioned methods, apparatus and computer-readable media may include: setting the value of an illumination compensation flag associated with the block to false based on disabling the illumination compensation for the block, wherein the value of the illumination compensation flag set to false indicates that illumination compensation for the block is disabled.
[0015] In some aspects, the above-mentioned methods, devices and computer-readable media may include: determining whether the size of different blocks of the picture of the video data is larger than the first block size associated with the block size limit or whether the size of the different blocks is smaller than the second block size associated with the video decoding pipeline structure; determining that the size of the different blocks is larger than the first block size associated with the block size limit and smaller than the second block size associated with the video decoding pipeline structure; and enabling illumination compensation for the different blocks based on the size of the different blocks being larger than the first block size associated with the block size limit and smaller than the second block size associated with the video decoding pipeline structure.
[0016] In some aspects, the above-mentioned methods, devices and computer-readable media may include: based on enabling the illumination compensation for the different blocks, setting the value of the illumination compensation flag associated with the different blocks to true, wherein the value of the illumination compensation flag set to true indicates that illumination compensation for the different blocks is enabled.
[0017] In some aspects, the above-mentioned methods, apparatus and computer-readable media may include: deriving one or more illumination compensation parameters for the different blocks based on one or more neighboring blocks of the block and one or more additional neighboring blocks of a reference block selected for inter-frame prediction of the block; applying illumination compensation for the different blocks based on the one or more illumination compensation parameters; and reconstructing samples of the block based on the illumination compensation applied to the block.
[0018] In some aspects, the methods, apparatus, and computer-readable media described above may include determining not to apply bidirectional inter prediction for the block based on the size of the block being less than the first block size associated with the block size limit.
[0019] In some aspects of the above methods, apparatus, and computer-readable media, disabling illumination compensation for the block may be based on determining that bidirectional inter prediction is not applied for the block.
[0020] In some aspects of the above methods, apparatus, and computer-readable media, coding the video data may include decoding the video data.
[0021] In some aspects, the above methods, apparatus, and computer-readable media may include decoding the block based on a prediction mode and without the illumination compensation.
[0022] In some aspects, the above-described methods, apparatus, and computer-readable media may include: determining a residual value for the block; performing a prediction mode for the block; and reconstructing at least one sample of the block based on the residual value for the block and the prediction mode performed for the block.
[0023] In some aspects of the above methods, apparatus, and computer-readable media, decoding the video data may include encoding the video data. In some aspects, the above methods, apparatus, and computer-readable media may include generating an encoded video bitstream, the encoded video bitstream including the blocks of pictures of the video data.
[0024] In some aspects, the methods, apparatus, and computer-readable media described above may include signaling one or more illumination compensation flags in the coded video bitstream, the one or more illumination compensation flags including an indication to disable illumination compensation for the block.
[0025] In some aspects, the methods, apparatus, and computer-readable media described above may include signaling the coded video bitstream.
[0026] In some aspects of the above methods, apparatus, and computer-readable media, determining that the size of the block is one of equal to or less than the first block size associated with the block size limit or greater than the second block size associated with the video decoding pipeline structure can include determining that illumination compensation is limited. In some aspects of the above methods, apparatus, and computer-readable media, based on determining that illumination compensation is limited, an illumination compensation flag associated with the block is not signaled in the coded video bitstream.
[0027] In some aspects, the above-mentioned methods, devices and computer-readable media may include: determining whether the size of different blocks of the picture of the video data is equal to or less than the first block size associated with the block size limit or whether the size of the different blocks is greater than the second block size associated with the video decoding pipeline structure; determining that the size of the different blocks is equal to or less than the first block size associated with the block size limit and greater than the second block size associated with the video decoding pipeline structure; and disabling illumination compensation for the different blocks based on determining that the size of the different blocks is equal to or less than the first block size associated with the block size limit and greater than the second block size associated with the video decoding pipeline structure.
[0028] In some aspects, the apparatus described above may include a mobile device having a camera for capturing one or more pictures.
[0029] In some aspects, the apparatus described above may include a display for displaying one or more pictures.
[0030] This summary is neither intended to identify key or essential features of the claimed subject matter nor is it intended to be used alone to determine the scope of the claimed subject matter. The subject matter should be understood by reference to appropriate portions of the entire specification of this patent, any or all drawings, and each claim.
[0031] The foregoing as well as other features and embodiments will become more fully apparent after reference to the following description, claims and accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0032] The illustrative embodiments of the present application are described in detail below with reference to the following drawings:
[0033] Figure 1 is a block diagram illustrating examples of encoding devices and decoding devices according to some examples;
[0034] Figure 2A is a conceptual diagram illustrating example spatial neighboring motion vector candidates for merge mode according to some examples;
[0035] Figure 2B is a conceptual diagram illustrating example spatial neighboring motion vector candidates for an Advanced Motion Vector Prediction (AMVP) mode according to some examples;
[0036] Figure 3A is a conceptual diagram illustrating example temporal motion vector predictor (TMVP) candidates according to some examples;
[0037] Figure 3B is a conceptual diagram illustrating examples of motion vector scaling according to some examples;
[0038] Figure 4A is a conceptual diagram illustrating an example of neighboring samples of a current coding unit for estimating illumination compensation (IC) parameters for the current coding unit according to some examples;
[0039] Figure 4B is a conceptual diagram illustrating an example of neighboring samples of a reference block for estimating IC parameters for a current coding unit according to some examples;
[0040] Figure 5A is a conceptual diagram illustrating an example of neighboring samples of a current coding unit for deriving illumination compensation (IC) parameters for the current coding unit according to some examples;
[0041] Figure 5B is a conceptual diagram illustrating an example of neighboring samples of a reference block for deriving IC parameters for a current coding unit according to some examples;
[0042] Figure 6 is a conceptual diagram illustrating examples of neighbor reconstructed samples of a current block and neighbor samples of a reference block for unidirectional inter prediction according to some examples;
[0043] Figure 7 is a conceptual diagram illustrating examples of neighbor reconstructed samples of a current block and neighbor samples of two reference blocks for bidirectional inter prediction according to some examples;
[0044] Figure 8 is a flow chart illustrating an example method for selectively limiting illumination compensation when processing blocks of a certain size according to some examples;
[0045] Fig. 9 is a flow chart illustrating an example of a method for decoding video data according to some examples;
[0046] Fig.10 is a flow chart illustrating an example of a method for encoding video data according to some examples;
[0047] Fig.11Ais a diagram illustrating an example scenario in which an illumination compensation flag of a current block is set to off based on a block size limit defined for a video coding algorithm according to some examples;
[0048] Fig. 11B is a diagram illustrating an example scenario in which an illumination compensation flag of a current block is set to on based on a block size limit defined for a video coding algorithm according to some examples;
[0049] Fig. 11C and Fig.11D is a diagram illustrating an example scenario in which an illumination compensation flag for a current block is set based on a pipeline structure block size based restriction defined for a video decoding algorithm according to some examples;
[0050] Fig.12 is a block diagram illustrating an example video encoding device according to some examples; and
[0051] Fig.13 is a block diagram illustrating an example video decoding device according to some examples. DETAILED DESCRIPTION
[0052] Provided below are some aspects and embodiments of the present disclosure. As will be apparent to those skilled in the art, some of these aspects and embodiments may be applied independently, and some of them may be applied in combination. In the following description, for the purpose of explanation, specific details are set forth in order to provide a thorough understanding of the embodiments of the present application. However, it will be apparent that each embodiment may be implemented without these specific details. The accompanying drawings and description are not intended to be restrictive.
[0053] The following description provides only exemplary embodiments and is not intended to limit the scope, applicability or configuration of the present disclosure. Specifically, the following description of these exemplary embodiments will provide a feasible description for implementing the exemplary embodiments to those skilled in the art. It should be understood that various changes may be made to the function and arrangement of elements without departing from the spirit and scope of the present application as set forth in the appended claims.
[0054] Video decoding devices implement video compression techniques to efficiently encode and decode video data. Video compression techniques may include applying different prediction modes (including spatial prediction (e.g., intra-frame prediction or intra-prediction), temporal prediction (e.g., inter-frame prediction or inter-prediction), inter-layer prediction (across different layers of video data), and / or other prediction techniques) to reduce or remove redundancy inherent in video sequences. The video encoder may partition each picture of the original video sequence into rectangular areas, which are referred to as video blocks or decoding units (described in more detail below). These video blocks may be encoded using specific prediction modes.
[0055] Video blocks may be divided into one or more groups of smaller blocks in one or more ways. Blocks may include coding tree blocks, prediction blocks, transform blocks, or other appropriate blocks. Unless otherwise specified, references to "blocks" may generally refer to such video blocks (e.g., coding tree blocks, coding blocks, prediction blocks, transform blocks, or other appropriate blocks or sub-blocks, as will be understood by those of ordinary skill in the art). In addition, each of these blocks may also be referred to interchangeably herein as a "unit" (e.g., coding tree unit (CTU), decoding unit, prediction unit (PU), transform unit (TU), etc.). In some cases, a unit may indicate a decoding logic unit encoded in a bitstream, and a block may indicate a portion of a video frame buffer for which the process is directed.
[0056] For inter-prediction mode, the video encoder can search for a block similar to the block being encoded at another temporal position in a frame (or picture), referred to as a reference frame or reference picture. The video encoder can limit the search to a specific spatial displacement from the block to be encoded. A two-dimensional (2D) motion vector including a horizontal displacement component and a vertical displacement component can be used to locate the best match. For intra-prediction mode, the video encoder can use spatial prediction techniques to form a prediction block based on data from previously encoded neighboring blocks within the same picture.
[0057] The video encoder can determine the prediction error. For example, the prediction can be determined as the difference between the pixel values in the block being encoded and the predicted block. The prediction error can also be referred to as a residual. The video encoder can also apply a transform to the prediction error (e.g., a discrete cosine transform (DCT) or other appropriate transform) to generate transform coefficients. After the transform, the video encoder can quantize the transform coefficients. The quantized transform coefficients and motion vectors can be represented using syntax elements and form a decoded representation of the video sequence together with the control information. In some cases, the video encoder can entropy decode the syntax elements to further reduce the number of bits required for their representation.
[0058] The video decoder can use the syntax elements and control information discussed above to construct prediction data (e.g., a prediction block) for decoding the current frame. For example, the video decoder can add the prediction block and the compressed prediction error. The video decoder can determine the compressed prediction error by weighting the transform basis function using the quantization coefficients. The difference between the reconstructed frame and the original frame is called the reconstruction error.
[0059] In some examples, one or more systems and methods for processing video data involve deriving or estimating illumination compensation (IC) parameters in block-based video decoding. In some cases, a video encoder and / or a video decoder may perform local illumination compensation (LIC) (or illumination compensation) to efficiently decode illumination (e.g., brightness) changes between one or more pictures. A video encoder and / or a video decoder may determine one or more IC parameters (e.g., offsets, one or more scaling factors, a number of shifts, or other suitable IC parameters) for a decoding block or decoding unit being encoded or decoded. The IC parameters may be determined based on samples of multiple reference blocks, samples of one or more neighboring blocks of a current block, and / or other information. A video decoder may utilize IC parameters and / or other data to construct prediction data for decoding a current block.
[0060] Figure 11 is a block diagram showing an example of a system 100 including an encoding device 104 and a decoding device 112. The encoding device 104 may be part of a source device, and the decoding device 112 may be part of a receiving device. The source device and / or the receiving device may include an electronic device, such as a mobile or fixed telephone handset (e.g., a smart phone, a cellular phone, etc.), a desktop computer, a laptop or notebook computer, a tablet computer, a set-top box, a television set, a camera, a display device, a digital media player, a video game console, a video streaming device, an Internet Protocol (IP) camera, or any other suitable electronic device. In some examples, the source device and the receiving device may include one or more wireless transceivers for wireless communication. The encoding techniques described herein are applicable to video encoding in various multimedia applications, including streaming video transmission (e.g., via the Internet), television broadcasting or transmission, encoding of digital videos for storage on data storage media, decoding of digital videos stored on data storage media, or other applications. As used herein, the term coding may refer to encoding and / or decoding. In some examples, system 100 may support one-way or two-way video transmission to support applications such as video conferencing, video streaming, video playback, video broadcasting, gaming, and / or video telephony.
[0061] The encoding device 104 (or encoder) can be used to encode video data using a video coding standard or protocol to generate a coded video bitstream. Examples of video coding standards include ITU-T H.261, ISO / IEC MPEG-1 video (visual), ITU-T H.262 or ISO / IEC MPEG-2 video, ITU-T H.263, ISO / IEC MPEG-4 video, ITU-T H.264 (also known as ISO / IEC MPEG-4 AVC) (including its scalable video coding (SVC) and multi-view video coding (MVC) extensions), and high efficiency video coding (HEVC) or ITU-T H.265. There are various extensions to HEVC involving multi-layer video coding, including range and screen content coding extensions, 3D video coding (3D-HEVC) and multi-view extensions (MV-HEVC) and scalable extensions (SHVC). HEVC and its extensions have been developed by the Joint Collaborative Team on Video Coding (JCT-VC) of the ITU-T Video Coding Experts Group (VCEG) and the ISO / IEC Moving Picture Experts Group (MPEG) and the Joint Collaborative Team on 3D Video Coding Extension Development (JCT-3V).
[0062] MPEG and ITU-T VCEG have also formed a joint exploration video team (JVET) to explore new decoding tools for the next generation of video decoding standards, which is named Versatile Video Coding (VVC). The reference software is called the VVC Test Model (VTM) (or JEM (Joint Exploration Model)). The goal of VVC is to provide significant improvements in compression performance compared to the existing HEVC standard, thereby assisting the deployment of higher quality video services and emerging applications (e.g., such as 360 ° omnidirectional immersive multimedia, high dynamic range (HDR) video, etc.). VP9, Alliance for Open Media (AOMedia) Video 1 (AV1) and Basic Video Coding (EVC) are other video coding standards to which the technology described herein can be applied.
[0063] The techniques described herein may be applied to any of the existing video codecs (e.g., high efficiency video coding (HEVC), advanced video coding (AVC), or other suitable existing video codecs), and / or may be efficient decoding tools for any video coding standard being developed and / or future video coding standards (such as VVC and / or other video coding standards being developed or to be developed). For example, the examples described herein may be performed using video codecs such as VVC, HEVC, AVC, and / or their extensions. However, the techniques and systems described herein may also be applicable to other decoding standards, such as MPEG, JPEG (or other decoding standards for still images), VP9, AV1, their extensions, or other suitable decoding standards that are already available or not yet available or developed. Therefore, although the techniques and systems described herein may be described with reference to a specific video coding standard, it will be understood by those of ordinary skill in the art that the description should not be interpreted as being applicable only to that specific standard.
[0064] Reference Figure 1 , video source 102 may provide video data to encoding device 104. Video source 102 may be part of a source device, or may be part of a device other than a source device. Video source 102 may include a video capture device (e.g., a video camera, a camera phone, a video phone, etc.), a video archiving unit containing stored video, a video server or content provider providing video data, a video feed interface receiving video from a video server or content provider, a computer graphics system for generating computer graphics video data, a combination of such sources, or any other suitable video source.
[0065] The video data from the video source 102 may include one or more input pictures or frames. A picture or frame is a still image, which in some cases is part of a video. In some examples, the data from the video source 102 may be a still image that is not part of a video. In HEVC, VVC, and other video coding specifications, a video sequence may include a series of pictures. A picture may include three sample arrays, which are represented as SL, SCb, and SCr. SL is a two-dimensional array of luma samples, SCb is a two-dimensional array of Cb chroma samples, and SCr is a two-dimensional array of Cr chroma samples. Chroma samples may also be referred to as "chroma" samples in this article. A pixel may refer to all three components (luminance and chroma samples) for a given position in an array of a picture. In other cases, a picture may be monochrome and may include only an array of luma samples, in which case the terms pixel and sample may be used interchangeably. With respect to the example techniques for referring to individual samples described herein for illustrative purposes, the same techniques may be applied to pixels (e.g., all three sample components for a given position in an array of a picture). With respect to the example techniques described herein for illustrative purposes referring to pixels (eg, all three sample components for a given position in an array of a picture), the same techniques may be applied to individual samples.
[0066] The encoder engine 106 (or encoder) of the encoding device 104 encodes the video data to generate a coded video bitstream. In some examples, the coded video bitstream (or "video bitstream" or "bitstream") is a series of one or more decoded video sequences. The decoded video sequence (CVS) includes a series of access units (AUs), which start from an AU with a random access point picture in the base layer and certain attributes until the next AU with a random access point picture in the base layer and certain attributes, and does not include the next AU. For example, certain attributes of the random access point picture that starts the CVS may include a RASL flag equal to 1 (e.g., NoRaslOutputFlag). Otherwise, the random access point picture (where the RASL flag is equal to 0) does not start the CVS. The access unit (AU) includes one or more decoded pictures and control information corresponding to the decoded pictures sharing the same output time. The decoded slices of the picture are encapsulated as data units at the bitstream level, and the data units are called network abstraction layer (NAL) units. For example, a HEVC video bitstream may include one or more CVSs, which include NAL units. Each NAL unit in a NAL unit has a NAL unit header. In one example, the header is one byte for H.264 / AVC (except for multi-layer extensions) and two bytes for HEVC. The syntax elements in the NAL unit header use designated bits and are therefore visible to all kinds of systems and transport layers (such as transport streams, real-time transport (RTP) protocols, file formats, and others).
[0067] There are two types of NAL units in the HEVC standard, including video coding layer (VCL) NAL units and non-VCL NAL units. The VCL NAL unit includes a slice or slice segment (described below) of decoded picture data, and the non-VCL NAL unit includes control information related to one or more decoded pictures. In some cases, the NAL unit may be referred to as a packet. The HEVC AU includes: a VCL NAL unit containing decoded picture data, and a non-VCL NAL unit corresponding to the decoded picture data (if any).
[0068] A NAL unit may contain a sequence of bits that form a coded representation of video data (e.g., a coded video bitstream, a CVS of a bitstream, etc.), such as a coded representation of a picture in a video. The encoder engine 106 generates a coded representation of a picture by partitioning each picture into a plurality of slices. A slice is independent of other slices, so that information in the slice can be decoded without relying on data from other slices within the same picture. A slice includes one or more slice segments, including an independent slice segment and, if present, one or more dependent slice segments that depend on previous slice segments.
[0069] In HEVC, the slice is then partitioned into coding tree blocks (CTBs) of luma samples and chroma samples. The CTB of luma samples and one or more CTBs of chroma samples together with the syntax for the samples are called coding tree units (CTUs). CTUs can also be called "tree blocks" or "largest coding units" (LCUs). CTUs are the basic processing units for HEVC encoding. CTUs can be split into multiple coding units (CUs) of different sizes. A CU contains arrays of luma and chroma samples called coding blocks (CBs).
[0070] Luma and chroma CBs can be further split into prediction blocks (PBs). A PB is a block of samples of a luminance component or a chroma component that uses the same motion parameters for inter-frame prediction or intra-block copy (IBC) prediction (when available or enabled for use). A luminance PB and one or more chroma PBs together with associated syntax form a prediction unit (PU). For inter-frame prediction, a motion parameter set (e.g., one or more motion vectors, reference indices, etc.) is signaled in the bitstream for each PU and is used for inter-frame prediction of the luminance PB and one or more chroma PBs. Motion parameters may also be referred to as motion information. A CB may also be partitioned into one or more transform blocks (TBs). A TB represents a square block of samples of a color component, to which a residual transform (e.g., in some cases, the same two-dimensional transform) is applied to decode a prediction residual signal. A transform unit (TU) represents a TB of luminance and chroma samples and corresponding syntax elements. Transform decoding is described in more detail below.
[0071] The size of the CU corresponds to the size of the decoding mode and can be a square shape. For example, the size of the CU can be 8x 8 samples, 16x 16 samples, 32x 32 samples, 64x 64 samples, or any other appropriate size up to the size of the corresponding CTU. The phrase "N x N" is used herein to refer to the pixel size of the video block in the vertical and horizontal dimensions (e.g., 8 pixels x8 pixels). The pixels in the block can be arranged in rows and columns. In some implementations, the block may not have the same number of pixels in the horizontal direction as in the vertical direction. The syntax data associated with the CU can describe, for example, the partitioning of the CU into one or more PUs. The partitioning mode can be different between whether the CU is encoded in an intra-frame prediction mode or an inter-frame prediction mode. The PU can be partitioned into a non-square shape. The syntax data associated with the CU can also, for example, describe the partitioning of the CU into one or more TUs according to the CTU. The TU can be square or non-square in shape.
[0072] According to the HEVC standard, a transform unit (TU) may be used to perform the transform. TUs may be different for different CUs. The size of the TU may be set based on the size of the PU within a given CU. The TU may have the same size as the PU or be smaller than the PU. In some examples, a quadtree structure called a residual quadtree (RQT) may be used to subdivide the residual samples corresponding to the CU into smaller units. The leaf nodes of the RQT may correspond to the TU. The pixel difference values associated with the TU may be transformed to generate transform coefficients. The transform coefficients may then be quantized by the encoder engine 106.
[0073] Once the picture of the video data is partitioned into CUs, the encoder engine 106 predicts each PU using a prediction mode. The prediction unit or prediction block is then subtracted from the original video data to obtain a residual (described below). For each CU, the prediction mode can be signaled in the bitstream using syntax data. The prediction mode may include intra-frame prediction (or intra-picture prediction) or inter-frame prediction (or inter-picture prediction). Intra-frame prediction exploits the correlation between spatially adjacent samples within a picture. For example, using intra-frame prediction, each PU is predicted from adjacent image data in the same picture, using, for example, DC prediction to find an average value for the PU, using plane prediction to fit a plane surface to the PU, using directional prediction to infer from adjacent data, or using any other appropriate prediction type. Inter-frame prediction uses temporal correlation between pictures to derive motion compensated prediction for blocks of image samples. For example, using inter-frame prediction, each PU is predicted from image data in one or more reference pictures (before or after the current picture in output order) using motion compensated prediction. For example, a decision can be made at the CU level whether to use inter-picture prediction or intra-picture prediction to decode a picture area.
[0074] The encoder engine 106 and the decoder engine 116 (described in more detail below) can be configured to operate according to VVC. According to VVC, a video decoder (such as the encoder engine 106 and / or the decoder engine 116) partitions a picture into a plurality of coding tree units (CTUs) (wherein the CTB of a luma sample and one or more CTBs of a chroma sample, and the syntax for the sample are collectively referred to as CTUs). The video decoder can partition the CTU according to a tree structure (such as a quadtree-binary tree (QTBT) structure or a multi-type tree (MTT) structure). The QTBT structure removes the concept of multiple partition types, such as the distinction between CU, PU, and TU in HEVC. The QTBT structure includes two levels, including: a first level partitioned according to a quadtree partition, and a second level partitioned according to a binary tree partition. The root node of the QTBT structure corresponds to the CTU. The leaf nodes of the binary tree correspond to the coding units (CUs).
[0075] In the MTT segmentation structure, blocks can be segmented using quadtree segmentation, binary tree segmentation, and one or more types of ternary tree segmentation. Ternary tree segmentation is a segmentation in which a block is divided into three sub-blocks. In some examples, ternary tree segmentation divides a block into three sub-blocks without dividing the original block by the center. The segmentation types in MTT (e.g., quadtree, binary tree, and ternary tree) can be symmetric or asymmetric.
[0076] In some examples, the video coder may use a single QTBT or MTT structure to represent each of the luma and chroma components, while in other examples, the video coder may use two or more QTBT or MTT structures, such as one QTBT or MTT structure for the luma component and another QTBT or MTT structure for the two chroma components (or two QTBT and / or MTT structures for respective chroma components).
[0077] The video decoder may be configured to use quadtree segmentation, QTBT segmentation, MTT segmentation, or other segmentation structures in accordance with HEVC. For purposes of illustration, the description herein may refer to QTBT segmentation. However, it should be understood that the techniques of the present disclosure may also be applied to video decoders configured to use quadtree segmentation or also use other types of segmentation.
[0078] In some examples, one or more slices of a picture are assigned a slice type. Slice types include I slices, P slices, and B slices. I slices (intra-frame, independently decodable) are slices of a picture that are decoded only by intra-frame prediction, and are therefore independently decodable because I slices only require data within the frame to predict any prediction unit or prediction block of the slice. P slices (unidirectional predicted frames) are slices of a picture that can be decoded using intra-frame prediction and unidirectional inter-frame prediction. Each prediction unit or prediction block within a P slice is decoded using intra-frame prediction or inter-frame prediction. When inter-frame prediction is applied, the prediction unit or prediction block is predicted only by one reference picture, and therefore the reference sample comes from only one reference area of one frame. B slices (bidirectional predicted frames) are slices of a picture that can be decoded using intra-frame prediction and inter-frame prediction (e.g., bi-prediction or uni-prediction). The prediction unit or prediction block of a B slice may be bidirectionally predicted from two reference pictures, where each picture contributes a reference region, and the sample sets of the two reference regions are weighted (e.g., with equal weights or with different weights) to generate a prediction signal for the bidirectional prediction block. As explained above, the slices of a picture are coded independently. In some cases, a picture may be coded only as one slice.
[0079] As mentioned above, intra-picture prediction of a picture exploits the correlation between spatially adjacent samples within the picture. There are multiple intra-frame prediction modes (also referred to as "intra-frame modes"). In some examples, intra-frame prediction of a luminance block includes 35 modes, including a planar mode, a DC mode, and 33 angular modes (e.g., a diagonal intra-frame prediction mode and an angular mode adjacent to a diagonal intra-frame prediction mode). The 35 intra-frame prediction modes are indexed as shown in Table 1 below. In other examples, more intra-frame modes may be defined, including prediction angles that may not yet be represented by the 33 angular modes. In other examples, the prediction angles associated with the angular modes may be different from those used in HEVC.
[0080] Intra prediction mode The name of the association 0 INTRA_PLANAR 1 INTRA_DC 2..34 INTRA_ANGULAR2..INTRA_ANGULAR34
[0081] Table 1 - Specification of intra prediction modes and associated names
[0082] Inter-picture prediction uses the temporal correlation between pictures in order to derive motion compensated prediction for blocks of image samples. Using a translational motion model, the position of a block in a previously decoded picture (reference picture) is represented by a motion vector (Δx, Δy), where Δx specifies the horizontal displacement of the reference block relative to the position of the current block, and Δy specifies the vertical displacement of the reference block relative to the position of the current block. In some cases, the motion vector (Δx, Δy) may be integer sample precision (also referred to as integer precision), in which case the motion vector points to an integer pixel grid (or integer pixel sampling grid) of a reference frame. In some cases, the motion vector (Δx, Δy) may have fractional sample precision (also referred to as fractional pixel precision or non-integer precision) to more accurately capture the motion of the underlying object without being limited to the integer pixel grid of the reference frame. The precision of the motion vector may be expressed by the quantization level of the motion vector. For example, the quantization level may be integer precision (e.g., 1 pixel) or fractional pixel precision (e.g., 1 / 4 pixel, 1 / 2 pixel, or other values below a pixel). When the corresponding motion vector has fractional sample precision, interpolation is applied to the reference picture to derive the prediction signal. For example, samples available at integer positions may be filtered (e.g., using one or more interpolation filters) to estimate values at fractional positions. A previously decoded reference picture is indicated by a reference index (refIdx) to a reference picture list. Motion vectors and reference indices may be referred to as motion parameters. Two types of inter-picture prediction may be performed, including uni-prediction and bi-prediction.
[0083] In the case of inter-frame prediction using bi-prediction (also known as bidirectional inter-frame prediction), two motion parameter sets (Δx0, y0, refIdx0 and Δx1, y1, refIdx1) are used to generate two motion compensated predictions (from the same reference picture or possibly from different reference pictures). For example, in the case of bi-prediction, each prediction block uses two motion compensated prediction signals and generates B prediction units. The two motion compensated predictions are then combined to obtain the final motion compensated prediction. For example, the two motion compensated predictions can be combined by averaging. In another example, weighted prediction can be used, in which case different weights can be applied to each motion compensated prediction. The reference pictures that can be used in bi-prediction are stored in two separate lists, represented as list 0 and list 1, respectively. The motion parameters can be derived using a motion estimation process at the encoder.
[0084] In the case of inter prediction using uni-prediction (also known as unidirectional inter prediction), a motion parameter set (Δx0, y0, refIdx0) is used to generate motion compensated prediction from a reference picture. For example, in the case of uni-prediction, each prediction block uses at most one motion compensated prediction signal and generates P prediction units.
[0085] The PU may include data related to the prediction process (e.g., motion parameters or other appropriate data). For example, when the PU is encoded using intra prediction, the PU may include data describing the intra prediction mode for the PU. As another example, when the PU is encoded using inter prediction, the PU may include data defining a motion vector for the PU. The data defining the motion vector for the PU may describe, for example, the horizontal component of the motion vector (Δx), the vertical component of the motion vector (Δy), the resolution for the motion vector (e.g., integer precision, quarter-pixel precision, or eighth-pixel precision), the reference picture to which the motion vector points, a reference index, a reference picture list for the motion vector (e.g., list 0, list 1, or list C), or any combination thereof.
[0086] After performing prediction using intra prediction and / or inter prediction, the encoding device 104 may then perform transformation and quantization. For example, after prediction, the encoder engine 106 may calculate a residual value corresponding to the PU. The residual value may include a pixel difference value between the current pixel block (PU) being decoded and a prediction block (e.g., a predicted version of the current block) used to predict the current block. For example, after generating a prediction block (e.g., performing inter prediction or intra prediction), the encoder engine 106 may generate a residual block by subtracting the prediction block generated by the prediction unit from the current block. The residual block includes a set of pixel difference values that quantizes the difference between the pixel values of the current block and the pixel values of the prediction block. In some examples, the residual block may be represented by a two-dimensional block format (e.g., a two-dimensional matrix or array of pixel values). In such an example, the residual block is a two-dimensional representation of pixel values.
[0087] Any residual data that may remain after performing the prediction is transformed using a block transform, which may be based on a discrete cosine transform, a discrete sine transform, an integer transform, a wavelet transform, other appropriate transform functions, or any combination thereof. In some cases, one or more block transforms (e.g., sizes 32x 32, 16x 16, 8x 8, 4x 4, or other appropriate sizes) may be applied to the residual data in each CU. In some embodiments, TUs may be used for the transform and quantization process implemented by the encoder engine 106. A given CU with one or more PUs may also include one or more TUs. As described in further detail below, the residual values may be transformed into transform coefficients using a block transform, and then quantized and scanned using the TUs to produce serialized transform coefficients for entropy coding.
[0088] In some embodiments, after intra prediction or inter prediction decoding using the PU of the CU, the encoder engine 106 may calculate residual data for the TU of the CU. The PU may include pixel data in the spatial domain (or pixel domain). The TU may include coefficients in the transform domain after applying the block transform. As described above, the residual data may correspond to the pixel difference between the pixel of the unencoded picture and the predicted value corresponding to the PU. The encoder engine 106 may form a TU including the residual data for the CU, and then may transform the TU to generate transform coefficients for the CU.
[0089] The encoder engine 106 may perform quantization of the transform coefficients. Quantization provides further compression by quantizing the transform coefficients to reduce the amount of data used to represent the coefficients. For example, quantization may reduce the bit depth associated with some or all of the coefficients. In one example, a coefficient having an n-bit value may be rounded down to an m-bit value during quantization, where n is greater than m.
[0090] Once quantization is performed, the decoded video bitstream includes quantized transform coefficients, prediction information (e.g., prediction mode, motion vectors, block vectors, etc.), segmentation information, and any other appropriate data (such as other syntax data). The different elements of the decoded video bitstream can then be entropy encoded by the encoder engine 106. In some examples, the encoder engine 106 can scan the quantized transform coefficients using a predefined scan order to generate a serialized vector that can be entropy encoded. In some examples, the encoder engine 106 can perform adaptive scanning. After scanning the quantized transform coefficients to form a vector (e.g., a one-dimensional vector), the encoder engine 106 can entropy encode the vector. For example, the encoder engine 106 can use context adaptive variable length coding, context adaptive binary arithmetic coding, grammar-based context adaptive binary arithmetic coding, probability interval segmentation entropy coding, or another appropriate entropy coding technique.
[0091] As mentioned above, the HEVC bitstream includes a set of NAL units, which include VCL NAL units and non-VCL NAL units. The VCL NAL unit includes decoded picture data that forms a decoded video bitstream. For example, there is a bit sequence that forms a decoded video bitstream in the VCL NAL unit. In addition to other information, the non-VCL NAL unit may also contain a parameter set with high-level information related to the encoded video bitstream. For example, the parameter set may include a video parameter set (VPS), a sequence parameter set (SPS), and a picture parameter set (PPS). Examples of the goals of the parameter set include bit rate efficiency, error resilience, and providing a system layer interface. Each slice references a single valid PPS, SPS, and VPS to access information that the decoding device 112 can use to decode the slice. An identifier (ID) can be decoded for each parameter set, including a VPS ID, an SPS ID, and a PPS ID. The SPS includes an SPS ID and a VPS ID. The PPS includes a PPS ID and an SPS ID. Each slice header includes a PPS ID. Using these IDs, a valid parameter set for a given slice can be identified.
[0092] The PPS includes information applicable to all slices in a given picture. Therefore, all slices in a picture refer to the same PPS. Slices in different pictures may also refer to the same PPS. The SPS includes information applicable to all pictures in the same decoded video sequence (CVS) or bitstream. As previously described, a decoded video sequence is a series of access units (AUs) starting with a random access point picture (e.g., an instant decoding reference (IDR) picture or a broken link access (BLA) picture or other appropriate random access point picture) in the base layer and having certain properties (as described above) until the next AU (or the end of the bitstream) with a random access point picture in the base layer and having certain properties and not including the next AU. The information in the SPS may not change between pictures in a decoded video sequence. Pictures in a decoded video sequence may use the same SPS. The VPS includes information applicable to all layers in a decoded video sequence or bitstream. The VPS includes a syntax structure having syntax elements applicable to the entire decoded video sequence. In some embodiments, the VPS, SPS, or PPS may be sent in-band with the coded bitstream. In some embodiments, the VPS, SPS, or PPS may be sent out-of-band in a different transport than the NAL units containing the coded video data.
[0093] The video bitstream may also include a supplemental enhancement information (SEI) message. For example, a SEI NAL unit may be part of a video bitstream. In some cases, the SEI message may contain information that is not needed for the decoding process. For example, the information in the SEI message may not be necessary for the decoder to decode the video picture of the bitstream, but the decoder may use the information to improve the display or processing of the picture (e.g., the decoded output). The information in the SEI message may be embedded metadata. In an illustrative example, the decoder side entity may use the information in the SEI message to improve the visibility of the content. In some cases, certain application standards may force the presence of such SEI messages in the bitstream, so that quality improvements can be brought to all devices that comply with the application standard (e.g., carrying frame encapsulation SEI messages for frame-compatible planar stereoscopic 3DTV video formats, wherein SEI messages are carried for each frame of the video, processing recovery point SEI messages, and using pan scanning in DVB to scan rectangular SEI messages).
[0094] The output 110 of the encoding device 104 may send the NAL units constituting the encoded video bitstream data to the decoding device 112 of the receiving device over the communication link 120. The input 114 of the decoding device 112 may receive the NAL units. The communication link 120 may include a channel provided by a wireless network, a wired network, or a combination of a wired network and a wireless network. The wireless network may include any wireless interface or combination of wireless interfaces and may include any suitable wireless network (e.g., the Internet or other wide area network, a packet-based network, a WiFi network, or a wireless network). TM , Radio Frequency (RF), UWB, WiFi Direct, Cellular, Long Term Evolution (LTE), WiMax TM The wired network may include any wired interface (e.g., optical fiber, Ethernet, power line Ethernet, coaxial cable Ethernet, digital signal line (DSL), etc.). Various devices may be used to implement wired and / or wireless networks, such as base stations, routers, access points, bridges, gateways, switches, etc. The encoded video bitstream data may be modulated according to a communication standard such as a wireless communication protocol and sent to a receiving device.
[0095] In some examples, the encoding device 104 may store the encoded video bitstream data in the storage unit 108. The output 110 may obtain the encoded video bitstream data from the encoder engine 106 or from the storage unit 108. The storage unit 108 may include any of a variety of distributed or locally accessed data storage media. For example, the storage unit 108 may include a hard drive, a storage disk, a flash memory, a volatile or non-volatile memory, or any other suitable digital storage medium for storing the encoded video data. The storage unit 108 may also include a decoded picture buffer (DPB) for storing reference pictures for use in inter-frame prediction. In another example, the storage unit 108 may correspond to a file server or another intermediate storage device that can store the encoded video generated by the source device. In such a case, the receiving device including the decoding device 112 can access the stored video data from the storage device via streaming or downloading. The file server can be any type of server capable of storing the encoded video data and sending the encoded video data to the receiving device. Example file servers include web servers (e.g., for websites), FTP servers, network attached storage (NAS) devices, or local disk drives. The receiving device can access the encoded video data through any standard data connection (including an Internet connection). This may include a wireless channel (e.g., a Wi-Fi connection), a wired connection (e.g., DSL, cable modem, etc.), or a combination of the two suitable for accessing the encoded video data stored on a file server. The transmission of the encoded video data from the storage unit 108 may be a streaming transmission, a download transmission, or a combination thereof.
[0096] The input 114 of the decoding device 112 receives the encoded video bitstream data, and the video bitstream data may be provided to the decoder engine 116, or to the storage unit 118 for later use by the decoder engine 116. For example, the storage unit 118 may include a DPB for storing reference pictures for use in inter-frame prediction. A receiving device including the decoding device 112 may receive the encoded video data to be decoded via the storage unit 108. The encoded video data may be modulated according to a communication standard such as a wireless communication protocol and sent to the receiving device. The communication medium for sending the encoded video data may include any wireless or wired communication medium, such as a radio frequency (RF) spectrum or one or more physical transmission lines. The communication medium may form part of a packet-based network, such as a local area network, a wide area network, or a global network such as the Internet. The communication medium may include a router, a switch, a base station, or any other device that may be used to facilitate communication from a source device to a receiving device.
[0097] The decoder engine 116 can decode the coded video bitstream data by entropy decoding (e.g., using an entropy decoder) and extracting elements of one or more coded video sequences that constitute the coded video data. The decoder engine 116 can then rescale the coded video bitstream data and perform an inverse transform on it. The residual data is then passed to the prediction stage of the decoder engine 116. The decoder engine 116 then predicts a pixel block (e.g., a PU). In some examples, the prediction is added to the output of the inverse transform (residual data).
[0098] The decoding device 112 may output the decoded video to a video destination device 122, which may include a display or other output device for displaying the decoded video data to a consumer of the content. In some aspects, the video destination device 122 may be part of a receiving device that includes the decoding device 112. In some aspects, the video destination device 122 may be part of a separate device distinct from the receiving device.
[0099] In some embodiments, the video encoding device 104 and / or the video decoding device 112 may be integrated with the audio encoding device and the audio decoding device, respectively. The video encoding device 104 and / or the video decoding device 112 may also include other hardware or software necessary to implement the above-mentioned decoding technology, such as one or more microprocessors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), field programmable gate arrays (FPGAs), discrete logic, software, hardware, firmware, or any combination thereof. The video encoding device 104 and the video decoding device 112 may be integrated as part of a combined encoder / decoder (codec) in the corresponding device. The following reference is made to Figures 11A-11D An example of specific details of the encoding device 104 is described below. Fig.12 An example of specific details of the decoding device 112 is described.
[0100] Figure 1The example system shown in is only an illustrative example that can be used in this article. The technology for processing video data using the technology described in this article can be performed by any digital video encoding and / or decoding device. Although in general, the technology of the present disclosure is performed by a video encoding device or a video decoding device, the technology can also be performed by a combined video encoder-decoder commonly referred to as a "CODEC". In addition, the technology of the present disclosure can also be performed by a video preprocessor. The source device and the receiving device are only examples of such encoding devices, wherein the source device generates encoded video data for transmission to the receiving device. In some examples, the source device and the receiving device can operate in a substantially symmetrical manner so that each of these devices includes a video encoding and decoding component. Therefore, the example system can support one-way or two-way video transmission between video devices, for example, for video streaming, video playback, video broadcasting or video telephony.
[0101] Extensions to the HEVC standard include a multi-view video coding extension called MV-HEVC and a scalable video coding extension called SHVC. The MV-HEVC and SHVC extensions share the concept of layered coding, in which different layers are included in the coded video bitstream. Each layer in the decoded video sequence is addressed by a unique layer identifier (ID). A layer ID may be present in the header of a NAL unit to identify the layer to which the NAL unit is associated. In MV-HEVC, different layers may represent different views of the same scene in a video bitstream. In SHVC, different scalable layers are provided to represent video bitstreams at different spatial resolutions (or picture resolutions) or different reconstruction fidelity. Scalable layers may include a base layer (where layer ID = 0) and one or more enhancement layers (where layer ID = 1, 2, ... n). The base layer may conform to the profile of the first version of HEVC and represent the lowest available layer in the bitstream. Compared to the base layer, the enhancement layer has increased spatial resolution, temporal resolution or frame rate and / or reconstruction fidelity (or quality). Enhancement layers are organized hierarchically and may or may not be dependent on lower layers. In some examples, different layers may be coded using a single standard codec (e.g., all layers are coded using HEVC, SHVC, or other coding standards). In some examples, different layers may be coded using a multi-standard codec. For example, the base layer may be coded using AVC, while one or more enhancement layers may be coded using SHVC and / or the MV-HEVC extension of the HEVC standard.
[0102] Typically, a layer includes a set of VCL NAL units and a corresponding set of non-VCL NAL units. A specific layer ID value is assigned to the NAL unit. Layers can be hierarchical in the sense that a layer can depend on a lower layer. A layer set refers to a self-contained set of layers represented in a bitstream, which means that the layers in the layer set can depend on other layers in the layer set during the decoding process, but do not depend on any other layer for decoding. Therefore, each layer in the layer set can form an independent bitstream that can represent the video content. A group of layers in a layer set can be obtained from another bitstream through the operation of a sub-bitstream extraction process. When the decoder wishes to operate according to certain parameters, the layer set can correspond to the group of layers to be decoded.
[0103] As described above, for each block, a set of motion information (also referred to herein as motion parameters) may be available. The motion information set contains motion information for a forward prediction direction and a backward prediction direction. The forward prediction direction and the backward prediction direction are two prediction directions of the bidirectional prediction mode, in which case the terms "forward" and "backward" do not necessarily have a geometric meaning. Instead, "forward" and "backward" correspond to reference picture list 0 (RefPicList0 or L0) and reference picture list 1 (RefPicList1 or L1) of the current picture. In some examples, when only one reference picture list is available for a picture or slice, only RefPicList0 is available, and the motion information for each block of the slice is always forward.
[0104] In some examples, a motion vector and its reference index are used in a decoding process (e.g., motion compensation). Such a motion vector with an associated reference index is represented as a single prediction set of motion information. For each prediction direction, the motion information may include a reference index and a motion vector. In some cases, for simplicity, the motion vector itself may be referenced as if it has an associated reference index. The reference index is used to identify a reference picture in the current reference picture list (RefPicList0 or RefPicList1). The motion vector has a horizontal component and a vertical component, which provides an offset from a coordinate position in the current picture to a coordinate system in the reference picture identified by the reference index. For example, a reference index may indicate a specific reference picture that should be used for a block in the current picture, and a motion vector may indicate where the best matching block in the reference picture (the block that best matches the current block) is located in the reference picture.
[0105] The picture order count (POC) can be used in video coding standards to identify the display order of pictures. Although there are cases where two pictures in a coded video sequence may have the same POC value, it does not usually occur in a decoded video sequence. When there are multiple decoded video sequences in the bitstream, pictures with the same POC value may be closer to each other in decoding order. The POC value of a picture can be used for reference picture list construction (such as reference picture set derivation in HEVC) and motion vector scaling.
[0106] In H.264 / AVC, each inter-frame macroblock (MB) can be partitioned in four different ways, including: one 16x16 MB partition; two 16x8 MB partitions; two 8x16 MB partitions; and four 8x8 MB partitions. Different MB partitions in one MB can have different reference index values (RefPicList0 or RefPicList1) for each direction. In some cases, when the MB is not partitioned into four 8x8 MB partitions, it can have only one motion vector for each MB partition in each direction. In some cases, when the MB is partitioned into four 8x8 MB partitions, each 8x8 MB partition can be further partitioned into sub-blocks, in which case each sub-block can have a different motion vector in each direction. In some examples, there are four different ways to get a sub-block from an 8x8 MB partition, including: one 8x8 sub-block; two 8x4 sub-blocks; two 4x8 sub-blocks; and four 4x4 sub-blocks. Each sub-block can have a different motion vector in each direction. Therefore, the motion vector can exist at a level equal to or higher than the sub-block.
[0107] In AVC, for skip and / or direct modes in B slices, temporal direct mode can be implemented at the MB level or MB partition level. For each MB partition, the motion vector is derived using the motion vector of the block co-located with the current MB partition in the RefPicList1[0] of the current block. Each motion vector in the co-located block can be scaled based on the POC distance.
[0108] In AVC, a spatial direct mode can also be implemented. For example, in AVC, the direct mode can also predict motion information based on spatial neighbors.
[0109] As mentioned above, in HEVC, the largest coding unit in a slice is called a coding tree block (CTB). The CTB contains a quadtree whose nodes are coding units. In the HEVC main profile, the size of the CTB can range from 16x16 to 64x64. In some cases, a size of 8x8 CTB can be supported. The coding unit (CU) can have the same size as the CTB and be as small as 8x8. In some cases, a mode can be used to decode each coding unit. When the CU is inter-coded, the CU can be further partitioned into 2 or 4 prediction units (PUs), or when further partitioning is not applicable, the CU can become only one PU. When there are two PUs in a CU, they can be half-sized rectangles, or two rectangles with 1 / 4 or 3 / 4 the size of the CU.
[0110] When a CU is inter-coded, there is one motion information set for each PU. In addition, each PU can be coded using a unique inter prediction mode to derive a motion information set.
[0111] For motion prediction in HEVC, there are two inter prediction modes for prediction units (PUs), including merge mode and advanced motion vector prediction (AMVP) mode. Special cases that are considered merges are skipped. In AMVP or merge mode, a motion vector (MV) candidate list for multiple motion vector predictors can be maintained. In merge mode, the motion vector of the current PU and the reference index are generated by extracting a candidate from the MV candidate list. In some examples, as described below, one or more stored local illumination compensation (LIC) flags can be included in the MV candidate list together with the stored motion vector.
[0112] In an example where the MV candidate list is used for motion prediction of a block (and illumination compensation where applicable), the MV candidate list may be constructed by an encoding device and a decoding device, respectively. For example, the MV candidate list may be generated by an encoding device when encoding a block, and may be generated by a decoding device when decoding a block. Information related to motion information candidates in the MV candidate list (e.g., information related to one or more motion vectors, information related to one or more LIC flags that may be stored in the MV candidate list in some cases, and / or other information) may be signaled between the encoding device and the decoding device. For example, in merge mode, an index value for the stored motion information candidate may be signaled from the encoding device to the decoding device (e.g., in a syntax structure such as a picture parameter set (PPS), a sequence parameter set (SPS), a video parameter set (VPS), a slice header, a supplemental enhancement information (SEI) message sent in a video bitstream or separately from a video bitstream, and / or other signaling). The decoding device may construct an MV candidate list, and use the signaled reference or index to obtain one or more motion information candidates from the constructed MV candidate list for motion compensated prediction. For example, the decoding device 112 may construct an MV candidate list and use the motion vector from the index position (and the LIC flag in some cases) to perform motion prediction on the block. In the case of AMVP mode, in addition to the reference or index, a difference or residual value may also be signaled as a delta. For example, for AMVP mode, the decoding device may construct one or more MV candidate lists and apply the delta value to one or more motion information candidates obtained using the signaled index value when performing motion compensated prediction on the block.
[0113] In some examples, the MV candidate list contains up to five candidates for merge mode and two candidates for AMVP mode. In other examples, different numbers of candidates may be included in the MV candidate list for merge mode and / or AMVP mode. The merge candidate may include a motion information set. For example, a motion information set may include motion vectors corresponding to two reference picture lists (list 0 and list 1) and a reference index. If the merge candidate is identified by a merge index, the reference picture is used for prediction of the current block, and the associated motion vector is determined. However, in AMVP mode, for each potential prediction direction from list 0 or list 1, the reference index needs to be explicitly signaled together with the MVP index to the MV candidate list, because the AMVP candidate only contains motion vectors. In AMVP mode, the predicted motion vector can be further refined.
[0114] As seen above, the merge candidate corresponds to a complete set of motion information, while the AMVP candidate contains only one motion vector and reference index for a specific prediction direction.Candidates for both modes can be derived similarly from the same spatial and temporal neighboring blocks.
[0115] In some examples, merge mode allows an inter-predicted PU to inherit the same one or more motion vectors, prediction direction, and one or more reference picture indexes from an inter-predicted PU that includes a motion data position selected from a set of spatially adjacent motion data positions and one of two temporally co-located motion data positions. For AMVP mode, one or more motion vectors of a PU may be predictively decoded relative to one or more motion vector predictors (MVPs) from an AMVP candidate list constructed by an encoder and / or decoder. In some cases, for unidirectional inter prediction of a PU, an encoder and / or decoder may generate a single AMVP candidate list. In some cases, for bidirectional prediction of a PU, an encoder and / or decoder may generate two AMVP candidate lists, one using motion data of spatially and temporally adjacent PUs in a forward prediction direction, and one using motion data of spatially and temporally adjacent PUs in a backward prediction direction.
[0116] Candidates for both modes can be derived from spatial and / or temporal neighboring blocks. Figure 2A and Figure 2B Included is a conceptual diagram showing spatial neighbor candidates in HEVC. Figure 2A Spatial neighboring motion vector (MV) candidates for merge mode are shown. Figure 2B Spatial neighboring motion vector (MV) candidates for AMVP mode are shown. Although the method of generating candidates according to blocks is different for merge and AMVP modes, spatial MV candidates are derived according to neighboring blocks for a specific PU (PU0).
[0117] In merge mode, the encoder and / or decoder may form a merge candidate list by considering merge candidates from various motion data locations. Figure 2A As shown, about Figure 2A Up to four spatial MV candidates can be derived from the spatially adjacent motion data positions indicated by numbers 0-4 in the merge candidate list. In the merge candidate list, the MV candidates can be sorted in the order indicated by numbers 0-4. For example, the positions and order may include: left position (0), top position (1), top right position (2), bottom left position (3), and top left position (4).
[0118] exist Figure 2BIn the AVMP mode shown in , the neighboring blocks can be divided into two groups: the left group including blocks 0 and 1, and the upper group including blocks 2, 3 and 4. For each group, potential candidates in the neighboring blocks that reference the same reference picture as the reference picture indicated by the signaled reference index have the highest priority to be selected to form the final candidate for the group. It is possible that all neighboring blocks do not contain motion vectors pointing to the same reference picture. Therefore, if such a candidate cannot be found, the first available candidate can be scaled to form the final candidate, so that the temporal distance difference can be compensated.
[0119] Figure 3A and Figure 3B A conceptual diagram showing temporal motion vector prediction in HEVC is included. A temporal motion vector predictor (TMVP) candidate, if enabled and available, is added to the MV candidate list after the spatial motion vector candidate. The process of motion vector derivation for the TMVP candidate is the same for both merge and AMVP modes. However, in some cases, the target reference index for the TMVP candidate in merge mode may be set to zero or may be derived from the reference index of the neighboring blocks.
[0120] The main block position for TMVP candidate derivation is the lower right block outside the co-located PU (such as Figure 3A The motion vector for the TMVP candidate is derived from the co-located PU of the co-located picture indicated at the slice level. Similar to the temporal direct mode in AVC, motion vector scaling can be performed on the motion vector of the TMVP candidate, which can be performed to compensate for the distance difference.
[0121] Other aspects of motion prediction are covered in the HEVC standard. For example, several other aspects of merge mode and AMVP mode are covered. One aspect includes motion vector scaling. Regarding motion vector scaling, it is assumed that the value of the motion vector is proportional to the distance of the picture in the presentation time. The motion vector associates two pictures, the reference picture and the picture containing the motion vector (i.e., the containing picture). When a motion vector is used to predict other motion vectors, the distance between the containing picture and the reference picture is calculated based on the picture order count (POC) value.
[0122] For a motion vector to be predicted, both its associated containing picture and reference picture can be different. Therefore, a new distance is calculated (based on POC). Moreover, the motion vector is scaled based on these two POC distances. For spatial neighboring candidates, the containing picture for the two motion vectors is the same, while the reference picture is different. In HEVC, motion vector scaling applies to both TMVP and AMVP for both spatial and temporal neighboring candidates.
[0123] Another aspect of motion prediction includes artificial motion vector candidate generation. For example, if the motion vector candidate list is incomplete, an artificial motion vector candidate is generated and inserted at the end of the list until all lists are obtained. In merge mode, there are two types of artificial MV candidates: combined candidates derived only for B slices; and zero candidates used only for AMVP (if the first type does not provide enough artificial candidates). For each pair of candidates that are already in the candidate list and have the necessary motion information, a bidirectional combined motion vector candidate is derived by combining the motion vector of the first candidate with reference to the picture in list 0 and the motion vector of the second candidate with reference to the picture in list 1.
[0124] In some implementations, a pruning process may be performed when a new candidate is added or inserted into the MV candidate list. For example, in some cases, MV candidates from different blocks may include the same information. In such a case, storing repeated motion information of multiple MV candidates in the MV candidate list may result in redundancy in the MV candidate list and reduced efficiency. In some examples, the pruning process may eliminate or minimize redundancy in the MV candidate list. For example, the pruning process may include comparing the potential MV candidate to be added to the MV candidate list with the MV candidate already stored in the MV candidate list. In an illustrative example, the horizontal displacement (Δx) and vertical displacement (Δy) of the stored motion vector (indicating the position of the reference block relative to the position of the current block) may be compared with the horizontal displacement (Δx) and vertical displacement (Δy) of the potential candidate. If the comparison reveals that the motion vector of the potential candidate does not match any of the one or more stored motion vectors, the potential candidate is not considered to be a candidate to be pruned and may be added to the MV candidate list. If a match is found based on the comparison, the potential MV candidate is not added to the MV candidate list, thereby avoiding insertion of the same candidate. In some cases, to reduce complexity, only a limited number of comparisons are performed during the pruning process, rather than comparing each potential MV candidate with all existing candidates.
[0125] There are various related motion prediction techniques. One prediction technique is illumination compensation (IC) or brightness compensation (also called local illumination compensation (LIC) in some cases). The terms illumination compensation (IC) and local illumination compensation (LIC) are used interchangeably in this article. IC for HEVC is proposed. For example, in JCTVC-C041, partition-based illumination compensation (PBIC) is proposed. Unlike weighted prediction (WP) that enables and / or disables WP and signals WP parameters at the slice level (described below), PBIC enables and / or disables IC and signals IC parameters at the prediction unit (PU) level to handle local illumination changes. In JVET-B0023, block-based IC is extended to CU, and similar to PU in HEVC, CU becomes the basic unit carrying motion information in the QTBT structure.
[0126] Similar to weighted prediction (WP) described in more detail below, a scaling factor (also denoted by a) and an offset (also denoted by b) are used in IC, and the number of shifts is fixed to 6. An IC flag for each PU is decoded to indicate whether IC is applied to the current PU. If IC is applied to the PU, the IC parameter set (e.g., a and b) is signaled to the decoder and used for motion compensation. In some examples, to save bits spent on IC parameters, the chroma components share the scaling factors with the luma components, and a fixed offset of 128 is used.
[0127] In 3D-HEVC, IC is enabled for inter-view prediction. Unlike WP and PBIC, which explicitly signal IC parameters, IC derives IC parameters based on neighboring samples of the current CU and neighboring samples of the reference block. In some cases, IC is only applicable to 2Nx2N partition mode. In some examples, for AMVP mode, an IC flag is signaled for each CU predicted from inter-view reference pictures. In some examples, for merge mode, in order to save bits, the IC flag is signaled only when the merge index of the PU is not equal to 0. In some cases, IC is not applicable to CUs predicted only from temporal reference pictures.
[0128] Regarding the derivation of IC parameters, the linear IC model used in inter-view prediction is shown in Equation (1):
[0129] p(i, j) = a*r(i+dv x ,j+dv y )+b, where (i, j)∈PU c Equation (1)
[0130] In equation (1), PU c is the current PU, (i,j) is the PU cThe coordinates of the pixel in (dv x ,dv y ) is PU c The disparity vector of , p(i,j) is PU c , r is the PU’s reference picture from the adjacent view, and a and b are the parameters of the linear IC model.
[0131] To estimate the parameters a and b for PU, use Figure 4A and Figure 4B The first pixel set is Figure 4A , and includes available reconstructed neighboring pixels in the left column and upper row of the current CU (the CU containing the current PU). The second pixel set is Figure 4B , and includes corresponding neighboring pixels of the reference block of the current CU. The reference block of the current CU is found by using the disparity vector of the current PU.
[0132] Set Rec neig and Rec refneig Respectively represent the adjacent pixel sets of the current CU and its reference block, and let 2N represent Rec neig and Rec refneig Then, a and b can be calculated as follows:
[0133]
[0134]
[0135] In some cases, only a is used in the linear model, and b is always set equal to 0. In some cases, only b is used, and a is always set equal to 1.
[0136] In HEVC, weighted prediction (WP) is supported, in which case a scaling factor (denoted by a), a shift number (denoted by s), and an offset (denoted by b) are used in motion compensation. Assuming that the pixel value at position (x, y) of the reference picture is p(x, y), p'(x, y) = ((a*p(x, y) + (1 << (s-1))) >> s) + b is used as a prediction value in motion compensation instead of p(x, y).
[0137] When WP is enabled, for each reference picture of the current slice, a flag is signaled to indicate whether WP is applicable to the reference picture. If WP is applicable to a reference picture, a WP parameter set (i.e., a, s, and b) is sent to the decoder, and the WP parameter set is used for motion compensation according to the reference picture. In some examples, in order to flexibly turn on / off WP for luma and chroma components, WP flags and WP parameters for luma and chroma components are signaled separately. In WP, one same WP parameter set can be used for all pixels in one reference picture.
[0138] A local illumination compensation (LIC) method is also proposed in JEM. A description of LIC in JEM can be found in JVET-G1001. Regarding LIC in JEM, LIC is based on a linear model for illumination variation using a scaling factor a and an offset b. For each coding unit (CU) for which an inter prediction mode has been applied, such LIC is adaptively enabled or disabled. When LIC is applied to a CU, a least square error method is adopted to derive parameters a and b by using neighboring samples of the current CU and its corresponding reference samples. For example, Figure 5A and Figure 5B As shown, sub-sampled (e.g., 2:1 sub-sampled) neighboring samples of the CU and corresponding pixels in the reference picture (identified by motion information of the current CU or sub-CU) are used. In some examples, LIC parameters are derived and applied to each prediction direction separately. In some examples, an illumination compensation flag may be signaled for the CU to indicate whether LIC is applicable. In some examples, such as when the CU is decoded using merge mode, the illumination compensation flag may be copied from the neighboring block in a manner similar to the motion information copying in merge mode.
[0139] According to LIC, the luminance value (of a sample or pixel) is compensated in the inter prediction in the linear form a*p+b, where p is the sample in the inter prediction, a is the scaling factor, and b is the offset. The scaling factor a and the offset b are obtained using the neighboring samples of the current block and the reference block used for inter prediction (e.g., Figure 5A and Figure 5B )). For example, inter prediction may be first derived using motion information signaled for an inter-coded block, then LIC parameters a and b may be derived, and then prediction refinement may be performed. LIC parameters may be derived by minimizing the difference between neighboring reconstructed samples of the current block and neighboring samples of a reference block used for inter prediction. In some cases, minimization may be performed using a linear least squares method and / or any other suitable minimization method.
[0140] Figure 6is a diagram showing an example of neighbor reconstructed samples of a current block 602 and neighbor samples of a reference block 604 for unidirectional inter prediction. A motion vector MV may be coded for the current block 602, wherein the MV may include a reference index for a reference picture list and / or other motion information for identifying the reference block 604. For example, the MV may include a horizontal component and a vertical component that provide an offset from a coordinate position in the current picture to a coordinate in the reference picture identified by the reference index.
[0141] Figure 7 is a diagram showing an example of neighbor reconstructed samples of a current block 702 and neighbor samples of a first reference block 704 and a second reference block 706 for bidirectional inter prediction. In this case, two motion vectors MV0 and MV1 may be decoded for the current block 702 to identify the first reference block 704 and the second reference block 706, respectively.
[0142] As described above, the LIC parameters may include one or more offsets (e.g., offset b), one or more weights or scaling factors (e.g., scaling factor a), a shift number, and / or other appropriate illumination compensation parameters. The LIC parameters for inter-frame prediction (e.g., unidirectional inter-frame prediction) may be derived. For bidirectional inter-frame prediction, the one or more weights may include a first weight for a first reference picture and a second weight for a second reference picture.
[0143] In some implementations, linear least squares regression may be used to estimate LIC parameters in bidirectional prediction motion compensation. In one example, the derivation of LIC parameters may be performed by solving a cost function. For example, the cost function may include the use of a least squares function. For example, a subset of samples from one or more neighboring blocks of the current block may be used to derive LIC parameters. Samples from neighboring blocks of the current block may be used to find possible illumination changes in the current block 702, because it may be assumed that there is a strong correlation between neighboring samples (in neighboring blocks) and current samples (in current block 702). For example, it may be assumed that the current block and neighboring blocks that share the same motion information should contain very similar illumination values. Another reason for using neighboring samples is that the current block has not yet been predicted, and there may not be pixels to be used from the current block, in which case neighboring samples (which have been reconstructed) may be used when performing motion compensation for the current block.
[0144] In one illustrative example, the top neighbor, the left neighbor, or both the top neighbor and the left neighbor may be used. For example, when deriving the LIC parameters for the current block 702, a subset of samples from the top and left neighbors (Ni) for the current block 702, a subset of pixels from the top and left neighbors (P0) of the first reference block 704, and a subset of pixels from the top and left neighbors (P1) of the second reference block 706 may be used. The samples of the neighboring blocks P0 and P1 may include the samples of the neighboring blocks N1 and N2. i The corresponding samples used in the neighboring blocks P0 and P1 may be identified by the motion information of the current block. In one illustrative example, the motion vector may be signaled by a merge mode or an AMVP mode. Reference pictures may be identified by their reference indexes, and reference blocks 704 and 706 within the reference pictures may be identified by motion vectors MV0 and MV1, respectively.
[0145] In some examples, more than one derivation method may be performed to derive LIC parameters. Examples of an inter-frame prediction engine or module for deriving LIC parameters at the encoder side may include Fig.12 4, and / or the motion estimation unit 42, and / or the motion compensation unit 44 shown in FIG. An example of an inter-frame prediction engine or module for deriving LIC parameters at the decoder side may include Fig.13 81 and / or motion compensation unit 82 shown in . In such examples, the encoder or other transmitter-side device may signal to the decoder which derivation method to use at a sequence level (e.g., in a VPS and / or SPS), at a picture level (e.g., in a PPS), at a slice level (e.g., in a slice header), at a CTU level, at a CU level, at a PU level, or a combination thereof, or at other appropriate signaling levels.
[0146] In some examples, the least squares solution can be calculated based on multiple lines and / or columns of neighbors (e.g., top neighbor, left neighbor, both top and left neighbors, or other neighbors). Example numbers of lines and / or columns (and in some cases, typical numbers) include one, two, four, or any other appropriate number of rows and / or columns. When multiple lines and / or columns of neighboring blocks are used, the above cost function can be modified. For example, if the block is a 16x16 block (16 rows of pixels by 16 columns of pixels), and if two lines from the top neighbor block and two columns from the left neighbor block are used, then the neighbor block N i will include 64 samples (32 samples from the left neighboring block and 32 samples from the top neighboring block). In such an example, neighbors P0 and P1 will also include 64 samples.
[0147] In some cases, integer-positioned samples (or pixels) are used to derive LIC parameters. In some cases, fractionally-positioned samples are used to derive LIC parameters. In some cases, both integer-positioned samples and fractionally-positioned samples can be used. For example, the actual displacement of moving objects between pictures is continuous and often does not follow the sampling grid of pictures in a video sequence. For this reason, fractional precision can be used for motion vectors instead of integer precision, resulting in reduced visual residual errors and improved decoding efficiency of video decoders. If the motion vector has a fractional value, the reference block needs to be interpolated accordingly. For example, the motion vector for the sample of the current block can point to a fractional pixel position in the reference block. The fractional pixel position refers to a sample (e.g., a luma sample) at a fractional sample position (non-integer position) in the block. These positions need to be generated by interpolation. In one example of using fractionally-positioned samples, an interpolated or filtered version of a reference block neighbor (e.g., P0 or P1) can be used to reduce the quantization error from the reconstructed pixel when deriving LIC parameters. One or more interpolation filters can be used to generate such an interpolated version of the template.
[0148] In some examples, only the luma component need be used to jointly optimize the LIC parameters for Ref0 and Ref1. Alternatively, both luma and chroma components may be considered during the derivation of the bidirectional prediction LIC parameters. The encoder may signal to the decoder (in a parameter set, SEI message, or other appropriate signaling mechanism) whether to apply the LIC to one or more of the chroma components or only the luma component.
[0149] In some examples, one or more flags (e.g., at a block level, a slice level, or other appropriate level) may be signaled, for example, from an encoder to a decoder to indicate whether a particular tool (e.g., LIC, merge mode, and other modes) has been applied in the prediction of the block. For example, a merge mode flag may be stored with the motion information for the current block. Based on the merge mode flag, it may be inferred from the motion information whether the current block has been coded using the merge mode. In addition to the merge mode flag, an illumination compensation (IC) flag may be used to indicate that a block (e.g., a PU, CU, or other block) has been coded with illumination compensation applied. As described above, when a block is coded using the merge mode, the IC flag may be copied from a neighboring block in a manner similar to the copying of motion information in the merge mode. Otherwise, if the CU is not coded using the merge mode (e.g., the AMVP mode is used instead), an IC flag for the CU may be signaled to indicate whether the LIC is applicable.
[0150] Systems, methods, and computer-readable media for selectively applying local illumination compensation (LIC) with various prediction modes are described herein. In some examples, various techniques are described as follows: These techniques are used to selectively disable (e.g., limit, prohibit, inhibit, avoid, not apply, etc.) illumination compensation when processing blocks of certain sizes to reduce processing cost and complexity for such blocks and / or avoid problems or inconsistencies caused when illumination compensation is applied to certain blocks.
[0151] In some cases, LIC may be disabled or not enabled / applied for blocks of certain sizes and / or for blocks with certain restrictions in order to reduce processing cost and / or complexity for such blocks. For example, when LIC is applied to a block (e.g., a CU, PU, TU, or other block), the LIC process may introduce additional complexity and memory bandwidth requirements to the processing of the block. However, blocks of certain sizes may have certain restrictions, limitations, and / or characteristics that may make LIC for such blocks inappropriate or undesirable.
[0152] For illustration, some video coding techniques may limit bidirectional inter prediction for blocks of a certain size in order to reduce worst-case memory bandwidth and complexity. For example, in VVC, 4x4 blocks provide the worst-case complexity. Therefore, in VVC, bidirectional inter prediction for 4x4 blocks is limited (in this case, bidirectional inter prediction cannot be performed for 4x4 blocks) to reduce worst-case memory bandwidth and complexity. Other example coding techniques may similarly limit bidirectional inter prediction for specific block sizes to reduce complexity. Therefore, in order to similarly reduce processing complexity for certain block sizes (such as block sizes where bidirectional inter prediction is limited as described above), the techniques described herein may disable, limit, or not apply LIC for blocks of such sizes.
[0153] For example, the system and / or process may prevent the LIC from being applied to blocks of certain block sizes for which bidirectional inter prediction is restricted. The system and / or process may determine (e.g., based on a coding restriction) that bidirectional inter prediction is disabled or restricted for application to blocks of a certain size, and based on the restriction, may determine that bidirectional inter prediction is not to be applied to blocks of a certain size. The system and / or process may then determine not to apply the LIC to blocks of a certain size, for example, based on determining that bidirectional inter prediction is disabled or restricted for application to blocks of a certain size. For example, the system and / or process may disable the LIC for the block when encoding and / or decoding the block, or decide not to enable the LIC for the block. By disabling or not applying the LIC for those blocks for which bidirectional inter prediction is restricted, the system and / or process may reduce processing cost / complexity for those blocks and / or avoid introducing additional complexity of the LIC. To further illustrate, using the VVC example above (where bidirectional inter prediction is restricted to 4x4 blocks), the system and / or process can restrict or avoid using LIC for 4x4 blocks in order to reduce the processing complexity for such blocks or avoid introducing the additional complexity of LIC. Thus, the system and / or process can process 4x4 blocks without using LIC.
[0154] In some cases, when the system and / or process determines that LIC is not to be applied for a block, the system and / or process may determine not to signal a LIC flag (or illumination compensation (IC) flag) for the block. In other cases, in response to determining that LIC is not to be applied for the block, the system and / or process may determine to signal a LIC flag for the block having a value indicating that LIC is not to be performed for the block.
[0155] In addition, the techniques herein may limit the use of LIC for block sizes that exceed the size of a block in a video decoding pipeline structure. For example, in some cases, a 64x64 virtual pipeline structure may be used to implement a VVC codec. However, problems may arise when LIC is applied to larger blocks (such as 128xN blocks) that do not fit within the 64x64 pipeline structure. For further explanation, using a 128xN block as an example, 128 reference samples of the reference and neighboring samples for the current block will be required to derive LIC parameters. However, since 128 samples do not fit within the 64x64 pipeline structure, the system and / or process may disable or decide not to enable / apply LIC for blocks larger than 64x64.
[0156] Although 64x64 pipeline structures and 128xN block sizes are used above as examples, the techniques herein may be similarly applied to any block size and / or pipeline structure. For example, in the case of pipeline structures other than 64x64 pipeline structures in the above examples, the system and / or process may disable or decide not to enable / apply LIC for blocks that are larger than the blocks of these specific pipeline structures. In some cases, the system and / or process may signal a LIC mode flag for blocks that have LIC disabled or otherwise not enabled / applied. In some examples, in response to determining not to apply LIC to such blocks, the system and / or process may determine to signal one or more LIC flags for these blocks, which have values indicating that LIC will not be performed for those blocks.
[0157] The video decoding pipeline structure may include or may consist of one or more virtual pipeline data units (VPDUs). In some examples, the VPDU may include non-overlapping units in a picture or video frame. For example, the VPDU may be a non-overlapping MxM-luminance (L) / NxN-chrominance (C) unit in a picture. The VPDU structure includes a virtual block for memory access (e.g., to determine which area of the memory is used to process one or more specific data blocks), which defines the size of the memory allocated to implement a standard-based decoding process (e.g., HEVC, VVC or other decoding process). In some examples of the hardware decoding process, continuous VPDUs may be processed in parallel by multiple processing / decoding pipeline stages. For example, different decoding pipeline stages may process different VPDUs simultaneously. In some cases, the VPDU size may be roughly proportional to the buffer size in some pipelines. For example, the VPDU size may be set to a transform block (TB) size. In an illustrative example, the size of the VPDU may be 64x64 samples (e.g., luminance samples). In HEVC, the VPDU size is set to the maximum transform block size, which is 32x32-L (luminance samples) and 16x16-C (chrominance samples). In VVC, the VPDU size is set to 128x128-L (luminance samples) and 64x64-C (chrominance samples), which results in a larger VPDU size requirement.
[0158] A VPDU may include one or more blocks (e.g., CUs, PUs, TUs, or other blocks). For example, in some cases, a single CU may be included in one VPDU (e.g., the size of the CU and the VPDU size are the same). In some cases, multiple CUs may be included in one VPDU (e.g., multiple CUs have a size smaller than the VPDU size). Depending on the size of the block (e.g., CU, PU, or other block), the block may or may not span multiple VPDUs (in which case the block may include multiple VPDUs). For example, a block having a size of 128x64 (128 samples wide x 64 samples high) may span two VPDUs, each of which has a size of 64x64. In another example, a block having a size of 128x128 (128 samples wide x 128 samples high) may span four VPDUs, each of which has a size of 64x64. A block may be split into a specific number of sub-blocks for performing inter-frame prediction by each of the VPDU pipeline stages. For example, a 128x128 block may be split into 64x64 sub-blocks for processing by four different VPDU pipeline stages.Blocks may be split for inter prediction since there is no dependency on neighboring blocks for performing inter prediction.
[0159] Figure 8 8 is a flow chart illustrating an example method 800 for selectively limiting illumination compensation when processing blocks of a particular size. At block 802, method 800 may include obtaining a block of a picture of video data. The block may include a coding unit (CU), a prediction unit (PU), a transform unit (TU), or any other block of a picture. In one illustrative example, the block may be a block in a Figure 7 800 is performed by a decoding device (e.g., 112). In other examples, the video data may include unencoded video data, such as when the method 800 is performed by an encoding device (e.g., 104).
[0160] The video data may include multiple pictures, and the pictures may be divided into multiple blocks, as described above. The video data may also include motion information for the pictures and / or blocks, which may be used to perform motion compensation.
[0161] At block 804, method 800 may include determining a size of the block. For example, the block may be analyzed to determine a width and / or height of the block. At block 806, method 800 may include determining whether the size of the block is equal to or less than a block size associated with a block size restriction or whether the size of the block is greater than a block size associated with a video decoding pipeline structure, the block size restriction prohibiting bidirectional inter-frame prediction for blocks having a corresponding size that is equal to or less than the block size associated with the block size restriction.
[0162] In some examples, the method 800 may determine whether the size of the block satisfies the first condition in block 804 (e.g., whether the size of the block is equal to or less than the block size associated with the block size limit) or the second condition in block 804 (e.g., whether the size of the block is greater than the block size associated with the video decoding pipeline structure). For example, if the video decoding algorithm used to process the block restricts bidirectional inter-frame prediction to a 4x4 block size, the method 800 may determine whether the size of the block is equal to or less than the specific 4x4 block size limit. As another example, if the video decoding pipeline structure has an MxN block size, where both M and N are positive integers, the method 800 may determine whether the size of the block is greater than MxN. In other examples, the method 800 may determine whether the size of the block satisfies both the first condition (e.g., whether the size of the block is equal to or less than the block size associated with the block size limit) and the second condition (e.g., whether the size of the block is greater than the block size associated with the video decoding pipeline structure).
[0163] In some examples, a block size restriction may define a minimum block size that is set to enable or allow bidirectional inter prediction. In some examples, the minimum block size may provide a threshold size required to allow bidirectional inter prediction for a block. In some examples, a block size associated with a block size restriction may be a smaller block size than the minimum block size that is set to enable or allow bidirectional inter prediction. Thus, a block size restriction may prevent or prohibit bidirectional inter prediction for any block having a size equal to or less than the block size associated with the block size restriction.
[0164] At block 808 , method 800 may include determining whether the size of the block is one of equal to or less than a block size associated with a block size limit or greater than a block size associated with a video coding pipeline structure.
[0165] At block 810, method 800 may include disabling illumination compensation (or partial illumination compensation) for the block based on determining that the size of the block is equal to or less than a block size associated with a block size limit or is greater than a block size associated with a video decoding pipeline structure. Disabling illumination compensation for the block may include limiting, prohibiting, avoiding and / or inhibiting illumination compensation for the block and / or deciding not to apply or enable illumination compensation for the block.
[0166] In some aspects, method 800 may include setting a value of an illumination compensation flag associated with the block to false based on disabling illumination compensation for the block. In some examples, setting the value of the illumination compensation flag to false indicates that illumination compensation for the block is disabled. In some implementations, the false value of the illumination compensation flag may be 0 or a null value.
[0167] In some aspects, method 800 may include determining that bidirectional inter prediction is not applied for the block based on the size of the block being equal to or less than a block size associated with a block size limit. In addition, in some cases, illumination compensation for the block may be disabled based at least in part on determining that bidirectional inter prediction is not applied for the block.
[0168] In some aspects, method 800 may include: determining whether the size of a different block of a picture of video data (e.g., a new current block) is greater than a block size associated with a block size limit or whether the size of the different block is less than a block size associated with a video decoding pipeline structure; determining that the size of the different block of the picture of video data is greater than the block size associated with the block size limit and less than the block size associated with the video decoding pipeline structure; and enabling illumination compensation for the different block based on determining that the size of the different block is greater than the block size associated with the block size limit and less than the block size associated with the video decoding pipeline structure.
[0169] In some cases, when (or based on) enabling illumination compensation for the different block, the value of the illumination compensation flag associated with the different block can be set to true. Setting the value of the illumination compensation flag to true can indicate that illumination compensation for the different block is enabled. In some implementations, the value of the illumination compensation flag can be set to 1 to indicate a true value.
[0170] In some examples, the different block (eg, 702) may be based on one or more neighboring blocks (eg, N i ) and one or more additional neighboring blocks (e.g., P0 or P1) of a reference block (e.g., 704 or 706) selected for inter prediction of the block to derive one or more illumination compensation parameters for the different block, and illumination compensation may be applied to the different block based on the one or more illumination compensation parameters. In addition, samples of the block may be reconstructed based on the illumination compensation applied to the block.
[0171] In some aspects, method 800 may include decoding the block based on the prediction mode and without illumination compensation (e.g., via decoding device 112). For example, the block may be decoded using bidirectional inter prediction, unidirectional inter prediction, intra prediction, etc. and without applying illumination compensation. In some cases, the prediction mode may be signaled using syntax data in a bitstream containing the block.
[0172] In some cases, samples of a block may be reconstructed based on a prediction mode and a residual value estimated for the block. For example, a residual value may be calculated for a block, and a prediction mode (e.g., bidirectional inter prediction, unidirectional inter prediction, intra prediction, etc.) may be performed for the block. Then, samples of the block may be reconstructed based on the residual value for the block and the prediction mode performed for the block.
[0173] In some aspects, method 800 may include generating a coded video bitstream including a block of a picture of video data, and signaling the coded video bitstream to a decoding device (e.g., 112). In some examples, one or more illumination compensation flags may be signaled in the coded video bitstream. The one or more illumination compensation flags may include an indication of disabling illumination compensation for the block. For example, the one or more illumination compensation flags may include an illumination compensation flag having a false value indicating that illumination compensation for the block is disabled.
[0174] In some examples, determining that the size of the block is one of equal to or less than a block size associated with a block size limit or greater than a block size associated with a video decoding pipeline structure may include determining that illumination compensation is limited. In some cases, an illumination compensation flag may not be signaled in the coded video bitstream based on determining that illumination compensation is limited.
[0175] Fig. 9 is a flow chart illustrating an example method 900 of decoding video data. In some examples, method 900 may include selectively applying or not applying illumination compensation for each block based on the size of the block, whether the block is larger than a block in a pipeline structure, and / or whether bidirectional prediction is applied to the block.
[0176] At block 902, method 900 may include obtaining an encoded video bitstream including video data. At block 904, method 900 may include obtaining a block of a picture of video data from the encoded video bitstream (e.g., block 702). The block may include a CU, a PU, a TU, or any other block of a picture. In some examples, the video data may include encoded video data (e.g., in an encoded video bitstream), such as when method 900 is performed by a decoding device (e.g., 112). As previously described, the video data may include multiple pictures, and the pictures may be divided into multiple blocks. The video data may also include motion information of the pictures and / or blocks, which may be used to perform motion compensation.
[0177] At box 906, method 900 may include determining whether the size of the block is equal to or less than a block size associated with a block size limit or whether the size of the block is greater than a block size associated with a video decoding pipeline structure, the block size limit prohibiting bidirectional inter-frame prediction for blocks having a corresponding size equal to or less than the block size associated with the block size limit.
[0178] In some examples, the method 900 may determine whether the size of the block satisfies the first condition in block 906 (e.g., whether the size of the block is equal to or less than the block size associated with the block size limit) or the second condition in block 906 (e.g., whether the size of the block is greater than the block size associated with the video decoding pipeline structure). For example, if the restriction is for bidirectional inter-frame prediction of a 4x4 block size, the method 900 may determine whether the size of the block is equal to or less than the specific 4x4 block size limit. As another example, if the video decoding pipeline structure has an MxN block size, where M and N are both positive integers, the method 900 may determine whether the size of the block is greater than MxN. In other examples, the method 900 may determine whether the size of the block satisfies both the first condition (e.g., whether the size of the block is equal to or less than the block size associated with the block size limit) and the second condition (e.g., whether the size of the block is greater than the block size associated with the video decoding pipeline structure).
[0179] The block size limit may define a minimum block size that is set to enable bidirectional inter prediction and / or one or more block sizes that are set to disable bidirectional inter prediction. In some examples, the minimum block size may provide a threshold size required to allow bidirectional inter prediction for a block. Thus, the block size limit may prevent or prohibit bidirectional inter prediction for any block having a size below the minimum block size. In some examples, the block size associated with the block size limit may be a size for which bidirectional inter prediction is prohibited or restricted by the block size limit.
[0180] At block 908, method 900 may include disabling illumination compensation (or partial illumination compensation) for the block based on the size of the block being equal to or less than a block size associated with a block size limit or being greater than a block size associated with a video decoding pipeline structure. For example, if the size of the block is equal to or less than a block size associated with a block size limit or is greater than a block size associated with a video decoding pipeline structure, illumination compensation for the block may be avoided or suppressed. In some examples, disabling illumination compensation for the block may include avoiding, limiting, prohibiting, and / or suppressing illumination compensation for the block, and / or deciding not to apply or enable illumination compensation for the block. By disabling illumination compensation when the size of the block is equal to or less than a block size associated with a block size limit defined for bidirectional prediction or the block is larger than a block in a pipeline structure, processing cost and / or complexity for the block may be reduced, and previously described processing issues and inconsistencies may be avoided.
[0181] In some examples, disabling illumination compensation for a block may include determining whether illumination compensation is to be applied for the block based on the size of the block and / or whether the block is larger than a block in a pipeline structure. For example, if the size of the block is equal to or smaller than a block size associated with a block size limit set for bidirectional prediction, illumination compensation for the block may be avoided or suppressed. Additionally, if the block is larger than a block in a pipeline structure, illumination compensation for the block may be avoided or suppressed. In other examples, disabling illumination compensation for the block may include determining whether illumination compensation is to be applied for the block based on determining whether bidirectional prediction is to be applied for inter-frame prediction of the block.
[0182] In some implementations, instead of determining whether the size of the block is equal to or less than the block size associated with the block size limit set for bidirectional prediction or larger than the block in the pipeline structure, and then determining whether to disable illumination compensation for the block based on whether the size of the block is equal to or less than the block size associated with the block size limit set for bidirectional prediction or larger than the block in the pipeline structure, method 900 may determine whether to disable illumination compensation for the block based on an illumination compensation flag or the lack of an illumination compensation flag.
[0183] For example, the illumination compensation flag can be signaled using the coded video bitstream and can indicate whether illumination compensation will be applied to the block. In some cases, the illumination compensation flag is set to false to indicate that illumination compensation will not be applied to the block. Otherwise, the illumination compensation flag is set to true to indicate that illumination compensation will be applied to the block. In some examples, if it is determined that bidirectional prediction will be applied to the current block, the size of the block is equal to or less than the block size associated with the block size limit for bidirectional prediction, and / or the block is larger than the block in the pipeline structure, then the illumination compensation flag can be set to false. In some cases, if the illumination compensation flag is not signaled using the coded video bitstream, method 900 can determine that illumination compensation for the block should be disabled or avoided.
[0184] In some aspects, method 900 may include: obtaining a different block of a picture of video data from an encoded video bitstream; determining whether a size of the different block of the picture of video data (e.g., a new current block) is greater than a block size associated with a block size limit or whether the size of the different block is less than a block size associated with a video decoding pipeline structure. In some examples, method 900 may also include: applying illumination compensation for the different block based on determining that the size of the different block is greater than the block size associated with the block size limit and less than the block size associated with the video decoding pipeline structure.
[0185] In some examples, applying illumination compensation for a different block may include: using one or more neighboring blocks of the different block and one or more neighboring blocks of a reference block used for inter-frame prediction of the different block to derive one or more illumination compensation parameters for the different block. For example, as explained above, the brightness value (of a sample or pixel) may be compensated in the inter-frame prediction in a linear form a*p+b, where p is a sample in the inter-frame prediction, a is a scaling factor, and b is an offset. The scaling factor a and the offset b are parameters that can be derived using neighboring samples of the different block and neighboring samples of the reference block (e.g., as explained above). Figure 5A and Figure 5B In some examples, the one or more neighboring blocks of the different block may include one or more of a top neighboring block or a left neighboring block of the different block, and the one or more neighboring blocks of the reference block may include one or more of a top neighboring block or a left neighboring block of the reference block.
[0186] As previously described, in some cases, one or more of the aforementioned challenges associated with processing cost and / or complexity when decoding a block can be overcome by selectively avoiding illumination compensation. For example, if bidirectional prediction is restricted for a block, illumination compensation for the block can be suppressed or not performed. As another example, if the block has a size equal to or less than a block size associated with a block size restriction that prohibits or prevents bidirectional prediction for the block, or if the block is larger than a block in a pipeline structure, illumination compensation for the current block can be disabled. Disabling (e.g., suppressing, avoiding, restricting, prohibiting, not applying, etc.) illumination compensation for blocks that meet such conditions (e.g., having a block size equal to or less than a block size associated with prohibiting or preventing bidirectional prediction block size restrictions or a size larger than a block in a pipeline structure) can reduce processing cost and / or complexity for such blocks.
[0187] In some cases, an illumination compensation flag (or IC flag or LIC flag) may be stored with the motion information for a block. In some examples, the illumination compensation flag may be set to false for all bidirectional motion vector candidates. In some examples, illumination compensation may be avoided even if the illumination compensation flag indicates otherwise (e.g., is set to true). For example, if an illumination compensation flag set to true has been inherited from another block, but bidirectional motion compensation is to be performed on the block, the block is larger than the pipeline structure size, or the size of the current block is equal to or lower than the block size limit for bidirectional prediction, then illumination compensation for the block may be avoided or disabled.
[0188] As previously described, the illumination compensation flag may be stored together with the motion information for the block. In some examples, the stored illumination compensation flag may be inherited together with the associated motion information. For example, the illumination compensation flag and motion information of the neighboring block may be inherited and used for motion prediction of the block (e.g., in merge mode). In some examples, motion prediction of the block may include using the inherited motion information without modification. In such an example, illumination compensation may be performed for the block based on the value of the inherited illumination compensation flag. For example, the motion vector inherited from the neighboring block may be used as the motion vector of the block, and illumination compensation may be performed if the illumination compensation flag inherited from the neighboring block is true. In such an example, if the illumination compensation flag is true, LIC parameters may also be inherited from the neighboring block and may be used as LIC parameters for the block.
[0189] In other examples, motion prediction for a block may include deriving motion information for the block based on motion information of another block (such as a neighboring block). In such examples, deriving motion information for the block may include modifying motion information of a neighboring block or another block (e.g., in AMVP or TMVP mode). For example, in TMVP mode, the motion vector of the neighboring block may be scaled, and the scaled motion vector may be used as the motion vector of the block. In a pairwise motion vector derivation, two motion vectors MV1 and MV2 of two neighboring blocks may be used to derive the motion vector MV of the block. For example, the motion vector MV of the block may be derived as a half sum of two motion vectors MV1 and MV2, where MV=(MV1+MV2) / 2. In such an example (and other examples), the motion vector of the block may be different from one or more motion vectors of other blocks used to derive the motion vector of the block. When the motion vector of the block may be different from one or more motion vectors of other blocks used to derive the motion vector of the block, inheriting the illumination compensation flag for the block from one or more other blocks may be problematic. For example, the derived (modified) motion vector for the block may point to a different block in the reference picture than the block pointed to by the motion vector(s) of the other blocks (unmodified). Accordingly, illumination compensation for the block for which motion information is derived based on the motion vector(s) of the other blocks may not be required, even if illumination compensation is performed for the other blocks (or the inherited illumination compensation flag is true).
[0190] In some examples, information about whether bi-directional prediction and / or illumination compensation is to be applied for a block may be signaled or may be based on information stored or associated with the block. For example, signaling from an encoding device (e.g., 104) to a decoding device (e.g., 112) may indicate whether the block has been coded using bi-directional prediction motion compensation and / or illumination compensation.
[0191] In some examples, the indication of whether to apply bidirectional prediction and / or illumination compensation for the block can be based on an illumination compensation flag associated with the block. For example, the value of the illumination compensation flag being set to false can indicate that bidirectional prediction and / or illumination compensation will not be applied to the block. On the other hand, the value of the illumination compensation flag being set to true can indicate that bidirectional prediction and / or illumination compensation will be applied to the block. In some cases, not signaling the illumination compensation flag associated with the block using the bitstream can indicate that illumination compensation should be disabled or avoided for the block.
[0192] In some examples, determining whether to apply illumination compensation for a block based on the size of the block and the size of the pipeline structure may depend on whether the signaling information in the video bitstream includes an illumination compensation flag associated with the block. For example, if the signaling information does not include the illumination compensation flag, the method 900 may perform block 906 and then determine whether to disable illumination compensation for the block based on whether the size of the block is equal to or less than a block size associated with a block size limit or greater than a block size associated with a video decoding pipeline structure.
[0193] In some examples, the motion information for the block may be inherited. For example, in merge mode, the motion information for the block may be inherited from the motion information of a neighboring block or another block in the candidate list. In some examples, the illumination compensation flag may be stored in a motion vector candidate list including the motion information for the block along with the motion information for the block.
[0194] In some examples, information about whether bidirectional prediction is to be applied may be determined. For example, applying bidirectional prediction for a block may include using a first reference block and a second reference block to obtain a bidirectional predictor for the block. Considering Figure 7 In an illustrative example of , determining whether to apply bi-predictive motion compensation for the current block 702 may be based on whether the first reference block 704 and the second reference block 706 can be used to obtain the first unidirectional predictor and the second unidirectional predictor, respectively. In some examples, if the first reference block 704 and the second reference block 706 are available, the first reference block 704 and the second reference block 706 may be used to obtain the first unidirectional predictor and the second unidirectional predictor, respectively. In some cases, one or both of the first reference block 704 and the second reference block 706 may be unavailable, and accordingly, bi-predictive motion compensation may not be applicable to the current block 702.
[0195] Fig.10 1 is a flow chart illustrating an example method 1000 for encoding video data. In some examples, the method 1000 may include selectively applying or not applying illumination compensation for each block based on whether bidirectional prediction is applied, whether the size of the block is equal to or less than a block size associated with a block size limit, or whether the block is larger than a block in a pipeline structure, the block size limit prohibiting or limiting bidirectional prediction for blocks having a corresponding size equal to or less than the block size associated with the block size limit.
[0196] At block 1002, method 1000 may include obtaining a block of a picture of video data. The block may include a CU, a PU, a TU, or any other block of a picture. In some examples, the video data may include unencoded video data, such as when method 1000 is performed by an encoding device (e.g., encoding device 104). As previously described, the video data may include multiple pictures, and the pictures may be divided into multiple blocks. Method 1000 may determine motion information of the pictures and / or blocks, which may be used to perform motion compensation.
[0197] At box 1004, method 1000 may include determining whether the size of the block is equal to or less than a block size associated with a block size limit or whether the size of the block is greater than a block size associated with a video decoding pipeline structure, the block size limit prohibiting bidirectional inter-frame prediction for blocks having corresponding sizes equal to or less than the block size associated with the block size limit.
[0198] In some examples, the method 1000 may determine whether the size of the block satisfies the first condition in block 1004 (e.g., whether the size of the block is equal to or less than the block size associated with the block size limit) or the second condition in block 1004 (e.g., whether the size of the block is greater than the block size associated with the video decoding pipeline structure). For example, if the restriction is for bidirectional inter-frame prediction of a 4x4 block size, the method 1000 may determine whether the size of the block is equal to or less than the specific 4x4 block size limit. As another example, if the video decoding pipeline structure has an MxN block size, where M and N are both positive integers, the method 1000 may determine whether the size of the block is greater than MxN. In other examples, the method 1000 may determine whether the size of the block satisfies both the first condition (e.g., whether the size of the block is equal to or less than the block size associated with the block size limit) and the second condition (e.g., whether the size of the block is greater than the block size associated with the video decoding pipeline structure).
[0199] The block size limit may define a minimum block size set to enable bidirectional inter prediction and / or one or more block sizes for disabling bidirectional inter prediction. In some examples, the minimum block size may provide a threshold size required to allow bidirectional inter prediction for a block. Thus, the block size limit may prevent or prohibit bidirectional inter prediction for any block having a size less than the minimum block size. In some examples, the block size limit may define one or more block sizes, such as the block size associated with the block size limit in block 1004 for which bidirectional inter prediction should be disabled.
[0200] At block 1006, method 1000 may include disabling illumination compensation (or partial illumination compensation) for the block based on the size of the block being equal to or less than a block size associated with a block size limit or being greater than a block size associated with a video decoding pipeline structure. For example, if the size of the block is equal to or less than a block size associated with a block size limit or is greater than a block size associated with a video decoding pipeline structure, illumination compensation for the block may be avoided or suppressed. In some examples, disabling illumination compensation for the block may include avoiding, limiting, prohibiting, and / or suppressing illumination compensation for the block, and / or deciding not to apply or enable illumination compensation for the block. By disabling illumination compensation when the size of the block is equal to or less than a block size associated with a block size limit for bidirectional prediction or when the block is larger than a block in a pipeline structure, processing cost and / or complexity for the block may be reduced, and previously described processing issues and inconsistencies may be avoided.
[0201] In some examples, disabling illumination compensation for a block may include determining whether to apply illumination compensation for the block based on the size of the block and / or whether the block is larger than a block in a pipeline structure. For example, if the size of the block is equal to or less than a block size associated with a block size limit set for bidirectional prediction, a determination may be made that illumination compensation for the block should be avoided or suppressed. Additionally, if the block is larger than a block in a pipeline structure, a determination may be made that illumination compensation for the block should be avoided or suppressed. In other examples, disabling illumination compensation for the block may include determining whether to apply illumination compensation for the block based on determining whether to apply bidirectional prediction for inter-frame prediction of the block.
[0202] In some implementations, instead of determining whether the size of the block is equal to or less than the block size associated with the block size limit set for bidirectional prediction or larger than the block in the pipeline structure, and then determining whether to disable illumination compensation for the block based on whether the size of the block is equal to or less than the block size associated with the block size limit set for bidirectional prediction or whether the size of the block is larger than the block in the pipeline structure, method 1000 may determine whether to disable illumination compensation for the block based on an illumination compensation flag or the lack of an illumination flag associated with the block.
[0203] For example, the illumination compensation flag may indicate whether illumination compensation is to be applied for the block. In some cases, the illumination compensation flag is set to false to indicate that illumination compensation is not to be applied for the block. Otherwise, the illumination compensation flag is set to true to indicate that illumination compensation is to be applied for the block. In some examples, if it is determined that bidirectional prediction is to be applied to the block, the size of the block is equal to or less than the block size associated with the block size limit for bidirectional prediction and / or the block is larger than a block in a pipeline structure, then the illumination compensation flag may be set to false.
[0204] As previously described, the illumination compensation flag may be stored along with the motion information for the block. In some examples, the illumination compensation flag may be set to false for all bidirectional motion vector candidates. In some examples, illumination compensation may be avoided even if the illumination compensation flag indicates otherwise (e.g., is set to true). For example, if an illumination compensation flag set to true has been inherited from another block, but bidirectional motion compensation is to be performed for the block, illumination compensation for the block may be avoided based on a determination that bidirectional motion compensation will not be applied to the block, the size of the block being equal to or below the block size limit for bidirectional prediction or being larger than a block in a pipeline structure.
[0205] At block 1008, method 1000 may include generating an encoded bitstream including at least a portion of the block. In some examples, an illumination compensation flag may be included in the encoded bitstream. In some examples, the illumination compensation flag may include a value (e.g., true or false) indicating whether illumination compensation should be applied for the block.
[0206] Furthermore, in some cases, if it is determined that illumination compensation is to be applied for the block, an illumination compensation flag may be signaled. In some examples, not signaling an illumination compensation flag for the block may indicate that illumination compensation should not be applied for the block.
[0207] Fig.11A 1 is a diagram illustrating an example scenario 1100 in which, based on a block size limit 1104 defined for a video decoding algorithm, a LIC flag 1106 of a current block 1102 is set to off (e.g., false), indicating that LIC for the current block 1102 is not performed and / or disabled. The current block 1102 may include a CU, a PU, a TU, or any other block of a picture. The block size limit 1104 may define a threshold block size for determining whether illumination compensation for the current block 1102 should be enabled or disabled. If the size of the current block 1102 is equal to or lower than the block size limit 1104, illumination compensation for the current block 1102 may be disabled (e.g., limited, prohibited, not enabled / applied, avoided, etc.). On the other hand, if the size of the current block 1102 is greater than the block size limit 1104, illumination compensation for the current block 1102 may be enabled.
[0208] In some examples, the size of the block size limit 1104 can be determined based on any size limit set by the decoding algorithm for bidirectional inter prediction of the current block 1102. For example, if the decoding algorithm specifies that bidirectional inter prediction should be disabled for blocks equal to or less than 4x4, the block size limit 1104 used to determine whether to enable or disable illumination compensation for the current block 1102 can be set to 4x4, which is consistent with the size limit set by the decoding algorithm for bidirectional inter prediction. In some cases, the decoding algorithm can set the size limit for bidirectional inter prediction for smaller blocks in order to reduce processing cost and / or complexity for such blocks and / or reduce worst-case memory bandwidth and complexity. Therefore, by setting the block size limit 1104 to be consistent with the size limit for bidirectional inter prediction, the system and / or process can avoid enabling illumination compensation for blocks that have bidirectional inter prediction limited, and therefore, the system and / or process can avoid introducing additional cost and complexity of illumination compensation, and can reduce or limit the cost and / or complexity for decoding such blocks.
[0209] In other examples, the size of the block size limit 1104 may be determined for a particular coding algorithm based on the size of the block size, with or without regard to any size limit set by the particular coding algorithm for bidirectional inter prediction. For example, in some cases, the size of the block size limit 1104 may be determined for a particular coding algorithm by weighing the cost / complexity of applying illumination compensation for one or more block sizes against the benefit of applying illumination compensation for such one or more block sizes. In another example, the size of the block size limit 1104 may be determined for a particular coding algorithm by weighing the cost / complexity of applying illumination compensation for one or more block sizes against one or more conditions, such as resource availability (e.g., memory bandwidth / capacity, computational bandwidth / capacity, network bandwidth / capacity, etc.), the complexity of the particular coding algorithm, the cost or complexity of applying the particular coding algorithm for one or more block sizes, performance requirements (e.g., quality of service, etc.), a ratio of cost / complexity and coding performance associated with one or more blocks, etc. In yet another example, the size of the block size limit 1104 may be determined for a particular coding algorithm based on an estimated worst-case memory bandwidth and / or complexity associated with the particular coding algorithm.
[0210] In the example scenario 1100, the current block 1102 is below (e.g., smaller than) the block size limit 1104, such as Fig.11AAs shown. Therefore, the LIC flag 1106 for the current block 1102 is set to off or false, indicating that illumination compensation should not be applied for the current block 1102. In some examples, the block size limit 1104 may require that both the length and width of the current block 1102 are equal to or lower than the block size limit 1104 in order for the LIC flag 1106 to be off. In other examples, the block size limit 1104 may allow the LIC flag 1106 to be turned off even if only the length or width of the current block 1102 is equal to or lower than the block size limit 1104.
[0211] Fig. 11B 1 is a diagram illustrating an example scenario 1120, in which, based on a block size limit 1124 defined for a video decoding algorithm, a LIC flag 1126 of a current block 1122 is set to on (e.g., true), which indicates that LIC for the current block 1122 is performed and / or enabled. The current block 1122 may include a CU, a PU, a TU, or any other block of a picture. As explained previously, the block size limit 1124 may define a threshold block size for determining whether illumination compensation for the current block 1122 should be enabled or disabled. Thus, if the size of the current block 1122 is equal to or lower than the block size limit 1124, illumination compensation for the current block 1122 may be disabled (e.g., limited, prohibited, not enabled / applied, avoided, etc.), and if the size of the current block 1122 is greater than the block size limit 1124, illumination compensation for the current block 1102 may be enabled.
[0212] In this example, the current block 1122 is above (eg, larger than) the block size limit 1124, as shown in FIG. Fig. 11B As shown. Therefore, the LIC flag 1126 for the current block 1122 is set to on or true, indicating that illumination compensation should be applied for the current block 1122. In some examples, the block size limit 1124 may require that both the length and width of the current block 1122 be higher than the block size limit 1124 in order for the LIC flag 1126 to be turned on. In other examples, the block size limit 1124 may allow the LIC flag 1126 to be turned on even if only the length or width of the current block 1122 is greater than the corresponding length or width of the block size limit 1104.
[0213] In some examples, block size limit 1124 may define another block size limit based on a size associated with a pipeline structure of a particular decoding algorithm, as described below with respect to Fig. 11C and 11DFor example, the block size limit 1124 may define a second block size limit, which indicates that if the size of the current block 1122 exceeds or is larger than the size of a block in the pipeline structure of the decoding algorithm, the LIC flag 1126 should be turned off. Therefore, based on the second block size limit, if the size of the current block 1122 exceeds or is larger than the size of a block in the pipeline structure, the LIC flag 1126 will be set to off, even if the current block 1122 is higher (e.g., larger) than the size of the block in the pipeline structure. Fig. 11B The block size limit 1124 is shown in .
[0214] Fig. 11C 1 is a diagram illustrating an example scenario 1140 in which a LIC flag 1146 for a current block 1142 is set according to a pipeline structure block size based restriction 1144. The current block 1142 may include a CU, PU, TU, or any other block of a picture. The pipeline structure block size based restriction 1144 may be defined based on the size of a block in a pipeline structure for a particular decoding algorithm for the current block 1142.
[0215] In this example, the pipeline structure block size based limit 1144 can define a block size limit corresponding to a size associated with the pipeline structure of a particular decoding algorithm. For example, the pipeline structure block size based limit 1144 can define a block size limit that is set based on the size of a block in the pipeline structure of the decoding algorithm. In some cases, the size defined for the block size limit can match the size of a block in the pipeline structure. If the size (e.g., length and / or width) of the current block 1142 exceeds the size of a block in the pipeline structure, the LIC flag 1146 can be set to off because the samples (e.g., reference and / or neighboring samples) used to calculate the LIC parameters for the current block 1142 will not fit within the pipeline structure.
[0216] like Fig. 11C As shown, the size of the current block 1142 exceeds (e.g., is larger than) the size defined by the pipeline structure based block size limit 1144. In other words, the length and / or width of the current block 1142 exceeds the length and / or width of the block in the pipeline structure of the decoding algorithm. Therefore, in this example, the LIC flag 1146 is set to off or false to prevent inconsistencies, errors, incompatibilities, and / or other problems caused by inconsistencies between the size of the current block 1142 and the pipeline structure.
[0217] Fig.11D1 is a diagram illustrating another example scenario 1160, in which a LIC flag 1166 for a current block 1162 is set according to a pipeline structure block size based restriction 1164. The current block 1162 may include a CU, PU, TU, or any other block of a picture. As previously explained, the pipeline structure block size based restriction 1164 may be defined based on the size of the block in the pipeline structure of the specific decoding algorithm for the current block 1162.
[0218] In this example, the size of the current block 1162 is below (e.g., smaller than) the size defined by the pipeline structure block size based limit 1164. In other words, the current block 1162 is smaller than a block in the pipeline structure of the decoding algorithm. Therefore, in this example, the LIC flag 1166 is set to on or true. In some cases, if the size of the current block 1162 is equal to the size defined by the pipeline structure block size based limit 1164, the LIC flag 1166 may be similarly set to on or true.
[0219] In some examples, pipeline structure block size based restrictions 1164 may be a block size restriction subset (e.g., 1104 or 1124) that defines a set of block size restrictions. For example, the block size restrictions for the decoding algorithm may include the following: Fig.11A and 11B 1104 or 1124. Therefore, in some cases, even if the size of the current block 1162 is lower than the size defined by the pipeline structure block size based limit 1164, if the size of the current block 1162 is also equal to or lower than another block size limit (such as the block size limit 1104 or 1124), the LIC flag 1166 can still be set to off or false.
[0220] Thus, if the block size limit of the decoding algorithm includes a second block size limit (such as the block size limit 1104 or 1124), before setting the LIC flag 1166 to on when the size of the current block 1162 is determined to be below the pipeline structure block size based limit 1164, a check may be performed to determine whether the size of the current block 1162 is equal to or below the second block size limit. If the size of the current block 1162 is determined to be above (e.g., greater than) the second block size limit in addition to being below the pipeline structure block size based limit 1164, the LIC flag 1166 may be set to on. On the other hand, if the size of the current block 1162 is instead determined to be equal to or below the second block size limit, the LIC flag 1166 may be set to off even if the size of the current block 1162 is below the pipeline structure block size based limit 1164.
[0221] In some implementations, the processes (or methods) described herein (including methods 800, 900, and 1000) may be performed by a computing device or apparatus (such as, for example, Figure 1 For example, these processes may be performed by the system 100 shown in Figure 1 and Fig.12 The encoding device 104 shown in FIG. 1 , another video source side device or a video transmission device, Figure 1 and Fig.13 , and / or another client-side device (such as a player device, a display, or any other client-side device). In some cases, the computing device or apparatus may include one or more input devices, one or more output devices, one or more processors, one or more microprocessors, one or more microcomputers, and / or other components configured to perform the steps of methods 800, 900, and 1000.
[0222] In some examples, the computing device may include a mobile device, a desktop computer, a server computer and / or a server system, or other types of computing devices. The components of the computing device (e.g., one or more input devices, one or more output devices, one or more processors, one or more microprocessors, one or more microcomputers, and / or other components) may be implemented in a circuit system. For example, the components may include electronic circuits or other electronic hardware and / or may be implemented using electronic circuits or other electronic hardware, which may include one or more programmable circuits (e.g., microprocessors, graphics processing units (GPUs), digital signal processors (DSPs), central processing units (CPUs), and / or other appropriate circuits), and / or may include computer software, firmware, or any combination thereof and / or may be implemented using computer software, firmware, or any combination thereof to perform the various operations described herein. In some examples, the computing device or apparatus may include a camera configured to capture video data (e.g., a video sequence) including video frames. In some examples, the camera or other capture device that captures video data is separate from the computing device, in which case the computing device receives or obtains the captured video data. The computing device may include a network interface configured to transmit video data. The network interface may be configured to transmit data based on an Internet Protocol (IP) or other types of data. In some examples, a computing device or apparatus may include a display for displaying output video content (eg, samples of pictures of a video bitstream).
[0223] The processes may be described with respect to a logical flow diagram, the operations of which represent a series of operations that may be implemented using hardware, computer instructions, or a combination thereof. In the context of computer instructions, the operations represent computer-executable instructions stored on one or more computer-readable storage media that, when executed by one or more processors, perform the recited operations. Typically, computer-executable instructions include routines, programs, objects, components, data structures, etc. that perform specific functions or implement specific data types. The order in which the operations are described is not intended to be construed as a limitation, and any number of the described operations may be combined in any order and / or in parallel to implement the processes.
[0224] In addition, these processes can be performed under the control of one or more computer systems configured with executable instructions, and can be implemented as code (e.g., executable instructions, one or more computer programs, or one or more applications) that is executed together on one or more processors, implemented by hardware, or a combination thereof. As mentioned above, the code can be stored on a computer-readable or machine-readable storage medium, for example, in the form of a computer program including multiple instructions that can be executed by one or more processors. The computer-readable storage medium or machine-readable storage medium can be non-transitory.
[0225] The decoding techniques discussed herein can be implemented in an example video encoding and decoding system (e.g., system 100). In some examples, the system includes a source device that provides encoded video data to be decoded later by a destination device. Specifically, the source device provides the video data to the destination device via a computer-readable medium. The source device and the destination device may include any of a variety of devices, including a desktop computer, a notebook computer (i.e., a laptop computer), a tablet computer, a set-top box, a telephone handset (e.g., a so-called "smart" phone), a so-called "smart" board, a television, a camera, a display device, a digital media player, a video game console, a video streaming device, etc. In some cases, the source device and the destination device may be equipped for wireless communication.
[0226] The destination device may receive the encoded video data to be decoded via a computer-readable medium. The computer-readable medium may be any type of medium or device capable of moving the encoded video data from the source device to the destination device. In one example, the computer-readable medium may be a communication medium for enabling the source device to directly send the encoded video data to the destination device in real time. The encoded video data may be modulated according to a communication standard such as a wireless communication protocol and sent to the destination device. The communication medium may include any wireless or wired communication medium, such as a radio frequency (RF) spectrum or one or more physical transmission lines. The communication medium may form a part of a packet-based network, such as a local area network, a wide area network, or a global network such as the Internet. The communication medium may include a router, a switch, a base station, or any other device that may be used to facilitate communication from the source device to the destination device.
[0227] In some examples, the encoded data can be output from the output interface to the storage device. Similarly, the encoded data can be accessed from the storage device through the input interface. The storage device may include any of a variety of distributed or locally accessed data storage media, such as a hard drive, a Blu-ray disc, a DVD, a CD-ROM, a flash memory, a volatile or non-volatile memory, or any other suitable digital storage medium for storing encoded video data. In another example, the storage device may correspond to a file server or another intermediate storage device, which may store the encoded video generated by the source device. The destination device may access the stored video data from the storage device via streaming or downloading. The file server may be any type of server capable of storing encoded video data and sending the encoded video data to the destination device. Example file servers include web servers (e.g., for websites), FTP servers, network attached storage (NAS) devices, or local disk drives. The destination device may access the encoded video data through any standard data connection (including an Internet connection). This may include a wireless channel (e.g., a Wi-Fi connection), a wired connection (e.g., DSL, cable modem, etc.), or a combination of both suitable for accessing the encoded video data stored on the file server. The transmission of the encoded video data from the storage device may be a streaming transmission, a download transmission, or a combination thereof.
[0228] The technology of the present disclosure is not necessarily limited to wireless applications or settings. The technology can be applied to video decoding to support any of a variety of multimedia applications, such as over-the-air television broadcasting, cable television transmission, satellite television transmission, Internet streaming video transmission (e.g., dynamic adaptive streaming over HTTP (DASH)), digital video encoded on a data storage medium, decoding of digital video stored on a data storage medium, or other applications. In some examples, the system can be configured to support one-way or two-way video transmission to support applications such as video streaming, video playback, video broadcasting, and / or video telephony.
[0229] In one example, the source device includes a video source, a video encoder, and an output interface. The destination device may include an input interface, a video decoder, and a display device. The video encoder of the source device may be configured to apply the technology disclosed herein. In other examples, the source device and the destination device may include other components or arrangements. For example, the source device may receive video data from an external video source such as an external camera. Similarly, the destination device may be docked with an external display device rather than including an integrated display device.
[0230] The example system above is only an example. The technology for processing video data in parallel can be performed by any digital video encoding and / or decoding device. Although in general, the technology of the present disclosure is performed by a video encoding device, the technology can also be performed by a video encoder / decoder commonly referred to as a "CODEC". In addition, the technology of the present disclosure can also be performed by a video preprocessor. The source device and the destination device are only examples of such encoding devices: wherein the source device generates encoded video data for transmission to the destination device. In some examples, the source device and the destination device can operate in a substantially symmetrical manner so that each of these devices includes a video encoding and decoding component. Therefore, the example system can support one-way or two-way video transmission between video devices, for example, for video streaming, video playback, video broadcasting, or video telephony.
[0231] The video source can include a video capture device, such as a video camera, a video archive unit comprising previously captured video, and / or a video feed interface for receiving video from a video content provider. As an alternative, the video source can generate computer graphics-based data as the source video, or generate a combination of real-time video, archived video, and computer-generated video. In some cases, if the video source is a video camera, the source device and the destination device can form a so-called camera phone or video phone. However, as mentioned above, the technology described in this disclosure can be generally applicable to video encoding, and can be applied to wireless and / or wired applications. In each case, the captured, pre-captured or computer-generated video can be encoded by a video encoder. Then, the encoded video information can be output to a computer-readable medium by an output interface.
[0232] As mentioned, computer-readable media may include temporary media such as wireless broadcasts or wired network transmissions, or storage media such as hard disks, flash drives, compact discs, digital versatile discs, Blu-ray discs (i.e., non-temporary storage media), or other computer-readable media. In some examples, a network server (not shown) may receive encoded video data from a source device, for example, via a network transmission, and provide the encoded video data to a destination device. Similarly, a computing device of a media production facility such as a disc stamping facility may receive encoded video data from a source device and manufacture a disc containing the encoded video data. Therefore, in various examples, a computer-readable medium may be understood to include one or more computer-readable media in various forms.
[0233] The input interface of the destination device receives information from the computer-readable medium. The information of the computer-readable medium may include syntax information defined by the video encoder (which is also used by the video decoder), the syntax information including syntax elements describing the characteristics and / or processing of blocks and other decoding units (e.g., groups of pictures (GOPs)). The display device displays the decoded video data to a user and may include any of a variety of display devices, such as a cathode ray tube (CRT), a liquid crystal display (LCD), a plasma display, an organic light emitting diode (OLED) display, or another type of display device. Various embodiments of the present application have been described.
[0234] exist Fig.12 and Fig.13 Specific details of the encoding device 104 and the decoding device 112 are shown respectively. Fig.121 is a block diagram illustrating an example encoding device 104 that can implement one or more of the techniques described in the present disclosure. The encoding device 104 can, for example, generate the syntax structures described herein (e.g., syntax structures of VPS, SPS, PPS or other syntax elements). The encoding device 104 can perform intra-frame prediction and inter-frame prediction decoding of video blocks within a video slice. As previously described, intra-frame decoding relies at least in part on spatial prediction to reduce or remove spatial redundancy within a given video frame or picture. Inter-frame decoding relies at least in part on temporal prediction to reduce or remove temporal redundancy within adjacent or surrounding frames of a video sequence. Intra-frame mode (I mode) can refer to any of several spatial-based compression modes. Inter-frame modes such as unidirectional prediction (P mode) or bi-prediction (B mode) can refer to any of several temporal-based compression modes.
[0235] The encoding device 104 includes a segmentation unit 35, a prediction processing unit 41, a filter unit 63, a picture memory 64, a summer 50, a transform processing unit 52, a quantization unit 54, and an entropy coding unit 56. The prediction processing unit 41 includes a motion estimation unit 42, a motion compensation unit 44, and an intra-frame prediction processing unit 46. For video block reconstruction, the encoding device 104 also includes an inverse quantization unit 58, an inverse transform processing unit 60, and a summer 62. The filter unit 63 is intended to represent one or more loop filters, such as a deblocking filter, an adaptive loop filter (ALF), and a sample adaptive offset (SAO) filter. Although in Fig.12 Filter unit 63 is shown as an in-loop filter in FIG. 1 , but in other configurations, filter unit 63 may be implemented as a post-loop filter. Post-processing device 57 may perform additional processing on the encoded video data generated by encoding device 104. In some cases, the techniques of the present disclosure may be implemented by encoding device 104. However, in other cases, one or more of the techniques of the present disclosure may be implemented by post-processing device 57.
[0236] like Fig.12As shown, the encoding device 104 receives video data, and the segmentation unit 35 segments the data into video blocks. This segmentation may also include, for example, segmentation into slices, slice segments, tiles or other larger units according to the quadtree structure of LCU and CU, as well as video block segmentation. The encoding device 104 generally shows a component for encoding a video block within a video slice to be encoded. A slice may be divided into a plurality of video blocks (and may be divided into a set of video blocks called tiles). The prediction processing unit 41 may select one of a plurality of possible decoding modes for the current video block based on error results (e.g., coding rate and distortion level, etc.), such as one of a plurality of intra-frame prediction decoding modes or one of a plurality of inter-frame prediction decoding modes. The prediction processing unit 41 may provide the resulting intra-frame or inter-frame decoded block to the summer 50 to generate residual block data, and to the summer 62 to reconstruct the encoded block for use as a reference picture.
[0237] Intra-prediction processing unit 46 within prediction processing unit 41 may perform intra-prediction decoding of the current block relative to one or more neighboring blocks in the same frame or slice as the current video block to be decoded to provide spatial compression. Motion estimation unit 42 and motion compensation unit 44 within prediction processing unit 41 may perform inter-prediction decoding of the current video block relative to one or more prediction blocks in one or more reference pictures to provide temporal compression.
[0238] Motion estimation unit 42 may be configured to determine an inter-prediction mode for a video slice according to a predetermined pattern for a video sequence. The predetermined pattern may designate a video slice in a sequence as a P slice, a B slice, or a GPB slice. Motion estimation unit 42 and motion compensation unit 44 may be highly integrated, but are shown separately for conceptual purposes. Motion estimation performed by motion estimation unit 42 is the process of generating a motion vector that estimates motion for a video block. A motion vector may, for example, indicate the displacement of a prediction unit (PU) of a video block within a current video frame or picture relative to a prediction block within a reference picture.
[0239] A prediction block is a block that is found to closely match the PU of the video block to be decoded in terms of pixel difference, which may be determined by the sum of absolute differences (SAD), sum of squared differences (SSD), or other difference metrics. In some examples, encoding device 104 may calculate values for sub-integer pixel positions of a reference picture stored in picture memory 64. For example, encoding device 104 may interpolate values for quarter-pixel positions, eighth-pixel positions, or other fractional pixel positions of a reference picture. Thus, motion estimation unit 42 may perform a motion search relative to full pixel positions and fractional pixel positions and output a motion vector with fractional pixel precision.
[0240] Motion estimation unit 42 calculates a motion vector for a PU by comparing the position of the PU of the video block in the inter-coded slice with the position of the prediction block of the reference picture. The reference picture may be selected from a first reference picture list (List 0) or a second reference picture list (List 1), each of which identifies one or more reference pictures stored in picture memory 64. Motion estimation unit 42 sends the calculated motion vector to entropy encoding unit 56 and motion compensation unit 44.
[0241] Motion compensation performed by motion compensation unit 44 may involve obtaining or generating a prediction block based on a motion vector determined by motion estimation, possibly performing interpolation to sub-pixel precision. Upon receiving a motion vector for a PU of a current video block, motion compensation unit 44 may locate the prediction block pointed to by the motion vector in a reference picture list. Encoding device 104 forms a residual video block by subtracting pixel values of the prediction block from pixel values of the current video block being decoded to form pixel difference values. The pixel difference values form residual data for the block and may include both a luma difference component and a chroma difference component. Summer 50 represents one or more components that perform such subtraction operations. Motion compensation unit 44 may also generate syntax elements associated with video blocks and video slices for use by decoding device 112 when decoding video blocks of video slices.
[0242] As described above, the intra-prediction processing unit 46 may perform intra-prediction on the current block as an alternative to the inter-prediction performed by the motion estimation unit 42 and the motion compensation unit 44. Specifically, the intra-prediction processing unit 46 may determine the intra-prediction mode to be used to encode the current block. In some examples, the intra-prediction processing unit 46 may encode the current block using various intra-prediction modes, for example, during separate encoding passes, and the intra-prediction processing unit 46 may select a suitable intra-prediction mode from the tested modes to use. For example, the intra-prediction processing unit 46 may calculate rate-distortion values using rate-distortion analysis for various tested intra-prediction modes, and may select an intra-prediction mode with the best rate-distortion characteristics from the tested modes. The rate-distortion analysis typically determines the amount of distortion (or error) between the encoded block and the original unencoded block that is encoded to generate the encoded block, and the bit rate (i.e., the number of bits) used to generate the encoded block. Intra-prediction processing unit 46 may calculate ratios from the distortions and rates for the various encoded blocks to determine which intra-prediction mode exhibits the best rate-distortion value for the block.
[0243] In any case, after selecting an intra-prediction mode for a block, the intra-prediction processing unit 46 may provide information indicating the intra-prediction mode selected for the block to the entropy encoding unit 56. The entropy encoding unit 56 may encode the information indicating the selected intra-prediction mode. The encoding device 104 may include in the transmitted bitstream configuration data the definition of the coding contexts for the various blocks and the most probable intra-prediction mode to be used for each of these contexts, the intra-prediction mode index table, and the indication of the modified intra-prediction mode index table. The bitstream configuration data may include multiple intra-prediction mode index tables and multiple modified intra-prediction mode index tables (also referred to as codeword mapping tables).
[0244] After the prediction processing unit 41 generates a prediction block for the current video block via inter-frame prediction or intra-frame prediction, the encoding device 104 forms a residual video block by subtracting the prediction block from the current video block. The residual video data in the residual block may be included in one or more TUs and applied to the transform processing unit 52. The transform processing unit 52 transforms the residual video data into residual transform coefficients using a transform such as a discrete cosine transform (DCT) or a conceptually similar transform. The transform processing unit 52 may convert the residual video data from a pixel domain to a transform domain such as a frequency domain.
[0245] Transform processing unit 52 may send the resulting transform coefficients to quantization unit 54. Quantization unit 54 quantizes the transform coefficients to further reduce the bit rate. The quantization process may reduce the bit depth associated with some or all of these coefficients. The degree of quantization may be modified by adjusting a quantization parameter. In some examples, quantization unit 54 may then perform a scan of the matrix including the quantized transform coefficients. Alternatively or in addition, entropy encoding unit 56 may perform the scan.
[0246] After quantization, entropy encoding unit 56 performs entropy encoding on the quantized transform coefficients. For example, entropy encoding unit 56 may perform context adaptive variable length coding (CAVLC), context adaptive binary arithmetic coding (CABAC), syntax-based context adaptive binary arithmetic coding (SBAC), probability interval partitioning entropy (PIPE) coding, or another entropy encoding technique. After entropy encoding by entropy encoding unit 56, the encoded bitstream may be sent to decoding device 112 or archived for later transmission or retrieval by decoding device 112. Entropy encoding unit 56 may also entropy encode motion vectors and other syntax elements for the current video slice being decoded.
[0247] Inverse quantization unit 58 and inverse transform processing unit 60 apply inverse quantization and inverse transform, respectively, to reconstruct the residual block in the pixel domain for later use as a reference block of a reference picture. Motion compensation unit 44 may calculate a reference block by adding the residual block to a prediction block of one of the reference pictures in the reference picture list. Motion compensation unit 44 may also apply one or more interpolation filters to the reconstructed residual block to calculate sub-integer pixel values for motion estimation. Summer 62 adds the reconstructed residual block to the motion compensated prediction block produced by motion compensation unit 44 to produce a reference block for storage in picture memory 64. The reference block may be used by motion estimation unit 42 and motion compensation unit 44 as a reference block to inter-predict a block in a subsequent video frame or picture.
[0248] In this way, Fig.12 The encoding device 104 represents an apparatus configured to perform any of the techniques described herein (including the above-mentioned Figure 8 and / or Fig.10 In some cases, some of the techniques of the present disclosure may also be implemented by post-processing device 57.
[0249] Fig.13 1 is a block diagram illustrating an example decoding device 112. The decoding device 112 includes an entropy decoding unit 80, a prediction processing unit 81, an inverse quantization unit 86, an inverse transform processing unit 88, a summer 90, a filter unit 91, and a picture memory 92. The prediction processing unit 81 includes a motion compensation unit 82 and an intra-frame prediction processing unit 84. In some examples, the decoding device 112 may perform operations generally associated with the processing of the image from Fig.12 The decoding stage is the opposite of the encoding stage described by the encoding device 104.
[0250] During the decoding process, the decoding device 112 receives a coded video bitstream sent by the encoding device 104, which represents the video blocks and associated syntax elements of the coded video slice. In some embodiments, the decoding device 112 may receive the coded video bitstream from the encoding device 104. In some embodiments, the decoding device 112 may receive the coded video bitstream from the encoding device 104. In some embodiments, the decoding device 112 may receive the coded video bitstream from a network entity 79 (such as a server, a media-aware network element (MANE), a video editor / splicer, or other such device configured to implement one or more of the above-mentioned techniques). The network entity 79 may or may not include the encoding device 104. Before the network entity 79 sends the coded video bitstream to the decoding device 112, the network entity 79 may implement some of the techniques described in the present disclosure. In some video decoding systems, the network entity 79 and the decoding device 112 may be parts of separate devices, while in other cases, the functions described with respect to the network entity 79 may be performed by the same device including the decoding device 112.
[0251] The entropy decoding unit 80 of the decoding device 112 entropy decodes the bitstream to generate quantized coefficients, motion vectors, and other syntax elements. The entropy decoding unit 80 forwards the motion vectors and other syntax elements to the prediction processing unit 81. The decoding device 112 can receive syntax elements at the video slice level and / or the video block level. The entropy decoding unit 80 can process and parse both fixed length syntax elements and variable length syntax elements in more parameter sets such as VPS, SPS, and PPS.
[0252] When the video slice is encoded as an intra-coded (I) slice, the intra-prediction processing unit 84 of the prediction processing unit 81 can generate prediction data for the video block of the current video slice based on the signaled intra-prediction mode and data from previously decoded blocks of the current frame or picture. When the video frame is decoded as an inter-coded (i.e., B, P, or GPB) slice, the motion compensation unit 82 of the prediction processing unit 81 generates a prediction block for the video block of the current video slice based on the motion vector received from the entropy decoding unit 80 and other syntax elements. The prediction block can be generated from one of the reference pictures in the reference picture list. The decoding device 112 can construct the reference frame lists, i.e., List 0 and List 1, using a default construction technique based on the reference pictures stored in the picture memory 92.
[0253] Motion compensation unit 82 determines prediction information for a video block of the current video slice by parsing the motion vectors and other syntax elements, and uses the prediction information to generate a prediction block for the current video block being decoded. For example, motion compensation unit 82 may use one or more syntax elements in the parameter set to determine a prediction mode (e.g., intra or inter prediction) for coding a video block of the video slice, an inter-prediction slice type (e.g., a B slice, a P slice, or a GPB slice), construction information for one or more reference picture lists for the slice, a motion vector for each inter-coded video block of the slice, an inter-prediction state for each inter-coded video block of the slice, and other information for decoding a video block in the current video slice.
[0254] The motion compensation unit 82 may also perform interpolation based on an interpolation filter. The motion compensation unit 82 may calculate interpolated values for pixels below the integer of the reference block using the interpolation filter used by the encoding device 104 during encoding of the video block. In this case, the motion compensation unit 82 may determine the interpolation filter used by the encoding device 104 based on the received syntax elements, and may use the interpolation filter to generate a prediction block.
[0255] The inverse quantization unit 86 inverse quantizes or dequantizes the quantized transform coefficients provided in the bitstream and decoded by the entropy decoding unit 80. The inverse quantization process may include determining the degree of quantization using the quantization parameters calculated by the encoding device 104 for each video block in the video slice, and likewise determining the degree of inverse quantization that should be applied. The inverse transform processing unit 88 applies an inverse transform (e.g., an inverse DCT or other suitable inverse transform), an inverse integer transform, or a conceptually similar inverse transform process to the transform coefficients to produce residual blocks in the pixel domain.
[0256] After the motion compensation unit 82 generates a prediction block for the current video block based on the motion vector and other syntax elements, the decoding device 112 forms a decoded video block by adding the residual block from the inverse transform processing unit 88 to the corresponding prediction block generated by the motion compensation unit 82. Summer 90 represents one or more components that perform such a summing operation. If desired, a loop filter (in the encoding loop or after the encoding loop) may also be used to smooth pixel transitions or otherwise improve video quality. Filter unit 91 is intended to represent one or more loop filters, such as a deblocking filter, an adaptive loop filter (ALF), and a sample adaptive offset (SAO) filter. Although in Fig.13Filter unit 91 is shown as an in-loop filter in FIG. 1 , but in other configurations, filter unit 91 may be implemented as a post-loop filter. The decoded video blocks in a given frame or picture are then stored in picture memory 92, which stores reference pictures for subsequent motion compensation. Picture memory 92 also stores the decoded video for later viewing on a display device such as a Figure 1 122).
[0257] In this way, Fig.13 The decoding device 112 represents a device configured to perform any of the techniques described herein (including the above with respect to Figure 8 and / or Fig. 9 An example of a video decoder of the process described above.
[0258] As used herein, the term "computer-readable medium" includes, but is not limited to, portable or non-portable storage devices, optical storage devices, and various other media capable of storing, containing or carrying instructions and / or data. Computer-readable media may include non-transitory media in which data may be stored and does not include the following: carrier waves and / or temporary electronic signals propagated wirelessly or on a wired connection. Examples of non-transitory media may include, but are not limited to: disks or tapes, optical storage media such as compact discs (CDs) or digital versatile discs (DVDs), flash memory, memory, or memory devices. Computer-readable media may have codes and / or machine-executable instructions stored thereon, which may represent any combination of procedures, functions, subroutines, programs, routines, subroutines, modules, software packages, classes, or instructions, data structures, or program statements. A code segment may be coupled to another code segment or hardware circuit by passing and / or receiving information, data, independent variables, parameters, or memory contents. Information, independent variables, parameters, data, etc. may be passed, forwarded, or sent via any appropriate means including memory sharing, message passing, token passing, network transmission, etc.
[0259] In some embodiments, computer-readable storage devices, media, and memories may include cables or wireless signals containing bit streams, etc. However, when referred to, non-transitory computer-readable storage media explicitly excludes media such as energy, carrier signals, electromagnetic waves, and signals themselves.
[0260] Specific details are provided in the above description to provide a thorough understanding of the embodiments and examples provided herein. However, it will be appreciated by those of ordinary skill in the art that these embodiments can be implemented without these specific details. For clarity of explanation, in some cases, the technology herein can be presented as a separate functional block including the following functional blocks, which include equipment, device components, steps or routines in the method embodied in software, or a combination of hardware and software. In addition to the components shown in the figures and / or described herein, additional components can also be used. For example, circuits, systems, networks, processes, and other components can be shown as components in block diagram form, so as not to obscure these embodiments in unnecessary details. In other cases, known circuits, processes, algorithms, structures, and techniques may be shown as not having unnecessary details, so as to avoid obscuring these embodiments.
[0261] Each embodiment may be described as a process or method above, and the process or method is depicted as a flow chart, a schematic flow diagram, a data flow diagram, a structure diagram or a block diagram. Although the flow chart can describe the operation as a sequential process, many operations in these operations can be performed in parallel or simultaneously. In addition, the order of the operation can be rearranged. The process is terminated after its operation is completed, but may have an extra step that is not included in the figure. A process (process) may correspond to a method, a function, a procedure (procedure), a subroutine, a subprogram, etc. When a process corresponds to a function, its termination may correspond to the function returning to a calling function or a main function.
[0262] The process and method according to the above examples can be implemented using computer executable instructions, which are stored in a computer readable medium or can be obtained from a computer readable medium in other ways. Such instructions may include, for example, instructions or data, which cause a general-purpose computer, a special-purpose computer or a processing device to execute or otherwise be configured to perform a specific function or a specific set of functions. Parts of the computer resources used can be accessed through a network. Computer executable instructions can be, for example, binary files, intermediate format instructions such as assembly language, firmware, source code, etc. Examples of computer readable media that can be used to store instructions, information used, and / or information created during the method according to the described examples include disks or optical disks, flash memory, USB devices provided with non-volatile memory, network storage devices, etc.
[0263] The equipment implementing the process and method according to these disclosures may include hardware, software, firmware, middleware, microcode, hardware description language or any combination thereof, and may adopt any of a variety of form factors. When implemented with software, firmware, middleware or microcode, the program code or code segment (e.g., computer program product) for performing the necessary tasks may be stored in a computer-readable or machine-readable medium. The processor may perform the necessary tasks. Typical examples of form factors include personal computers, personal digital assistants, rack-mounted devices, stand-alone devices, etc., of laptop computers, smart phones, mobile phones, tablet devices or other small form factors. The functions described herein may also be embodied in peripheral devices or plug-in cards. By way of additional example, this function may also be implemented on circuit boards between different chips or different processes executed in a single device.
[0264] Instructions, media for transmitting such instructions, computing resources for executing them, and other structures for supporting such computing resources are example means for providing the functionality described in this disclosure.
[0265] In the foregoing description, various aspects of the present application are described with reference to the specific embodiments of the present application, but those skilled in the art will recognize that the present application is not limited thereto. Therefore, although the illustrative embodiments of the present application have been described in detail herein, it should be understood that the inventive concept can be embodied and adopted differently in other ways, and the appended claims are intended to be interpreted as including such variations, except for variations limited by the prior art. The various features and aspects of the above-mentioned applications can be used individually or collectively. In addition, without departing from the broader spirit and scope of this specification, the embodiments can be used in any number of environments and applications other than the environments and applications described herein. Therefore, the description and the accompanying drawings are considered to be illustrative rather than restrictive. For the purpose of illustration, the method is described in a specific order. It should be understood that in an alternative embodiment, the method can be performed in an order different from the described order.
[0266] It will be understood by those of ordinary skill in the art that the less than ("<") and greater than (">") symbols or terms used herein may be replaced by less than or equal to ("≤") and greater than or equal to ("≥") symbols, respectively, without departing from the scope of the present specification.
[0267] When a component is described as being “configured to” perform certain operations, such configuration may be achieved, for example, by designing circuits or other hardware to perform the operation, by programming programmable circuits (e.g., a microprocessor or other appropriate circuitry) to perform the operation, or any combination thereof.
[0268] The phrase "coupled to" refers to any component that is physically connected directly or indirectly to another component, and / or any component that communicates directly or indirectly with another component (e.g., connected to another component via a wired or wireless connection and / or other appropriate communication interface).
[0269] Claim language or other language that recites "at least one of" a set and / or "one or more of" a set indicates that one member of the set or multiple members of the set (in any combination) satisfies the claim. For example, claim language that recites "at least one of A and B" means A, B, or A and B. In another example, claim language that recites "at least one of A, B, and C" means A, B, C, or A and B, or A and C, or B and C, or A and B and C. The language "at least one of" a set and / or "one or more of" a set does not limit the set to the items listed in the set. For example, claim language that recites "at least one of A and B" may mean A, B, or A and B, and may additionally include items not listed in the set of A and B.
[0270] Various illustrative logic blocks, modules, circuits and algorithmic steps described in conjunction with the embodiments disclosed herein can be implemented as electronic hardware, computer software, firmware or a combination thereof. In order to clearly illustrate this interchangeability of hardware and software, various illustrative components, frames, modules, circuits and steps have been generally described above around their functions. Whether this function is implemented as hardware or software depends on specific applications and the design constraints imposed on the entire system. Technicians can implement the described functions in different ways for each specific application, but this implementation decision should not be interpreted as causing a departure from the scope of the application.
[0271] The technology described herein can also be implemented with electronic hardware, computer software, firmware, or any combination thereof. Such technology can be implemented in any of a variety of devices, such as a general-purpose computer, a wireless communication device mobile phone, or an integrated circuit device with multiple uses (including applications in wireless communication devices and other devices). Any features described as modules or components can be implemented together in an integrated logic device, or as separate but interoperable logic devices. If implemented with software, the technology can be implemented at least in part by a computer-readable data storage medium, which includes a program code, and the program code includes instructions for executing one or more of the above methods when executed. The computer-readable data storage medium can form a part of a computer program product, and the computer program product can include packaging materials. The computer-readable medium can include a memory or a data storage medium, such as a random access memory (RAM) (such as a synchronous dynamic random access memory (SDRAM)), a read-only memory (ROM), a non-volatile random access memory (NVRAM), an electrically erasable programmable read-only memory (EEPROM), a flash memory, a magnetic or optical data storage medium, etc. Additionally or alternatively, the techniques may be implemented at least in part by a computer-readable communication medium (such as a propagated signal or wave) that carries or communicates program code in the form of instructions or data structures and that can be accessed, read, and / or executed by a computer.
[0272] The program code can be executed by a processor, which may include one or more processors, such as one or more digital signal processors (DSPs), general-purpose microprocessors, application-specific integrated circuits (ASICs), field programmable logic arrays (FPGAs), or other equivalent integrated or discrete logic circuits. Such a processor can be configured to perform any technology described in this disclosure. A general-purpose processor can be a microprocessor, but in an alternative, the processor can be any conventional processor, controller, microcontroller, or state machine. The processor can also be implemented as a combination of computing devices, for example, a combination of a DSP and a microprocessor, a plurality of microprocessors, a combination of one or more microprocessors and a DSP core, or any other such configuration. Therefore, the term "processor" as used herein can refer to any of the aforementioned structures, any combination of the aforementioned structures, or any other structure or device suitable for implementing the technology described herein. In addition, in some aspects, the functions described herein can be provided in a dedicated software module or hardware module configured for encoding and decoding, or incorporated in a combined video encoder-decoder (CODEC).
[0273] Illustrative examples of the present disclosure include:
[0274] Example 1: A method for decoding video data. The method includes: obtaining a block of a picture of the video data; determining the size of the block; determining whether the size of the block is equal to or less than a first block size associated with a block size restriction or whether the size of the block is greater than a second block size associated with a video decoding pipeline structure, the block size restriction being used to restrict bidirectional inter-frame prediction for blocks having corresponding sizes equal to or less than the first block size associated with the block size restriction; determining whether the size of the block is one of equal to or less than the first block size associated with the block size restriction or greater than the second block size associated with the video decoding pipeline structure; and disabling illumination compensation for the block based on determining that the size of the block is one of equal to or less than the first block size associated with the block size restriction or greater than the second block size associated with the video decoding pipeline structure.
[0275] Example 2: The method according to Example 1 further includes: setting the value of an illumination compensation flag associated with the block to false based on disabling the illumination compensation for the block, wherein the value of the illumination compensation flag set to false indicates disabling illumination compensation for the block.
[0276] Example 3: The method according to any one of Examples 1 or 2 further includes: determining whether the size of different blocks of the picture of the video data is larger than the first block size associated with the block size limit or whether the size of the different blocks is smaller than the second block size associated with the video decoding pipeline structure; determining that the size of the different blocks is larger than the first block size associated with the block size limit and smaller than the second block size associated with the video decoding pipeline structure; and enabling illumination compensation for the different blocks based on the size of the different blocks being larger than the first block size associated with the block size limit and smaller than the second block size associated with the video decoding pipeline structure.
[0277] Example 4: The method according to Example 3 further includes: setting the value of the illumination compensation flag associated with the different block to true based on enabling the illumination compensation for the different block, wherein the value of the illumination compensation flag set to true indicates that illumination compensation for the different block is enabled.
[0278] Example 5: The method according to any one of Examples 3 or 4 further includes: deriving one or more illumination compensation parameters for the different blocks based on one or more neighboring blocks of the block and one or more additional neighboring blocks of a reference block selected for inter-frame prediction of the block; applying illumination compensation for the different blocks based on the one or more illumination compensation parameters; and reconstructing samples of the block based on the illumination compensation applied to the block.
[0279] Example 6: According to the method described in any one of Examples 1 to 5, it also includes: determining not to apply bidirectional inter-frame prediction to the block based on that the size of the block is smaller than the first block size associated with the block size limit.
[0280] Example 7: The method of Example 6, wherein disabling illumination compensation for the block is based on determining that bidirectional inter prediction is not applied for the block.
[0281] Example 8: A method according to any one of Examples 1 to 7, wherein decoding the video data includes decoding the video data, and the method further includes: decoding the block based on the prediction mode and without the illumination compensation.
[0282] Example 9: The method according to any one of Examples 1 to 8 also includes: determining a residual value for the block; performing a prediction mode for the block; and reconstructing at least one sample of the block based on the residual value for the block and the prediction mode performed for the block.
[0283] Example 10: A method according to any one of Examples 1 to 9, wherein decoding the video data includes encoding the video data, and the method further includes: generating an encoded video bitstream, wherein the encoded video bitstream includes the blocks of the pictures of the video data.
[0284] Example 11: The method of Example 10 further comprises: signaling one or more illumination compensation flags in the coded video bitstream, the one or more illumination compensation flags comprising an indication to disable illumination compensation for the block.
[0285] Example 12: The method of any one of Examples 10 or 11, further comprising: signaling the encoded video bitstream.
[0286] Example 13: A method according to Example 12, wherein determining that the size of the block is equal to or less than the first block size associated with the block size limit or is greater than the second block size associated with the video decoding pipeline structure includes determining that illumination compensation is limited, and wherein, based on determining that illumination compensation is limited, an illumination compensation flag associated with the block is not signaled in the encoded video bitstream.
[0287] Example 14: The method according to any one of Examples 1 to 13 further includes: determining whether the size of different blocks of the picture of the video data is equal to or less than the first block size associated with the block size limit or whether the size of the different blocks is greater than the second block size associated with the video decoding pipeline structure; determining that the size of the different blocks is equal to or less than the first block size associated with the block size limit and greater than the second block size associated with the video decoding pipeline structure; and disabling illumination compensation for the different blocks based on determining that the size of the different blocks is equal to or less than the first block size associated with the block size limit and greater than the second block size associated with the video decoding pipeline structure.
[0288] Example 15: An apparatus for decoding video data. The apparatus includes: at least one memory; and one or more processors implemented in a circuit. The one or more processors are configured to: obtain a block of a picture of video data; determine the size of the block; determine whether the size of the block is equal to or less than a first block size associated with a block size restriction or whether the size of the block is greater than a second block size associated with a video decoding pipeline structure, wherein the block size restriction is used to restrict bidirectional inter-frame prediction for blocks having corresponding sizes equal to or less than the first block size associated with the block size restriction; determine whether the size of the block is equal to or less than the first block size associated with the block size restriction or greater than the second block size associated with the video decoding pipeline structure; and disable illumination compensation for the block based on determining that the size of the block is equal to or less than the first block size associated with the block size restriction or greater than the second block size associated with the video decoding pipeline structure.
[0289] Example 16: An apparatus according to Example 15, wherein the one or more processors are further configured to: set the value of an illumination compensation flag associated with the block to false based on disabling the illumination compensation for the block, wherein the value of the illumination compensation flag set to false indicates that illumination compensation for the block is disabled.
[0290] Example 17: An apparatus according to any one of Examples 15 or 16, wherein the one or more processors are further configured to: determine whether the size of different blocks of the picture of the video data is larger than the first block size associated with the block size limit or whether the size of the different blocks is smaller than the second block size associated with the video decoding pipeline structure; determine that the size of the different blocks is larger than the first block size associated with the block size limit and smaller than the second block size associated with the video decoding pipeline structure; and enable illumination compensation for the different blocks based on the size of the different blocks being larger than the first block size associated with the block size limit and smaller than the second block size associated with the video decoding pipeline structure.
[0291] Example 18: An apparatus according to Example 17, wherein the one or more processors are further configured to: set the value of an illumination compensation flag associated with the different blocks to true based on enabling the illumination compensation for the different blocks, wherein the value of the illumination compensation flag set to true indicates that illumination compensation for the different blocks is enabled.
[0292] Example 19: An apparatus according to any one of Examples 17 or 18, wherein the one or more processors are further configured to: derive one or more illumination compensation parameters for the different blocks based on one or more neighboring blocks of the block and one or more additional neighboring blocks of a reference block selected for inter-frame prediction of the block; apply illumination compensation for the different blocks based on the one or more illumination compensation parameters; and reconstruct samples of the block based on the illumination compensation applied to the block.
[0293] Example 20: An apparatus according to any one of Examples 15 to 19, wherein the one or more processors are further configured to determine not to apply bidirectional inter-frame prediction to the block based on the size of the block being smaller than the first block size associated with the block size limit.
[0294] Example 21: The apparatus of Example 20, wherein disabling illumination compensation for the block is based on determining that bidirectional inter-frame prediction is not applied for the block.
[0295] Example 22: An apparatus according to any one of Examples 15 to 21, wherein decoding the video data includes decoding the video data, and wherein the one or more processors are further configured to: decode the block based on the prediction mode and without the illumination compensation.
[0296] Example 23: An apparatus according to any one of Examples 15 to 22, wherein the one or more processors are further configured to: determine a residual value for the block; perform a prediction mode for the block; and reconstruct at least one sample of the block based on the residual value for the block and the prediction mode performed for the block.
[0297] Example 24: An apparatus according to any one of Examples 15 to 23, wherein decoding the video data includes encoding the video data, and wherein the one or more processors are further configured to: generate an encoded video bitstream, the encoded video bitstream including the blocks of the pictures of the video data.
[0298] Example 25: An apparatus according to Example 24, wherein the one or more processors are further configured to: signal one or more illumination compensation flags in the encoded video bitstream, wherein the one or more illumination compensation flags include an indication of disabling illumination compensation for the block.
[0299] Example 26: An apparatus according to any of Examples 24 or 25, wherein the one or more processors are further configured to: signal the encoded video bitstream.
[0300] Example 27: An apparatus according to Example 26, wherein determining that the size of the block is equal to or less than the first block size associated with the block size limit or is greater than the second block size associated with the video decoding pipeline structure includes determining that illumination compensation is limited, and wherein, based on determining that illumination compensation is limited, an illumination compensation flag associated with the block is not signaled in the encoded video bitstream.
[0301] Example 28: An apparatus according to any one of Examples 15 to 27, wherein the one or more processors are further configured to: determine whether the size of different blocks of a picture of the video data is equal to or less than the first block size associated with the block size limit or whether the size of the different blocks is greater than the second block size associated with the video decoding pipeline structure; determine whether the size of the different blocks is equal to or less than the first block size associated with the block size limit and greater than the second block size associated with the video decoding pipeline structure; and disable illumination compensation for the different blocks based on determining that the size of the different blocks is equal to or less than the first block size associated with the block size limit and greater than the second block size associated with the video decoding pipeline structure.
[0302] Example 29: An apparatus according to any one of Examples 15 to 28, wherein the apparatus comprises a mobile device having a camera for capturing one or more pictures.
[0303] Example 30: The apparatus according to any one of Examples 15 to 29 further includes: a display for displaying one or more pictures.
[0304] Example 31: A non-transitory computer-readable medium having instructions stored thereon, which, when executed by one or more processors, cause the one or more processors to perform a method according to any one of Examples 1 to 14.
[0305] Example 32: An apparatus comprising a unit for performing a method according to any one of Examples 1 to 14.
[0306] Example 33: A method of processing video data. The method comprises: obtaining a block of the video data; determining that bi-prediction is not used for decoding the block of the video data; determining not to apply illumination compensation to the block based on determining that bi-prediction is not used for the block; and processing the block of the video data.
[0307] Example 34: The method of Example 33, wherein determining not to apply illumination compensation to the block comprises disabling illumination compensation for the block based on determining that bi-prediction is not used for the block.
[0308] Example 35: A method according to any one of Examples 33 or 34, wherein the block comprises a 4x4 block of the video data.
[0309] Example 36: The method according to any one of Examples 33 to 35 further includes: in response to determining that illumination compensation is not applied to the block, determining not to signal an illumination compensation flag for the block, wherein the illumination compensation flag indicates whether illumination compensation is applied to the block.
[0310] Example 37: The method according to any one of Examples 33 to 36 further includes: obtaining an additional block of the video data; and performing illumination compensation for the additional block, wherein performing the illumination compensation includes: deriving one or more illumination compensation parameters for the additional block; and applying the one or more illumination compensation parameters to the additional block.
[0311] Example 38: The method of Example 37, wherein the one or more illumination compensation parameters for the block are derived using adjacent reconstructed samples.
[0312] Example 39: The method of Example 38, wherein the neighboring reconstructed samples are one or more of a first neighboring block from the block and a second neighboring block of a reference block for inter prediction.
[0313] Example 40: A method according to Example 39, wherein the first neighboring block includes one or more of the top neighboring blocks or the left neighboring blocks of the block, and wherein the second neighboring block includes one or more of the top neighboring blocks or the left neighboring blocks of the reference block.
[0314] Example 41: A method according to any one of Examples 39 or 40, wherein deriving the one or more illumination compensation parameters for the block includes: minimizing the difference between the reconstructed samples of the first neighboring block and the reconstructed samples of the second neighboring block.
[0315] Example 42: A method according to any one of Examples 36 to 41, wherein the one or more illumination compensation parameters include at least one scaling factor and at least one offset.
[0316] Example 43: A method according to any one of Examples 36 to 42, wherein performing the illumination compensation on the block produces an illumination compensation predictor, and the method further comprises: decoding the block using the illumination compensation predictor.
[0317] Example 44: The method of any one of Examples 36 to 43, further comprising: signaling the one or more illumination compensation parameters in the encoded video bitstream.
[0318] Example 45: A method according to any one of Examples 33 to 44, wherein processing the block of the video data includes decoding the block of the video data.
[0319] Example 46: A method according to any one of Examples 33 to 45, wherein processing the block of the video data includes: generating an encoded video bitstream, the encoded video bitstream including the block of video data.
[0320] Example 47: The method of Example 46, further comprising: signaling the encoded video bitstream.
[0321] Example 48: An apparatus comprising: a memory configured to store video data; and a processor configured to process the video data according to any one of Examples 33 to 47.
[0322] Example 49: The apparatus of Example 48, wherein the apparatus comprises a decoder.
[0323] Example 50: An apparatus according to Example 48, wherein the apparatus comprises an encoder.
[0324] Example 51: An apparatus according to any one of Examples 48 to 50, wherein the apparatus is a mobile device.
[0325] Example 52: An apparatus according to any one of Examples 48 to 51, wherein the apparatus includes a display configured to display the video data.
[0326] Example 53: An apparatus according to any one of Examples 48 to 52, wherein the apparatus includes a camera configured to capture one or more pictures.
[0327] Example 54: A computer-readable medium having instructions stored thereon, which when executed by a processor perform a method according to any one of Examples 33 to 47.
[0328] Example 55: A method of processing video data. The method comprises: obtaining the video data; determining a pipeline structure associated with the video data; disabling illumination compensation for blocks of the video data that are larger than blocks in the pipeline structure; and processing one or more blocks of the video data.
[0329] Example 56: The method of Example 55, wherein the pipeline structure comprises a 64x64 pipeline structure.
[0330] Example 57: A method according to any one of Examples 55 to 56, wherein the blocks for which illumination compensation is disabled include 128xN blocks, and wherein N is an integer.
[0331] Example 58: The method according to any one of Examples 55 to 57 further includes: in response to disabling illumination compensation for the block of the video data, determining not to signal an illumination compensation flag for the block of the video data, wherein the illumination compensation flag indicates whether illumination compensation is applied to the block.
[0332] Example 59: The method according to any one of Examples 55 to 58 further includes: obtaining an additional block of the video data; and performing illumination compensation for the additional block, wherein performing the illumination compensation includes: deriving one or more illumination compensation parameters for the additional block; and applying the one or more illumination compensation parameters to the additional block.
[0333] Example 60: A method according to Example 59, wherein the one or more illumination compensation parameters for the block are derived using adjacent reconstructed samples.
[0334] Example 61: A method according to Example 60, wherein the neighboring reconstructed samples are one or more of a first neighboring block from the block and a second neighboring block of a reference block for inter-frame prediction.
[0335] Example 62: A method according to Example 61, wherein the first neighboring block includes one or more of the top neighboring blocks or the left neighboring blocks of the block, and wherein the second neighboring block includes one or more of the top neighboring blocks or the left neighboring blocks of the reference block.
[0336] Example 63: A method according to any one of Examples 61 or 62, wherein deriving the one or more illumination compensation parameters for the block includes: minimizing the difference between the reconstructed samples of the first neighboring block and the reconstructed samples of the second neighboring block.
[0337] Example 64: A method according to any one of Examples 59 to 63, wherein the one or more illumination compensation parameters include at least one scaling factor and at least one offset.
[0338] Example 65: A method according to any one of Examples 59 to 64, wherein performing the illumination compensation on the block produces an illumination compensation predictor, and the method further comprises: decoding the block using the illumination compensation predictor.
[0339] Example 66: The method of any one of Examples 59 to 65, further comprising: signaling the one or more illumination compensation parameters in the encoded video bitstream.
[0340] Example 67: A method according to any one of Examples 55 to 66, wherein processing the one or more blocks of the video data includes decoding the one or more blocks of video data.
[0341] Example 68: A method according to any one of Examples 55 to 67, wherein processing the one or more blocks of the video data includes: generating an encoded video bitstream, the encoded video bitstream including the one or more blocks of video data.
[0342] Example 69: The method of Example 68, further comprising: signaling the encoded video bitstream.
[0343] Example 70: An apparatus comprising: a memory configured to store video data; and a processor configured to process the video data according to any one of Examples 55 to 69.
[0344] Example 71: The apparatus of Example 70, wherein the apparatus comprises a decoder.
[0345] Example 72: An apparatus according to Example 70, wherein the apparatus comprises an encoder.
[0346] Example 73: An apparatus according to any one of Examples 70 to 72, wherein the apparatus is a mobile device.
[0347] Example 74: An apparatus according to any one of Examples 70 to 73, wherein the apparatus includes a display configured to display the video data.
[0348] Example 75: An apparatus according to any of Examples 70 to 74, wherein the apparatus includes a camera configured to capture one or more pictures.
[0349] Example 76: A computer-readable medium having instructions stored thereon, which instructions, when executed by a processor, perform a method according to any one of Examples 55 to 69.
Claims
1. A method for decoding video data, the method comprising: Get the first block of the picture of the video data; determining a size of the first block; determining that a size of the first block is equal to or less than a first block size limit, the first block size limit being used to limit bidirectional inter prediction for blocks having a corresponding size that is equal to or less than the first block size limit; as well as Disabling illumination compensation for the first block based on determining that the size of the first block is equal to or less than the first block size limit, wherein an illumination compensation flag indicating that illumination compensation is disabled for the first block is not included in the video bitstream.
2. The method according to claim 1, further comprising: determining that a size of a second block of the picture of the video data is greater than the first block size limit and less than a second block size limit associated with a video decoding pipeline structure; as well as Based on a size of the second block being greater than the first block size limit and less than the second block size limit associated with the video coding pipeline structure, illumination compensation for the second block is enabled.
3. The method according to claim 2, further comprising: Based on enabling the illumination compensation for the second block, a value of the illumination compensation flag associated with the second block is set to true, wherein the value of the illumination compensation flag set to true indicates that illumination compensation for the second block is enabled.
4. The method according to claim 2, further comprising: deriving one or more illumination compensation parameters for the second block based on one or more neighboring blocks of the second block and one or more additional neighboring blocks of a reference block selected for inter prediction of the second block; applying illumination compensation for the second block based on the one or more illumination compensation parameters; as well as Samples of the second block are reconstructed based on the illumination compensation applied to the second block.
5. The method according to claim 1, further comprising: Based on the size of the first block being equal to or smaller than the first block size limit, it is determined that bidirectional inter prediction is not applied for the first block.
6. The method according to claim 5, wherein: Disabling illumination compensation for the first block is based on determining that bidirectional inter prediction is not applied for the first block.
7. The method according to claim 1, wherein: Decoding the video data includes decoding the video data, and the method further includes: The first block is decoded based on a prediction mode and without the illumination compensation.
8. The method according to claim 1, further comprising: determining a residual value for the first block; performing a prediction mode on the first block; as well as At least one sample of the first block is reconstructed based on the residual value for the first block and the prediction mode performed for the first block.
9. The method according to claim 1, wherein: Decoding the video data includes encoding the video data, and the method further includes: An encoded video bitstream is generated, the encoded video bitstream comprising the first block of the picture of the video data.
10. The method according to claim 9, further comprising: The coded video bitstream is signaled.
11. A device for decoding video data, the device comprising: at least one memory; as well as One or more processors implemented in circuitry and configured to: Get the first block of the picture of the video data; determining a size of the first block; determining that a size of the first block is equal to or less than a first block size limit, the first block size limit being used to limit bidirectional inter prediction for blocks having a corresponding size that is equal to or less than the first block size limit; as well as Disabling illumination compensation for the first block based on determining that the size of the first block is equal to or less than the first block size limit, wherein an illumination compensation flag indicating that illumination compensation is disabled for the first block is not included in the video bitstream.
12. The device according to claim 11, wherein The one or more processors are further configured to: determining that a size of a second block of the picture of the video data is greater than the first block size limit and less than a second block size limit associated with a video coding pipeline structure; and Based on a size of the second block being greater than the first block size limit and less than the second block size limit associated with the video coding pipeline structure, illumination compensation for the second block is enabled.
13. The device according to claim 12, wherein: The one or more processors are further configured to: Based on enabling the illumination compensation for the second block, a value of the illumination compensation flag associated with the second block is set to true, wherein the value of the illumination compensation flag set to true indicates that illumination compensation for the second block is enabled.
14. The device according to claim 12, wherein: The one or more processors are further configured to: deriving one or more illumination compensation parameters for the second block based on one or more neighboring blocks of the second block and one or more additional neighboring blocks of a reference block selected for inter prediction of the second block; applying illumination compensation for the second block based on the one or more illumination compensation parameters; as well as Samples of the second block are reconstructed based on the illumination compensation applied to the second block.
15. The device according to claim 11, wherein The one or more processors are further configured to: Based on the size of the first block being equal to or smaller than the first block size limit, it is determined that bidirectional inter prediction is not applied for the first block.
16. The device according to claim 15, wherein: Disabling illumination compensation for the first block is based on determining that bidirectional inter prediction is not applied for the first block.
17. The device according to claim 11, wherein: Decoding the video data includes decoding the video data, wherein the one or more processors are further configured to: The first block is decoded based on a prediction mode and without the illumination compensation.
18. The device according to claim 11, wherein The one or more processors are further configured to: determining a residual value for the first block; performing a prediction mode for the first block; and At least one sample of the first block is reconstructed based on the residual value for the first block and the prediction mode performed for the first block.
19. The device according to claim 11, wherein: Decoding the video data includes encoding the video data, wherein the one or more processors are further configured to: An encoded video bitstream is generated, the encoded video bitstream comprising the first block of the picture of the video data.
20. The device according to claim 19, wherein The one or more processors are further configured to: The coded video bitstream is signaled.
21. The device according to claim 11, wherein The apparatus includes a mobile device having a camera for capturing one or more pictures.
22. The apparatus according to claim 11, further comprising: A display used to show one or more pictures.
23. A non-transitory computer readable medium having stored thereon instructions that, when executed by one or more processors, cause the one or more processors to: Get the first block of the picture of the video data; determining a size of the first block; determining that a size of the first block is equal to or smaller than a first block size limit, the first block size limit being used to limit bidirectional inter prediction for blocks having a corresponding size equal to or smaller than the first block size limit; and Disabling illumination compensation for the first block based on determining that the size of the first block is equal to or less than the first block size limit, wherein An illumination compensation flag for indicating that illumination compensation is disabled for the first block is not included in the video bitstream.
