Excluding intra-coded reference samples from local illumination compensation parameter derivation

By determining the number of adjacent samples of the current block, selecting one side as the basis, excluding some samples, and using local illumination compensation parameters for video data decoding and encoding, the illumination variation problem of non-square blocks is solved, and the efficiency and quality of video decoding are improved.

CN113302939BActive Publication Date: 2024-10-29QUALCOMM INC
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202080009844.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-01-23
Publication Date
2024-10-29
Estimated Expiration
2040-01-23

AI Technical Summary

Technical Problem

Existing video decoding technologies struggle to efficiently compensate for illumination variations between images when processing video data, especially when the blocks are non-square, resulting in high computational density and impacting decoding efficiency.

Method used

By determining the number of adjacent samples in the current block, selecting one side as the basis, excluding some samples, and using local illumination compensation parameters for video data decoding and encoding, this method is suitable for non-square blocks and reduces computational intensity.

Benefits of technology

It improves the efficiency of video decoding, reduces computational complexity, achieves efficient illumination compensation for non-square blocks, and enhances video quality.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113302939B_ABST
    Figure CN113302939B_ABST
Patent Text Reader

Abstract

A rectangular block of video data is obtained, and the length of a first side and a second side of the block is determined. Intra-coded samples may be excluded from the first side and / or the second side, or replaced with intra-coded samples from a reference block. The lengths of the first side and the second side are determined based on non-excluded samples. Based on these lengths, the shortest side or the largest side is selected. In some cases, additional samples may be excluded so that the total number of samples is a power of 2. Illumination compensation parameters are determined based on the remaining (non-excluded) samples adjacent to the current block.
Need to check novelty before this filing date? Find Prior Art

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 video coding and 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 demands place a burden on 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), Moving Picture Experts Group (MPEG) 2 Part 2 Coding, 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. An important 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, encoding technologies with better decoding efficiency are needed. Summary of the invention

[0004] Illumination compensation may be used to efficiently compensate for illumination variations between one or more images.Techniques are described herein to provide efficient techniques for performing illumination compensation that allow for less computationally intensive operations to be used even when blocks are non-square.

[0005] In one example, a method for processing video data is provided. The method includes: obtaining a current block of video data. The method includes: determining the number of samples adjacent to a first side of the current block; and determining the number of samples adjacent to a second side of the current block. The method includes: selecting the first side as a basis for determining one or more illumination compensation parameters for the current block based on a comparison between the number of samples adjacent to the first side and the number of samples adjacent to the second side. The method includes: determining one or more samples adjacent to the current block that are excluded from determining one or more illumination compensation parameters for the current block. The method includes: determining one or more illumination compensation parameters for the current block based on multiple samples adjacent to the current block and based on the number of samples adjacent to the first side. One or more samples are excluded from multiple samples used to determine the one or more illumination compensation parameters.

[0006] In some cases, the method further includes: determining that the number of samples adjacent to the first side is less than the number of samples adjacent to the second side; and selecting the first side based on the number of samples adjacent to the first side being less than the number of samples adjacent to the second side. In some cases, the plurality of samples adjacent to the current block includes a total amount of samples equal to twice the number of samples adjacent to the first side. In some cases, the plurality of samples adjacent to the current block includes a subset of the samples adjacent to the first side and the samples adjacent to the second side, wherein the number of samples in the subset is equal to the number of samples adjacent to the first side.

[0007] In some cases, the method further includes: determining that the number of samples adjacent to the first side is greater than the number of samples adjacent to the second side; and selecting the first side based on the number of samples adjacent to the first side being greater than the number of samples adjacent to the second side. In some cases, the plurality of samples adjacent to the current block includes a total number of samples equal to the number of samples adjacent to the first side. In some cases, the plurality of samples adjacent to the current block includes samples adjacent to the second side and a subset of samples adjacent to the first side, wherein the number of samples in the subset is equal to the number of samples adjacent to the second side subtracted from the number of samples adjacent to the first side.

[0008] In some cases, the method further includes: determining that a number of samples adjacent to the first side is equal to a number of samples adjacent to the second side; and selecting the first side based on the number of samples adjacent to the first side being equal to the number of samples adjacent to the second side.

[0009] In some cases, the one or more samples excluded from determining one or more illumination compensation parameters for the current block include one or more intra-coded samples. In some cases, the method further includes: identifying one or more replacement samples adjacent to a reference block, the reference block being different from the current block; and replacing the one or more intra-coded samples with the one or more replacement samples. The plurality of samples used to determine the one or more illumination compensation parameters include the one or more replacement samples that replace the one or more intra-coded samples.

[0010] In some cases, determining one or more samples to be excluded for determining one or more illumination compensation parameters for the current block is performed before determining the number of samples adjacent to the first side and determining the number of samples adjacent to the second side and selecting the first side. The number of samples adjacent to the first side is equal to the number of samples remaining adjacent to the first side after excluding the one or more samples. The number of samples adjacent to the second side is equal to the number of samples remaining adjacent to the second side after excluding the one or more samples.

[0011] In some cases, determining one or more samples excluded for determining one or more illumination compensation parameters for the current block is performed after determining a number of samples adjacent to a first side and determining a number of samples adjacent to a second side and selecting the first side. The number of one or more samples excluded for determining one or more illumination compensation parameters for the current block is based on the number of samples adjacent to the first side.

[0012] In some cases, the first edge is a top edge of the current block, and the samples adjacent to the first edge include samples from a top neighboring block adjacent to the top edge of the current block. The second edge is a left edge of the current block, and the samples adjacent to the second edge include samples from a left neighboring block adjacent to the left edge of the current block. In some cases, the first edge is a left edge of the current block, and the samples adjacent to the first edge include samples from a left neighboring block adjacent to the left edge of the current block. The second edge is a top edge of the current block, and the samples adjacent to the second edge include samples from a top neighboring block adjacent to the top edge of the current block.

[0013] In some cases, the method further includes: using one or more illumination compensation parameters to perform illumination compensation on the current block. In some cases, the method further includes: decoding the video data, including using a predictor for illumination compensation to decode the current block. Performing illumination compensation on the current block generates a predictor for illumination compensation. In some cases, the method further includes: encoding the video data, including generating an encoded video bitstream including the current block of video data. In some cases, generating one or more illumination compensation parameters for the current block includes: generating at least one scaling factor and at least one offset.

[0014] In another example, a device for processing video data is provided. The device includes one or more memory units storing instructions and one or more processors executing the instructions. The execution of the instructions by the one or more processors causes the one or more processors to perform operations. The operations include: obtaining a current block of video data. The operations include: determining the number of samples adjacent to a first side of the current block; and determining the number of samples adjacent to a second side of the current block. The operations include: selecting the first side as a basis for determining one or more illumination compensation parameters for the current block based on a comparison between the number of samples adjacent to the first side and the number of samples adjacent to the second side. The operations include: determining one or more samples adjacent to the current block that are excluded from determining one or more illumination compensation parameters for the current block. The operations include: determining one or more illumination compensation parameters for the current block based on a plurality of samples adjacent to the current block and based on the number of samples adjacent to the first side. One or more samples are excluded from a plurality of samples used to determine the one or more illumination compensation parameters.

[0015] In some cases, the device includes an encoder, and the execution of instructions by one or more processors causes the one or more processors to use the encoder to generate an encoded video bitstream. The encoded video bitstream encodes a current block of video data based on one or more illumination compensation parameters. In some cases, the device includes a decoder, and the execution of instructions by one or more processors causes the one or more processors to use the decoder to decode the encoded video bitstream. The encoded video bitstream encodes the current block of video data based on the one or more illumination compensation parameters.

[0016] In some cases, the device is a mobile device. In some cases, the device includes a display configured to display video data. In some cases, the device includes a camera configured to capture one or more video frames of video data.

[0017] In some cases, the instructions are executed by the processor so that the processor further performs the following operations: determining that the number of samples adjacent to the first side is less than the number of samples adjacent to the second side; and selecting the first side based on the number of samples adjacent to the first side being less than the number of samples adjacent to the second side. In some cases, the instructions are executed by the processor so that the processor further performs the following operations: determining that the number of samples adjacent to the first side is less than the number of samples adjacent to the second side; and selecting the first side based on the number of samples adjacent to the first side being greater than the number of samples adjacent to the second side. In some cases, the instructions are executed by the processor so that the processor further performs the following operations: determining that the number of samples adjacent to the first side is less than the number of samples adjacent to the second side; and selecting the first side based on the number of samples adjacent to the first side being equal to the number of samples adjacent to the second side.

[0018] In some cases, the one or more samples excluded from determining one or more illumination compensation parameters for the current block include one or more intra-coded samples. In some cases, execution of the instructions by the processor causes the processor to further perform the following operations: identifying one or more replacement samples adjacent to a reference block, the reference block being different from the current block; and replacing the one or more intra-coded samples with the one or more replacement samples. The plurality of samples used to determine the one or more illumination compensation parameters include the one or more replacement samples that replace the one or more intra-coded samples.

[0019] In one example, a non-transitory computer-readable storage medium is provided. The non-transitory computer-readable storage medium has a program embodied thereon, the program being executable by a processor to perform a method of processing video data. The method includes: obtaining a current block of video data. The method includes: determining a number of samples adjacent to a first side of the current block; and determining a number of samples adjacent to a second side of the current block. The method includes: selecting the first side as a basis for determining one or more illumination compensation parameters for the current block based on a comparison between the number of samples adjacent to the first side and the number of samples adjacent to the second side. The method includes: determining one or more samples adjacent to the current block that are excluded from determining one or more illumination compensation parameters for the current block. The method includes: determining one or more illumination compensation parameters for the current block based on a plurality of samples adjacent to the current block and based on the number of samples adjacent to the first side. One or more samples are excluded from a plurality of samples used to determine the one or more illumination compensation parameters.

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

[0021] The foregoing as well as other features and embodiments will become more fully apparent upon reference to the following description, claims and accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS

[0022] The illustrative embodiments of the present application are described in detail below with reference to the following drawings:

[0023] Figure 1 is a block diagram illustrating an example of a system including an encoding device and a decoding device according to some examples;

[0024] Figure 2A is a conceptual diagram illustrating example spatial neighboring motion vector candidates for merge mode according to some examples;

[0025] Figure 2Bis a conceptual diagram illustrating example spatial neighboring motion vector candidates for an advanced motion vector prediction (AMVP) mode according to some examples;

[0026] Figure 3A is a conceptual diagram illustrating example temporal motion vector predictor (TMVP) candidates according to some examples;

[0027] Figure 3B is a conceptual diagram illustrating examples of motion vector scaling according to some examples;

[0028] 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;

[0029] 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;

[0030] Figure 5A is a conceptual diagram illustrating an example of neighboring samples of a current coding unit for deriving IC parameters for the current coding unit according to some examples;

[0031] 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;

[0032] Figure 6 is a conceptual diagram illustrating examples of neighboring reconstructed samples of a current block and neighboring samples of a reference block for unidirectional inter prediction according to some examples;

[0033] Figure 7 is a conceptual diagram illustrating examples of neighboring reconstructed samples of a current block and neighboring samples of two reference blocks for bidirectional inter prediction according to some examples;

[0034] Figure 8 is a conceptual diagram showing an example of a non-square rectangular block in which the width and height of the block are different from each other;

[0035] Fig. 9 is a conceptual diagram illustrating an example of intra-coded neighboring samples excluded from illumination compensation (or other coding tools) according to some examples;

[0036] Fig.10 is a conceptual diagram illustrating an example including replacing intra-coded samples with corresponding samples from neighboring samples of a reference block for illumination compensation parameter derivation (or parameters for another coding tool) according to some examples;

[0037] Fig.11is a conceptual diagram illustrating an example of skipping certain samples when used for illumination compensation parameter derivation (or for parameters of another coding tool) according to some examples;

[0038] Fig. 12A is a conceptual diagram illustrating an example of illumination compensation parameter derivation (or parameters for another coding tool) using representative samples according to some examples;

[0039] Fig. 12B is a conceptual diagram illustrating another example of illumination compensation parameter derivation (or parameters for another coding tool) using representative samples according to some examples;

[0040] Fig.13 is a flow chart illustrating a technique for processing video data;

[0041] Fig.14 is a block diagram illustrating an example video encoding device according to some examples; and

[0042] Fig.15 is a block diagram illustrating an example video decoding device according to some examples. DETAILED DESCRIPTION

[0043] Provide some aspects and embodiments of the present disclosure below.As will be apparent to those skilled in the art, some of these aspects and embodiments can be applied independently, and some of them can be applied in combination.In the following description, for the purpose of explanation, set forth specific details in order to provide a thorough understanding of the embodiments of the present application.However, it will be apparent that each embodiment can be implemented without these specific details.The accompanying drawings and description are not intended to be restrictive.

[0044] 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 the 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 the elements without departing from the spirit and scope of the present application as set forth in the appended claims.

[0045] Video decoding devices implement video compression techniques to efficiently encode and decode video data. Video compression techniques may include applying different prediction modes to reduce or remove redundancy inherent in video sequences, 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. The video encoder may divide each image 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.

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

[0047] For inter-prediction mode, the video encoder can search for a block similar to the block being encoded in a frame (or image) located at another temporal position (referred to as a reference frame or reference image). 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 predicted block based on data from previously encoded neighboring blocks within the same image.

