Simplified local illumination compensation

By using adjacent samples located outside the current block area for local illumination compensation in video encoding, the delay problem caused by unready adjacent reconstructed samples in video encoding is solved, improving processing speed and reducing power consumption.

CN118714294APending Publication Date: 2024-09-27QUALCOMM INC
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410912566.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Priority Date
2019-02-06
Filing Date
2019-02-07
Publication Date
2024-09-27

AI Technical Summary

Technical Problem

During video encoding, the motion compensation process of the current block may be blocked because adjacent reconstructed samples have not yet been reconstructed, resulting in undesirable delays in the timeline.

Method used

The video encoding device can access and use adjacent samples located outside the area for prediction, including the top row and left column samples of the current block, to derive local illumination compensation information to generate a prediction block, ensuring the availability of adjacent samples.

Benefits of technology

Through this method, the video encoding device can increase the processing speed and reduce power consumption without delaying the motion compensation process of the current block, and reduce the delay in generating the prediction block.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118714294A_ABST
    Figure CN118714294A_ABST
Patent Text Reader

Abstract

A method of processing video data includes determining, by processing circuitry, a plurality of neighboring samples for predicting a current block. A plurality of adjacent samples are arranged outside a region of a current picture, the region including a current block, a row of samples contiguous to a top row of the current block, and a column of samples contiguous to a left column of the current block. The method further includes deriving, by the processing circuitry, local illuminance compensation information for the current block using the plurality of neighboring samples; and generating, by the processing circuit, a prediction block using the local illuminance compensation information.
Need to check novelty before this filing date? Find Prior Art

Description

[0001] This application is a divisional application of the invention patent application with application date of February 7, 2019, application number 201980013938.8, and name “Simplified Local Illumination Compensation”.

[0002] This application claims priority to U.S. Patent Application No. 16 / 268,939, filed on February 6, 2019, and claims the benefit of U.S. Provisional Patent Application No. 62 / 632,969, filed on February 20, 2018, the entire contents of which are hereby incorporated by reference into this document. Technical Field

[0003] The present disclosure relates to video encoding and decoding. Background Art

[0004] Digital video capabilities may be incorporated into a wide variety of devices, including digital televisions, digital live broadcast systems, wireless broadcast systems, personal digital assistants (PDAs), laptop or desktop computers, tablet computers, e-book readers, digital cameras, digital recording devices, digital media players, video game devices, video game consoles, cellular or satellite radio telephones (so-called "smart phones"), video teleconferencing devices, video streaming devices, etc. Digital video devices implement video compression techniques (such as those described in standards defined by MPEG-2, MPEG-4, ITU-T H.263, ITU-T H.264 / MPEG-4 (Part 10, Advanced Video Coding (AVC)), ITU-T H.265, High Efficiency Video Coding (HEVC) standards, and extensions of such standards). By implementing such video compression techniques, video devices may more efficiently send, receive, encode, decode, and / or store digital video information.

[0005] Video compression techniques perform spatial (intra-picture) prediction and / or temporal (inter-picture) prediction to reduce or remove redundancy inherent in video sequences. For block-based video coding, a video slice (i.e., a video frame or a portion of a video frame) can be segmented into video blocks, which can also be referred to as tree blocks, coding units (CUs) and / or coding nodes. Video blocks in an intra-coded (I) slice of a picture are encoded using spatial prediction relative to reference samples in neighboring blocks in the same picture. Video blocks in an inter-coded (P or B) slice of a picture can use spatial prediction relative to reference samples in neighboring blocks in the same picture or temporal prediction relative to reference samples in other reference pictures. Spatial or temporal prediction generates a prediction block for the block to be encoded. Residual data represents the pixel difference between the original block to be encoded and the predicted block. Inter-coded blocks are encoded according to motion vectors pointing to blocks of reference samples forming the predicted block, and residual data indicating the difference between the coded block and the predicted block. Intra-coded blocks are encoded according to intra-coding modes and residual data. For further compression, the residual data may be transformed from the pixel domain to a transform domain, thereby generating residual transform coefficients, which may then be quantized. Summary of the invention

[0006] In summary, the present disclosure describes techniques related to improvements to local illumination compensation in block-based video coding. For example, a video encoding device (coder) (e.g., a video encoder (encoder) or a video decoder (decoder)) can be configured to determine adjacent samples that will be immediately available for deriving local illumination compensation information for a current block. In this way, the video encoding device can derive local illumination compensation information more quickly than a system that waits for samples adjacent to the current block to be available. One or more techniques for local illumination compensation described herein can be applied to any existing video codec (e.g., HEVC (High Efficiency Video Coding) or H.266 / Versatile Video Coding (VVC) standards), or can be used for any future video coding standards.

[0007] In one example, a method for processing video data includes: determining, by a processing circuit, a plurality of neighboring samples for predicting a current block, wherein the plurality of neighboring samples are arranged outside an area of ​​a current picture, the area including the current block, a row of samples adjacent to a top row of the current block, and a column of samples adjacent to a left column of the current block; deriving, by the processing circuit, local illumination compensation information for the current block using the plurality of neighboring samples; and generating, by the processing circuit, a prediction block using the local illumination compensation information.

[0008] In another example, a device for processing video data includes: one or more storage media; and one or more processors, which are configured to: determine multiple neighboring samples for predicting a current block, wherein the multiple neighboring samples are arranged outside an area of ​​a current picture, the area including the current block, a row of samples adjacent to the top row of the current block, and a column of samples adjacent to the left column of the current block; use the multiple neighboring samples to derive local illumination compensation information for the current block; and use the local illumination compensation information to generate a prediction block.

[0009] In another example, a device for processing video data includes: a module for determining multiple neighboring samples for predicting a current block, wherein the multiple neighboring samples are arranged outside an area of ​​a current picture, the area including the current block, a row of samples adjacent to a top row of the current block, and a column of samples adjacent to a left column of the current block; a module for deriving local illumination compensation information for the current block using the multiple neighboring samples; and a module for generating a prediction block using the local illumination compensation information.

[0010] In another example, a computer-readable storage medium is encoded with instructions that, when executed, cause a programmable processor to perform the following operations: determine a plurality of neighboring samples for predicting a current block, wherein the plurality of neighboring samples are arranged outside an area of ​​a current picture, the area including the current block, a row of samples adjacent to a top row of the current block, and a column of samples adjacent to a left column of the current block; derive local illumination compensation information for the current block using the plurality of neighboring samples; and generate a prediction block using the local illumination compensation information.

[0011] The details of one or more aspects of the disclosure are set forth in the accompanying drawings and the description below. Other features, objects, and advantages of the techniques described in the disclosure will be apparent from the specification, drawings, and claims. BRIEF DESCRIPTION OF THE DRAWINGS

[0012] Figure 1 is a block diagram illustrating an example video encoding and decoding system that may utilize one or more techniques described in this disclosure.

[0013] Figure 2A is a conceptual diagram illustrating example spatially neighboring motion vector (MV) candidates for merge mode.

[0014] Figure 2B is a conceptual diagram illustrating example spatial neighboring MV candidates for advanced motion vector prediction (AMVP) mode.

[0015] Figure 3Ais a conceptual diagram illustrating example temporal motion vector predictor (TMVP) candidates.

[0016] Figure 3B is a conceptual diagram illustrating example motion vector scaling.

[0017] Figure 4A and Figure 4B is a conceptual diagram illustrating an example quadtree binary tree (QTBT) structure and a corresponding coding tree unit (CTU).

[0018] Figure 5A is a conceptual diagram illustrating example neighboring pixels of a current coding unit (CU) for estimating parameters in an illumination compensation (IC) model.

[0019] Figure 5B is a conceptual diagram illustrating example neighboring pixels of a reference block for estimating parameters in an illumination compensation (IC) model.

[0020] Fig. 6A is a conceptual diagram showing example neighboring samples of the current CU for deriving IC parameters.

[0021] Figure 6B is a conceptual diagram showing example neighboring samples of a reference block used to derive IC parameters.

[0022] Figure 7 is a conceptual diagram illustrating example overlapped block motion compensation (OBMC) in H.263.

[0023] Fig. 8A is a conceptual diagram showing a first portion in an example prediction unit (PU) OBMC.

[0024] Figure 8B is a conceptual diagram showing the second part in an example PU OBMC.

[0025] Fig.9A is a conceptual diagram showing example sub-blocks to which OBMC is applicable.

[0026] Fig. 9B is a conceptual diagram showing a sub-PU in ATMVP mode.

[0027] Fig.10 is a conceptual diagram illustrating an example unilateral motion estimation (ME) in frame rate up conversion (FRUC).

[0028] Fig.11 is a conceptual diagram illustrating an example bilateral ME in FRUC.

[0029] Fig.12 is a conceptual diagram illustrating an example template matching based decoder-side motion vector derivation (DMVD).

[0030] Fig.13 is a conceptual diagram showing an example mirror-based bidirectional MV derivation in DMVD.

[0031] Fig.14 is a flow chart showing example PU decoding with pu_dmvd_flag.

[0032] Fig.15A is a conceptual diagram showing an example of non-contiguous neighboring samples being connected for local illumination compensation (LIC).

[0033] Fig. 15B is a conceptual diagram showing an example of non-contiguous neighboring samples for LIC that are not connected.

[0034] Fig.16 is a conceptual diagram illustrating example neighboring samples outside but adjacent to a current maximum coding unit (LCU).

[0035] Fig.17 is a conceptual diagram illustrating an example of locating a reference neighbor of an MV having a current block.

[0036] Fig.18 is a conceptual diagram showing an example of LIC enable / disable based on block location.

[0037] Fig.19 is a block diagram illustrating an example video encoder that may implement one or more techniques described in this disclosure.

[0038] Fig. 20 is a block diagram illustrating an example video decoder that may implement one or more techniques described in this disclosure.

[0039] Fig.21 is a flow chart illustrating a technique for decoding video data using neighboring samples determined to be useful for deriving local illumination compensation information using multiple linear models.

[0040] Fig. 22 is a flow chart illustrating a technique for encoding video data using neighboring samples determined to be useful for deriving local illumination compensation information using multiple linear models. DETAILED DESCRIPTION

[0041] In summary, this disclosure describes techniques related to improvements to local illumination compensation (LIC) in block-based video coding. Such techniques may be applied to current or future video coding standards, including the Versatile Video Coding (VVC) standard currently under development.

[0042] When applying the LIC technique, a video encoding device (e.g., a video encoder, a video decoder, etc.) may access adjacent reconstructed samples adjacent to the current block. In some hardware architectures, these samples may not have been reconstructed (e.g., when the current block is undergoing motion compensation) and may therefore be unavailable. In this case, the motion compensation process of the current block may be delayed until the video encoding device reconstructs the adjacent samples, resulting in an undesirable delay on the timeline.

[0043] According to the techniques described herein, a video encoding device may be configured to determine neighboring samples arranged outside a region for predicting a current block. The region may include a current block, a row of samples adjacent to the top row of the current block, and a column of samples adjacent to the left column of the current block. In this way, the video encoding device may help ensure that the neighboring samples will be available (e.g., not blocked, delayed, etc.) so that the video encoding device may immediately perform a motion compensation process for the current block. In this way, the video encoding device may increase the processing speed of the video encoding device and / or reduce the power consumption of the video encoding device.

[0044] Various techniques in the present disclosure may be described with reference to a video encoding device or with reference to video encoding (which is intended to be a general term that can refer to a video encoder and a video encoder or a video decoder). Unless otherwise explicitly stated, it should not be assumed that the techniques described with respect to a video encoder or a video decoder cannot be performed by the other of the video encoder or the video decoder. For example, in many cases, a video decoder performs the same encoding techniques as the video encoder, or sometimes the opposite encoding techniques, in order to decode the encoded video data. In many cases, the video encoder also includes a video decoding loop, and therefore, the video encoder performs video decoding as part of encoding the video data. Therefore, unless otherwise stated, the techniques described in the present disclosure with respect to a video decoder may also be performed by a video encoder, and vice versa.

[0045] The present disclosure may also use terms such as current layer, current block, current picture, current slice, etc. In the context of the present disclosure, the term current is intended to identify a block, picture, slice, etc. that is currently being encoded, as opposed to, for example, blocks, pictures, and slices that have been previously or already encoded or blocks, pictures, and slices that are yet to be encoded.

[0046] Figure 1 is a block diagram illustrating an example video encoding and decoding system 10 that may utilize the LIC techniques of the present disclosure. Figure 1As shown, system 10 includes a source device 12 that provides encoded video data to be decoded by a destination device 14 at a later time. Specifically, source device 12 provides video data to destination device 14 via computer-readable medium 16. Source device 12 and destination device 14 may include any of a variety of devices, including desktop computers, notebook computers (i.e., laptop computers), tablet computers, set-top boxes, telephone handsets (e.g., so-called "smart" phones), tablet computers, televisions, cameras, display devices, digital media players, video game consoles, video streaming devices, etc. In some cases, source device 12 and destination device 14 may be equipped for wireless communication. Therefore, source device 12 and destination device 14 may be wireless communication devices. Source device 12 is an example video encoding device (i.e., a device for encoding video data). Destination device 14 is an example video decoding device (i.e., a device for decoding video data).

[0047] exist Figure 1 In the example of FIG. 1 , source device 12 includes a video source 18, a storage medium 19 configured to store video data, a video encoder 20, and an output interface 24. Destination device 14 includes an input interface 26, a storage medium 28 configured to store encoded video data, a video decoder 30, and a display device 32. In other examples, source device 12 and destination device 14 include other components or arrangements. For example, source device 12 can receive video data from an external video source such as an external camera. Similarly, destination device 14 can interface with an external display device rather than including an integrated display device.

[0048] Figure 1 The system 10 shown is only one example. The techniques for processing video data can be performed by any digital video encoding and / or decoding device. Although generally speaking, the techniques of the present disclosure are performed by a video encoding device, the techniques can also be performed by a video encoder / decoder, which is generally referred to as a "CODEC". The source device 12 and the destination device 14 are only examples of such encoding devices, wherein the source device 12 generates encoded video data for transmission to the destination device 14. In some examples, the source device 12 and the destination device 14 can operate in a substantially symmetrical manner, so that each of the source device 12 and the destination device 14 includes video encoding and decoding components. Therefore, the system 10 can support one-way or two-way video transmission between the source device 12 and the destination device 14, for example, for video streaming, video playback, video broadcasting, or video telephony.

[0049] The video source 18 of source device 12 may include a video capture device, such as a camera, a video archiving unit containing previously captured video, and / or a video feed interface receiving video data from a video content provider. As another alternative, video source 18 may generate computer graphics-based data as source video, or generate a combination of real-time video, archived video, and computer-generated video. Source device 12 may include one or more data storage media (e.g., storage medium 19) configured to store video data. In general, the technology described in this disclosure may be applicable to video encoding, and may be applied to wireless and / or wired applications. In each case, captured, pre-captured or computer-generated video may be encoded by video encoder 20. Output interface 24 may output encoded video information to computer-readable medium 16.

[0050] The destination device 14 may receive the encoded video data to be decoded via the computer-readable medium 16. The computer-readable medium 16 may include any type of medium or device capable of moving the encoded video data from the source device 12 to the destination device 14. In some examples, the computer-readable medium 16 includes a communication medium that enables the source device 12 to send the encoded video data directly to the destination device 14 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 14. The communication medium may include any wireless or wired communication medium, for example, 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 useful for facilitating communication from the source device 12 to the destination device 14. The destination device 14 may include one or more data storage media configured to store the encoded video data and the decoded video data.

[0051] In some examples, the encoded data can be output from the output interface 24 to a storage device. Similarly, the encoded data can be accessed from the storage device through the input interface. The storage device may include any of a variety of distributed or locally accessed data storage media, such as a hard drive, a Blu-ray disc, a DVD, a CD-ROM, a flash memory, a volatile or non-volatile memory, or any other suitable digital storage medium for storing encoded video data. In another example, the storage device may correspond to a file server or another intermediate storage device, which may store the encoded video generated by the source device 12. The destination device 14 may access the stored video data from the storage device via streaming or downloading. The file server may be any type of server capable of storing encoded video data and sending the encoded video data to the destination device 14. Example file servers include web servers (e.g., for websites), FTP servers, network attached storage (NAS) devices, or local disk drives. The destination device 14 may access the encoded video data through any standard data connection (including an Internet connection). This may include a wireless channel (e.g., a Wi-Fi connection), a wired connection (e.g., DSL, cable modem, etc.), or a combination of both suitable for accessing the encoded video data stored on the file server. The transmission of the encoded video data from the storage device may be a streaming transmission, a download transmission, or a combination thereof.

[0052] The techniques may be applied to video encoding to support any of a variety of multimedia applications, such as over-the-air television broadcasting, cable television transmission, satellite television transmission, Internet streaming video transmission (e.g., Dynamic Adaptive Streaming over HTTP (DASH)), digital video encoded on a data storage medium, decoding of digital video stored on a data storage medium, or other applications. In some examples, system 10 may 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.

[0053] The computer-readable medium 16 may include temporary media such as wireless broadcast or wired network transmission, or storage media such as hard disks, flash drives, compact discs, digital versatile discs, Blu-ray discs (i.e., non-temporary storage media), or other computer-readable media. In some examples, a network server (not shown) may receive encoded video data from the source device 12, for example, via a network transmission, and provide the encoded video data to the destination device 14. Similarly, a computing device of a media production facility such as a disc stamping facility may receive encoded video data from the source device 12 and produce a disc containing the encoded video data. Therefore, in various examples, the computer-readable medium 16 may be understood to include one or more computer-readable media in various forms.

[0054] Input interface 26 of destination device 14 receives information from computer-readable medium 16. The information of computer-readable medium 16 may include syntax information defined by video encoder 20 (which is also used by video decoder 30), including syntax elements that describe characteristics and / or processing of blocks and other coding units (e.g., groups of pictures (GOPs)). Storage medium 28 may be configured to store encoded video data, such as the encoded video data (e.g., a bitstream) received by input interface 26. Display device 32 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.

[0055] The video encoder 20 may represent a wireless communication device configured to store video data in a memory (e.g., storage medium 19); process the video data on one or more processors; and send the video data from a transmitter (e.g., output interface 24). Examples of wireless communication devices may include, but are not limited to, telephone handsets. In some examples, sending the video data at a transmitter of the wireless communication device may include modulating a signal including the video data in accordance with a wireless communication standard. The video decoder 30 may represent a wireless communication device configured to receive the video data at a receiver (e.g., input interface 26); store the video data in a memory (e.g., storage medium 28); process the video data on one or more processors; and output the determined video data (e.g., to a display device 32). In some examples, receiving the video data at a receiver of the wireless communication device may include demodulating a signal including the video data in accordance with a wireless communication standard.

[0056] The video encoder 20 and the video decoder 30 can each be implemented as any of a variety of suitable encoder circuits, for example, 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. When the technology is partially implemented in software, the device can store instructions for the software in a suitable non-transitory computer-readable medium, and use one or more processors to execute the instructions in hardware to perform the technology of the present disclosure. Each of the video encoder 20 and the video decoder 30 can be included in one or more encoders or decoders, and any of the encoders or decoders can be integrated as part of a combined encoder / decoder (CODEC) in the corresponding device.

[0057] In some examples, the video encoder 20 and the video decoder 30 may operate according to a video coding standard such as an existing or future standard. Example video coding standards include, but are not limited to, ITU-T H.261, ISO / IEC MPEG-1 video, ITU-TH.262 or ISO / IEC MPEG-2 video, ITU-T H.263, ISO / IEC MPEG-4 video, and 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). In addition, the Joint Collaborative Team on Video Coding (JCT-VC) and the Joint Collaborative Team on 3D Video Coding Extension Development (JCT-3V) of the ITU-T Video Coding Experts Group (VCEG) and the ISO / IEC Moving Picture Experts Group (MPEG) recently developed a new video coding standard (i.e., High Efficiency Video Coding (HEVC) or ITU-T H.265, including its range and screen content coding extensions, 3D video coding (3D-HEVC), and multi-view extensions (MV-HEVC), scalable extensions (SHVC)). In 2016, MPEG and ITU-T VCEG formed the Joint Video Exploration Team (JVET) to explore new coding tools for the next generation of video coding standards. The reference software is called JEM (Joint Exploration Model).

[0058] In 2016, MPEG and ITU-T VCEG formed the Joint Video Exploration Team (JVET) to explore new coding tools for the next generation of video coding standards. The reference software is called JEM (Joint Exploration Model).

[0059] An early draft for a new video coding standard known as the H.266 / Versatile Video Coding (VVC) standard is available in document JVET-J1001 “Versatile Video Coding (Draft 1)” by Benjamin Bross, and an algorithm description thereof is available in document JVET-J1002 “Algorithm description for Versatile Video Coding and Test Model 1 (VTM 1)” by Jianle Chen and Elena Alshina. Another early draft for VVC is available in document JVET-L1001 “Versatile Video Coding (Draft 3)”, and an algorithm description thereof is available in document JVET-L1002 “Algorithm description for Versatile Video Coding and Test Model 3 (VTM 3)”. Video encoder 20 and video decoder 30 may operate in accordance with any video coding standard, e.g., HEVC, VVC, proprietary or other industry standards such as the Joint Exploration Test Model (JEM), etc. However, the techniques of the present disclosure are not limited to any particular coding standard.

[0060] For ease of explanation, the techniques of this disclosure may utilize HEVC terminology. However, it should not be assumed that the techniques of this disclosure are limited to HEVC, and in fact, it is explicitly contemplated that the techniques of this disclosure may be implemented in HEVC and subsequent standards extending it.

[0061] In HEVC and other video coding specifications, a video sequence usually includes a series of pictures. A picture can also be called a "frame". A picture can include three sample arrays, which are represented as S L , S Cb and S Cr . S L is a two-dimensional array (i.e., block) of luma samples. Cb is a two-dimensional array of Cb chrominance samples. Cr is a two-dimensional array of Cr chrominance samples. Chrominance samples may also be referred to herein as "chroma" samples. In other cases, a picture may be monochrome and may include only an array of luma samples.

[0062] In order to generate an encoded representation of a picture, the video encoder 20 may encode a block of a picture of the video data. The video encoder 20 may include an encoded representation of a video block in a bitstream. For example, in HEVC, in order to generate an encoded representation of a picture, the video encoder 20 may generate a set of coding tree units (CTUs). Each of the CTUs may include one or more coding tree blocks (CTBs) and may include a syntax structure for encoding samples of one or more coding tree blocks. For example, each of the CTUs may include a coding tree block of a luminance sample, two corresponding coding tree blocks of a chrominance sample, and a syntax structure for encoding samples of the coding tree block. In a monochrome picture or a picture with three separate color planes, a CTU may include a single coding tree block and a syntax structure for encoding samples of the coding tree block. A coding tree block may be an NxN block of samples. A CTU may also be referred to as a "tree block" or a "maximum coding unit" (LCU). A syntax structure may be defined as zero or more syntax elements that appear together in a bitstream in a specified order. In HEVC Main Profile, the size of a CTB can range from 16x16 to 64x64 (but 8x8 CTB size can technically be supported).

[0063] In HEVC, a slice includes an integer number of CTUs sequentially ordered in a raster scan order. Therefore, in HEVC, the largest coding unit in a slice is called a coding tree block (CTB).

[0064] In HEVC, in order to generate an encoded CTU of a picture, the video encoder 20 may recursively perform quadtree partitioning on the coding tree blocks of the CTU to divide the coding tree blocks into coding blocks (hence the name "coding tree units"). A coding block is an NxN block of samples. A coding unit (CU) may include one or more coding blocks and a syntax structure for encoding samples of one or more coding blocks. For example, a CU may include: a coding block of luma samples of a picture having a luma sample array, a Cb sample array, and a Cr sample array, and two corresponding coding blocks of chroma samples, and a syntax structure for encoding samples of the coding blocks. In a monochrome picture or a picture with three separate color planes, a CU may include a single coding block and a syntax structure for encoding samples of the coding block. Thus, a CTB may contain a quadtree whose nodes are CUs.