[0048] 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 pixel values ​​in 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, together with control information, form a decoded representation of the video sequence. In some cases, the video encoder can entropy decode the syntax elements to further reduce the number of bits required for their representation.

[0049] 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 predicted block and the compressed prediction error. The video decoder can determine the compressed prediction error by weighting the transform basis function using quantized coefficients. The difference between the reconstructed frame and the original frame is called the reconstruction error.

[0050] In some examples, one or more systems and methods for processing video data are directed to deriving or estimating illumination compensation (IC) parameters in block-based video coding. In some instances, 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 images. 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 coding block or coding unit being encoded or decoded. 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.

[0051] 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, 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 decoding in various multimedia applications, including streaming video transmission (e.g., via the Internet), television broadcasting or transmission, encoding of digital video for storage on a data storage medium, decoding of digital video stored on a data storage medium, or other applications. In some examples, the 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.

[0052] 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).

[0053] 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 over 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 in this article can be applied.

[0054] 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 decoding standard being developed and / or future video decoding standards (e.g., VVC and / or other video decoding 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 not yet developed. Therefore, although the techniques and systems described herein may be described with reference to a specific video decoding standard, it will be understood by those of ordinary skill in the art that the specification should not be interpreted as being applicable only to that specific standard.

[0055] Many of the embodiments described herein provide examples using the JEM model, VVC, HEVC standards, and / or their extensions. However, the techniques and systems described herein may also be applicable to other decoding standards, such as AVC, MPEG, JPEG (or other decoding standards for still images), their extensions, or other suitable decoding standards that are already available or not yet available or not yet developed. Therefore, although the techniques and systems described herein may be described with reference to a specific video decoding standard, a person of ordinary skill in the art will understand that the specification should not be interpreted as being applicable only to that specific standard.

[0056] 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 that provides video data, a video feed interface that receives 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.

[0057] The video data from video source 102 may include one or more input images or frames. An image or frame is a still image that is part of a video in some cases. In some examples, the data from 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 images. An image may include a video sequence represented as S L , S Cb and S Cr Three sample arrays. L is a two-dimensional array of brightness samples, S Cb is a two-dimensional array of Cb chrominance samples, and S Cr is a two-dimensional array of Cr chrominance samples. Chrominance samples may also be referred to as "chroma" samples herein. A pixel may refer to all three components (luminance and chrominance samples) for a given position in an array of an image. In other examples, an image may be monochrome and may include only an array of luminance samples, in which case the terms pixel and sample may be used interchangeably. With respect to example techniques described herein for illustrative purposes referring to individual samples, the same techniques may be applied to pixels (e.g., all three sample components for a given position in an array of an image). With respect to example techniques described herein for illustrative purposes referring to pixels (e.g., all three sample components for a given position in an array of an image), the same techniques may be applied to individual samples.

[0058] 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 of decoded image data (described below), and the non-VCL NAL unit includes control information related to one or more decoded images. In some cases, the NAL unit can be called a packet. The HEVC AU includes: a VCL NAL unit containing decoded image data, and a non-VCL NAL unit corresponding to the decoded image data (if any).

[0059] The NAL unit may contain a sequence of bits that form a decoded representation of video data (e.g., a coded video bitstream, a CVS of a bitstream, etc.), such as a decoded representation of a picture in a video. The encoder engine 106 generates a decoded representation of a picture by dividing 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 a previous slice segment.

[0060] 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).

[0061] 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 set of motion parameters (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 the prediction residual signal. A transform unit (TU) represents a TB of luminance samples and chroma samples and corresponding syntax elements. Transform decoding is described in more detail below.

[0062] 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, 16 x 16 samples, 32 x 32 samples, 64 x 64 samples, or any other appropriate size up to the size of the corresponding CTU. The phrase "N x N" is used herein to represent the pixel size of the video block in the vertical and horizontal dimensions (e.g., 8 pixels x 8 pixels). The pixels in the block can be arranged in rows and columns. In some embodiments, 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.

[0063] According to the HEVC standard, a transform unit (TU) may be used to perform the transform. The TU may vary 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 or smaller size 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.

[0064] Once the image of the video data is segmented 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 using syntax data in the bitstream. The prediction mode may include intra-frame prediction (or intra-image prediction) or inter-frame prediction (or inter-image prediction). Intra-frame prediction exploits the correlation between spatially adjacent samples within an image. For example, using intra-frame prediction, each PU is predicted based on adjacent image data in the same image, using, for example, DC prediction to find an average value for the PU, using plane prediction to adapt the plane surface to the PU, using directional prediction to infer from adjacent data, or using any other appropriate type of prediction. Inter-frame prediction uses temporal correlation between images to derive motion-compensated predictions for blocks of image samples. For example, using inter-frame prediction, each PU is predicted based on image data in one or more reference images (before or after the current image in output order) using motion-compensated prediction. For example, a decision may be made at the CU level whether to code an image region using inter-image prediction or intra-image prediction.

[0065] 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 an image into multiple coding tree units (CTUs) (wherein a CTB of a luma sample and a CTB of one or more chroma samples, together with the syntax for the sample, are 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 separation between CU, PU, ​​and TU in HEVC. The QTBT structure includes two levels, including a first level partitioned according to quadtree partitioning, and a second level partitioned according to binary tree partitioning. The root node of the QTBT structure corresponds to the CTU. The leaf nodes of the binary tree correspond to the coding units (CUs).

[0066] In the MTT segmentation structure, blocks can be segmented using quadtree segmentation, binary tree segmentation, and one or more types of ternary tree segmentation. A ternary tree segmentation is a segmentation in which a block is split into three sub-blocks. In some examples, a ternary tree segmentation divides a block into three sub-blocks without dividing the original block through the center. The segmentation types in MTT (e.g., quadtree, binary tree, and ternary tree) can be symmetrical or asymmetrical.

[0067] In some examples, the video decoder may use a single QTBT or MTT structure to represent each of the luma and chroma components, while in other examples, the video decoder 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 corresponding chroma components).

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

[0069] In some examples, one or more slices of an image are assigned a slice type. Slice types include I slices, P slices, and B slices. I slices (Intra, Independently Decodable) are slices of an image that are decoded only by intra prediction and are therefore independently decodable because an I slice only requires data within the frame to predict any prediction unit or prediction block of the slice. P slices (Unidirectional Predicted Frames) are slices of an image that can be decoded using intra prediction and unidirectional inter prediction. Each prediction unit or prediction block within a P slice is decoded using intra prediction or inter prediction. When inter prediction is applied, the prediction unit or prediction block is predicted only by one reference image, and therefore the reference samples come from only one reference region of one frame. B slices (Bidirectional Predicted Frames) are slices of an image that can be decoded using intra prediction and inter 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 produce a prediction signal for the bidirectionally predicted block. As explained above, slices of a picture are coded independently. In some cases, a picture may be coded only as one slice.

[0070] As noted above, intra-image prediction of an image exploits the correlation between spatially adjacent samples within the image. 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 the 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.

[0071] Intra prediction mode Associated name 0 INTRA_PLANAR 1 INTRA_DC 2..34 INTRA_ANGULAR2..INTRA_ANGULAR34

[0072] Table 1 – Specification of intra prediction modes and associated names

[0073] Inter-image prediction uses the temporal correlation between images in order to derive a motion-compensated prediction for a block of image samples. Using a translational motion model, the position of the block in a previously decoded image (the reference image) is determined by a motion vector ( To indicate, among which, specifies the horizontal displacement of the reference block relative to the position of the current block, and Specifies the vertical displacement of the reference block relative to the position of the current block. In some cases, the motion vector ( ) 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 the reference frame. In some cases, the motion vector ( ) can 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 restricted to the integer pixel grid of the reference frame. The precision of the motion vector can be expressed by the quantization level of the motion vector. For example, the quantization level can be integer precision (e.g., 1 pixel) or fractional pixel precision (e.g., ¼ pixel, ½ pixel, or other values ​​less than a pixel). When the corresponding motion vector has fractional sample precision, interpolation is applied to the reference image to derive the prediction signal. For example, the samples available at the integer positions can be filtered (e.g., using one or more interpolation filters) to estimate the values ​​at the fractional positions. The previously decoded reference image is indicated by a reference index (refIdx) for the reference image list. The motion vector and the reference index can be referred to as motion parameters. Two types of inter-image prediction can be performed, including single prediction and dual prediction.

[0074] In the case of inter prediction using bi-prediction, two motion parameter sets ( and ) is used to generate two motion compensated predictions (from the same reference image or possibly from different reference images). 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 images that can be used for bi-prediction are stored in two separate lists, denoted as List 0 and List 1. The motion parameters can be derived using a motion estimation process at the encoder.

[0075] In the case of inter prediction using uni-prediction, a motion parameter set ( ) is used to generate a motion compensated prediction from a reference image. For example, in the case of uni-prediction, each prediction block uses at most one motion compensated prediction signal and generates P prediction units.

[0076] 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 ( ), the vertical component of the motion vector ( ), a resolution used for motion vectors (e.g., integer precision, quarter-pixel precision, or eighth-pixel precision), a reference picture to which the motion vector points, a reference index, a list of reference pictures used for the motion vector (e.g., List 0, List 1, or List C), or any combination thereof.

[0077] After performing prediction using intra prediction and / or inter prediction, the encoding device 104 may 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 a 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., issuing an inter prediction or an 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.

[0078] 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 32 x 32, 16 x 16, 8 x 8, 4 x4, or other appropriate sizes) may be applied to the residual data in each CU. In some embodiments, a TU may be used for a 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 TU to produce serialized transform coefficients for entropy coding.

[0079] In some embodiments, after intra-prediction or inter-prediction decoding using the PU of the CU, the encoder engine 106 can calculate residual data for the TU of the CU. The PU may include pixel data in the spatial domain (or pixel domain). After applying the block transform, the TU may include coefficients in the transform domain. As previously noted, the residual data may correspond to a pixel difference between a pixel of an uncoded image and a predicted value corresponding to the PU. The encoder engine 106 may form a TU including residual data for the CU, and may then transform the TU to generate transform coefficients for the CU.

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

[0081] 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 technology.

[0082] As previously described, the HEVC bitstream includes a set of NAL units, including VCL NAL units and non-VCL NAL units. The VCL NAL unit includes decoded image 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 recovery, 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 the ID, a valid parameter set for a given slice can be identified.

[0083] The PPS includes information applicable to all slices in a given image. Therefore, all slices in an image refer to the same PPS. Slices in different images may also refer to the same PPS. The SPS includes information applicable to all images 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 image (e.g., an immediate decoding reference (IDR) image or a broken link access (BLA) image or other appropriate random access point image) in the base layer and having certain properties (described above), until the next AU (or the end of the bitstream) with a random access point image in the base layer and having certain properties and not including the next AU. The information in the SPS within the decoded video sequence may not change from image to image. Images in a decoded video sequence may use the same SPS. The VPS includes information applicable to all layers within 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.

[0084] The video bitstream may also include a supplemental enhancement information (SEI) message. For example, a SEI NAL unit may be part of the video bitstream. In some cases, the SEI message may contain information that is not required by the decoding process. For example, the information in the SEI message may not be necessary for the decoder to decode the video image of the bitstream, but the decoder may use the information to improve the display or processing of the image (e.g., the decoded output). The information in the SEI message may be embedded metadata. In an illustrative example, the information in the SEI message may be used by the decoder side entity to improve the visibility of the content. In some instances, 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., frame-packed SEI messages are carried for frame-compatible planar stereoscopic 3DTV video formats, where 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).

[0085] 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 a 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 bit stream data may be modulated according to a communication standard (e.g., a wireless communication protocol) and sent to a receiving device.

[0086] 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) to store reference images for 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 may 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 both 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.

[0087] 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 to store reference images for 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.

[0088] The decoder engine 116 can decode the encoded video bitstream data by entropy decoding (e.g., using an entropy decoder) and extracting the elements of one or more encoded video sequences that make up the encoded video data. The decoder engine 116 can then rescale the encoded 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).

[0089] 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 content consumer. 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.

[0090] 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. Reference is made to the following Fig.13 An example of specific details of the encoding device 104 is described below. Fig.14 An example describing specific details of the decoding device 112.

[0091] exist Figure 1 The example system shown in is 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 the technology of the present disclosure is usually 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 decoding 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 device in the device 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.

[0092] 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). The layer ID may be present in the header of the 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 the video bitstream. In SHVC, different scalable layers are provided to represent the video bitstream at different spatial resolutions (or image resolutions) or different reconstruction fidelity. The scalable layer 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 multiple standard codecs. For example, a base layer may be coded using AVC, while one or more enhancement layers may be coded using SHVC and / or MV-HEVC extensions of the HEVC standard.

[0093] Typically, a layer includes a set of VCL NAL units and a corresponding set of non-VCL NAL units. NAL units are assigned specific layer ID values. Layers can be hierarchical in the sense that layers can depend on lower layers. 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 layers for decoding. Therefore, the layers in the layer set can form an independent bitstream that can represent 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.

[0094] 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 image list 0 (RefPicList0 or L0) and reference image list 1 (RefPicList1 or L1) of the current image. In some examples, when only one reference image 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.