[0065] In addition, the video encoder 20 may encode the CU. For example, in order to encode the CU, the video encoder 20 may split the coding block of the CU into one or more prediction blocks. A prediction block is a rectangular (ie, square or non-square) block of samples on which the same prediction is applied. The prediction unit (PU) of the CU may include one or more prediction blocks of the CU and a syntax structure for predicting the one or more prediction blocks. For example, the PU may include a prediction block of luma samples, two corresponding prediction blocks of chroma samples, and a syntax structure for predicting the prediction block. In a monochrome picture or a picture with three separate color planes, the PU may include a single prediction block and a syntax structure for predicting the prediction block. The video encoder 20 may generate prediction blocks (eg, luma, Cb, and Cr prediction blocks) for the prediction blocks (eg, luma, Cb, and Cr prediction blocks) of each PU of the CU.

[0066] In HEVC, each CU is encoded in a mode, which can be an intra mode or an inter mode. When a CU is inter-coded (i.e., inter mode is applied), the CU can be further partitioned into 2 or 4 PUs, or only become one PU when further partitioning is not applicable. When there are two PUs in a CU, the two PUs can be half-sized rectangles, or two rectangular sizes with 1 / 4 or 3 / 4 of the size of the CU. There are eight partitioning modes for CUs encoded using inter-prediction mode, namely, PART_2Nx2N, PART_2NxN, PART_Nx2N, PART_NxN, PART_2NxnU, PART_2NxnD, PART_nLx2N, and PART_nRx2N, as shown in Figure 3. Although examples using H.264 / AVC are used, other examples may use other standards, such as but not limited to the VVC standard.

[0067] When the CU is inter-coded, there is a motion information set for each PU. In addition, each PU is encoded using a unique inter prediction mode to derive the motion information set. If the video encoder 20 uses intra prediction to generate the prediction block of the PU, the video encoder 20 can generate the prediction block of the PU based on the decoded samples of the picture including the PU. When the CU is intra-coded, 2Nx2N and NxN are the only allowed PU shapes, and a single intra prediction mode is encoded in each PU (while the chroma prediction mode is signaled at the CU level). The NxN intra PU shape is allowed only when the current CU size is equal to the minimum CU size defined in the sequence parameter set (SPS).

[0068] JEM / VVC also provides an affine motion compensation mode, which can be considered an inter-frame prediction mode. In the affine motion compensation mode, the video encoder 20 can determine two or more motion vectors representing non-translational motion (e.g., zooming in or out, rotation, perspective motion, or other irregular motion types).

[0069] To perform intra prediction, the video encoder 20 can select an intra prediction mode to generate a prediction block. The JEM / VVC example provides 67 intra prediction modes, including various directional modes as well as planar modes and DC modes. Typically, the video encoder 20 selects an intra prediction mode that describes neighboring samples of samples of the current block (e.g., a block of a CU) to be predicted. Assuming that the video encoder 20 encodes CTUs and CUs in a raster scan order (from left to right, from top to bottom), such samples can typically be above, above left, or to the left of the current block in the same picture as the current block.

[0070] A video encoding device as described in the present disclosure may refer to a video encoder or a video decoder. Similarly, a video encoding unit may refer to a video encoder or a video decoder. Likewise, video coding may refer to video encoding or video decoding where applicable. In the present disclosure, the phrase "based on" may indicate based only on, at least partially on, or based on in some way. The present disclosure may use the term "video unit" or "video block" or "block" to refer to one or more sample blocks and a syntax structure for encoding samples of one or more sample blocks. Example types of video units may include CTUs, CUs, PUs, transform units (TUs), macroblocks, macroblock partitions, and the like. In some contexts, the discussion of PUs may be interchangeable with the discussion of macroblocks or macroblock partitions. Example types of video blocks may include coding tree blocks, coding blocks, and other types of blocks of video data.

[0071] Figure 4A and Figure 4B 2 is a conceptual diagram showing an example quad tree binary tree (QTBT) structure 29 and a corresponding coding tree unit (CTU) 31. The video encoder may be applied in Figure 4A and Figure 4B In some examples, a video decoder may be applied to generate video data to be entropy encoded in a bitstream. Figure 4A and Figure 4BThe concept shown in , to entropy decode the video data in the bitstream. The solid line represents quadtree splitting, and the dotted line represents binary tree splitting. In each split (i.e., non-leaf) node of the binary tree, a flag is sent with a signal to indicate which split type (i.e., horizontal or vertical) is used. In this example, 0 indicates horizontal splitting, and 1 indicates vertical splitting. For quadtree splitting, since the quadtree node splits the block horizontally and vertically into 4 sub-blocks of equal size, there is no need to indicate the split type. Therefore, the video encoder 20 can encode the following, and the video decoder 30 can decode the following: syntax elements (e.g., splitting information) for the regional tree level (i.e., solid line) of the QTBT structure 29, and syntax elements (e.g., splitting information) for the prediction tree level (i.e., dotted line) of the QTBT structure 29. The video encoder 20 can encode the video data (e.g., prediction data and transform data) of the CU represented by the terminal leaf node of the QTBT structure 29, and the video decoder 30 can decode the video data.

[0072] generally, Figure 4B The CTU 31 may be associated with parameters defining the size of blocks corresponding to nodes at the first and second levels of the QTBT structure 29. These parameters may include a CTU size (indicating the size of the CTU 31 in samples), a minimum quadtree size (MinQTSize, which indicates the minimum allowed quadtree leaf node size), a maximum binary tree size (MaxBTSize, which indicates the maximum allowed binary tree root node size), a maximum binary tree depth (MaxBTDepth, which indicates the maximum allowed binary tree depth), and a minimum binary tree size (MinBTSize, which indicates the minimum allowed binary tree leaf node size).

[0073] The video encoder 20 may generate one or more residual blocks for a CU. For example, the video encoder 20 may generate a luma residual block for a CU. Each sample in the luma residual block of the CU indicates the difference between a luma sample in one of the predicted luma blocks of the CU and a corresponding sample in the original luma coding block of the CU. In addition, the video encoder 20 may generate a Cb residual block for the CU. Each sample in the Cb residual block of the CU may indicate the difference between a Cb sample in one of the predicted Cb blocks of the CU and a corresponding sample in the original Cb coding block of the CU. The video encoder 20 may also generate a Cr residual block for the CU. Each sample in the Cr residual block of the CU may indicate the difference between a Cr sample in one of the predicted Cr blocks of the CU and a corresponding sample in the original Cr coding block of the CU.

[0074] In addition, the video encoder 20 may decompose the residual block of the CU into one or more transform blocks. For example, the video encoder 20 may use quadtree partitioning to decompose the residual block of the CU into one or more transform blocks. A transform block is a rectangular (e.g., square or non-square) block of samples to which the same transform is applied. The transform unit (TU) of the CU may include one or more transform blocks. For example, a TU may include a transform block of luma samples, two corresponding transform blocks of chroma samples, and a syntax structure for transforming transform block samples. Therefore, each TU of the CU may have a luma transform block, a Cb transform block, and a Cr transform block. The luma transform block of the TU may be a sub-block of the luma residual block of the CU. The Cb transform block may be a sub-block of the Cb residual block of the CU. The Cr transform block may be a sub-block of the Cr residual block of the CU. In a monochrome picture or a picture with three separate color planes, a TU may include a single transform block and a syntax structure for transforming samples of the transform block.

[0075] The video encoder 20 may apply one or more transforms to a transform block of a TU to generate a coefficient block for the TU. For example, the video encoder 20 may apply one or more transforms to a luma transform block of a TU to generate a luma coefficient block for the TU. The coefficient block may be a two-dimensional array of transform coefficients. The transform coefficient may be a scalar. The video encoder 20 may apply one or more transforms to a Cb transform block of a TU to generate a Cb coefficient block for the TU. The video encoder 20 may apply one or more transforms to a Cr transform block of a TU to generate a Cr coefficient block for the TU.

[0076] In some examples, video encoder 20 skips applying a transform to a transform block. In such examples, video encoder 20 may treat residual sample values ​​in the same manner as transform coefficients. Thus, in examples in which video encoder 20 skips applying a transform, the following discussion of transform coefficients and coefficient blocks may apply to transform blocks of residual samples.

[0077] After generating the coefficient block, video encoder 20 may quantize the coefficient block. Quantization generally refers to a process in which transform coefficients are quantized to possibly reduce the amount of data used to represent the transform coefficients, thereby providing further compression. In some examples, video encoder 20 skips quantization. After video encoder 20 quantizes the coefficient block, video encoder 20 may generate syntax elements indicating the quantized transform coefficients. Video encoder 20 may entropy encode one or more of the syntax elements indicating the quantized transform coefficients. For example, video encoder 20 may perform context adaptive binary arithmetic coding (CABAC) on the syntax elements indicating the quantized transform coefficients.

[0078] The video encoder 20 may output a bitstream including the encoded video data. For example, the bitstream may include a sequence of bits that form a representation of an encoded picture of the video data and associated data. Thus, the bitstream includes an encoded representation of the video data. In some examples, the representation of the encoded picture may include an encoded representation of a block. Thus, the video encoder 20 may signal the transform coefficients of the block in the bitstream with the encoded representation of the block. In some cases, the video encoder 20 may use one or more syntax elements to signal each transform coefficient of the block.

[0079] The bitstream may include a sequence of network abstraction layer (NAL) units. A NAL unit is a grammatical structure containing an indication of the type of data in the NAL unit, and contains bytes of the data in the form of a raw byte sequence payload (RBSP) interspersed with contention prevention bits when necessary. Each of the NAL units may include a NAL unit header and encapsulate the RBSP. The NAL unit header may include a grammatical element indicating a NAL unit type code. The NAL unit type code specified by the NAL unit header of the NAL unit indicates the type of the NAL unit. The RBSP may be a grammatical structure containing an integer number of bytes encapsulated within the NAL unit. In some cases, the RBSP includes zero bits.

[0080] The video decoder 30 may receive a bitstream generated by the video encoder 20. In addition, the video decoder 30 may parse the bitstream to obtain syntax elements from the bitstream. The video decoder 30 may reconstruct a picture of the video data based at least in part on the syntax elements obtained from the bitstream. The process for reconstructing the video data may generally be the opposite of the process performed by the video encoder 20. For example, the video decoder 30 may use the motion vector of the PU to determine the prediction block for the PU of the current CU. In addition, the video decoder 30 may inversely quantize the coefficient block of the TU of the current CU. The video decoder 30 may perform an inverse transform on the coefficient block to reconstruct the transform block of the TU of the current CU. The video decoder 30 may reconstruct the coding block of the current CU by adding the samples of the prediction block for the PU of the current CU to the corresponding samples of the transform block of the TU of the current CU. By reconstructing the coding block for each CU of the picture, the video decoder 30 may reconstruct the picture.

[0081] The following video encoding techniques may be performed by source device 12 and destination device 14. More specifically, the following video encoding techniques may be performed by video encoder 20 of source device 12 and video decoder 30 of destination device 14.

[0082] For each block, a motion information set may be available. The motion information set may include motion information for a forward prediction direction and a backward prediction direction. In this example, the forward and backward prediction directions may be two prediction directions of a bidirectional prediction mode, and the terms "forward" and "backward" may not have geometric meanings. For example, the terms "forward" and "backward" may correspond to reference picture list 0 (RefPicList0) and reference picture list 1 (RefPicList1) of the current picture. When only one reference picture list is available for a picture or slice, only RefPicList0 is available, and the motion information of each block of the slice may be forward.

[0083] In some examples, video decoder 30 may use the motion vectors together with the reference index of the motion vectors in the decoding process, with the motion vectors with associated reference indexes being represented as a single prediction set of motion information.

[0084] For each prediction direction, the motion information may include a reference index and a motion vector. In some cases, for simplicity, the motion vector itself may be referred to as having an associated reference index. The video encoder 20 and / or the video decoder 30 may use the reference index to identify a reference picture in the current reference picture list (RefPicList0 or RefPicList1). The motion vector may have a horizontal component and a vertical component.

[0085] The video encoder 20 and / or the video decoder 30 may use the picture order count (POC) in the video coding standard to identify the display order of the pictures. Although there are cases where two pictures within a coded video sequence may have the same POC value, such a situation does not usually occur within a coded video sequence. When there are multiple coded video sequences in the bitstream, pictures with the same POC value may be closer to each other in decoding order.

[0086] Video encoder 20 and / or video decoder 30 may use the POC value of a picture for reference picture list construction (such as derivation of reference picture sets in HEVC), and motion vector scaling.