[0095] In some cases, motion vectors and their reference indexes are used in the decoding process (e.g., motion compensation). Such motion vectors with associated reference indexes are represented as a single prediction set of motion information. For each prediction direction, the motion information may contain a reference index and a motion vector. In some cases, for simplicity, the motion vector itself may be referenced in a manner that assumes it has an associated reference index. The reference index is used to identify the reference image in the current reference image list (RefPicList0 or RefPicList1). The motion vector has a horizontal component and a vertical component that provide an offset from a coordinate position in the current image to a coordinate in the reference image identified by the reference index. For example, a reference index may indicate a specific reference image that should be used for a block in the current image, and a motion vector may indicate where the best matching block in the reference image (the block that best matches the current block) is located in the reference image.

[0096] 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 decoded video sequence may have the same POC value, it does not usually occur within 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, derivation of reference picture sets such as in HEVC, and motion vector scaling.

[0097] 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 may 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 may be further partitioned into sub-blocks, in which case each sub-block may 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 may have a different motion vector in each direction. Therefore, the motion vector exists at a level equal to or higher than the sub-block.

[0098] In AVC, for skip and / or direct mode in B slices, temporal direct mode can be implemented at the MB level or at the MB partition level. For each MB partition, the motion vector of the block co-located with the current MB partition in the RefPicList1[0] of the current block is used to derive the motion vector. Each motion vector in the co-located block is scaled based on the POC distance.

[0099] A spatial direct mode can also be implemented in AVC. For example, in AVC, the direct mode can also predict motion information based on spatial neighbors.

[0100] 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. A coding unit (CU) can have the same size as a CTB and be as small as 8x8. In some cases, each coding unit is decoded using a mode. 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 just one PU. When there are two PUs in a CU, they can be half-sized rectangles, or two rectangles with ¼ or ¾ of the size of the CU.

[0101] When a CU is inter-coded, there is one motion information set for each PU. In addition, each PU can be decoded using a unique inter prediction mode to derive a motion information set.

[0102] For motion prediction in HEVC, there are two inter prediction modes, including merge mode and advanced motion vector prediction (AMVP) mode for prediction units (PUs). Special cases that are considered merges are skipped. In AMVP or merge mode, a motion vector (MV) candidate list is maintained for multiple motion vector predictors. 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 may be included in the MV candidate list together with the stored motion vector.

[0103] 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 separately by an encoding device and a decoding device. 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 a reference or index sent by the signal to obtain one or more motion information candidates from the constructed MV candidate list for motion compensation prediction. For example, the decoding device 112 may construct an MV candidate list and use the motion vector from the indexed position (and the LIC flag in some cases) to perform motion prediction on the block. In the case of the AMVP mode, in addition to the reference or index, a difference or residual value may also be signaled as a delta. For example, for the 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.

[0104] 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 contain a motion information set. For example, the motion information set may include motion vectors corresponding to two reference image lists (list 0 and list 1) and a reference index. If the merge candidate is identified by a merge index, the reference image 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.

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

[0106] 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 image 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 instances, for unidirectional inter prediction of a PU, an encoder and / or decoder may generate a single AMVP candidate list. In some instances, 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.

[0107] 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 neighboring candidates in HEVC.

[0108] Figure 2A Spatial neighboring motion vector (MV) candidates for merge mode are shown. Figure 2BThe spatial neighboring motion vector (MV) candidates for AMVP mode are shown. Although the method of generating candidates based on blocks is different for merge and AMVP modes, the spatial MV candidates are derived based on neighboring blocks for a specific PU (PU0).

[0109] 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 in 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).

[0110] exist Figure 2B In the AVMP mode shown in , the neighboring blocks can be divided into two groups: a left group including blocks 0 and 1, and an upper group including blocks 2, 3 and 4. For each group, potential candidates in the neighboring blocks that refer to the same reference image as the reference image indicated by the reference index sent by the signal have the highest priority to be selected to form the final candidate of the group. It is possible that all neighboring blocks do not contain motion vectors pointing to the same reference image. 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.

[0111] Figure 3A and Figure 3B Included is a conceptual diagram showing temporal motion vector prediction in HEVC. Temporal motion vector predictor (TMVP) candidates (if enabled and available) are added to the MV candidate list, after the spatial motion vector candidates. The process of motion vector derivation for TMVP candidates is the same for both merge mode and AMVP mode. However, in some instances, the target reference index for TMVP candidates in merge mode can be set to zero or can be derived from the target reference index of neighboring blocks.