[0087] In H.264 / AVC, video encoder 20 and / or video decoder 30 may partition each inter macroblock (MB) into four different ways: (1) 16x16 MB partitions; (2) 16x8 MB partitions; (3) 8x16 MB partitions; and (4) 8x8 MB partitions. Different MB partitions in one MB may have different reference index values ​​for each direction (RefPicList0 or RefPicList1). When an MB is not partitioned into four 8x8 MB partitions, the MB may have only one motion vector for each MB partition in each direction.

[0088] When an MB is partitioned into four 8x8 MB partitions, video encoder 20 and / or video decoder 30 may further partition each 8x8 MB partition into sub-blocks, each of which may have a different motion vector in each direction. For example, video encoder 20 and / or video decoder 30 may obtain sub-blocks from an 8x8 MB partition: (1) 8x8 sub-blocks; (2) 8x4 sub-blocks; (3) 4x8 sub-blocks; and (4) 4x4 sub-blocks. Each sub-block may have a different motion vector in each direction. Therefore, the motion vector may exist at a level equal to or higher than that of the sub-block.

[0089] In AVC, video encoder 20 and / or video decoder 30 may implement temporal direct mode for skip or direct mode in B slices at the MB or MB partition level. For each MB partition, video encoder 20 and / or video decoder 30 may derive motion vectors using motion vectors of blocks co-located with the current MB partition in RefPicList1[0] of the current block. Video encoder 20 and / or video decoder 30 may scale each motion vector in the co-located block based on the POC distance. In AVC, direct mode may also predict motion information based on spatial neighbors.

[0090] In HEVC, the largest coding unit in a slice is called a coding tree block (CTB). The CTB includes a quadtree whose nodes are coding units. In the HEVC main profile, the size of the CTB can range from 16x16 to 64x64 (but 8x8 CTB size can be technically supported). The coding unit (CU) can have the same size as the CTB, but as small as 8x8. The video encoder 20 and / or the video decoder 30 can encode each coding unit using a mode. When the CU is inter-coded, the video encoder 20 and / or the video decoder 30 can further split the CU into 2 or 4 prediction units (PUs), or when further splitting is not applicable, make the CU become only one PU. When there are two PUs in a CU, they can be half-sized rectangles, or two rectangular sizes with 1 / 4 or 3 / 4 the size of the CU.

[0091] When the CU is inter-coded, there is one motion information set for each PU. In addition, the video encoder 20 and / or the video decoder 30 may encode each PU using a unique inter prediction mode to derive a motion information set.

[0092] In the HEVC standard, there are two inter prediction modes for a prediction unit (PU), named merge (skip is considered as a special case of merge) mode and advanced motion vector prediction (AMVP) mode.

[0093] In AMVP or merge mode, the video encoder 20 and / or the video decoder 30 may maintain a motion vector (MV) candidate list 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. The MV candidate list may include up to 5 candidates for merge mode and only two candidates for AMVP mode. The merge candidate may include a set of motion information, for example, a motion vector and a reference index corresponding to two reference picture lists (list 0 and list 1). If the merge candidate is identified by a merge index, the video encoder 20 and / or the video decoder 30 may use the reference picture for prediction of the current block, and determine the associated motion vector. However, in the AMVP mode for each potential prediction direction from list 0 or list 1, since the AMVP candidate may include only a motion vector, the video encoder 20 may explicitly signal the reference index together with the MVP index to the MV candidate list. In AMVP mode, the predicted motion vector may be further refined.

[0094] As seen above, a merge candidate may correspond to a complete set of motion information, while an AMVP candidate may include only one motion vector for a specific prediction direction and reference index. Video encoder 20 and / or video decoder 30 may similarly derive candidates for both modes from the same spatial and temporal neighboring blocks.

[0095] The video encoder 20 and / or the video decoder 30 may be operable from Figure 2A and Figure 2B As shown in , spatial MV candidates are derived for neighboring blocks of a specific PU (PU0), but for merge and AMVP modes, the method of generating candidates based on blocks is different.

[0096] In merge mode, you can use Figure 2A Up to four spatial MV candidates are derived in the order shown by the numbers above, and the order is as follows: left (0), top (1), top right (3), bottom left (4), and top left (5), as shown in FIG. Figure 2A shown.

[0097] In the AVMP mode, the video encoder 20 and / or the video decoder 30 may divide the adjacent blocks into two groups: a left group consisting of blocks 0 and 1, and an upper group consisting of blocks 2, 3, and 4, as shown in FIG. Figure 2B As shown above. For each group, potential candidates in neighboring blocks that reference the same reference picture as the reference picture indicated by the signaled reference index have the highest priority to be selected to form the final candidate for the group. It is possible that all neighboring blocks do not contain motion vectors pointing to the same reference picture. Therefore, if no such candidate is found, the video encoder 20 and / or the video decoder 30 can scale the first available candidate to form the final candidate, so that the temporal distance difference can be compensated.

[0098] Video encoder 20 and / or video decoder 30 may add a temporal motion vector predictor (TMVP) candidate (if enabled and available) to the MV candidate list, after the spatial motion vector candidate. The process of motion vector derivation for the TMVP candidate may be the same for both merge and AMVP modes, however, in merge mode, the target reference index for the TMVP candidate may always be set to 0.

[0099] The main block position for TMVP candidate derivation is the lower right block outside the co-located PU (such as Figure 3A In the example shown in FIG. 1 , a block "T" is replaced with a PU to compensate for the deviation of the upper and left blocks used to generate spatial neighboring candidates. However, if the block is located outside the current CTB row or motion information is unavailable, the video encoder 20 and / or the video decoder 30 may replace the block with the center block of the PU.

[0100] Video encoder 20 and / or video decoder 30 may derive a motion vector for a TMVP candidate from a co-located PU of a co-located picture indicated at the slice level.

[0101] Similar to the temporal direct mode in AVC, video encoder 20 and / or video decoder 30 may scale the motion vectors of the TMVP candidate motion vectors, which may be performed to compensate for the distance difference.

[0102] Motion vector scaling is discussed below. In some examples, the value of a motion vector is proportional to the distance of the picture in presentation time. A motion vector relates two pictures, a reference picture and a picture containing the motion vector (i.e., a containing picture). When a motion vector is used to predict another motion vector, video encoder 20 and / or video decoder 30 may calculate the distance between the containing picture and the reference picture based on a picture order count (POC) value.

[0103] For a motion vector to be predicted, both the associated containing picture and the reference picture of the motion vector may be different. Therefore, in some examples, the video encoder 20 and / or the video decoder 30 may calculate a new distance (based on the POC). In this example, the video encoder 20 and / or the video decoder 30 may scale the motion vector based on the two POC distances. For spatially adjacent candidates, the containing pictures for the two motion vectors are the same, while the reference pictures are different. In HEVC, motion vector scaling may be applicable to both TMVP and AMVP for spatial and temporal adjacent candidates.

[0104] Artificial motion vector candidate generation is discussed below. If the motion vector candidate list is incomplete, the video encoder 20 and / or video decoder 30 may generate an artificial motion vector candidate. In this example, the video encoder 20 and / or video decoder 30 may insert the artificial motion vector candidate at the end of the list until the video encoder 20 and / or video decoder 30 will have all candidates.

[0105] 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, video encoder 20 and / or video decoder 30 can derive a bidirectional combined motion vector candidate by combining the motion vector of the first candidate of the picture in reference list 0 and the motion vector of the second candidate of the picture in reference list 1.

[0106] The pruning process for candidate insertion is discussed below. Candidates from different blocks may happen to be the same, which reduces the efficiency of the merge / AMVP candidate list. Video encoder 20 and / or video decoder 30 can apply a pruning process to solve this problem. During the pruning process, video encoder 20 and / or video decoder 30 can compare a candidate with other candidates in the current candidate list to avoid inserting the same candidate to a certain extent. In order to reduce complexity, video encoder 20 and / or video decoder 30 can only apply a limited number of pruning processes, rather than comparing each potential candidate with all other existing candidates.

[0107] The video encoder 20 and / or the video decoder 30 may enable and disable weighted prediction at the slice level, and the video encoder 20 may also signal weighted prediction parameters at the slice level. Conversely, the video encoder 20 and / or the video decoder 30 may enable and disable PBIC and PU levels, and the video encoder 20 may signal IC parameters at the PU level to handle local illumination variations.

[0108] Similar to when using WP, the video encoder 20 and / or the video decoder 30 may use a scaling factor (also represented by a) and an offset (also represented by b) in the IC, and the number of shifts is fixed to 6. The source device 12 may encode an IC flag for each PU to indicate whether the IC is applicable to the current PU. If the IC is applicable to the PU, the source device 12 signals the IC parameter set (i.e., a and b) to the decoder (e.g., the destination device 14), and the decoder uses the IC parameter set for motion compensation. In the case of bidirectional prediction, the source device 12 may signal two scaling factors (one for each prediction direction) and an offset. In order to save bits consumed on the IC parameters, the video encoder 20 and / or the video decoder 30 may use a chroma component that shares a scaling factor with a luminance component and a fixed offset 128.

[0109] In 3D-HEVC (as described in G. Tech, K. Wegner, Y. Chen, and S. Yea, "3D-HEVC Draft Text 7", Joint Collaborative Team on 3D Video Coding Extensions (JCT-3V) document JCT3V-K1001, 11th meeting: Geneva, Switzerland, February 12-18, 2015), IC is enabled for inter-view prediction. Unlike WP and PBIC, which explicitly signal IC parameters, when using 3D-HEVC, video encoder 20 and / or video decoder 30 may derive IC parameters based on neighboring samples of the current CU and neighboring samples of a reference block.

[0110] In some examples, video encoder 20 and / or video decoder 30 may apply IC only for 2Nx2N partition mode. For AMVP mode, video encoder 20 may signal an IC flag for each CU predicted from an inter-view reference picture. For merge mode, to save bits, video encoder 20 may signal an IC flag only when the merge index of the PU is not equal to 0.

[0111] In some examples, IC is not performed for CUs predicted only from temporal reference pictures.

[0112] The linear IC used in inter-view prediction is shown in equation (1):

[0113] p(i,j)=a*r(i+dv x ,j+dv y +b), where (i,j)∈PU c (1)

[0114] Here, PU c is the current PU, (i,j) is the PU c The coordinates of the pixels in (dvx ,dv y ) is PU c The disparity vector of . p(i,j) is the PU c , r is the reference picture of the PU from the adjacent view. a and b are the parameters of the linear IC model.

[0115] To estimate parameters a and b for a PU, video encoder 20 and / or video decoder 30 may use two sets of pixels, such as Figure 5A and Figure 5B As shown. Figure 5A In the example of , the first set of pixels are the available reconstructed neighboring pixels in the left column and upper row of the current CU (the CU containing the current PU). Figure 5B A second set of pixels is shown, which are corresponding neighboring pixels of the reference block of the current CU. The reference block of the current CU can be found by using the disparity vector of the current PU.

[0116] Let Rec neig and Rec refneig Respectively represent the adjacent pixel sets used by the current CU and its reference block, and let 2N represent Rec neig and Rec refneig The number of pixels in . Then, a and b can be calculated as:

[0117]

[0118] Among them, Rec neig Represents adjacent samples, where Rec refneig represents the reference neighboring samples, and where N represents Rec neig and Rec refneig The number of pixels in .

[0119] In some examples, video encoder 20 and / or video decoder 30 may use only a linear model, and b is always set equal to 0. In some examples, video encoder 20 and / or video decoder 30 may use only b, and a is always set equal to 1.

[0120] In HEVC, weighted prediction (WP) is supported, in which a scaling factor (represented by a), a shift amount (represented by s), and an offset (represented by b) are used in motion compensation. Assuming that the pixel value at the position (x, y) of the reference picture is p(x, y), p'(x, y) = ((a*p(x, y) + (1 << (s-1))) >> s) + b is used as a prediction value in motion compensation instead of p(x, y).

[0121] When WP is enabled, for each reference picture of the current slice, source device 12 may signal a flag to indicate whether WP is applicable to the reference picture. If WP is applicable to a reference picture, source device 12 may send a WP parameter set (i.e., a, s, and b) to the decoder, and the WP parameter set is used for motion compensation of the reference picture. In order to flexibly turn on / off WP for luma and chroma components, source device 12 may signal a WP flag and WP parameters for luma and chroma components, respectively. In WP, video encoder 20 and / or video decoder 30 may use the same WP parameter set for all pixels in a reference picture.

[0122] LIC is based on a linear model for illumination variation using a scaling factor a and an offset b. The video encoder 20 and / or the video decoder 30 may adaptively enable or disable LIC for each inter-mode encoded CU. When LIC is applicable to a CU, the video encoder 20 and / or the video decoder 30 may employ a least squares error method to derive parameters a and b by using neighboring samples of the current CU and its corresponding reference samples. More specifically, in Fig. 6A In the example of , video encoder 20 and / or video decoder 30 may use subsampled (2:1 subsampled) neighboring samples of the CU. Additionally or alternatively, in Figure 6B In the example of , the video encoder 20 and / or the video decoder 30 may use the corresponding pixel in the reference picture (identified by the motion information of the current CU or sub-CU). For example, the video encoder 20 and / or the video decoder 30 may derive and apply IC parameters separately for each prediction direction.

[0123] When the CU is encoded in merge mode, video encoder 20 and / or video decoder 30 may copy the LIC flag from the neighboring block in a manner similar to motion information copying in merge mode; otherwise, video encoder 20 and / or video decoder 30 may signal a LIC flag for the CU to indicate whether LIC is applicable.

[0124] OBMC is proposed in the development of H.263 (as discussed in Video Coding for Low Bitrate Communication, document Rec. H.263, ITU-T, April 1995). Video encoder 20 and / or video decoder 30 may perform OBMC on 8x8 blocks, and the motion vectors of two connected adjacent 8x8 blocks may be used for the current block, such as Figure 7As shown. For example, for the first 8x8 block in the current macroblock, in addition to its own motion vector, the video encoder 20 and / or the video decoder 30 can apply the neighboring motion vectors above and to the left to generate two additional prediction blocks. In this way, the video encoder 20 and / or the video decoder 30 can use each pixel with three prediction values ​​in the current 8x8 block, and use the weighted average of these three prediction values ​​as the final prediction.

[0125] When the neighboring block is not encoded or encoded as intra, that is, the neighboring block does not have an available motion vector, the video encoder 20 and / or the video decoder 30 may use the motion vector of the current 8x8 block as the neighboring motion vector. Figure 7 ), the video encoder 20 and / or the video decoder 30 may not use the neighboring blocks below. In other words, for example, for each MB, the video encoder 20 and / or the video decoder 30 may not use the motion information from the MB below the current MB to reconstruct the pixels of the current MB during OBMC.

[0126] Fig. 8A and Figure 8B is a conceptual diagram showing various aspects of OBMC according to HEVC. In the development of HEVC, OBMC was proposed to smooth PU boundaries. Fig. 8A A portion 33 is shown, and Figure 8B 33 and 35 respectively illustrate a CU including two PUs. In both portions 33 and 35, pixels with solid boundaries belong to PU0, while pixels with dashed boundaries belong to PU1. If a CU includes two or more PUs, video encoder 20 and video decoder 30 may use OBMC to smooth lines and / or columns near PU boundaries. Fig. 8A and Figure 8B For pixels marked with "A" or "B" in PU0 or PU1 of the video encoder 20 and the video decoder 30, two prediction values ​​may be generated. For example, the video encoder 20 and the video decoder 30 may generate prediction values ​​for pixels marked with "A" or "B" by applying the motion vectors of PU0 and PU1, respectively, and using a weighted average of the prediction values ​​as the final prediction for the corresponding pixel.

[0127] Fig.9A is a conceptual diagram showing sub-blocks to which OBMC according to the sub-PU level OBMC technique is applicable. Fig. 9Bis a conceptual diagram showing a sub-PU in ATMVP mode. Sub-PU level OBMC is applied in the current JEM configuration. According to the sub-PU level OBMC of JEM, OBMC is performed for all motion compensation (MC) block boundaries except the right and bottom boundaries of the CU. In addition, according to the sub-PU level OBMC of JEM, the video encoder 20 and the video decoder 30 may apply OBMC to both luma and chroma components. In HEVC, an MC block corresponds to a PU. In JEM, when a PU is encoded using the sub-PU mode, each sub-block of the PU is an MC block. In order to handle CU / PU boundaries in a unified manner, the video encoder 20 and the video decoder 30 may perform OBMC for all MC block boundaries at the sub-block level, where the sub-block size is set to 4x4, as shown in FIG. Fig.9A shown.

[0128] When OBMC is applied to the current sub-block, in addition to the current motion vector, the video encoder 20 and the video decoder 30 may also use the motion vectors of four connected neighboring sub-blocks (if available and different from the current motion vector) to derive a prediction block for the current sub-block. The video encoder 20 and the video decoder 30 may weight the multiple prediction blocks based on the multiple motion vectors to generate a final prediction signal for the current sub-block.

[0129] The following discussion denotes the prediction block based on the motion vectors of the neighboring sub-blocks as P N , where N indicates the index for the adjacent upper, lower, left, and right sub-blocks, and the prediction block based on the motion vector of the current sub-block is represented as P C If P N Belongs to P C If the same PU (and therefore contains the same motion information), video encoder 20 and video decoder 30 do not extract the same PU from the PU. N Otherwise, the video encoder 20 and the video decoder 30 may N Each pixel is related to P C That is, if P N Not related to P C If the PU is the same, then P N The four rows / columns of P C Add.

[0130] The video encoder 20 and the video decoder 30 may be directed to P N Use weighting factors {1 / 4, 1 / 8, 1 / 16, 1 / 32}, and you can target P CThe weighting factors {3 / 4, 7 / 8, 15 / 16, 31 / 32} are used. The exception is small MC blocks (e.g., when the PU size is equal to 8x4, 4x8, or the PU is encoded using the Advanced Temporal Motion Vector Prediction (ATMVP) mode), for which the video encoder 20 and the video decoder 30 may only use PUs. N The two rows / columns of P C In these cases, video encoder 20 and video decoder 30 may be configured to generate a N Use weighting factors {1 / 4,1 / 8}, and you can calculate the value of P C The weighting factors {3 / 4, 7 / 8} are used. For P generated based on the motion vectors of the vertically adjacent sub-blocks N , the video encoder 20 and the video decoder 30 can use the same weighting factor to N The pixels in the same row of P C For P generated based on the motion vectors of the horizontally adjacent sub-blocks N , the video encoder 20 and the video decoder 30 can use the same weighting factor to N The pixels in the same column of P C Add.

[0131] For PU boundaries, video encoder 20 and video decoder 30 may apply OBMC on each side of the boundary. Fig.9A As shown, OBMC can be applied twice along the boundary between PU1 and PU2. First, OBMC is applied together with the MV of PU2 to the blocks along the dashed border of the boundary inside PU1. Second, OBMC is applied together with the MV of PU1 to the blocks along the dashed border of the boundary inside PU2. In contrast, OBMC is applied to one side of the CU boundary because the CU that has already been encoded cannot be changed when the current CU is encoded.

[0132] Fig.9A , 9B 10 is a conceptual diagram showing an example of motion estimation for frame rate up conversion technology. Frame rate up conversion (FRUC) technology is used to generate high frame rate video based on low frame rate video. FRUC algorithms can be divided into two types. One type of process is to interpolate intermediate frames by simple frame repetition or averaging. However, these techniques may provide incorrect results in pictures containing a lot of motion. Another type of process (referred to as motion compensated FRUC (MC-FRUC)) takes object motion into account when generating intermediate frames and includes two steps: motion estimation (ME) and motion compensated interpolation (MCI). ME generates motion vectors (MVs) that represent object motion using vectors, and MCI uses MVs to generate intermediate frames.

[0133] Block matching algorithm (BMA) is widely used for ME in MC-FRUC because BMA is easy to implement. In BMA, the video encoder 20 and / or the video decoder 30 can divide the image into blocks and detect the motion of those blocks. Two types of ME are mainly used for BMA: single-sided ME and double-sided ME.

[0134] exist Fig.10 In the example of , when performing unilateral ME, the video encoder 20 and / or the video decoder 30 may obtain the MV by searching for the best matching block from the reference frame of the current frame. The video encoder 20 and / or the video decoder 30 may locate the block on the motion trajectory in the interpolated frame, thereby achieving the MV. Fig.10 As shown, three blocks in three frames are involved along the motion trajectory. Although the block in the current frame belongs to the coding block, the best matching block in the reference frame may not completely belong to the coding block, and the block in the interpolated frame does not belong to the coding block. Therefore, overlapping areas of blocks and unfilled (hole) areas may appear in the interpolated frame.

[0135] To handle overlaps, some FRUC algorithms may involve averaging and rewriting the overlapped pixels. In addition, holes may be covered by pixel values ​​from a reference or current frame. However, these algorithms may result in blocking artifacts and blurring. Therefore, motion field segmentation, successive extrapolation using discrete Hartley transform, and image inpainting are proposed to handle holes and overlaps without increasing blocking artifacts and blurring.

[0136] Fig.11 The bilateral ME for FRUC is shown. Fig.11 As shown, bilateral ME is another solution (in MC-FRUC) that can be used to avoid problems caused by overlaps and holes. In bilateral ME, the video encoder 20 and / or the video decoder 30 can use the temporal symmetry between the blocks of the reference frame and the current frame to obtain the MV of the blocks in the intermediate frame. As a result, obtaining the MV will not generate overlaps and holes. Since it is assumed that the current block is a block being processed in a certain order (for example, as in the case of video coding), such a block sequence will cover the entire intermediate picture without overlap. For example, in the case of video coding, the video encoder 20 and / or the video decoder 30 can process the blocks in decoding order. Therefore, if the FRUC idea can be considered in the video coding framework, such a technique may be more suitable.

[0137] Fig.12 is a diagram illustrating aspects of decoder-side motion vector derivation. One type of decoder-side motion derivation (DMVD) is template matching-based DMVD, which is Fig.12As shown in . With the continuous development of video codecs, the percentage of bits dedicated to motion information in the bitstream continues to increase. In order to reduce the bit cost of motion information, DMVD is proposed. The template matching-based DMVD produces a significant improvement in coding efficiency. According to Fig.12 Instead of searching for the best match for the prediction target (which is the current block being processed by the video decoder 30), the video decoder 30 can search for the best match for the template in the reference frame. Assuming that the template and the prediction target are from the same object, the video decoder 30 can use the motion vector of the template as the motion vector of the prediction target.

[0138] Because template matching is performed at both the video encoder 20 and the video decoder 30, motion vectors can be derived at the decoder side to avoid signaling costs. In other words, by implementing DVMD, the video decoder 30 can reduce the bit count of the bitstream signaled by the video encoder 20 because the video encoder 20 can eliminate the number of bits that would otherwise be used to signal motion information. In this way, DMVD can reduce bandwidth consumption in video encoding techniques.

[0139] Fig.13 is a conceptual diagram showing aspects of mirror-based bidirectional motion vector derivation in decoder-side motion vector derivation. In addition to the DMVD category discussed above, mirror-based bidirectional MV derivation is another category of DMVD. Aspects of mirror-based bidirectional MV derivation are similar to bilateral ME in FRUC. Mirror-based MV derivation is applied using centrosymmetric motion estimation around the search center with fractional sample accuracy.

[0140] According to the mirror-based bidirectional MV derivation for DMVD, video encoder 20 may predefine and signal the size and / or position of the search window in the encoded video bitstream. Fig.13 In , "dMV" represents an offset that the video encoder 20 can add to PMV0 and subtract from PMV1 to generate an MV pair consisting of MV0 and MV1. The video encoder 20 can check all values ​​of dMV inside the search window and can use the sum of absolute differences (SAD) between the L0 and L1 reference blocks as a metric for centrosymmetric motion estimation.

[0141] The video encoder 20 may select the MV pair with the smallest SAD as the output of the centrosymmetric motion estimation. Because mirror-based bidirectional MV derivation may require both future references (e.g., references at temporal positions later than the current frame in decoding order) and earlier references (e.g., references at temporal positions earlier than the current frame in decoding order) for SAD matching, SAD may not be applicable to P frames or low-delay B frames where only the former reference is available.