[0112] The primary block location for TMVP candidate derivation is the lower right block outside the co-located PU (e.g. Figure 3AThe 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, the motion vector of the TMVP candidate can be motion vector scaled, which is performed to compensate for the distance difference.

[0113] 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 can be assumed that the value of the motion vector is proportional to the distance of the image in the presentation time. The motion vector associates two images, a reference image and an image containing the motion vector (i.e., the containing image). When a motion vector is used to predict other motion vectors, the distance between the containing image and the reference image is calculated based on the picture order count (POC) value.

[0114] For a motion vector to be predicted, both its associated containing image and reference image 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 image for both motion vectors is the same, while the reference image is different. In HEVC, motion vector scaling applies to both TMVP and AMVP for both spatial and temporal neighboring candidates.

[0115] Another aspect of motion prediction includes artificial motion vector candidate generation. For example, if the motion vector candidate list is incomplete, artificial motion vector candidates are generated and inserted at the end of the list until all candidates 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 involving the image in list 0 and the motion vector of the second candidate involving the image in list 1.

[0116] In some implementations, a pruning process may be performed when new candidates are 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 cases, storing repeated motion information of multiple MV candidates in the MV candidate list may result in redundancy and reduced efficiency of the MV candidate list. In some examples, the pruning process may eliminate or minimize redundancy in the MV candidate list. For example, the pruning process may include comparing potential MV candidates to be added to the MV candidate list with MV candidates already stored in the MV candidate list. In one illustrative example, the horizontal displacement ( ) and vertical displacement ( ) (indicating the position of the reference block relative to the position of the current block) and the horizontal displacement of the potential candidate motion vector ( ) and vertical displacement ( ). 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 a candidate to be pruned and can 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 identical candidates. 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.

[0117] There are various related motion prediction techniques. One prediction technique is illumination compensation (IC) or brightness compensation (also referred to as 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), which 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 for carrying motion information in the QTBT structure.

[0118] Similar to the weighted prediction (WP) described in more detail below, a scaling factor (also given by a ) and offset (also represented by b), and the number of shifts is fixed to 6. The IC flag is decoded for each PU 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 scaling factors with the luma components and a fixed offset of 128 is used.

[0119] 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 the inter-view reference image. 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 images.

[0120] Regarding the derivation of IC parameters, the linear IC model used in inter-view prediction is shown in Equation (1):

[0121] Equation (1)

[0122] In equation (1), PU c is the current PU, ( i , j ) is in PU c The coordinates of the pixels in ( dv x , dv y )yes PU c The difference vector, p ( i , j )yes PU c predictions, r is the PU’s reference picture from the neighboring view, and a and b are the parameters of the linear IC model.

[0123] To estimate the parameters for PU a and b , use Figure 4A and Figure 4B The first pixel set is Figure 4A , and includes the 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 difference vector of the current PU.

[0124] set up Rec neig and Rec refneig Represent the adjacent pixel sets of the current CU and its reference block respectively, and let 2N represent Rec neig and Rec refneig Then, we can calculate the pixel number as follows a and b :

[0125] Equation (2)

[0126] Equation (3)

[0127] In some cases, only a ,and b is always set equal to 0. In some cases, only b ,and a Always set equal to 1.

[0128] In HEVC, weighted prediction (WP) is supported, in which case a scaling factor (given by a ), the number of shifts (represented by s ) and offset (denoted by b Assuming that the pixel value at position (x, y) in the reference image is p(x, y), then p'(x, y) = ((a*p(x, y) + (1<<(s-1)))>>s) + b is used as the prediction value in motion compensation instead of p(x, y).

[0129] 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, the WP parameter set (i.e., a , s and b) is sent to the decoder and used for motion compensation according to the reference image. In some examples, in order to flexibly turn on / off WP for luma and chroma components, a WP flag and WP parameters are signaled for luma and chroma components, respectively. In WP, one and the same WP parameter set is used for all pixels in one reference image.

[0130] 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 using a scaling factor a and offset b A linear model for illumination variation is used. Such LIC is adaptively enabled or disabled for each decoded coding unit (CU) for which an inter prediction mode has been applied. When LIC is applicable to a CU, a least squares error method is adopted to derive the parameters by using the neighboring samples of the current CU and its corresponding reference samples. a and b .

[0131] For example, as in Figure 5A and Figure 5B As shown in , neighboring samples of the CU that are subsampled (e.g., 2:1 subsampled) and corresponding pixels in the reference image (identified by the motion information of the current CU or sub-CU) are used. In some examples, IC parameters are derived and applied separately for each prediction direction. In some examples, an illumination compensation flag can 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 can be copied from the neighboring block in a manner similar to the motion information copying in merge mode.

[0132] According to LIC, the brightness value (of a sample or pixel) is inter-predicted in linear form. a * p + b To compensate, among which, p are samples in inter-frame prediction, a is the scaling factor, and b is the offset. Scaling factor a and offset b is to use neighboring samples of the current block and the reference block for inter prediction (e.g., as in Figure 5A and Figure 5B For example, the motion information signaled for the inter-coded block can be used to first derive the inter-prediction, and then the IC parameters can be derived. a and b, and then prediction refinement can be performed. The IC parameters can be derived by minimizing the difference between the neighboring reconstructed samples of the current block and the neighboring samples of the reference block used for inter-frame prediction. In some cases, the minimization can be performed using a linear least squares method and / or any other suitable minimization method.

[0133] Figure 6 is a diagram showing an example of neighboring reconstructed samples of a current block 602 and neighboring 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.

[0134] Figure 7 is a diagram showing an example of neighboring reconstructed samples of a current block 702 and neighboring 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 coded for the current block 702 to identify the first reference block 704 and the second reference block 706, respectively.

[0135] As described above, IC parameters may include one or more offsets (e.g., offset b ), one or more weights or scaling factors (e.g., scaling factor a ), shift number and / or other appropriate illumination compensation parameters. IC parameters can be derived for inter-frame prediction (e.g., unidirectional inter-frame prediction). For bidirectional inter-frame prediction, the one or more weights may include a first weight for the first reference image and a second weight for the second reference image.

[0136] In some implementations, linear least squares regression can be used to estimate IC parameters in dual prediction motion compensation. In one example, the derivation of IC parameters can be performed by solving a cost function. For example, the cost function can include the use of a least squares function. For example, a sample subset from one or more adjacent blocks of the current block can be used to derive IC parameters. Samples from adjacent blocks of the current block can be used to find possible illumination changes in the current block 702, because it can be assumed that there is a strong correlation between adjacent samples (in adjacent blocks) and the current sample (in the current block 702). For example, it can be assumed that the current block and adjacent blocks sharing the same motion information should contain very similar illumination values. Another reason for using adjacent samples is that the current block has not been predicted, and there may not be pixels to be used from the current block, in which case adjacent samples (which have been reconstructed) can be used to perform motion compensation for the current block.

[0137] In one illustrative example, the top neighbor, the left neighbor, or both the top neighbor and the left neighbor may be used. For example, after subsampling, a subset of samples from the top neighbor and the left neighbor (Ni) for the current block 702, a subset of pixels from the top neighbor and the left neighbor (P0) of the first reference block 704, and a subset of pixels from the top neighbor and the left neighbor (P1) of the second reference block 706 may be used to derive IC parameters for the current block 702. The samples of the neighboring blocks P0 and P1 may include samples from the neighboring block N i The corresponding samples of the neighboring samples of the reference image 704 and 706 are identified by the motion vectors MV0 and MV1, respectively. In some cases, the corresponding samples for the neighboring blocks P0 and P1 can be identified by the motion information of the current block. In one illustrative example, the motion vector can be signaled by the merge mode or the AMVP mode. The reference image can be identified by its reference index, and the reference blocks 704 and 706 within the reference image are identified by the motion vectors MV0 and MV1, respectively.

[0138] In some examples, more than one derivation method may be performed to derive IC parameters. Examples of an inter-frame prediction engine or module for deriving IC parameters at the encoder side may include Fig.13 The prediction processing unit 41, 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 IC parameters at the decoder side may include Fig.13 81 and / or the 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.

[0139] 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 suitable number of rows and / or columns. When multiple lines and / or columns of neighboring blocks are used, the cost function mentioned above 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.

[0140] In some cases, integer-positioned samples (or pixels) are used to derive IC parameters. In some cases, fractional-positioned samples are used to derive IC parameters. In some cases, both integer-positioned samples and fractional-positioned samples are used. For example, the real displacement of moving objects between images is continuous and tends not to follow the sampling grid of images in a video sequence. For this reason, fractional accuracy can be used for motion vectors instead of integer accuracy, resulting in a reduction in residuals and an improvement in the decoding efficiency of the video decoder. 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 luminance sample) at a fractional sample position (non-integer position) in the block. Such a position needs to be generated by interpolation. In an example of using fractional-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. Such an interpolated version of the template can be generated using one or more interpolation filters.

[0141] In some examples, only the luma component need be used to jointly optimize the IC parameters for Ref0 and Ref1. Alternatively, both luma and chroma components may be considered during the derivation of 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 LIC to one or more of the chroma components, or only to the luma component.

[0142] In some examples, one or more flags (e.g., at a block level, a slice level, or other appropriate level) may be signaled from an encoder to a decoder to indicate whether a particular tool (e.g., LIC, merge mode, etc.) 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. Whether the current block has been coded using the merge mode may be inferred from the motion information based on the merge mode flag. In addition to the merge mode flag, an illumination compensation (IC) flag may also be used to indicate that a block (e.g., a PU, CU, or other block) has been coded with illumination compensation applied. As noted above, when a block is decoded using a merge mode, an IC flag may be copied from a neighboring block in a manner similar to the copying of motion information in a merge mode. Otherwise, if the CU has not been decoded using a merge mode (e.g., an AMVP mode is used instead), an IC flag may be signaled for the CU to indicate whether LIC is applicable.

[0143] Figure 8A conceptual diagram showing an example of a non-square rectangular block where the width and height of the block are different from each other.

[0144] In some cases, one or more blocks of a video (such as Figure 8 block 810) can have a non-square rectangular shape, sometimes referred to as an elongated shape, in which case the width of the current block 810 is not equal in size to the height of the current block. That is, the number of samples M from the top block adjacent to the top edge 830 of the block is not equal to the number of samples N from the left block adjacent to the left edge 820 of the block. In such a case, the total number of samples used to derive the LIC parameter (the sum of the number of samples from each of the two sides (M + N)) may not be a power of 2. For example, if the width M of the current block 810 is 8 and the height N of the current block 810 is 4, then the total number of samples will be 12 (= 8 + 4), and 12 is not a power of 2.

[0145] Generating and using LIC parameters with a number of samples that is not a power of 2 can lead to computational inefficiencies. For example, certain averages (such as average illuminance or luminance) may need to be determined by the total number of samples used to derive the LIC parameter. In addition to this, such average calculations can include dividing by the total number of samples. If the total number of samples is a power of 2, then such a division operation can be performed in a computationally inexpensive way by a shift-right division. If the total number of samples is not a power of 2 (which may be the case when the current block is elongated (non-square)), then the division operation may be relatively computationally expensive and may require additional logic to implement. For example, in some cases, when the total number of samples is not a power of 2, the division may require converting an integer to a floating point number, which may consume additional memory and / or processing resources.

[0146] To avoid computationally expensive division operations, techniques can be used to exclude certain samples so as to reduce the total number of samples to a number that is a power of 2. One technique for achieving this includes selecting the smaller (minimum) side length (width or height) and excluding samples from the larger (maximum / largest / greatest) side until the number of samples from the larger side is equal to the number of samples from the smaller side. According to Figure 8 block 810, if the left edge 820 includes fewer samples than the top edge 830 (i.e., N < M), then the left edge 820 retains all N samples, and M - N samples are excluded from the top edge 830 until only N samples remain on the top edge 830. Then, the total number of samples for block 810 will be 2N, which is a power of 2. Thus, even though it is an elongated block shape, computationally inexpensive shift-right division can still be used.

[0147] In some cases, the samples excluded from the larger side are excluded periodically. For example, the larger side may exclude every second, third, fourth, or Pth sample, where P is an integer greater than or equal to 1. In some cases, the samples excluded from the larger side may be excluded based on the ratio of the lengths of the two sides. Figure 8 For a current block 810 of FIG. 810 , where the top edge 830 is the longer edge and the left edge 820 is the shorter edge, M–N samples may be excluded from the top edge 830. In some cases, P=M / N. In some cases, P = ⌊M / N⌋. In some cases, P = ⌈M / N⌉. In some cases, P< ⌊M / N⌋. Before applying the parameter derivation process, the neighboring samples on the left and top / top edges may be sampled, for example, every second sample is selected to reduce complexity in the parameter derivation process.

[0148] For example, an 8x4 block has a width M of 8 samples and a height N of 4 samples. Of the height and width, the height is chosen as the smallest side because 4 is less than 8. Because the length of the smallest side (the height) is 4, 4 samples will be taken from both the left and top sides. That is, the number of samples taken from the left will be 4, and the number of samples taken from the top will also be 4. Because the width is 8, which is twice the height (4), the 4 samples taken from the top can, for example, be taken from every second sample. Alternatively, the 4 samples can be the first 4, the last 4, the middle 4, a corner sample and two samples in the middle, or some combination thereof. In this way, a non-square rectangular block can be treated as a square block, so that computationally expensive non-bit-shift division operations are not required.

[0149] A flag may be signaled at the block level to indicate whether a particular tool (e.g., LIC, merge mode, etc.) is applied. The merge mode flag may be stored with the motion information and may be inferred with the motion information. When the merge mode is utilized to code a CU, the LIC flag may be copied from neighboring blocks in a manner similar to the motion information copying in the merge mode; otherwise, the LIC flag may be signaled for the CU to indicate whether LIC is applicable.

[0150] When the minimum edge length is used to determine the number of samples used for LIC parameter derivation, the number of samples may be significantly reduced in some cases, making the parameter derivation inaccurate. This may happen when the difference in length between the smallest and largest edges of the block is large. For example, for a 64x4 block, the smallest edge is 4, so a total of 8 samples (4 samples times 2) will be used out of the 68 (=64+4) available samples. The 4 samples taken from an edge of length 64 may be taken from every 16 samples, which may not be frequent enough for accurate sampling.

[0151] In some cases, for example to avoid dependencies between intra and inter pipelines in an implementation, neighboring samples of the current block using intra prediction may be excluded from LIC parameter derivation. In this case, not all neighboring samples may be available for LIC parameter derivation. Therefore, the parameter derivation process may need to be adjusted. After such exclusion of neighboring samples of the current block, which side of the block has the smallest length may change. For example, if before exclusion, the height is the shortest side of the block, after exclusion, the width may become the shortest side of the block, and vice versa.

[0152] Systems, methods, and computer-readable media are described herein for addressing potential inaccuracies in LIC parameter derivation, for adjusting the LIC parameter derivation process after excluding neighboring samples, and ultimately for improving the efficiency of illumination compensation in video coding (e.g., local illumination compensation mode). The various features described herein can be used alone or in appropriate combinations.

[0153] The systems, methods, and computer-readable media described herein may also be used with other decoding tools described herein and / or decoding tools not specifically described herein. For example, in addition to LIC, the disclosed ideas may be independently applied to other video decoding tools that use neighboring samples, and may also be applied when excluding some samples (such as samples decoded intra-frame). For example, such tools may include Hadamard transform filters, bilateral filters, diffusion filters, any suitable combination thereof, and / or other tools.

[0154] An example for excluding intra-coded neighboring samples from LIC parameter derivation is described. Excluding intra-coded neighboring samples can improve LIC efficiency at the decoder side because, in some cases, obtaining intra-coded neighboring samples can be performed only after the neighboring blocks are fully reconstructed, in which case obtaining intra-coded neighboring samples may cause delays. As shown in Figure 8 As shown in , when intra-coded neighboring samples are excluded from LIC (or other coding tools) before parameter derivation, the total amount of available samples is reduced, and the minimum edge length should be re-evaluated and redefined if necessary, because longer edges may have more intra-coded samples. Therefore, various embodiments include determining the minimum edge of a block based on the excluded neighboring samples.

[0155] In some cases, intra-coded samples may mean samples for which intra prediction is used for their decoding. For example, such samples may include samples decoded using intra mode, intra-block copy (IBC) mode, combined intra and inter prediction, etc. The following examples will be described using intra-coded samples as examples, but the same process may be applied in other examples when samples determined using other decoding modes are excluded due to limitations. In some cases, the number of samples of a specific side of a block may be 4. n ,in n is an integer greater than zero. In some cases, the number of samples decoded intra-frame within the number of samples of a particular edge of the block may be 4 m ,in m is an integer greater than or equal to zero, and where n Greater than or equal to m .

[0156] Although about Figure 8 The discussed technique shows that samples are excluded only from the larger side (in the context of block 810, the upper row adjacent to the top side 830), but in some cases, alternatively or additionally, samples can be removed from the smallest side (in the context of block 810, the left column adjacent to the left side 820). For example, if 4 samples need to be excluded in order to make the total number of samples equal to 2N, 2 samples can be excluded from the largest side (the upper row) and 2 samples can be excluded from the smallest side (the left column). Or, if 10 samples need to be excluded in order to make the total number of samples equal to 2N, 6 samples can be excluded from the largest side (the upper row) and 4 samples can be excluded from the smallest side (the left column), so that the proportion of samples excluded from the largest side is higher than the proportion of samples excluded from the smallest side.

[0157] The number of samples (either along a particular edge or along both edges in total) may be referred to as the number of samples, the amount of samples, the quantity of samples, or some combination thereof.

[0158] Fig. 9 is a conceptual diagram illustrating an example of excluding intra-coded neighboring samples from illumination compensation (or other coding tools), according to some examples.

[0159] In particular, Fig. 9 An example of neighboring reconstructed samples of a current block 902 and neighboring samples of a reference block 904 for uni-directional inter prediction is shown. A motion vector MV may be coded for the current block 902 to identify the reference block 904.

[0160] In one illustrative example, intra-coded samples 914 and 924 (shown as in FIG. 1 ) adjacent to current block 902 are Fig. 9 914 and 924) are excluded from the left column and the upper row, and the number of remaining samples is calculated on each side. The minimum number of remaining samples is determined based on the excluded samples 914 and 924, and this number of remaining samples is used as the minimum edge length in the LIC parameter derivation to maintain powers of 2 and thus maintain the ability to use computationally efficient bit-shift division operations. After excluding intra-coded samples, the LIC parameter derivation process is applied to the remaining samples in the left column and the upper row, and the number of samples is equal to the determined number multiplied by 2 (because the same number of samples is used in both the left column and the upper column).

[0161] One benefit of excluding intra-coded samples 914 and 924 is that the LIC parameters for the current block 902 can be calculated faster. In some cases, at the decoder side, once all values ​​of neighboring blocks (e.g., left blocks adjacent to the left of the current block 902 and / or top blocks adjacent to the top edge of the current block 902) are fully reconstructed (which may take some time), only values ​​of intra-coded samples can be obtained from neighboring blocks. It may be inefficient to suspend LIC parameter generation to wait for neighboring blocks to be fully reconstructed. In some cases, LIC parameters can be effectively generated without intra-coded samples, in which case, excluding intra-coded samples can speed up LIC parameter generation. In some cases, for example, in the case where the neighboring blocks become fully reconstructed after excluding a subset of intra-coded samples adjacent to the current block 902, only a subset of intra-coded samples is excluded.

[0162] In some cases, excluding Fig. 9 After the intra-frame decoded samples, the following may occur: Figure 8 The choice of shorter or larger / longer / greater side in question. That is, to determine Figure 8 The number of samples on either or both sides of the shorter and longer sides of the Fig. 9 The number of samples remaining after the intra-decoded samples.

[0163] Fig.10 is a conceptual diagram illustrating examples including replacing intra-coded samples with corresponding samples from neighboring samples of a reference block for illumination compensation parameter derivation (or parameters for another coding tool) according to some examples.

[0164] exist Fig.101002. One or more intra-coded samples 1014 from neighboring blocks of the current block 1002 are adjacent to the top edge of the current block 1002. One or more intra-coded samples 1024 from neighboring blocks of the current block 1002 are adjacent to the left edge of the current block 1002. The intra-coded samples 1014 and 1024 of the current block 1002 are shown as dark gray blocks. Fig.10 1004. One or more replacement samples 1012 from a neighboring block of the reference block 1004 are adjacent to the top edge of the reference block 1004. One or more replacement samples 1024 from a neighboring block of the reference block 1004 are adjacent to the left side of the reference block 1004. The replacement samples 1012 and 1022 of the reference block 1004 are shown as light gray blocks. In some cases, the replacement samples 1012 and 1022 may be intra-coded samples, or may include one or more intra-coded samples. Alternatively, the replacement samples 1012 and 1022 may not include any intra-coded samples, and may, for example, include only inter-coded samples.

[0165] exist Fig.10 In the example shown, the intra-coded samples 1014 and 1024 adjacent to the current block 1002 are replaced with corresponding replacement samples from the neighboring samples 1012 and 1022 of the reference block 1004 for the LIC parameter derivation process. In some cases, the positions of the intra-coded samples 1014 and 1024 along the edge of the current block 1002 may be the same as the positions of the replacement samples 1012 and 1022 along the edge of the reference block 1004; in other cases, the positions may be different. In some cases, the replacement sample 1012 may come from one reference block, while the replacement sample 1022 may come from a different reference block. It does not necessarily correspond to Fig.10 Other positions than those shown in can be used to replace intra-coded neighboring samples with neighboring samples of a reference block.

[0166] When it comes to generating LIC parameters for the current block 1002, replacing the intra-coded samples 1014 and 1024 in the current block 1002 with replacement samples 1012 and 1022 from the reference block 1004 provides similar advantages as excluding the intra-coded samples 914 and 924 when generating the LIC parameters for the current block 902. In particular, LIC parameter generation does not need to pause to wait for the neighboring blocks to be fully reconstructed. The reference block 1004 has been fully reconstructed, and therefore no pause or wait is required. Based on the reference block 1004 and the motion vector MV, it can be expected that the replacement samples 1012 and 1022 are similar to the intra-coded samples 1014 and / or 1024 and / or other samples adjacent to the current block 1002. Therefore, the replacement samples 1012 and 1022 can be used instead of the intra-coded samples 1014 and 1024 to effectively generate LIC parameters, in which case replacing the intra-coded samples 1012 and 1024 can speed up LIC parameter generation. Instead of replacing the intra-coded samples 1014 and 1024 with the replacement samples 1012 and 1022 as in Fig. 9 One advantage of simply excluding the intra-coded samples 1012 and 1024 as in , is that the effective size of the current block 1002 does not change (i.e., the number of samples on each side does not change due to the exclusion of the samples), and no modification of the LIC parameter derivation based on the change in the number of samples is required. In some cases, only a subset of the intra-coded samples is replaced, for example, if the neighboring blocks become fully reconstructed after replacing a subset of the intra-coded samples adjacent to the current block 1002.

[0167] For the sake of clarity, it is again pointed out that although the above examples are related to LIC parameter derivation, other embodiments may include the use of corresponding procedures for the application of other decoding tools.

[0168] Fig.11 is a conceptual diagram illustrating an example of skipping certain samples when used for illumination compensation parameter derivation (or parameters for another coding tool), according to some examples.

[0169] Similar to Figure 8 Block 810, Fig.11 The blocks 1110 are rectangular and oblong (not square). Figure 8 In the techniques discussed in , the number of samples used for LIC parameter derivation is determined by the number of samples in the shortest side (e.g., height or width) of the block, so that the same number of samples are taken from each side. Figure 8 The discussed sampling from both sides based on the shortest side can in some cases significantly reduce the number of samples in the parameter derivation process, especially when the length difference between width and height is large. Fig.11Sampling from both sides based on the maximum edge is shown in .

[0170] Similar to Figure 8 Block 810, Fig.11 The block 1110 is represented as MxN in size, where M is the width of the block 1110 and N is the height of the block 1110, where the values ​​of the width M and the height N are both powers of 2. The larger of the two sides (which may be referred to as the largest, larger, largest, longer, or longest side) is based on the side length (i.e., the number of samples adjacent to each side, in some cases, Fig. 9 The total number of samples is set equal to the number of samples adjacent to the largest edge (with the largest edge length) selected from the width M and the height N, where this number is a power of 2. Fig.11 In the example of , M>N, and therefore the largest side for block 1110 is the width of block 1110 (ie, the top side). Fig.11 In the example, all N samples are selected from the left column, and M–N (M minus N) samples are selected from the row above, leaving N samples from the row above. Because N samples are left from one side, and M–N samples are left from the other side, the total number of samples taken is equal to N + (M–N), which is equal to M, where M is the length of the largest side.

[0171] exist Fig.11 In the example of , each Pth sample is skipped / excluded at the beginning of the row above (in other alternatives, each Pth sample can be skipped / excluded from the middle or end of the row or other positions) until a total of N samples are skipped from the row above. Each skipped sample is Fig.11 is shown as crossed out with an "X" symbol. Each sample is selected after skipping N samples, as in Fig.11 As shown in , where the total number of samples used is equal to M. N can be 1, 2, 3, 4, etc. At least one advantage of this method is that it is independent of the N / M ratio. In some cases, P=M / N. In some cases, P = ⌊M / N⌋. In some cases, P = ⌈M / N⌉. In some cases, P< ⌊M / N⌋. In some cases, Q consecutive samples can be excluded each time.

[0172] For example, block 1110 may be a 64x4 block, where the width M is 64 and the height N is 4. In this example, four samples from the left column are included (as in Fig.11 In the upper row, every second sample (P=2; Q=1) (i.e., every other sample) is excluded (similar to Fig.11). After reaching four excluded samples (equal to the height of the block), all other samples from the row above are included, so that 60 samples are taken from the row above. Finally, the total number of samples taken is 64 (4 from the left column + 60 from the column above), which is a power of 2, which maintains the ability to perform computationally cheap bit-shift division operations.

[0173] Alternatively, the first 60 samples may be used for LIC parameter generation, with the last four samples skipped / excluded. Alternatively, the last 60 samples may be used for LIC parameter generation, with the first four samples skipped / excluded. Alternatively, the middle 4 samples (e.g., sample numbers 30-34) may be skipped / excluded, with the remaining 60 samples used for LIC parameter generation. Alternatively, 4 randomly selected samples may be skipped / excluded, with the remaining 60 samples used for LIC parameter generation.

[0174] Although Fig.11 The technique of 1110 shows that samples are excluded only from the larger side (the upper row in the context of block 1110), but in some cases, samples may be removed from the smallest side (the left column in the context of block 1110) instead or in addition. For example, if 4 samples need to be excluded so that the total number of samples is equal to M, 2 samples may be excluded from the largest side (the upper row) and 2 samples may be excluded from the smallest side (the left column). Alternatively, if 10 samples need to be excluded so that the total number of samples is equal to M, 6 samples may be excluded from the largest side (the upper row) and 4 samples may be excluded from the smallest side (the left column), so that the proportion of samples excluded from the largest side is higher than the proportion of samples excluded from the smallest side.

[0175] The same process can be applied to both the current block neighboring samples and the reference block neighboring samples.

[0176] In some examples, representative samples can be used for parameter derivation. In the examples discussed previously, all available samples are considered for parameter derivation, such as Figure 8-11 As discussed, some samples are skipped or excluded, and the number of samples used in the end may depend on the block size and shape. In some cases, such examples can introduce non-uniformity in sample exclusion and parameter derivation, because the shorter sides of the block may be sampled more than the larger / greater sides of the block.

[0177] Another approach for LIC parameter derivation (and / or for parameter derivation of other coding tools) is to select a number G of representative samples to use in the parameter derivation process, in some cases such that G is a power of 2. In one illustrative example, the positions of the representative samples may be fixed relative to the size of the block. In some cases, the number of selected samples is selected as a power of 2, such as 4, 8, etc. If the size of the block is MxN, i.e., width M and height N, then G ≤ M + N. In this case, the same unified process is applied to various block sizes and shapes in parameter derivation.

[0178] Representative samples may include corners or other predetermined important positions relative to the block (such as the upper left corner, top, left, upper left corner, Figure 2A -Samples at other numbered positions shown in -B, or other positions relative to the block, or a combination thereof).

[0179] Fig. 12A is a conceptual diagram illustrating an example of using representative samples for illumination compensation parameter derivation (or parameters for another coding tool).

[0180] In particular, the representative samples retained and used for LIC parameter derivation are Fig. 12A 1210 as white blocks extending from the edges of block 1210, where the excluded samples are represented as gaps without any white blocks extending from the edges of block 1210. Fig. 12A In the example of , only four samples at the corners relative to the block are used, and all other samples (along both the height and width of the block) are skipped or excluded.

[0181] Fig. 12B is a conceptual diagram showing another example of using representative samples to perform illumination compensation parameter derivation (or parameters for another coding tool).

[0182] In particular, the representative samples retained and used for LIC parameter derivation are Fig. 12B 1210 as white blocks extending from the edges of block 1210, where the excluded samples are represented as gaps without any white blocks extending from the edges of block 1210. Fig. 12B In the example of , eight samples are used, including samples periodically spaced relative to the corners of the block and along both the height and width of the block, with other samples (along both the height and width of the block) being skipped or excluded.

[0183] For example, for a 64x4 block with a height of 4 and a width of 64, the number G samples may be selected such that G is a power of 2 and such that G ≤ 64 + 4. In this example, G may be 2, 4, 8, 16, 32, or 64. Samples may be selected such that samples are regularly skipped / excluded at the same frequency on both sides. Samples may be selected such that samples representing corners and other important locations relative to the block are not skipped / excluded.

[0184] In some cases, the same representative sample may be selected for the current block and one or more reference blocks. Figure 8 , 11 , 12A and / or 12B and with respect to Figure 8 , 11 , 12A and / or 12B can be used in conjunction with Fig. 9 and / or a combination of the techniques shown in 10. For example, Figure 8 , 11 , 12A and / or 12B can be excluded in Fig. 9 The intra-frame decoding samples are excluded after or together with it. Figure 8 , 11 , 12A and / or 12B discussed in terms of side length and sample size can be expressed in Fig. 9 The intra-frame decoded samples exclude the number of samples before or after. Similarly, Figure 8 , 11 , 12A and / or 12B can be excluded in Fig.10 It occurs after or together with the intra-frame decoding sample replacement. Figure 8 , 11 , 12A and / or 12B discussed in terms of side length and sample size can be expressed in Fig.10 The number of samples before or after the intra-frame decoded samples are replaced.

[0185] Default parameters may be used in some implementations. There may be situations where LIC parameters (or parameters associated with other decoding tools) cannot be derived, or where the derivation of LIC parameters will be computationally expensive or inefficient due to having to wait for another process to complete. For example, when there are no available adjacent samples and / or when parameter derivation is an ill-defined problem, deriving LIC parameters may be impossible, computationally expensive, or inefficient. In such cases, default LIC parameters may be applied. Default parameters may include a default scaling (a) and / or a default offset (b) in a linear (a, b) model. In some examples, the default parameters may depend on the color component and / or bit depth of the sample. In an illustrative example, scaling (a) may be set to 0 or 1, and offset (b) may be set to 0 or 1. For 8-bit depth samples, the offset may be set to 1, and for other bit depths, the offset may be set to equal 1<<(bit depth-8). In general, any default values ​​may be set for "scaling" and "offset". The default parameter values ​​may be signaled in or with the bitstream.

[0186] In some examples, the default parameters may be set equal to the LIC parameters of a previously decoded block. In some cases, the parameters may be updated after each block is decoded. For example, decoding may start with some default values ​​and may evolve after each block is decoded within the same image or tile (or other partitioning, such as a slice, etc.), taking into account the scaling and offsets used in the previously decoded blocks. Thus, the default LIC parameters may change over time. In some cases, the default parameters may be determined based on the LIC parameters of multiple previous blocks, for example, using the most common or most frequently occurring parameters determined for multiple previous blocks, or an average of the LIC parameters determined for multiple previous blocks, or some combination thereof.

[0187] Fig.13 is a flow chart illustrating a technique for processing video data.

[0188] In particular, Fig.13 The flowchart shows that one or more computing devices (such as Figure 1 System 100, Figure 1 and 13 The encoding device 104, Figure 1 and 13 Process 1300 performed by a decoding device 113 or some combination thereof.

[0189] At step 1305, process 1300 includes obtaining a current block of video data. At step 1310, process 1300 includes determining a number of samples adjacent to a first side of the current block, which in some cases may be equal to the length of the first side of the current block. At step 1315, process 1300 includes determining a number of samples adjacent to a second side of the current block, which in some cases may be equal to the length of the second side of the current block.

[0190] At step 1320, process 1300 includes selecting the first side as a basis for determining illumination compensation parameters for the current block based on a comparison between the number of samples adjacent to the first side and the number of samples adjacent to the second side. For example, step 1320 may include selecting the first side because the first side is the shortest of the two sides (the first side and the second side) because the number of samples adjacent to the first side is less than the number of samples adjacent to the second side. Alternatively, step 1320 may include selecting the first side because the first side is the largest / longest side of the two sides because the number of samples adjacent to the first side is greater than the number of samples adjacent to the second side. Alternatively, step 1320 may include selecting the first side because the first side is equal in length to the second side because the number of samples adjacent to the first side is equal to the number of samples adjacent to the second side.

[0191] At step 1325, process 1300 includes determining one or more samples adjacent to the current block that are excluded from determining one or more illumination compensation parameters for the current block. In some cases, samples may be excluded at step 1325 before determining the number of samples adjacent to both sides at steps 1310 and 1315, in which case only the remaining (i.e., non-excluded) samples may be calculated to determine the number of samples adjacent to both sides. In some cases, determining the one or more samples to exclude at step 1325 may be based on the number of samples adjacent to the first side after the first side is selected at step 1320. For example, if the first side is the shortest side, the one or more samples to be excluded may be determined at step 1325 so that the total number of samples used to determine the one or more illumination compensation parameters after exclusion is equal to twice the number of samples adjacent to the first side (the shortest side), as described above with respect to Figure 8 As discussed, for example, by excluding samples from the second (largest) side until the number of samples from the second (largest) side equals the number of samples from the first (shortest) side. That is, the number of samples from the first (shortest) side after excluding samples and the number of samples from the second (largest) side after excluding samples are both equal to N, as in Figure 8 Alternatively, if the first side is as shown in Fig.11If the maximum side of the image is the largest side, then the one or more samples to be excluded may be determined at step 1325 so that the total number of samples used to determine one or more illumination compensation parameters after exclusion is equal to the number of samples adjacent to the first (largest) side, as described above with respect to Fig.11 As discussed, for example, by excluding samples from the first (largest) side until the number of samples from the first (largest) side after excluding samples is equal to the number of samples adjacent to the first (largest) side minus the number of samples adjacent to the second (shortest) side before excluding samples. That is, as in Fig.11 , the number of samples from the first (largest) side after excluding samples is equal to M–N.

[0192] At step 1330, process 1300 includes determining one or more illumination compensation parameters for the current block based on a plurality of samples adjacent to the current block and based on a number of samples adjacent to the first edge, wherein the one or more samples are excluded from the plurality of samples used to determine the one or more illumination compensation parameters. In some cases, determining the one or more illumination compensation parameters for the current block includes generating at least one scaling factor ( a ) and at least one offset ( b ).

[0193] Although Fig.13 The flowcharts of the present invention show a specific order of operations performed in some cases, but it should be understood that such an order is exemplary. In some cases, the operations of process 1300 can be performed in different orders, certain operations can be combined, certain operations can overlap or be performed in parallel, or some combination thereof. It should be understood that, unless otherwise disclosed, any process shown in any flowchart herein or otherwise shown or described herein can be performed by the machine, mechanism and / or computing system discussed herein, and can be automatically (e.g., in response to one or more triggers / conditions described herein) executed, autonomously executed, semi-autonomously (e.g., based on received instructions) executed, or a combination thereof. In addition, any action described herein as occurring in response to one or more specific triggers / conditions should be understood to occur automatically in response to one or more specific triggers / conditions and optionally occur.

[0194] Fig.14 is a block diagram illustrating an example video encoding device according to some examples. Fig.15 1300 is a block diagram illustrating an example video decoding device according to some examples. In some implementations, the processes (or methods) described herein (including process 1300) may be performed by a computing device or apparatus (such as in Figure 1 For example, the process may be performed by the system 100 shown in Figure 1 and Fig.14The encoding device 104 shown in FIG. 1 , by another video source side device or video transmission device, by Figure 1 and Fig.15 , and / or by another client-side device (e.g., a player device, a display, or any other client-side device). In some cases, a computing device or apparatus may include a processor, a microprocessor, a microcomputer, or other components of a device configured to perform the steps of the processes described herein (including process 1300). In some examples, a computing device or apparatus may include a camera configured to capture video data (e.g., a video sequence) including video frames. In some examples, a camera or other capture device that captures video data is separated from a computing device, in which case the computing device receives or obtains the captured video data. The computing device may also 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 to display output video content, such as a sample of an image of a video bitstream.

[0195] 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 component may include an electronic circuit or other electronic hardware, and / or may be implemented using an electronic circuit or other electronic hardware, the electronic circuit or other electronic hardware may include one or more programmable circuits (e.g., a microprocessor, a graphics processing unit (GPU), a digital signal processor (DSP), a central processing unit (CPU), and / or other appropriate electronic circuits), and / or the component 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 the 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 to display samples of output video content, such as images of a video bitstream.

[0196] The processes may be described with respect to a logical flow diagram, the operations of which represent a sequence 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 a process.

[0197] In addition, the process can be executed 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.

[0198] 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. In particular, 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 (such as 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.

[0199] The destination device may receive the encoded video data to be decoded via a computer-readable medium. The computer-readable medium may include 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 include a communication medium that enables the source device to send the encoded video data directly 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 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.

[0200] 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 data storage medium in various 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 that can store the encoded video generated by the source device. The destination device can access the stored video data from the storage device via streaming or downloading. The file server can be any type of server that can store the encoded video data and send 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 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 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.

[0201] 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 multimedia application in a variety of multimedia applications, such as over-the-air television broadcasting, cable television transmission, satellite television transmission, Internet streaming video transmission (such as dynamic adaptive streaming (DASH) on HTTP), 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.

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

[0203] 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 the technology of the present disclosure is usually 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 decoding devices, wherein the source device generates decoded video data to transmit 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 the 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.

[0204] The video source can include a video capture device, such as a video camera, a video archiving 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 described above, the technology described in this disclosure can be generally applicable to video decoding, 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.

[0205] As noted, computer-readable media may include temporary media (such as wireless broadcasts or wired network transmissions), or storage media (i.e., non-temporary storage media) (such as hard disks, flash drives, compact discs, digital versatile discs, Blu-ray discs), 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 at 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, computer-readable media may be understood to include one or more computer-readable media in various forms.

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

[0207] exist Fig.14 and Fig.15 Specific details of the encoding device 104 and the decoding device 112 are shown respectively. Fig.141 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 on 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 image. 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.

[0208] The encoding device 104 includes a segmentation unit 35, a prediction processing unit 41, a filter unit 63, an image memory 64, a summer 50, a transform processing unit 52, a quantization unit 54, and an entropy encoding 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.14 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 examples, the techniques of the present disclosure may be implemented by encoding device 104. However, in other examples, one or more of the techniques of the present disclosure may be implemented by post-processing device 57.

[0209] As in Fig.14As shown in , 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 image.

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

[0211] The motion estimation unit 42 may be configured to determine an inter-prediction mode for a video slice according to a predetermined mode for a video sequence. The predetermined mode may specify a video slice in a sequence as a P slice, a B slice, or a GPB slice. The motion estimation unit 42 and the motion compensation unit 44 may be highly integrated, but are shown separately for conceptual purposes. The motion estimation performed by the motion estimation unit 42 is the process of generating a motion vector, which estimates the motion of a video block. The motion vector may, for example, indicate the displacement of a prediction unit (PU) of a video block within a current video frame or image relative to a prediction block within a reference image.

[0212] A prediction block is a block that is found to closely match a PU of a video block to be decoded in terms of pixel difference, which may be determined by sum of absolute difference (SAD), sum of squared difference (SSD), or other difference metrics. In some examples, encoding device 104 may calculate values ​​for pixel positions below an integer for a reference image stored in image 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 image. Thus, motion estimation unit 42 may perform motion searches relative to full pixel positions and fractional pixel positions and output motion vectors with fractional pixel precision.

[0213] 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 a prediction block of a 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.

[0214] 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 the subtraction operation. 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.

[0215] 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. In particular, the intra-prediction processing unit 46 may determine an 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 a rate-distortion value using a rate-distortion analysis for various tested intra-prediction modes, and may select an intra-prediction mode having the best rate-distortion characteristic in the tested mode. The rate-distortion analysis typically determines the amount of distortion (or error) between the coded block and the original uncoded block that is coded to produce the coded block, and the bit rate (i.e., the number of bits) used to produce the coded 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.

[0216] In any case, after selecting an intra-prediction mode for a block, the intra-prediction processing unit 46 may provide information indicating the selected intra-prediction mode 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 likely 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).

[0217] 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 uses a transform (such as a discrete cosine transform (DCT) or a conceptually similar transform) to transform the residual video data into residual transform coefficients. The transform processing unit 52 may convert the residual video data from a pixel domain to a transform domain (such as a frequency domain).

[0218] 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 the coefficients. The degree of quantization may be modified by adjusting a quantization parameter. In some examples, quantization unit 54 may then perform a scan on the matrix including the quantized transform coefficients. Alternatively, entropy encoding unit 56 may perform the scan.

[0219] After quantization, entropy coding unit 56 performs entropy coding on the quantized transform coefficients. For example, entropy coding 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 coding technique. After entropy coding by entropy coding unit 56, the encoded bitstream may be sent to decoding device 112 or archived for later transmission or retrieval by decoding device 112. Entropy coding unit 56 may also entropy encode motion vectors and other syntax elements for the current video slice being decoded.

[0220] 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 image. Motion compensation unit 44 may calculate a reference block by adding the residual block to a prediction block of one of the reference images in the reference image 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 image memory 64. The reference block may be used by motion estimation unit 42 and motion compensation unit 44 as a reference block to inter-frame predict a block in a subsequent video frame or image.

[0221] In this way, Fig.14 The encoding device 104 of exemplifies an example of a video encoder configured to derive LIC parameters, adaptively determine the size of a template, and / or adaptively select weights. The encoding device 104 may, for example, derive LIC parameters, adaptively determine the size of a template, and / or adaptively select a set of weights, as described above. For example, the encoding device 104 may perform any of the techniques described herein, including the techniques described above with respect to Fig.13 Described process 1300. In some cases, some of the techniques of the present disclosure may also be implemented by post-processing device 57.

[0222] Fig.151 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 an image 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 a decoding operation related to a video from a video frame. Fig.14 The encoding path described by the encoding device 104 is generally the opposite of the decoding path.

[0223] During the decoding process, the decoding device 112 receives a coded video bitstream representing video blocks and associated syntax elements of a coded video slice sent by 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 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 techniques described above. The network entity 79 may or may not include the encoding device 104. Some of the techniques described in the present disclosure may be implemented by the network entity 79 before the network entity 79 sends the coded video bitstream to the decoding device 112. In some video decoding systems, the network entity 79 and the decoding device 112 may be parts of separate devices, while in other instances, the functions described with respect to the network entity 79 may be performed by the same device including the decoding device 112.

[0224] 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).

[0225] When the video slice is decoded as an intra-frame decoded (I) slice, the intra-frame 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 intra-frame prediction mode sent in the signal and the data in the previously decoded block from the current frame or picture. When the video frame is decoded as an inter-frame decoded (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 and other syntax elements received from the entropy decoding unit 80. The prediction block can be generated based on a reference image in the reference image list. The decoding device 112 can construct the reference frame lists, list 0 and list 1, using a default construction technique based on the reference images stored in the image memory 92.

[0226] 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 a 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.

[0227] 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 an interpolation filter as 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.

[0228] 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 using the quantization parameters calculated by the encoding device 104 for each video block in the video slice to determine the degree of quantization, and likewise determine 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 a residual block in the pixel domain.

[0229] 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 this summation 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.11 Filter unit 91 is shown as an in-loop filter, 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 display on a display device (such as a Figure 1 1 and 2. The video is presented on the video destination device 122 shown in FIG.

[0230] In this way, Fig.15 The decoding device 112 of 114 represents an example of a video decoder that is configured to derive LIC parameters, adaptively determine the size of the template, and / or adaptively select weights. The decoding device 112 may, for example, derive LIC parameters, adaptively determine the size of the template, and / or adaptively select a set of weights as described above. For example, the decoding device 112 may perform any of the techniques described herein, including the techniques described above with respect to Fig.13 Process 1300 is described.

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

[0232] Where 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, programming a programmable circuit (e.g., a microprocessor or other appropriate electronic circuit) to perform the operation, or any combination thereof.

[0233] 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, blocks, modules, circuits and steps have been generally described above around their functions. Whether such functions are implemented as hardware or software depends on specific applications and the design constraints imposed on the entire system. Those skilled in the art can implement described functions in different ways for each specific application, but such implementation decision-making should not be interpreted as causing a departure from the scope of the application.

[0234] The technology described herein can also be implemented in 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 in software, the technology can be implemented at least in part by a computer-readable data storage medium including a program code, and the program code includes instructions for executing one or more of the methods described above when executed. The computer-readable data storage medium can form 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.

[0235] 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 of the techniques described in the present 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 represent 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).

[0236] Illustrative examples of the present disclosure include:

[0237] Example 1: A method for processing video data. The method includes: obtaining a current block of video data; determining one or more samples adjacent to the current block that are excluded for determining one or more illumination compensation parameters for the current block; determining a minimum side associated with the current block based on the one or more samples adjacent to the current block that are excluded; and determining one or more illumination compensation parameters for the current block based on the determined minimum side associated with the current block.

[0238] Example 2: The method of Example 1, wherein one or more samples adjacent to the current block are excluded based on the one or more samples being intra-coded samples.

[0239] Example 3: The method according to any one of Examples 1 or 2 further includes: determining that the one or more samples adjacent to the current block are intra-coded samples; and excluding the one or more samples for determining the one or more illumination compensation parameters for the current block based on the one or more samples being intra-coded samples.

[0240] Example 4: A method according to any one of Examples 1 to 3, wherein determining the minimum edge associated with the current block includes: determining a first number of remaining samples in a first edge associated with the current block after excluding one or more samples adjacent to the current block from the first edge associated with the current block; determining a second number of remaining samples in a second edge associated with the current block after excluding one or more samples adjacent to the current block from the second edge associated with the current block; determining that the first number of remaining samples in the first edge is less than the second number of remaining samples in the second edge; and selecting the first edge as the minimum edge based on the first number of remaining samples in the first edge being less than the second number of remaining samples in the second edge.

[0241] Example 5: The method of Example 4, wherein the first side comprises samples from a top neighboring block of the current block, and wherein the second side comprises samples from a left neighboring block of the current block.

[0242] Example 6: The method of Example 4, wherein the first side comprises samples from a left neighboring block of the current block, and wherein the second side comprises samples from a top neighboring block of the current block.

[0243] Example 7: The method of Example 4, wherein the first side comprises rows of samples from a top neighboring block of the current block, and wherein the second side comprises columns of samples from a left neighboring block of the current block.

[0244] Example 8: The method of Example 4, wherein the first side comprises columns of samples from a left neighboring block of the current block, and wherein the second side comprises rows of samples from a top neighboring block of the current block.

[0245] Example 9: A method according to any one of Examples 1 to 8, wherein one or more illumination compensation parameters for the current block are determined using a number of samples that is equal to the number of samples in the minimum side multiplied by two.

[0246] Example 10: The method according to any one of Examples 1 to 9 further includes: replacing one or more samples adjacent to the current block with one or more corresponding samples adjacent to a reference block used to predict the current block.

[0247] Example 11: The method according to any one of Examples 1 to 10 further includes: using one or more illumination compensation parameters to perform illumination compensation on the current block.

[0248] Example 12: The method according to Example 11, wherein performing illumination compensation on the current block generates an illumination compensated predictor, and the method further comprises: decoding the current block using the illumination compensated predictor.

[0249] Example 13: The method according to any one of Examples 1 to 11 also includes: generating an encoded video bitstream, the encoded video bitstream including the current block of video data.

[0250] Example 14: The method of Example 13, further comprising: signaling one or more illumination compensation parameters in the coded video bitstream.

[0251] Example 15: The method of any one of Examples 13 to 14, further comprising: signaling the encoded video bitstream.

[0252] Example 16: The method according to any one of Examples 13 to 15 further includes: storing the encoded video bitstream.

[0253] Example 17: A method according to any one of Examples 1 to 16, wherein determining one or more illumination compensation parameters for the current block includes: minimizing the difference between reconstructed samples of neighboring blocks of the current block and reconstructed samples of neighboring blocks of a reference block used to predict the current block.

[0254] Example 18: A method according to any one of Examples 1 to 17, wherein the one or more illumination compensation parameters include at least one scaling factor and at least one offset.

[0255] Example 19: 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 1 to 18.

[0256] Example 20: The apparatus of Example 19, wherein the apparatus comprises a decoder.

[0257] Example 21: An apparatus according to Example 19, wherein the apparatus includes an encoder.

[0258] Example 22: An apparatus according to any one of Examples 19 to 21, wherein the apparatus is a mobile device.

[0259] Example 23: An apparatus according to any of Examples 19 to 22, wherein the apparatus includes a display configured to display video data.

[0260] Example 24: An apparatus according to any of Examples 19 to 23, wherein the apparatus includes a camera configured to capture one or more images.

[0261] Example 25: A computer readable medium having instructions stored thereon, which when executed by a processor perform the method according to any one of Examples 1 to 18.

[0262] Example 26: A method of processing video data. The method includes: obtaining a current block of video data; determining a first edge associated with the current block having a maximum number of samples; selecting all samples from a second edge associated with the current block for use in determining one or more illumination compensation parameters for the current block; selecting a subset of samples from the first edge associated with the current block for use in determining one or more illumination compensation parameters for the current block, wherein the number of samples from the first edge that are excluded from the subset of samples is equal to the number of samples included in the second edge; and determining one or more illumination compensation parameters for the current block using all samples from the second edge and the subset of samples from the first edge.

[0263] Example 27: The method of Example 26, wherein the first side comprises samples from a top neighboring block of the current block, and wherein the second side comprises samples from a left neighboring block of the current block.

[0264] Example 28: The method of Example 26, wherein the first edge comprises samples from a left neighboring block of the current block, and wherein the second edge comprises samples from a top neighboring block of the current block.

[0265] Example 29: The method of Example 26, wherein the first side comprises rows of samples from a top neighboring block of the current block, and wherein the second side comprises columns of samples from a left neighboring block of the current block.

[0266] Example 30: The method of Example 26, wherein the first side comprises columns of samples from a left neighboring block of the current block, and wherein the second side comprises rows of samples from a top neighboring block of the current block.

[0267] Example 31: The method according to any one of Examples 26 to 30 further includes: using one or more illumination compensation parameters to perform illumination compensation on the current block.

[0268] Example 32: The method according to Example 31, wherein performing illumination compensation on the current block generates an illumination compensated predictor, and the method further comprises: decoding the current block using the illumination compensated predictor.

[0269] Example 33: The method according to any one of Examples 26 to 31 also includes: generating an encoded video bitstream, the encoded video bitstream including the current block of video data.

[0270] Example 34: The method of Example 33 further comprising: signaling one or more illumination compensation parameters in the coded video bitstream.

[0271] Example 35: The method of any one of Examples 33 to 34, further comprising: signaling the encoded video bitstream.

[0272] Example 36: The method according to any one of Examples 33 to 35 further includes: storing the encoded video bitstream.

[0273] Example 37: A method according to any one of Examples 26 to 36, wherein determining one or more illumination compensation parameters for the current block includes: minimizing the difference between reconstructed samples of neighboring blocks of the current block and reconstructed samples of neighboring blocks of a reference block used to predict the current block.

[0274] Example 38: A method according to any one of Examples 26 to 37, wherein the one or more illumination compensation parameters include at least one scaling factor and at least one offset.

[0275] Example 39: 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 26 to 38.

[0276] Example 40: The apparatus of Example 39, wherein the apparatus comprises a decoder.

[0277] Example 41: An apparatus according to Example 39, wherein the apparatus includes an encoder.

[0278] Example 42: An apparatus according to any one of Examples 39 to 41, wherein the apparatus is a mobile device.

[0279] Example 43: An apparatus according to any of Examples 39 to 42, wherein the apparatus includes a display configured to display video data.

[0280] Example 44: An apparatus according to any of Examples 39 to 43, wherein the apparatus includes a camera configured to capture one or more images.

[0281] Example 45: A computer readable medium having instructions stored thereon, which when executed by a processor perform a method according to any one of Examples 26 to 38.

[0282] Example 46: A method of processing video data. The method includes: obtaining a current block of video data; selecting samples from one or more edges associated with the current block for determining one or more illumination compensation parameters for the current block, the selected samples comprising a sample subset of all samples from the one or more edges, the sample subset being from a fixed position in the one or more edges relative to the current block; and determining one or more illumination compensation parameters for the current block using the selected samples.

[0283] Example 47: The method of Example 46, wherein the one or more edges include at least one of: samples from a top neighboring block of the current block, and samples from a left neighboring block of the current block.

[0284] Example 48: The method of Example 46, wherein the one or more edges include samples from a top neighboring block of the current block and samples from a left neighboring block of the current block.

[0285] Example 49: The method of Example 46, wherein the one or more edges include at least one of: rows of samples from a top neighboring block of the current block, and columns of samples from a left neighboring block of the current block.

[0286] Example 50: The method of Example 46, wherein the one or more edges include rows of samples from a top neighboring block of the current block and columns of samples from a left neighboring block of the current block.

[0287] Example 51: The method according to any one of Examples 46 to 50 further includes: using one or more illumination compensation parameters to perform illumination compensation on the current block.

[0288] Example 52: The method according to Example 51, wherein performing illumination compensation on the current block generates an illumination compensated predictor, and the method further comprises: decoding the current block using the illumination compensated predictor.

[0289] Example 53: The method according to any one of Examples 46 to 51 also includes: generating an encoded video bitstream, the encoded video bitstream including the current block of video data.

[0290] Example 54: The method of Example 53 further comprises: signaling one or more illumination compensation parameters in the encoded video bitstream.

[0291] Example 55: The method according to any one of Examples 53 to 54 further includes: sending the encoded video bitstream as a signal.

[0292] Example 56: The method according to any one of Examples 53 to 55 further includes: storing the encoded video bitstream.

[0293] Example 57: A method according to any one of Examples 46 to 56, wherein determining one or more illumination compensation parameters for the current block includes: minimizing the difference between reconstructed samples of neighboring blocks of the current block and reconstructed samples of neighboring blocks of a reference block used to predict the current block.

[0294] Example 58: A method according to any one of Examples 46 to 57, wherein the one or more illumination compensation parameters include at least one scaling factor and at least one offset.

[0295] Example 59: 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 46 to 58.

[0296] Example 60: An apparatus according to Example 59, wherein the apparatus includes a decoder.

[0297] Example 61: An apparatus according to Example 59, wherein the apparatus includes an encoder.

[0298] Example 62: An apparatus according to any one of Examples 59 to 61, wherein the apparatus is a mobile device.

[0299] Example 63: An apparatus according to any of Examples 59 to 62, wherein the apparatus includes a display configured to display video data.

[0300] Example 64: An apparatus according to any of Examples 59 to 53, wherein the apparatus includes a camera configured to capture one or more images.

[0301] Example 65: A computer-readable medium having instructions stored thereon, which when executed by a processor perform a method according to any one of Examples 46 to 58.

[0302] Example 66: A method of processing video data. The method includes: obtaining a current block of video data; selecting default illumination compensation parameters for performing illumination compensation on the current block; and performing illumination compensation on the current block using the default illumination compensation parameters.

[0303] Example 67: The method of Example 66, wherein the default illumination compensation parameters are selected based on one or more color components of the current block.

[0304] Example 68: A method according to any one of Examples 66 to 67, wherein the default illumination compensation parameters are selected based on one or more bit depths of one or more samples of the current block.

[0305] Example 69: The method of Example 68, wherein the default illumination compensation parameters are set equal to illumination compensation parameters of a previously decoded block.

[0306] Example 70: A method according to any one of Examples 66 to 69, wherein illumination compensation is performed on the current block to generate a predictor of illumination compensation.

[0307] Example 71: The method according to Example 70 also includes: decoding the current block using a predictor for illumination compensation.

[0308] Example 72: The method of any one of Examples 66 to 70 further includes generating an encoded video bitstream, the encoded video bitstream including the current block of video data.

[0309] Example 73: The method of Example 72 further comprising: signaling default illumination compensation parameters in the coded video bitstream.

[0310] Example 74: The method of any one of Examples 72 to 73 further comprising: signaling the encoded video bitstream.

[0311] Example 75: The method of any one of Examples 72 to 74, further comprising: storing the encoded video bitstream.

[0312] Example 76: A method according to any one of Examples 66 to 75, wherein the illumination compensation parameters include a scaling factor and an offset.

[0313] Example 77: An apparatus comprising: a memory configured to store video data; and a processor configured to process the video data according to any of Examples 66 to 76.

[0314] Example 78: The apparatus of Example 77, wherein the apparatus comprises a decoder.

[0315] Example 79: An apparatus according to Example 77, wherein the apparatus includes an encoder.

[0316] Example 80: An apparatus according to any one of Examples 77 to 79, wherein the apparatus is a mobile device.

[0317] Example 81: An apparatus according to any of Examples 77 to 80, wherein the apparatus includes a display configured to display video data.

[0318] Example 82: An apparatus according to any of Examples 77 to 81, wherein the apparatus includes a camera configured to capture one or more images.

[0319] Example 83: A computer-readable medium having instructions stored thereon, which when executed by a processor perform a method according to any one of Examples 66 to 76.

[0320] Example 84: A method of processing video data. The method includes: obtaining a current block of video data; determining a number of samples adjacent to a first side of the current block; determining a number of samples adjacent to a second side of the current block; selecting the first side as a basis for determining one or more illumination compensation parameters for the current block based on a comparison between the number of samples adjacent to the first side and the number of samples adjacent to the second side; determining one or more samples adjacent to the current block that are excluded from determining the one or more illumination compensation parameters for the current block; and determining one or more illumination compensation parameters for the current block based on a plurality of samples adjacent to the current block and based on the number of samples adjacent to the first side, wherein the one or more samples are excluded from the plurality of samples used to determine the one or more illumination compensation parameters.

[0321] Example 85: The method according to Example 84 also includes: determining that the number of samples adjacent to the first side is less than the number of samples adjacent to the second side; and selecting the first side based on the number of samples adjacent to the first side being less than the number of samples adjacent to the second side.

[0322] Example 86: A method according to Example 85, wherein the plurality of samples adjacent to the current block includes a total amount of samples equal to twice the number of samples adjacent to the first edge.

[0323] Example 87: A method according to Example 86, wherein the multiple samples adjacent to the current block include samples adjacent to the first side and a subset of samples adjacent to the second side, wherein the number of samples in the subset is equal to the number of samples adjacent to the first side.

[0324] Example 88: The method according to Example 84 also includes: determining that the number of samples adjacent to the first side is greater than the number of samples adjacent to the second side; and selecting the first side based on the number of samples adjacent to the first side being greater than the number of samples adjacent to the second side.

[0325] Example 89: The method of Example 88, wherein the plurality of samples adjacent to the current block includes a total amount of samples equal to the number of samples adjacent to the first edge.

[0326] Example 90: A method according to Example 89, wherein the multiple samples adjacent to the current block include samples adjacent to the second side and a subset of samples adjacent to the first side, wherein the number of samples in the subset is equal to the number of samples adjacent to the second side subtracted from the number of samples adjacent to the first side.

[0327] Example 91: The method according to Example 84 also includes: determining that the number of samples adjacent to the first side is equal to the number of samples adjacent to the second side; and selecting the first side based on the number of samples adjacent to the first side being equal to the number of samples adjacent to the second side.

[0328] Example 92: The method of Example 84, wherein the one or more samples excluded from determining one or more illumination compensation parameters for the current block include one or more intra-coded samples.

[0329] Example 93: The method according to Example 92 also includes: identifying one or more replacement samples adjacent to a reference block, the reference block being different from the current block; and replacing one or more intra-frame decoded samples with the one or more replacement samples, wherein the multiple samples used to determine one or more illumination compensation parameters include one or more replacement samples that replace the one or more intra-frame decoded samples.

[0330] Example 94: A method according to Example 84, wherein determining one or more samples to be excluded for determining one or more illumination compensation parameters for the current block is performed before determining the number of samples adjacent to a first side and determining the number of samples adjacent to a second side and selecting the first side, wherein the number of samples adjacent to the first side is equal to the number of samples remaining adjacent to the first side after excluding one or more samples, and wherein the number of samples adjacent to the second side is equal to the number of samples remaining adjacent to the second side after excluding one or more samples.

[0331] Example 95: A method according to Example 84, wherein determining one or more samples to be excluded for determining one or more illumination compensation parameters for the current block is performed after determining the number of samples adjacent to a first edge and determining the number of samples adjacent to a second edge and selecting the first edge, wherein the number of one or more samples to be excluded for determining one or more illumination compensation parameters for the current block is based on the number of samples adjacent to the first edge.

[0332] Example 96: A method according to Example 84, wherein the first edge is a top edge of the current block and samples adjacent to the first edge include samples from a top neighboring block adjacent to the top edge of the current block, wherein the second edge is a left edge of the current block and samples adjacent to the second edge include samples from a left neighboring block adjacent to the left edge of the current block.

[0333] Example 97: A method according to Example 84, wherein the first edge is the left side of the current block and the samples adjacent to the first edge include samples from a left neighboring block adjacent to the left side of the current block, wherein the second edge is the top edge of the current block and the samples adjacent to the second edge include samples from a top neighboring block adjacent to the top edge of the current block.

[0334] Example 98: The method according to Example 84 also includes: using one or more illumination compensation parameters to perform illumination compensation on the current block.

[0335] Example 99: A method according to Example 98, wherein the method of processing video data includes: decoding the video data, and wherein, performing illumination compensation on the current block generates a predictor of illumination compensation, and the method further includes: using the predictor of illumination compensation to decode the current block.

[0336] Example 100: A method according to Example 98, wherein the method of processing video data further includes: encoding the video data, and the method further includes: generating an encoded video bit stream, the encoded video bit stream including the current block of video data.

[0337] Example 101: A method according to Example 84, wherein generating one or more illumination compensation parameters for the current block includes: generating at least one scaling factor and at least one offset.

[0338] Example 102: An apparatus for processing video data. The apparatus includes: one or more memory units storing instructions; and one or more processors executing the instructions, wherein execution of the instructions by the one or more processors causes the one or more processors to perform the following operations: obtain a current block of video data; determine a number of samples adjacent to a first side of the current block; determine a number of samples adjacent to a second side of the current block; select the first side as a basis for determining one or more illumination compensation parameters for the current block based on a comparison between the number of samples adjacent to the first side and the number of samples adjacent to the second side; determine one or more samples adjacent to the current block that are excluded from determining the one or more illumination compensation parameters for the current block; and determine one or more illumination compensation parameters for the current block based on a plurality of samples adjacent to the current block and based on the number of samples adjacent to the first side, wherein the one or more samples are excluded from the plurality of samples used to determine the one or more illumination compensation parameters.

[0339] Example 103: An apparatus according to Example 102, wherein the apparatus includes an encoder, wherein instructions executed by one or more processors cause the one or more processors to use the encoder to generate an encoded video bitstream, and the encoded video bitstream encodes a current block of video data based on one or more illumination compensation parameters.

[0340] Example 104: An apparatus according to Example 102, wherein the apparatus includes a decoder, wherein instructions executed by one or more processors cause the one or more processors to use the decoder to decode an encoded video bitstream, wherein the encoded video bitstream encodes a current block of video data based on one or more illumination compensation parameters.

[0341] Example 105: The apparatus of Example 102, wherein the apparatus is a mobile device.

[0342] Example 106: An apparatus according to Example 102, wherein the apparatus includes a display configured to display video data.

[0343] Example 107: An apparatus according to Example 102, wherein the apparatus comprises a camera configured to capture one or more video frames of video data.

[0344] Example 108: An apparatus according to Example 102, wherein instructions executed by a processor cause the processor to further perform the following operations: determine that the number of samples adjacent to the first side is less than the number of samples adjacent to the second side; and select the first side based on the number of samples adjacent to the first side being less than the number of samples adjacent to the second side.

[0345] Example 109: An apparatus according to Example 102, wherein instructions executed by a processor cause the processor to further perform the following operations: determine that the number of samples adjacent to the first side is greater than the number of samples adjacent to the second side; and select the first side based on the number of samples adjacent to the first side being greater than the number of samples adjacent to the second side.

[0346] Example 110: An apparatus according to Example 102, wherein instructions executed by a processor cause the processor to further perform the following operations: determine that the number of samples adjacent to the first side is equal to the number of samples adjacent to the second side; and select the first side based on the number of samples adjacent to the first side being equal to the number of samples adjacent to the second side.

[0347] Example 111: The apparatus of Example 102, wherein the one or more samples excluded from determining one or more illumination compensation parameters for the current block include one or more intra-coded samples.

[0348] Example 112: An apparatus according to Example 111, wherein instructions executed by a processor cause the processor to further perform the following operations: identifying one or more replacement samples adjacent to a reference block, the reference block being different from the current block; and replacing one or more intra-coded samples with the one or more replacement samples, wherein the multiple samples used to determine one or more illumination compensation parameters include one or more replacement samples that replace the one or more intra-coded samples.

[0349] Example 113: A non-transitory computer-readable storage medium having a program embodied thereon, the program executable by a processor to perform a method of processing video data. The method includes: obtaining a current block of video data; determining a number of samples adjacent to a first side of the current block; determining a number of samples adjacent to a second side of the current block; selecting the first side as a basis for determining one or more illumination compensation parameters for the current block based on a comparison between the number of samples adjacent to the first side and the number of samples adjacent to the second side; determining one or more samples adjacent to the current block that are excluded from determining the one or more illumination compensation parameters for the current block; and determining one or more illumination compensation parameters for the current block based on a plurality of samples adjacent to the current block and based on the number of samples adjacent to the first side, wherein the one or more samples are excluded from the plurality of samples used to determine the one or more illumination compensation parameters.

Claims

1. A method for processing video data, the method comprising: obtaining a current block of the video data; determining a number of samples adjacent to a first edge of the current block; Determining the number of samples adjacent to a second side of the current block; selecting the first edge as a basis for determining one or more illumination compensation parameters for the current block based on a comparison between a number of samples adjacent to the first edge and a number of samples adjacent to the second edge; determining one or more samples adjacent to the current block that are excluded from determining the one or more illumination compensation parameters for the current block; determining the one or more illumination compensation parameters for the current block based on a plurality of samples adjacent to the current block and based on a number of samples adjacent to the first edge, wherein the one or more samples are excluded from the plurality of samples used to determine the one or more illumination compensation parameters, wherein the one or more samples excluded from determining the one or more illumination compensation parameters for the current block include one or more intra-coded samples; identifying one or more replacement samples adjacent to a reference block, the reference block being different from the current block; and The one or more intra-coded samples are replaced with the one or more replacement samples, wherein the plurality of samples used to determine the one or more illumination compensation parameters includes the one or more replacement samples in place of the one or more intra-coded samples.

2. The method according to claim 1, further comprising: Determining that the number of samples adjacent to the first side is less than the number of samples adjacent to the second side; as well as The first side is selected based on that the number of samples adjacent to the first side is less than the number of samples adjacent to the second side.

3. The method according to claim 2, wherein: The plurality of samples adjacent to the current block include a total amount of samples equal to twice the number of samples adjacent to the first side.

4. The method according to claim 3, wherein: The plurality of samples adjacent to the current block include samples adjacent to the first edge and a subset of samples adjacent to the second edge, wherein the number of samples in the subset is equal to the number of samples adjacent to the first edge.

5. The method according to claim 1, further comprising: Determining that the number of samples adjacent to the first side is greater than the number of samples adjacent to the second side; as well as The first side is selected based on that the number of samples adjacent to the first side is greater than the number of samples adjacent to the second side.

6. The method according to claim 5, wherein: The plurality of samples adjacent to the current block include a total amount of samples equal to the number of samples adjacent to the first edge.

7. The method according to claim 6, wherein: The plurality of samples adjacent to the current block include samples adjacent to the second side and a subset of samples adjacent to the first side, wherein a number of samples in the subset is equal to a number of samples adjacent to the first side minus a number of samples adjacent to the second side.

8. The method according to claim 1, further comprising: Determine that the number of samples adjacent to the first side is equal to the number of samples adjacent to the second side; as well as The first edge is selected based on a number of samples adjacent to the first edge being equal to a number of samples adjacent to the second edge.

9. The method according to claim 1, wherein: Determining the one or more samples that are excluded for determining the one or more illumination compensation parameters for the current block is performed before determining the number of samples adjacent to the first edge and determining the number of samples adjacent to the second edge and selecting the first edge, wherein the number of samples adjacent to the first edge is equal to the number of remaining samples adjacent to the first edge after excluding the one or more samples, and wherein the number of samples adjacent to the second edge is equal to the number of remaining samples adjacent to the second edge after excluding the one or more samples.

10. The method according to claim 1, wherein: Determining the one or more samples excluded for determining the one or more illumination compensation parameters for the current block is performed after determining the number of samples adjacent to the first edge and determining the number of samples adjacent to the second edge and selecting the first edge, wherein the number of the one or more samples excluded for determining the one or more illumination compensation parameters for the current block is based on the number of samples adjacent to the first edge.

11. The method according to claim 1, wherein: The first edge is a top edge of the current block, and samples adjacent to the first edge include samples from a top neighboring block adjacent to the top edge of the current block, wherein the second edge is a left edge of the current block, and samples adjacent to the second edge include samples from a left neighboring block adjacent to the left edge of the current block.

12. The method according to claim 1, wherein: The first edge is a left side of the current block, and samples adjacent to the first edge include samples from a left-side neighboring block adjacent to the left side of the current block, wherein the second edge is a top edge of the current block, and samples adjacent to the second edge include samples from a top-neighboring block adjacent to the top edge of the current block.

13. The method according to claim 1, further comprising: Illumination compensation is performed on the current block using the one or more illumination compensation parameters.

14. The method according to claim 13, wherein: The method of processing video data comprises decoding the video data, and wherein performing the illumination compensation on the current block generates an illumination compensated predictor, and the method further comprises decoding the current block using the illumination compensated predictor.

15. The method according to claim 13, wherein: The method of processing video data further includes: encoding the video data, and the method further includes: generating an encoded video bit stream, the encoded video bit stream including an encoding result of the current block of video data.

16. The method according to claim 1, wherein: Generating the one or more illumination compensation parameters for the current block includes generating at least one scaling factor and at least one offset.

17. An apparatus for processing video data, the apparatus comprising: one or more memory cells for storing instructions; as well as One or more processors executing the instructions, wherein execution of the instructions by the one or more processors causes the one or more processors to perform the following operations: obtaining a current block of the video data; determining a number of samples adjacent to a first edge of the current block; Determining the number of samples adjacent to a second side of the current block; selecting the first edge as a basis for determining one or more illumination compensation parameters for the current block based on a comparison between a number of samples adjacent to the first edge and a number of samples adjacent to the second edge; determining one or more samples adjacent to the current block that are excluded from determining the one or more illumination compensation parameters for the current block; determining the one or more illumination compensation parameters for the current block based on a plurality of samples adjacent to the current block and based on a number of samples adjacent to the first edge, wherein the one or more samples are excluded from the plurality of samples used to determine the one or more illumination compensation parameters, wherein the one or more samples excluded from determining the one or more illumination compensation parameters for the current block include one or more intra-coded samples; identifying one or more replacement samples adjacent to a reference block, the reference block being different from the current block; and The one or more intra-coded samples are replaced with the one or more replacement samples, wherein the plurality of samples used to determine the one or more illumination compensation parameters includes the one or more replacement samples in place of the one or more intra-coded samples.

18. The device according to claim 17, wherein: The apparatus comprises an encoder, wherein execution of the instructions by the one or more processors causes the one or more processors to generate an encoded video bitstream using the encoder, wherein generating the encoded video bitstream comprises encoding the current block of video data based on the one or more illumination compensation parameters.

19. The device according to claim 17, wherein: The apparatus comprises a decoder, wherein execution of the instructions by the one or more processors causes the one or more processors to use the decoder to decode a coded video bitstream generated by encoding the current block of video data based on the one or more illumination compensation parameters.

20. The device according to claim 17, wherein: The device is a mobile device.

21. The device according to claim 17, wherein: The apparatus comprises a display configured to display the video data.

22. The device according to claim 17, wherein: The apparatus includes a camera configured to capture one or more video frames of the video data.

23. The device according to claim 17, wherein: Executing the instructions by the processor causes the processor to further perform the following operations: Determining that the number of samples adjacent to the first side is smaller than the number of samples adjacent to the second side; and The first side is selected based on that the number of samples adjacent to the first side is less than the number of samples adjacent to the second side.

24. The device according to claim 17, wherein: Executing the instructions by the processor causes the processor to further perform the following operations: Determining that the number of samples adjacent to the first side is greater than the number of samples adjacent to the second side; and The first side is selected based on that the number of samples adjacent to the first side is greater than the number of samples adjacent to the second side.

25. The device according to claim 17, wherein: Executing the instructions by the processor causes the processor to further perform the following operations: Determine that the number of samples adjacent to the first side is equal to the number of samples adjacent to the second side; and The first edge is selected based on a number of samples adjacent to the first edge being equal to a number of samples adjacent to the second edge.

26. A non-transitory computer-readable storage medium having a program stored thereon, wherein: The program can be executed by a processor to perform a method for processing video data, the method comprising: obtaining a current block of the video data; determining a number of samples adjacent to a first edge of the current block; Determining the number of samples adjacent to a second side of the current block; selecting the first edge as a basis for determining one or more illumination compensation parameters for the current block based on a comparison between a number of samples adjacent to the first edge and a number of samples adjacent to the second edge; determining one or more samples adjacent to the current block that are excluded from determining the one or more illumination compensation parameters for the current block; determining the one or more illumination compensation parameters for the current block based on a plurality of samples adjacent to the current block and based on a number of samples adjacent to the first edge, wherein the one or more samples are excluded from the plurality of samples used to determine the one or more illumination compensation parameters, wherein the one or more samples excluded from determining the one or more illumination compensation parameters for the current block include one or more intra-coded samples; identifying one or more replacement samples adjacent to a reference block, the reference block being different from the current block; and The one or more intra-coded samples are replaced with the one or more replacement samples, wherein the plurality of samples used to determine the one or more illumination compensation parameters includes the one or more replacement samples in place of the one or more intra-coded samples.

Citation Information

Patent Citations

  • Illumination compensation-based inter-prediction method and apparatus in image coding system

    WO2018056603A1