[0142] Fig.14 An example related to mirror-based bidirectional MV derivation is shown to combine mirror-based bidirectional MV derivation with merge mode in HEVC. In the example combination of mirror-based bidirectional MV derivation and merge mode encoding, the video encoder 20 and / or the video decoder 30 may be configured to determine whether merge mode is enabled for the current PU (53). In response to determining that the merge mode is not enabled ("No" of step 53), the video encoder 20 and / or the video decoder 30 may be configured to perform a conventional process for a non-merged PU (61).

[0143] However, in response to determining that the merge mode is enabled ("Yes" of step 53), the video encoder 20 may determine whether to encode for the PU of the B slice and signal a flag called "pu_dmvd_flag" to indicate whether the DMVD mode is applied to the current PU (55). In response to encoding "pu_dmvd_flag" ("Yes" of step 55), the video encoder 20 and / or the video decoder 30 may be configured to perform a DMVD process (57). However, in response to not encoding "pu_dmvd_flag" ("N" of step 55), the video encoder 20 and / or the video decoder 30 may be configured to perform a conventional process for merging PUs (59). Since the DMVD mode does not explicitly cause the video encoder 20 to send any MV information in the bitstream, the decoding process may integrate pu_dmvd_flag with the syntax of the merge mode in the HEVC decoding process.

[0144] like Figure 5A , 5B As shown in Figures 6A and 6B, when the LIC technology is applied, the video encoding device can access the adjacent reconstructed samples adjacent to the current block. In the actual hardware architecture, these samples may not have been reconstructed (for example, when the current block is undergoing motion compensation). In this case, the motion compensation process of the current block may be blocked until the video encoding device reconstructs the adjacent samples, resulting in an undesirable delay on the timeline.

[0145] The methods listed below can be applied individually. Alternatively, any combination of them can be applied. Please note that the reference index information is considered as part of the motion information in this disclosure, and sometimes they are collectively referred to as a motion information set.

[0146] exist Fig.15A and 15B In the example of , the video decoder 30 and / or the video encoder 20 may be configured to derive LIC parameter information (e.g., weights and / or offsets in equations (2) and (3)) using neighboring samples that may not be adjacent to the current block. That is, for example, in order to derive local illumination compensation information, the video decoder 30 and / or the video encoder 20 may be configured to calculate weights and / or offsets using neighboring samples. Specifically, in Fig.15A In the example of , the video decoder 30 and / or the video encoder 20 may be configured to use the connected upper neighboring samples 70 and the left neighboring samples 72. For example, the neighboring samples 70 may represent a first set of samples arranged in a row, and the neighboring samples 72 may represent a second set of samples arranged in a column, wherein the second set of samples is adjacent to the first set of samples.

[0147] exist Fig. 15B In the example of , the video decoder 30 and / or the video encoder 20 may be configured to use the non-connected upper neighboring samples 74 and the left neighboring samples 76. For example, the neighboring samples 74 may represent a first set of samples arranged in a row, and the neighboring samples 76 may represent a second set of samples arranged in a column, wherein the second set of samples is separated from the first set of samples.

[0148] The video decoder 30 and / or the video encoder 20 may be configured to determine that neighboring samples have been reconstructed before performing the LIC process for the current block. For example, the video decoder 30 and / or the video encoder 20 may be configured to reconstruct neighboring samples before deriving local illumination compensation information for the current block. For example, the video decoder 30 and / or the video encoder 20 may be configured to reconstruct neighboring samples before deriving local illumination compensation information for the current block. Fig.15A In another case, the video decoder 30 and / or the video encoder 20 may be configured to reconstruct the local illumination compensation information for the current block before deriving the local illumination compensation information for the current block. Fig. 15B The adjacent samples 74 and 76 in .

[0149] Video decoder 30 and / or video encoder 20 may be configured to use neighboring samples outside of the region covering the current block. In some examples, video decoder 30 and / or video encoder 20 may be configured to designate the region as including an LCU or CTU covering the current block. Fig.16 In the example of , the video decoder 30 and / or the video encoder 20 may be configured to use neighboring samples outside the area defined as the LCU (also referred to as CTU) covering the current block. For example, the video decoder 30 and / or the video encoder 20 may be configured to use neighboring samples outside the area and adjacent to the area. In this example, the video decoder 30 and / or the video encoder 20 may be configured to use the upper neighboring samples 78 and the left neighboring samples 80 at aligned positions that are both outside the current LCU 82 but adjacent to it. The video decoder 30 and / or the video encoder 20 may be configured to define the area to cover the current block, the upper coding block (e.g., CU) of the area, and / or the left coding block of the area.

[0150] To derive local illumination compensation information, the video decoder 30 and / or the video encoder 20 may be configured to use reference neighboring samples to calculate weights and / or offsets. The video decoder 30 and / or the video encoder 20 may be configured to determine the reference neighboring samples used in equations (2) and (3) to derive LIC parameters (e.g., weights and offsets) adjacent to the reference block, as in Fig.15A and Fig. 15B As shown in the example of . In other words, for example, the video decoder 30 and / or the video encoder 20 may be configured to determine reference neighboring samples that are adjacent to the reference block for the current block. In some examples, the video decoder 30 and / or the video encoder 20 may be configured to determine the reference neighboring samples used in equations (2) and (3) to derive LIC parameters (e.g., weights and offsets) that are not adjacent to the reference block. In other words, for example, the video decoder 30 and / or the video encoder 20 may be configured to determine reference neighboring samples that are not adjacent to the reference block for the current block.

[0151] exist Fig.17 In the example of , the video decoder 30 and / or the video encoder 20 may be configured to locate the reference neighboring samples by neighboring samples having the motion vector (MV) of the current block. For example, the video decoder 30 and / or the video encoder 20 may be configured to locate the reference neighboring samples 84 of the reference picture 90 by neighboring samples 83 having the motion vector (MV1) of the current block 89. In this example, the video decoder 30 and / or the video encoder 20 may be configured to locate the reference neighboring samples 86 of the reference picture 90 by neighboring samples 85 having the motion vector (MV2) of the current block 89. Similarly, the video decoder 30 and / or the video encoder 20 may be configured to locate the reference neighboring samples 88 of the reference picture 90 by neighboring samples 87 having the motion vector (MV3) of the current block 89.

[0152] The video decoder 30 and / or the video encoder 20 may be configured to round the located reference neighboring samples to integer pixels if they are located at sub-pixels. For example, the video decoder 30 and / or the video encoder 20 may be configured to round the reference neighboring samples to integer pixels when the reference neighboring samples are arranged at sub-pixels.

[0153] The video decoder 30 and / or the video encoder 20 may be configured to apply LIC only when the adjacent upper sample of the current block or the adjacent left sample of the current block, or both, are outside the current LCU. In some examples, the video decoder 30 and / or the video encoder 20 may be configured to disable LIC for blocks that are not the adjacent upper sample of the current block or the adjacent left sample of the current block, or both. For example, the video encoder 20 may be configured to determine that local illumination compensation is to be applied to the current block in response to the adjacent upper sample of the current block, the adjacent left sample of the current block, or both being arranged outside the current LCU for the current block, wherein deriving local illumination compensation information for the current block is in response to determining that local illumination compensation is to be applied to the current block. In some examples, the video encoder 20 may be configured to avoid signaling IC_flag for blocks that are not the adjacent upper sample of the current block or the adjacent left sample of the current block, or both.

[0154] exist Fig.18 In the example of , the video decoder 30 and / or the video encoder 20 may be configured to determine that LIC is to be applied to block 91 in response to determining that block 91 has neighboring samples that are adjacent above and adjacent to the left outside the current LCU. The video decoder 30 and / or the video encoder 20 may be configured to determine that LIC is to be applied to block 92 in response to determining that block 92 has neighboring samples that are adjacent above and adjacent to the left outside the current LCU. The video decoder 30 and / or the video encoder 20 may be configured to determine that LIC is to be applied to block 93 in response to determining that block 93 has neighboring samples that are adjacent to the left outside the current LCU. However, in this example, the video decoder 30 and / or the video encoder 20 may be configured to determine that LIC is not to be applied to block 94 in response to determining that block 94 does not have neighboring samples that are adjacent above or adjacent to the left outside the current LCU.

[0155] In other words, for example, the video decoder 30 and / or the video encoder 20 may be configured to determine whether to apply a LIC to a block based on the position of the block within the current LCU. In response to determining that the current block is arranged within the LCU such that the current block has adjacent neighboring samples immediately above and / or adjacent neighboring samples immediately to the left outside the current LCU, the video decoder 30 and / or the video encoder 20 may be configured to determine that a LIC is to be applied to the block. However, in response to determining that the current block is arranged within the LCU such that the current block does not have adjacent neighboring samples immediately above or immediately to the left outside the current LCU, the video decoder 30 and / or the video encoder 20 may be configured to determine that a LIC is not to be applied to the block.

[0156] Fig.19 is a block diagram illustrating an example video encoder 20 in which techniques of this disclosure may be implemented. Fig.19 It is provided for the purpose of explanation and should not be considered as limiting the techniques broadly illustrated and described in this disclosure.The techniques of this disclosure can be applicable to various encoding standards or methods.

[0157] exist Fig.19 In the example of , the video encoder 20 includes a prediction processing unit 100, a video data memory 101, a residual generation unit 102, a transform processing unit 104, a quantization unit 106, an inverse quantization unit 108, an inverse transform processing unit 110, a reconstruction unit 112, a filter unit 114, a decoded picture buffer 116, and an entropy encoding unit 118. The prediction processing unit 100 includes an inter-prediction processing unit 120 and an intra-prediction processing unit 126. The inter-prediction processing unit 120 may include a motion estimation unit and a motion compensation unit (not shown).

[0158] The video data memory 101 may be configured to store video data to be encoded by components of the video encoder 20. The video data stored in the video data memory 101 may be obtained, for example, from a video source 18. The decoded picture buffer 116 may be a reference picture memory that stores reference video data for use when encoding the video data by the video encoder 20, for example, in an intra-frame or inter-frame coding mode. The video data memory 101 and the decoded picture buffer 116 may be formed by any of a variety of memory devices, such as a dynamic random access memory (DRAM) (including synchronous DRAM (SDRAM)), magnetoresistive RAM (MRAM), resistive RAM (RRAM), or other types of memory devices. The video data memory 101 and the decoded picture buffer 116 may be provided by the same memory device or by separate memory devices. In various examples, the video data memory 101 may be on-chip with other components of the video encoder 20, or off-chip relative to those components. The video data memory 101 may be Figure 1 The storage medium 19 is the same as or a part of it.

[0159] The video encoder 20 receives the video data. The video encoder 20 may process and encode each CTU in a slice of a picture of the video data. Each of the CTUs may be associated with a luma coding tree block (CTB) of equal size to the picture and a corresponding CTB. As part of encoding the CTU, the prediction processing unit 100 may perform segmentation to divide the CTB of the CTU into progressively smaller blocks. The smaller blocks may be coding blocks of a CU. For example, the prediction processing unit 100 may segment the CTB associated with the CTU according to a tree structure.

[0160] The video encoder 20 may encode the CU of the CTU to generate an encoded representation of the CU (i.e., an encoded CU). As part of encoding the CU, the prediction processing unit 100 may partition the coding blocks associated with the CU between one or more PUs of the CU. Thus, each PU may be associated with a luma prediction block and a corresponding chroma prediction block. The video encoder 20 and the video decoder 30 may support PUs of various sizes. As noted above, the size of the CU may refer to the size of the luma coding block of the CU, and the size of the PU may refer to the size of the luma prediction block of the PU. Assuming that the size of a particular CU is 2Nx2N, the video encoder 20 and the video decoder 30 may support PU sizes of 2Nx2N or NxN for intra-frame prediction, and symmetric PU sizes of 2Nx2N, 2NxN, Nx2N, NxN or similar sizes for inter-frame prediction. The video encoder 20 and the video decoder 30 may also support asymmetric partitioning of PU sizes of 2NxnU, 2NxnD, nLx2N and nRx2N for inter-frame prediction.

[0161] The inter-frame prediction processing unit 120 can generate prediction data for a PU by performing inter-frame prediction on each PU of the CU. The prediction data for the PU may include a prediction block of the PU and motion information for the PU. The inter-frame prediction processing unit 120 may perform different operations for the PU of the CU according to whether the PU is in an I slice, a P slice, or a B slice. In an I slice, all PUs are intra-predicted. Therefore, if the PU is in an I slice, the inter-frame prediction processing unit 120 does not perform inter-frame prediction on the PU. Therefore, for a block encoded in I mode, a prediction block is formed using spatial predictions from previously encoded neighboring blocks in the same frame. If the PU is in a P slice, the inter-frame prediction processing unit 120 can use unidirectional inter-frame prediction to generate a prediction block for the PU. If the PU is in a B slice, the inter-frame prediction processing unit 120 can use unidirectional or bidirectional inter-frame prediction to generate a prediction block for the PU. JEM / VVC also provides an affine motion compensation mode, which can be regarded as an inter-frame prediction mode.

[0162] Intra-prediction processing unit 126 may generate prediction data for a PU by performing intra-prediction on the PU. The prediction data for the PU may include a prediction block and various syntax elements for the PU. Intra-prediction processing unit 126 may perform intra-prediction on PUs in I slices, P slices, and B slices.

[0163] To perform intra prediction on a PU, the intra prediction processing unit 126 may use multiple intra prediction modes to generate multiple prediction data sets for the PU. The intra prediction processing unit 126 may use samples from sample blocks of neighboring PUs to generate prediction blocks for the PU. Assuming a left-to-right, top-to-bottom coding order for PUs, CUs, and CTUs, the neighboring PU may be above, above left, above right, or to the left of the PU. The intra prediction processing unit 126 may use various numbers of intra prediction modes, such as 33 directional intra prediction modes. In some examples, the number of intra prediction modes may depend on the size of the region associated with the PU.

[0164] Prediction processing unit 100 may select prediction data for PUs of a CU from prediction data generated for the PUs by inter-prediction processing unit 120 or prediction data generated for the PUs by intra-prediction processing unit 126. In some examples, prediction processing unit 100 selects prediction data for the PUs of a CU based on a rate / distortion metric of a set of prediction data. A prediction block of the selected prediction data may be referred to herein as a selected prediction block.

[0165] The LIC sample unit 121 of the prediction processing unit 100 may determine neighboring samples for predicting the current block, wherein the neighboring samples are arranged outside an area of ​​the current picture, the area including the current block, a row of samples adjacent to the top row of the current block, and a column of samples adjacent to the left column of the current block. The LIC sample unit 121 may use the neighboring samples to derive local illumination compensation information for the current block. The prediction processing unit 100 (e.g., the inter-frame prediction processing unit 120) may generate a prediction block using the local illumination compensation information derived by the multi-model LIC sample unit 121.

[0166] The residual generation unit 102 may generate a residual block for a CU (e.g., luma, Cb, and Cr residual blocks) based on the coding block for the CU (e.g., luma, Cb, and Cr coding blocks) and the prediction block selected for the PU of the CU (e.g., predicted luma, Cb, and Cr blocks). For example, the residual generation unit 102 may generate the residual block of the CU so that each sample in the residual block has a value equal to the difference between the sample in the coding block of the CU and the corresponding sample in the corresponding selected prediction block of the PU of the CU.

[0167] The transform processing unit 104 may perform quadtree partitioning to partition the residual block associated with the CU into transform blocks associated with the TUs of the CU. Thus, a TU may be associated with a luma transform block and two chroma transform blocks. The size and position of the luma and chroma transform blocks of the TUs of the CU may or may not be based on the size and position of the prediction blocks of the PUs of the CU. A quadtree structure referred to as a "residual quadtree" (RQT) may include a node associated with each of the regions. The TUs of the CU may correspond to leaf nodes of the RQT.

[0168] Transform processing unit 104 may generate a transform coefficient block for each TU of a CU by applying one or more transforms to the transform block of the TU. Transform processing unit 104 may apply various transforms to the transform block associated with the TU. For example, transform processing unit 104 may apply a discrete cosine transform (DCT), a directional transform, or a conceptually similar transform to the transform block. In some examples, transform processing unit 104 does not apply a transform to the transform block. In such examples, the transform block may be considered a transform coefficient block.

[0169] The quantization unit 106 may quantize the transform coefficients in the coefficient block. The quantization process may reduce the bit depth associated with some or all transform coefficients. For example, an n-bit transform coefficient may be rounded down to an m-bit transform coefficient during quantization, where n is greater than m. The quantization unit 106 may quantize the coefficient block associated with the TU of the CU based on a quantization parameter (QP) value associated with the TU of the CU. The video encoder 20 may adjust the degree of quantization applied to the coefficient block associated with the CU by adjusting the QP value associated with the CU. Quantization may introduce information loss. Therefore, the quantized transform coefficient may have a lower precision than the original transform coefficient.

[0170] Inverse quantization unit 108 and inverse transform processing unit 110 may apply inverse quantization and inverse transform, respectively, to the coefficient block to reconstruct a residual block from the coefficient block. Reconstruction unit 112 may add the reconstructed residual block to corresponding samples from one or more prediction blocks generated by prediction processing unit 100 to produce a reconstructed transform block associated with the TU. By reconstructing the transform block for each TU of a CU in this manner, video encoder 20 may reconstruct the coding block of the CU.

[0171] The filter unit 114 may perform one or more deblocking operations to reduce blocking artifacts in the coding block associated with the CU. After the filter unit 114 performs one or more deblocking operations on the reconstructed coding block, the decoded picture buffer 116 may store the reconstructed coding block. The inter-prediction processing unit 120 may use a reference picture containing the reconstructed coding block to perform inter-prediction on PUs of other pictures. In addition, the intra-prediction processing unit 126 may use the reconstructed coding block in the decoded picture buffer 116 to perform intra-prediction on other PUs in the same picture as the CU.

[0172] The entropy coding unit 118 may receive data from other functional components of the video encoder 20. For example, the entropy coding unit 118 may receive coefficient blocks from the quantization unit 106 and may receive syntax elements from the prediction processing unit 100. The entropy coding unit 118 may perform one or more entropy coding operations on the data to generate entropy-encoded data. For example, the entropy coding unit 118 may perform a CABAC operation, a context-adaptive variable length coding (CAVLC) operation, a variable-variable (V2V) length coding operation, a syntax-based context-adaptive binary arithmetic coding (SBAC) operation, a probability interval partitioning entropy (PIPE) coding operation, an exponential Golomb coding operation, or another type of entropy coding operation on the data. The video encoder 20 may output a bitstream including the entropy-encoded data generated by the entropy coding unit 118. For example, the bitstream may include data representing the values ​​of the transform coefficients for the CU.

[0173] Fig. 20 is a block diagram illustrating an example video decoder 30 that may be configured to implement the techniques of this disclosure. Fig. 20 It is provided for the purpose of explanation and does not limit the techniques as broadly illustrated and described in this disclosure. For the purpose of explanation, this disclosure describes the video decoder 30 in the context of HEVC encoding. However, the techniques of this disclosure may be applicable to various encoding standards or methods.

[0174] exist Fig. 20 In the example of , video decoder 30 includes entropy decoding unit 150, video data memory 151, prediction processing unit 152, inverse quantization unit 154, inverse transform processing unit 156, reconstruction unit 158, filter unit 160, and decoded picture buffer 162. Prediction processing unit 152 includes motion compensation unit 164 and intra prediction processing unit 166. In other examples, video decoder 30 may include more, fewer, or different functional components.

[0175] The video data memory 151 may store encoded video data, such as an encoded video bitstream, to be decoded by the components of the video decoder 30. The video data stored in the video data memory 151 may be obtained, for example, from a computer-readable medium 16 (e.g., from a local video source such as a camera) via a wired or wireless network for video data, or by accessing a physical data storage medium. The video data memory 151 may form a coded picture buffer (CPB) storing encoded video data from a coded video bitstream. The decoded picture buffer 162 may be a reference picture memory that stores reference video data for use when, for example, the video decoder 30 decodes the video data in an intra-frame or inter-frame coding mode, or for output. The video data memory 151 and the decoded picture buffer 162 may be formed by any of a variety of memory devices, such as a dynamic random access memory (DRAM) (including synchronous DRAM (SDRAM)), a magnetoresistive RAM (MRAM), a resistive RAM (RRAM), or other types of memory devices. The video data memory 151 and the decoded picture buffer 162 may be provided by the same memory device or a separate memory device. In various examples, video data memory 151 may be on-chip with other components of video decoder 30, or off-chip relative to those components. Figure 1 The storage medium 28 is the same as or a part of it.

[0176] The video data memory 151 receives and stores the encoded video data (e.g., NAL units) of the bitstream. The entropy decoding unit 150 may receive the encoded video data (e.g., NAL units) from the video data memory 151, and may parse the NAL units to obtain syntax elements. The entropy decoding unit 150 may entropy decode the entropy encoded syntax elements in the NAL units. The prediction processing unit 152, the inverse quantization unit 154, the inverse transform processing unit 156, the reconstruction unit 158, and the filter unit 160 may generate decoded video data based on the syntax elements extracted from the bitstream. The entropy decoding unit 150 may perform a process that is generally opposite to the process of the entropy encoding unit 118.

[0177] In addition to obtaining syntax elements from the bitstream, the video decoder 30 can also perform a reconstruction operation on the unpartitioned CU. In order to perform a reconstruction operation on the CU, the video decoder 30 can perform a reconstruction operation on each TU of the CU. By performing a reconstruction operation on each TU of the CU, the video decoder 30 can reconstruct the residual block of the CU.

[0178] As part of performing a reconstruction operation on a TU of a CU, the inverse quantization unit 154 may inverse quantize, i.e., dequantize, a coefficient block associated with the TU. After the inverse quantization unit 154 inverse quantizes the coefficient block, the inverse transform processing unit 156 may apply one or more inverse transforms to the coefficient block to generate a residual block associated with the TU. For example, the inverse transform processing unit 156 may apply an inverse DCT, an inverse integer transform, an inverse Karhunen-Loeve transform (KLT), an inverse rotational transform, an inverse directional transform, or another inverse transform to the coefficient block.

[0179] The inverse quantization unit 154 may perform specific techniques of the present disclosure. For example, for at least one corresponding quantization group in a plurality of quantization groups within a CTB of a CTU of a picture of video data, the inverse quantization unit 154 may derive a corresponding quantization parameter for the corresponding quantization group based at least in part on local quantization information signaled in a bitstream. In addition, in this example, the inverse quantization unit 154 may inverse quantize at least one transform coefficient of a transform block of a TU of a CU of the CTU based on the corresponding quantization parameter for the corresponding quantization group. In this example, the corresponding quantization group is defined as a group of consecutive CUs or coding blocks in a coding order, such that the boundary of the corresponding quantization group must be the boundary of the CU or coding block, and the size of the corresponding quantization group is greater than or equal to a threshold. The video decoder 30 (e.g., the inverse transform processing unit 156, the reconstruction unit 158, and the filter unit 160) may reconstruct the coding block of the CU based on the inverse quantized transform coefficients of the transform block.

[0180] The LIC sample unit 165 of the prediction processing unit 152 may determine neighboring samples for predicting the current block, wherein the neighboring samples are arranged outside an area of ​​the current picture, the area including the current block, a row of samples adjacent to the top row of the current block, and a column of samples adjacent to the left column of the current block. The LIC sample unit 165 may use the neighboring samples to derive local illumination compensation information for the current block. The prediction processing unit 152 (e.g., the intra prediction processing unit 166) may use the local illumination compensation information derived by the LIC sample unit 165 to generate a predicted block.

[0181] If the PU is encoded using intra prediction, intra prediction processing unit 166 may perform intra prediction to generate a prediction block for the PU. Intra prediction processing unit 166 may use an intra prediction mode to generate a prediction block for the PU based on spatially neighboring blocks of samples. Intra prediction processing unit 166 may determine the intra prediction mode for the PU based on one or more syntax elements obtained from the bitstream.

[0182] If the PU is encoded using inter prediction, entropy decoding unit 150 may determine motion information for the PU. Motion compensation unit 164 may determine one or more reference blocks based on the motion information of the PU. Motion compensation unit 164 may generate a prediction block (e.g., predicted luma, Cb, and Cr blocks) for the PU based on the one or more reference blocks.

[0183] The reconstruction unit 158 ​​may reconstruct the coding blocks (e.g., luma, Cb, and Cr coding blocks) for the CU using the transform blocks (e.g., luma, Cb, and Cr transform blocks) for the TUs of the CU and the prediction blocks (e.g., luma, Cb, and Cr blocks) of the PUs of the CU (i.e., intra prediction data or inter prediction data, where applicable). For example, the reconstruction unit 158 ​​may add samples of the transform blocks (e.g., luma, Cb, and Cr transform blocks) to corresponding samples of the prediction blocks (e.g., luma, Cb, and Cr prediction blocks) to reconstruct the coding blocks (e.g., luma, Cb, and Cr coding blocks) of the CU.

[0184] The filter unit 160 may perform a deblocking operation to reduce the blocking artifacts associated with the coding blocks of the CU. The video decoder 30 may store the coding blocks of the CU in a decoded picture buffer 162. The decoded picture buffer 162 may provide reference pictures for subsequent motion compensation, intra-frame prediction, and display on a display device such as a Figure 1 For example, the video decoder 30 may perform intra prediction or inter prediction operations on PUs of other CUs based on blocks in the decoded picture buffer 162.

[0185] Fig.211 is a flow chart illustrating a technique for decoding video data using neighboring samples determined to be usable for deriving local illumination compensation information using multiple linear models. The current block may include a current CU or a portion of a current CU. Although described with respect to a video decoder 30, it should be understood that other devices may be configured to perform the same Fig.21 A similar approach to the one used in this paper.

[0186] exist Fig.21 In the example of FIG. 1 , LIC sample unit 165 determines neighboring samples for predicting a block that are arranged outside the region (202). LIC sample unit 165 derives LIC parameter information (204). LIC sample unit 165 derives a linear model using the LIC parameter information (206). Prediction processing unit 152 generates a prediction block using the linear model (208). Video decoder 30 decodes the current block using the prediction block (210).

[0187] Fig. 22 1 is a flow chart illustrating a technique for encoding video data using neighboring samples determined to be usable for deriving local illumination compensation information using multiple linear models. The current block may include a current CU or a portion of a current CU. Although described with respect to the video encoder 20, it should be understood that other devices may be configured to perform the same Fig. 22 A similar approach to the one used in this paper.

[0188] exist Fig. 22 In the example of FIG. 2 , LIC sample unit 121 determines neighboring samples for predicting a block that are arranged outside the region (252). LIC sample unit 121 derives LIC parameter information (254). LIC sample unit 121 derives a linear model using the LIC parameter information (256). LIC sample unit 121 generates a prediction block using the linear model (258). Video encoder 20 encodes the current block using the prediction block (260).

[0189] Using one or more techniques described herein for determining neighboring samples for deriving local illumination compensation information outside a region including a current block, the video encoder 20 and / or the video decoder 30 may be configured to derive a prediction block for the current block with less delay (compared to a system that uses neighboring samples immediately adjacent to the current block to derive local illumination compensation information). For example, the video encoder 20 and / or the video decoder 30 may be configured to perform the following operations: determine a plurality of neighboring samples for predicting the current block, wherein the plurality of neighboring samples are arranged outside a region of the current picture, the region including the current block, a row of samples adjacent to the top row of the current block, and a column of samples adjacent to the left column of the current block; use the plurality of neighboring samples to derive local illumination compensation information for the current block; and use the local illumination compensation information to generate a prediction block. Reducing the delay in generating a prediction block may increase the processing speed of the video encoder 20 and / or the video decoder 30, and / or reduce the power consumption of the video encoder 20 and / or the video decoder 30.

[0190] For purposes of illustration, certain aspects of the present disclosure have been described with respect to extensions to the HEVC standard. However, the techniques described in this disclosure may be useful for other video encoding processes, including other standards or proprietary video encoding processes that have not yet been developed.

[0191] A video encoding device as described in the present disclosure may refer to a video encoder or a video decoder. Similarly, a video encoding unit may refer to a video encoder or a video decoder. Likewise, video coding may refer to video encoding or video decoding where applicable. In the present disclosure, the phrase "based on" may indicate based only on, at least partially on, or based on in some way. The present disclosure may use the term "video unit" or "video block" or "block" to refer to one or more sample blocks and a syntax structure for encoding samples of one or more sample blocks. Example types of video units may include CTUs, CUs, PUs, transform units (TUs), macroblocks, macroblock partitions, and the like. In some contexts, the discussion of PUs may be interchangeable with the discussion of macroblocks or macroblock partitions. Example types of video blocks may include coding tree blocks, coding blocks, and other types of blocks of video data.

[0192] It should be appreciated that, according to examples, certain actions or events of any of the techniques described herein may be performed in a different order, may be added, combined, or omitted entirely (e.g., not all described actions or events are necessary to implement the techniques). In addition, in some examples, actions or events may be performed concurrently rather than sequentially, such as through multithreading, interrupt handling, or multiple processors.

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

[0194] By way of example and not limitation, such computer-readable storage media may include RAM, ROM, EEPROM, CD-ROM or other optical disk storage, disk storage or other magnetic storage devices, flash memory, or any other medium that can be used to store desired program codes in the form of instructions or data structures and can be accessed by a computer. In addition, any connection is appropriately referred to as a computer-readable medium. For example, if a coaxial cable, optical fiber cable, twisted pair, digital subscriber line (DSL) or wireless technology (e.g., infrared, radio and microwave) is used to transmit instructions from a website, server or other remote source, then the coaxial cable, optical fiber cable, twisted pair, DSL or wireless technology (e.g., infrared, radio and microwave) is included in the definition of the medium. However, it should be understood that computer-readable storage media and data storage media do not include connections, carrier waves, signals or other temporary media, but are instead directed to non-temporary tangible storage media. As used herein, disks and optical disks include compact disks (CDs), laser optical disks, optical disks, digital versatile disks (DVDs), floppy disks and blue-ray disks, wherein disks usually copy data magnetically, while optical disks use lasers to optically copy data. Combinations of the above should also be included within the scope of computer-readable media.

[0195] Instructions may be executed by fixed-function and / or programmable processing circuits, including 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. Therefore, the term "processor" as used herein may refer to any of the foregoing structures or any other structure suitable for implementing the techniques described herein. In addition, in some aspects, the functions described herein may be provided within dedicated hardware and / or software modules configured for encoding and decoding, or incorporated into a combined codec. In addition, the techniques may be implemented entirely in one or more circuits or logic elements.

[0196] The techniques of the present disclosure may be implemented in a wide variety of devices or apparatuses, including a wireless handset, an integrated circuit (IC), or a set of ICs (e.g., a chipset). Various components, modules, or units are described in the present disclosure to emphasize the functional aspects of a device configured to perform the disclosed techniques, but do not necessarily need to be implemented by different hardware units. Specifically, as described above, the various units may be combined in a codec hardware unit, or provided by a collection of interoperable hardware units (including one or more processors as described above) in combination with appropriate software and / or firmware.

[0197] Various examples have been described. These and other examples are within the scope of the following claims.

Claims

1. A method for processing video data, the method comprising: Determining, by processing circuitry, a plurality of neighboring samples of a current picture, the current picture including a current block; determining, by the processing circuit, a plurality of reference neighboring samples of a reference picture, the reference picture comprising a reference block, wherein determining the plurality of reference neighboring samples comprises rounding sub-pixel values ​​to integer pixel values ​​to determine reference neighboring samples in the plurality of reference neighboring samples; deriving, by the processing circuit, local illumination compensation information of the current block using the plurality of neighboring samples and the plurality of reference neighboring samples; and The local illumination compensation information is used by the processing circuit to generate a prediction block.

2. The method according to claim 1, further comprising: Determining a motion vector of the current block; as well as The plurality of reference neighboring samples are determined based on the motion vector.

3. The method according to claim 2, wherein: The plurality of neighboring samples include a first set of neighboring samples arranged in a row and a second set of neighboring samples arranged in a column, wherein the plurality of reference neighboring samples include the first set of reference neighboring samples arranged in the row and the second set of reference neighboring samples arranged in the column, and wherein determining the plurality of reference neighboring samples includes: Determine the first reference neighboring sample set using the first neighboring sample set and the motion vector of the current block; and The second set of reference neighboring samples is determined using the second set of neighboring samples of the current block and the motion vector.

4. The method according to claim 1, wherein: Deriving the local illumination compensation information includes: calculating weights and / or offsets using the plurality of neighboring samples and the plurality of reference neighboring samples.

5. The method according to claim 1, wherein: Deriving the local illumination compensation information includes calculating a and / or b, in, in, as well as Among them, Rec neig Represents the plurality of adjacent samples, where Rec refneig represents the plurality of reference adjacent samples, and wherein N represents Rec neig and Rec refneig The number of pixels in .

6. The method according to claim 1, wherein: The plurality of reference neighboring samples are adjacent to the reference block.

7. The method according to claim 1, wherein: The plurality of reference neighboring samples are not adjacent to the reference block.

8. The method according to claim 1, further comprising: The processing circuit determines, in response to adjacent upper samples of the current block, adjacent left samples of the current block, or both being arranged outside a current maximum coding unit (LCU) of the current block, whether to apply local illumination compensation to the current block, wherein the local illumination compensation information of the current block is derived in response to determining that the local illumination compensation is applied to the current block.

9. The method according to claim 1, wherein: The processing includes encoding, and the method further includes: generating, by the processing circuit, a residual block for the current block of the video data based on a difference between the current block and the predicted block; and The processing circuit outputs the residual block.

10. The method according to claim 1, wherein: Processing includes decoding, the method further comprising: The processing circuit decodes the residual block of the current block; combining, by the processing circuit, the prediction block and the residual block to decode the current block; and The current block is output by the processing circuit.

11. A device for processing video data, the device comprising: one or more storage media configured to store the video data; as well as One or more processors, embodied in circuitry and configured to: Determine a plurality of neighboring samples of a current picture, wherein the current picture includes a current block; determining a plurality of reference neighboring samples of a reference picture, the reference picture comprising a reference block, wherein, to determine the plurality of reference neighboring samples, the one or more processors are configured to: round sub-pixel values ​​to integer pixel values ​​to determine reference neighboring samples of the plurality of reference neighboring samples; deriving local illumination compensation information of the current block using the plurality of neighboring samples and the plurality of reference neighboring samples; and A prediction block is generated using the local illumination compensation information.

12. The device according to claim 11, wherein The one or more processors are further configured to: determining a motion vector of the current block; and The plurality of reference neighboring samples are determined based on the motion vector.

13. The device according to claim 11, wherein: To derive the local illumination compensation information, the one or more processors are configured to calculate weights and / or offsets using the plurality of neighboring samples and the plurality of reference neighboring samples.

14. The device according to claim 11, wherein: To derive the local illumination compensation information, the one or more processors are configured to calculate a and / or b, in, in, as well as Among them, Rec neig Represents the plurality of adjacent samples, where Rec refneig represents the plurality of reference adjacent samples, and wherein N represents Rec neig and Rec refneig The number of pixels in .

15. The device according to claim 11, wherein The plurality of reference neighboring samples are adjacent to the reference block.

16. The device according to claim 11, wherein The plurality of reference neighboring samples are not adjacent to the reference block.

17. The device according to claim 11, wherein: The one or more processors are also configured to, in response to determining that an adjacent upper sample of the current block, an adjacent left sample of the current block, or both are arranged outside a current maximum coding unit (LCU) of the current block, determine to apply local illumination compensation to the current block, wherein the one or more processors are configured to, in response to the determination to apply the local illumination compensation to the current block, derive the local illumination compensation information of the current block.

18. The device according to claim 11, wherein The apparatus comprises a wireless communication device and further comprises a transmitter configured to transmit encoded video data.

19. The device according to claim 11, wherein: The apparatus comprises a wireless communication device and also includes a receiver configured to receive encoded video data.

20. A non-transitory computer-readable storage medium storing instructions that, when executed, cause one or more processors to: Determine a plurality of neighboring samples of a current picture, wherein the current picture includes a current block; Determine a plurality of reference neighboring samples of a reference picture, the reference picture comprising a reference block, wherein: To determine the plurality of reference neighboring samples, the instructions further cause the one or more processors to perform the following operations: rounding sub-pixel values ​​to integer pixel values ​​to determine reference neighboring samples among the plurality of reference neighboring samples; deriving local illumination compensation information of the current block using the plurality of neighboring samples and the plurality of reference neighboring samples; and A prediction block is generated using the local illumination compensation information.