Affine Linear Weighted Intra Prediction in Video Coding
By deriving Most Probable Modes for video blocks that are not coded using ALWIP and assigning default modes to neighboring ALWIP blocks, the inefficiencies in existing ALWIP-based video coding are addressed, leading to reduced cost, complexity, and faster processing times.
Patent Information
- Application Number
- JP2021564809
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Priority Date
- 2020-05-05
- Filing Date
- 2020-05-06
- Publication Date
- 2024-09-10
- Estimated Expiration
- 2040-05-06
AI Technical Summary
Existing video coding techniques using affine linear weighted intra prediction (ALWIP) face inefficiencies due to increased storage requirements and complexity, as well as slower encoding and decoding processes, primarily because of the need to store and use mapping data for intra prediction modes.
The proposed solution involves deriving Most Probable Modes (MPMs) for video blocks that are not coded using ALWIP, where neighboring blocks coded with ALWIP are assigned a default intra prediction mode, reducing the need for storing mapping data and avoiding lookup operations.
This approach reduces the cost and complexity of video encoders and decoders by minimizing storage requirements and speeding up the encoding and decoding processes while maintaining coding efficiency.
Smart Images

Figure 0007548939000059 
Figure 0007548939000068 
Figure 0007548939000075
Abstract
Description
[Technical field]
[0001]
[0001] This application claims priority to U.S. Provisional Patent Application No. 62 / 845,790, filed May 9, 2019, and U.S. Provisional Patent Application No. 62 / 864,320, filed June 20, 2019, the entire contents of each of which are incorporated by reference.
[0002] This disclosure relates to video encoding and decoding. [Background technology]
[0003] Digital video capabilities may be incorporated into a wide range of devices, including digital televisions, digital direct 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 "smartphones," video teleconferencing devices, video streaming devices, and the like. Digital video devices implement video coding 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), and extensions to such standards. By implementing such video coding techniques, video devices may more efficiently transmit, receive, encode, decode, and / or store digital video information.
[0004]
[0004] Video coding techniques include spatial (intra-picture) prediction and / or temporal (inter-picture) prediction to reduce or remove redundancy inherent in video sequences. In block-based video coding, a video slice (e.g., a video picture or a portion of a video picture) may be partitioned into video blocks, which may also be referred to as coding tree units (CTUs), coding units (CUs) and / or coding nodes. Video blocks in an intra-coded (I) slice of a picture are encoded using spatial prediction with respect to reference samples in neighboring blocks in the same picture. Video blocks in an inter-coded (P or B) slice of a picture may use spatial prediction with respect to reference samples in neighboring blocks in the same picture or temporal prediction with respect to reference samples in other reference pictures. A picture may be referred to as a frame, and a reference picture may be referred to as a reference frame. Summary of the Invention
[0005]
[0005] Generally, this disclosure describes techniques for intra prediction, including derivation and signaling of modes for linear weighted intra prediction. For example, in one example, this disclosure describes a video coder, such as a video encoder or video decoder, performing an MPM derivation process that derives one or more Most-Probable Modes (MPMs) for a current block that is not coded using affine linear weighted intra prediction (ALWIP). The MPM for the current block may be an intra prediction mode that is determined to be most likely to be used to code the current block. As part of performing the MPM derivation process, the video coder determines whether a neighboring block of the current block is an ALWIP-coded neighboring block. Based on the neighboring block being an ALWIP coded neighboring block, the video coder determines that a value of an intra-prediction mode of the neighboring block is a default value, such as a value corresponding to a planar mode. The video coder codes the current block based on one of the MPMs for the current block.
[0006]
[0006] In one example, the present disclosure describes a method for coding video data, the method comprising: performing an MPM derivation process to derive one or more Most Probable Modes (MPMs) for a current block of the video data, where the current block is not coded using affine linear weighted intra prediction (ALWIP), and performing the MPM derivation process comprises: determining whether a neighboring block of the current block is an ALWIP coded neighboring block; determining that a value of the intra prediction mode of the neighboring block is a default value based on the neighboring block being an ALWIP coded neighboring block; and including the intra prediction mode corresponding to the default value as one of the one or more MPMs.
[0007]
[0007] In another example, the present disclosure describes a device for coding video data, the device comprising a memory for storing the video data and one or more processors implemented in a circuit, the one or more processors being configured to perform an MPM derivation process to derive one or more Most Probable Modes (MPMs) for a current block of the video data, wherein the current block is not coded using affine linear weighted intra prediction (ALWIP), and performing the MPM derivation process comprises determining whether a neighboring block of the current block is an ALWIP coded neighboring block, determining that a value of the intra prediction mode of the neighboring block is a default value based on the neighboring block being an ALWIP coded neighboring block, and including as one of the one or more MPMs the intra prediction mode corresponding to the default value.
[0008]
[0008] In another example, the disclosure describes a device for coding video data, the device comprising: means for performing an MPM derivation process that derives one or more Most Probable Modes (MPMs) for a current block of the video data, wherein the current block is not coded using affine linear weighted intra prediction (ALWIP), and the means for performing the MPM derivation process comprises means for determining whether a neighboring block of the current block is an ALWIP coded neighboring block, and based on the neighboring block being an ALWIP coded neighboring block, determining that a value of the intra prediction mode of the neighboring block is a default value, and including the intra prediction mode corresponding to the default value as one of the one or more MPMs.
[0009]
[0009] In another example, the disclosure describes a computer-readable storage medium having instructions stored thereon that, when executed, cause one or more processors to perform an MPM derivation process to derive one or more Most Probable Modes (MPMs) for a current block of video data, where the current block is not coded using affine linear weighted intra prediction (ALWIP), and performing the MPM derivation process comprises determining whether a neighboring block of the current block is an ALWIP coded neighboring block, determining that a value of the intra prediction mode of the neighboring block is a default value based on the neighboring block being an ALWIP coded neighboring block, and including as one of the one or more MPMs the intra prediction mode corresponding to the default value.
[0010]
[0010] The details of one or more examples are set forth in the accompanying drawings and the description below. Other features, objects, and advantages will become apparent from the description, drawings, and claims. [Brief description of the drawings]
[0011] [Figure 1]
[0011] A block diagram illustrating an example video encoding and decoding system in which the techniques of this disclosure may be implemented. [Diagram 2]
[0012] 1 is a block diagram illustrating an example of intra prediction with arrows pointing towards reference samples. [Diagram 3]
[0013] 13 is a conceptual diagram of an example of an 8×4 rectangular block where, due to the restriction of the intra-prediction direction to be within the range of −135 degrees to 45 degrees, the “closer” reference samples are not used and the more distant reference samples may be used. [Figure 4]
[0014] Conceptual diagram showing wide angles (-1 to -10, and 67 to 76) illustrated in addition to the 65 angle modes. [Figure 5A]
[0015] 13A-13C are diagrams of the mode mapping process for intra-prediction modes outside the diagonal range. [Figure 5B] 13A-13C are diagrams of the mode mapping process for intra-prediction modes outside the diagonal range. [Figure 5C] 13A-13C are diagrams of the mode mapping process for intra-prediction modes outside the diagonal range. [Figure 6]
[0016] Conceptual diagram showing wide angles (-1 to -14 and 67 to 80) in mode 2 and VVC Test Model 3 (VTM3) over 66 for a total of 93 angle modes. [Figure 7]
[0017] 13 is a table providing specifications for intra prediction angles. [Figure 8]
[0018] 1 is a diagram of reference samples from multiple reference lines that may be used for intra prediction of a coding block. [Figure 9]
[0019] FIG. 1 is a conceptual diagram showing an example of division of 4×8 blocks and 8×4 blocks. [Figure 10]
[0020] A conceptual diagram showing an example of all block divisions except 4x8, 8x4, and 4x4. [Figure 11]
[0021] 1 is a conceptual diagram illustrating an example of an affine linear weighted intra prediction (ALWIP) process on an 8×8 block. [Figure 12]
[0022] 1 is a table showing the number of matrix and offset parameters for each ALWIP type in Versatile Video Coding Working Draft 4 (VVC WD4). [Figure 13]
[0023] 1 is a conceptual diagram illustrating example neighboring blocks used to derive an ALWIP most probable mode (MPM) for a current block, in accordance with one or more techniques of this disclosure. [Figure 14A]
[0024] 1 is a conceptual diagram illustrating an exemplary quad-tree binary tree (QTBT) structure. [Figure 14B] A conceptual diagram showing a corresponding coding tree unit (CTU). [Figure 15]
[0025] 1 is a block diagram illustrating an example video encoder that may implement the techniques of this disclosure. [Figure 16]
[0026] 1 is a block diagram illustrating an example video decoder that may implement the techniques of this disclosure. [Figure 17]
[0027] 1 is a flowchart illustrating an example method for encoding a current block. [Figure 18]
[0028] 4 is a flowchart illustrating an example method for decoding a current block of video data. [Figure 19]
[0029] 1 is a flowchart illustrating an example method for coding video data in accordance with one or more techniques of this disclosure. [Figure 20]
[0030] 1 is a flowchart illustrating an example method for coding a chroma block in accordance with one or more techniques of this disclosure. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0012]
[0031] Affine linear weighted intra prediction (ALWIP) is a form of intra prediction in which a prediction block is generated by downsampling a reference sample of a block, multiplying a vector of the downsampled reference samples by a matrix and adding a bias vector, mapping the resulting sample values to predetermined positions in the prediction block, and performing linear interpolation on the sample values in the prediction block to determine sample values for the remaining positions in the prediction block. The use of ALWIP may lead to better coding efficiency for some types of blocks, while normal intra prediction techniques may lead to better coding efficiency than ALWIP for other types of blocks. Thus, some blocks in a picture may be coded using ALWIP, and some blocks in a picture may be coded using normal intra prediction techniques, such as planar intra prediction mode, DC intra prediction mode, or directional intra prediction mode. Although the above example describes several steps for ALWIP, some implementations may choose to exclude one or more of the above steps, and other implementations may include other steps in the derivation process. However, the core concept in ALWIP is to multiply a vector of samples derived from a reference sample by a matrix (or equivalently).
[0013]
[0032] To improve efficiency of signaling intra-prediction modes (e.g., planar, DC, or directional intra-prediction modes), a video coder (e.g., a video encoder or video decoder) may perform an MPM derivation process that derives one or more most probable modes (MPMs) for a current block of video data. Each of the MPMs may be an intra-prediction mode. If an optimal intra-prediction mode for a current block is one of the MPMs, an index indicating one of the MPMs may be signaled in the bitstream. If an optimal intra-prediction mode for a current block is not one of the MPMs, an index indicating one of the non-MPM intra-prediction modes may be signaled. Because there are fewer MPMs than there are non-MPM intra-prediction modes, an index indicating an MPM may be coded using significantly fewer bits than an index indicating one of the non-MPM intra-prediction modes. Thus, use of an MPM derivation process may increase coding efficiency for some blocks.
[0014]
[0033] The video coder may derive the MPM based on the intra-prediction modes of blocks adjacent to the current block. For example, if the left adjacent block is coded using the DC intra-prediction mode, the video coder may determine that one of the MPMs is the DC intra-prediction mode. However, in the MPM derivation process, if one of the adjacent blocks is coded using ALWIP, the video coder implements a process using mapping data to map the ALWIP parameters of the adjacent block to one of the directional intra-prediction modes. The ALWIP parameters include a matrix coefficient and a bias vector. The video coder may then use the determined directional intra-prediction mode as one of the MPMs.
[0015]
[0034] Storing the mapping data increases the data storage requirements of the video encoder and the video decoder. The increased data storage requirements may increase the cost and complexity of the video encoder and the video decoder. Moreover, the lookup operation performed to use the mapping data takes time, which may slow down the encoding and decoding process. In addition, the prediction block generated using the intra-prediction mode determined using the mapping data is only an approximation of the prediction block that would be generated if the ALWIP parameters of the neighboring blocks were used. This approximation may reduce coding efficiency.
[0016]
[0035] Techniques of this disclosure may address one or more of these issues. For example, as described in the examples of this disclosure, a video coder (e.g., a video encoder or video decoder) may perform an MPM derivation process that derives one or more MPMs for a current block of video data. In this example, the current block is not coded using ALWIP. As part of performing the MPM derivation process, the video coder may determine whether a neighboring block of the current block is an ALWIP coded neighboring block. Based on the neighboring block being an ALWIP coded neighboring block, the video coder may determine that a value of an intra-prediction mode of the neighboring block is a default value, such as a value corresponding to a planar mode. Thus, the video coder may include an intra-prediction mode corresponding to the default value as one of the MPMs. The video coder may code the current block based on one of the MPMs for the current block.
[0017]
[0036] When a neighboring block is ALWIP coded, by using an intra-prediction mode corresponding to a default value as one of the MPMs, the video coder may avoid the need to store mapping data. Avoiding the need to store mapping data may reduce the data storage requirements of the video coder, which may reduce the cost and complexity of the video coder. Furthermore, avoiding the use of mapping data may accelerate the encoding and decoding process by avoiding the lookup operations involved in using mapping data.
[0018]
[0037] 1 is a block diagram illustrating an example video encoding and decoding system 100 that may implement the techniques of this disclosure. The techniques of this disclosure are generally directed to coding (encoding and / or decoding) video data. In general, video data includes any data for processing video. Thus, video data may include raw uncoded video, coded video, decoded (e.g., reconstructed) video, and video metadata, such as signaling data.
[0019]
[0038] 1, system 100 includes a source device 102 that provides encoded video data to be decoded and displayed by a destination device 116, in this example. In particular, source device 102 provides the video data to destination device 116 via a computer-readable medium 110. Source device 102 and destination device 116 may include any of a wide range of devices, including desktop computers, notebook (i.e., laptop) computers, set-top boxes, mobile devices such as telephone handsets (e.g., smartphones) and tablet computers, televisions, cameras, display devices, digital media players, video game consoles, video streaming devices, broadcast receiver devices, and the like. In some cases, source device 102 and destination device 116 may be equipped for wireless communication and thus may be referred to as wireless communication devices.
[0020]
[0039] In the example of FIG. 1, source device 102 includes a video source 104, memory 106, video encoder 200, and output interface 108. Destination device 116 includes an input interface 122, a video decoder 300, memory 120, and a display device 118. According to this disclosure, the video encoder 200 of source device 102 and the video decoder 300 of destination device 116 may be configured to apply techniques for performing intra prediction, including derivation and signaling of modes for linear weighted intra prediction. Thus, source device 102 represents an example of a video encoding device, while destination device 116 represents an example of a video decoding device. In other examples, source device and destination device may include other components or arrangements. For example, source device 102 may receive video data from an external video source, such as an external camera. Similarly, destination device 116 may interface with an external display device rather than including an integrated display device.
[0021]
[0040] The system 100 shown in FIG. 1 is only an example. In general, any digital video encoding and / or decoding device may implement techniques for performing intra prediction, including derivation and signaling of modes for linear weighted intra prediction. The source device 102 and the destination device 116 are only examples of coding devices, such that the source device 102 generates encoded video data for transmission to the destination device 116. This disclosure refers to a "coding" device as a device that performs coding (encoding and / or decoding) of data. Thus, the video encoder 200 and the video decoder 300 represent examples of coding devices, and in particular, video encoders and video decoders, respectively. In some examples, the source device 102 and the destination device 116 may operate substantially symmetrically, such that each of the source device 102 and the destination device 116 includes video encoding and decoding components. Thus, the system 100 may support one-way or two-way video transmission between the source device 102 and the destination device 116, for example, video streaming, video playback, video broadcasting, or video telephony.
[0022]
[0041] Generally, video source 104 represents a source of video data (i.e., raw, unencoded video data) and provides a continuous series of pictures (also called “frames”) of the video data to video encoder 200, which encodes the data for the pictures. Video source 104 of source device 102 may include a video capture device, such as a video camera, a video archive containing previously captured raw video, and / or a video feed interface for receiving video from a video content provider. As a further alternative, video source 104 may generate computer graphics-based data or a combination of live, archival, and computer-generated video as the source video. In each case, video encoder 200 encodes the captured, pre-captured, or computer-generated video data. Video encoder 200 may reorder the pictures from a received order (sometimes called a “display order”) into a coding order for coding. Video encoder 200 may generate a bitstream including the encoded video data. The source device 102 may then output the encoded video data via the output interface 108 onto a computer-readable medium 110, for receipt and / or retrieval by, for example, an input interface 122 of the destination device 116.
[0023]
[0042] The memory 106 of the source device 102 and the memory 120 of the destination device 116 represent general-purpose memories. In some examples, the memories 106, 120 may store raw video data, e.g., raw video from the video source 104 and raw decoded video data from the video decoder 300. Additionally or alternatively, the memories 106, 120 may store software instructions executable by, e.g., the video encoder 200 and the video decoder 300, respectively. Although the memories 106 and 120 are shown in this example as separate from the video encoder 200 and the video decoder 300, it should be understood that the video encoder 200 and the video decoder 300 may also include internal memories for functionally similar or equivalent purposes. Additionally, the memories 106, 120 may store encoded video data, e.g., the output from the video encoder 200 and the input to the video decoder 300. In some examples, portions of the memory 106, 120 may be allocated as one or more video buffers, for example, to store raw decoded and / or encoded video data.
[0024]
[0043] The computer-readable medium 110 may represent any type of medium or device capable of transporting encoded video data from the source device 102 to the destination device 116. In one example, the computer-readable medium 110 represents a communication medium for enabling the source device 102 to transmit encoded video data directly to the destination device 116 in real time, for example, via a radio frequency network or a computer-based network. The output interface 108 may modulate a transmission signal including the encoded video data, and the input interface 122 may demodulate a received transmission signal according to a communication standard such as a wireless communication protocol. The communication medium may include any wireless or wired communication medium, such as a radio frequency (RF) spectrum or one or more physical transmission lines. The communication medium may form part of a packet-based network such as a local area network, a wide area network, or a global network such as the Internet. The communication medium may include routers, switches, base stations, or any other equipment that may be useful to facilitate communication from the source device 102 to the destination device 116.
[0025]
[0044] In some examples, computer-readable medium 110 may include a storage device 112. Source device 102 may output encoded data from output interface 108 to storage device 112. Similarly, destination device 116 may access encoded data from storage device 112 via input interface 122. Storage device 112 may include any of a variety of distributed or locally accessed data storage media, such as a hard drive, Blu-ray disc, DVD, CD-ROM, flash memory, volatile or non-volatile memory, or any other suitable digital storage medium for storing encoded video data.
[0026]
[0045] In some examples, the computer-readable medium 110 may include a file server 114 or another intermediate storage device that may store the encoded video data generated by the source device 102. The source device 102 may output the encoded video data to the file server 114 or another intermediate storage device that may store the encoded video generated by the source device 102. The destination device 116 may access the stored video data from the file server 114 via streaming or download. The file server 114 may be any type of server device capable of storing encoded video data and transmitting the encoded video data to the destination device 116. The file server 114 may represent a web server (e.g., for a website), a file transfer protocol (FTP) server, a content delivery network device, or a network attached storage (NAS) device. The destination device 116 may access the encoded video data from the file server 114 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., a digital subscriber line (DSL), a cable modem, etc.), or a combination of both, that is suitable for accessing the encoded video data stored on the file server 114. The file server 114 and the input interface 122 may be configured to operate according to a streaming transmission protocol, a download transmission protocol, or a combination thereof.
[0027]
[0046] The output interface 108 and the input interface 122 may represent a wireless transmitter / receiver, a modem, a wired networking component (e.g., an Ethernet card), a wireless communication component operating according to any of the various IEEE 802.11 standards, or other physical components. In examples where the output interface 108 and the input interface 122 include wireless components, the output interface 108 and the input interface 122 may be configured to transfer data, such as encoded video data, according to a cellular communication standard, such as 4G, 4G-LTE (Long Term Evolution), LTE Advanced, 5G, etc. In some examples where the output interface 108 includes a wireless transmitter, the output interface 108 and the input interface 122 may be configured to transfer data, such as encoded video data, according to other wireless standards, such as the IEEE 802.11 specification, the IEEE 802.15 specification (e.g., ZigBee), the Bluetooth standard, etc. In some examples, the source device 102 and / or the destination device 116 may include respective system-on-chip (SoC) devices. For example, the source device 102 may include a SoC device for performing functions attributable to the video encoder 200 and / or the output interface 108, and the destination device 116 may include a SoC device for performing functions attributable to the video decoder 300 and / or the input interface 122.
[0028]
[0047] The techniques of this disclosure may be applied to video coding supporting any of a variety of multimedia applications, such as over-the-air television broadcast, cable television transmission, satellite television transmission, Internet streaming video transmission such as 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.
[0029]
[0048] The input interface 122 of the destination device 116 receives the encoded video bitstream from the computer-readable medium 110 (e.g., a communication medium, a storage device 112, a file server 114, etc.). The encoded video bitstream may include signaling information defined by the video encoder 200 that is also used by the video decoder 300, such as syntax elements having values that describe characteristics and / or processing of video blocks or other coded units (e.g., slices, pictures, groups of pictures, sequences, etc.). The display device 118 displays decoded pictures of the decoded video data to a user. The display device 118 may represent 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.
[0030]
[0049] 1, in some examples, the video encoder 200 and the video decoder 300 may each be integrated with an audio encoder and / or an audio decoder and may include an appropriate MUX-DEMUX unit, or other hardware and / or software, to process multiplexed streams that include both audio and video in a common data stream. Where applicable, the MUX-DEMUX unit may conform to the ITU H.223 multiplexer protocol or other protocols, such as the User Datagram Protocol (UDP).
[0031]
[0050] The video encoder 200 and the video decoder 300 may each be implemented as any of a variety of suitable encoder and / or decoder circuits, or any combination thereof, such as one or more microprocessors, digital signal processors (DSPs), application specific integrated circuits (ASICs), field programmable gate arrays (FPGAs), discrete logic, software, hardware, firmware, etc. When the techniques are implemented partially in software, the device may store the software's instructions on a suitable non-transitory computer-readable medium and execute the instructions in hardware using one or more processors to implement the techniques of this disclosure. Each of the video encoder 200 and the video decoder 300 may be included in one or more encoders or decoders, any of which may be incorporated as part of a combined encoder / decoder (CODEC) in the respective device. The device including the video encoder 200 and / or the video decoder 300 may include an integrated circuit, a microprocessor, and / or a wireless communication device such as a cellular phone.
[0032]
[0051] Video encoder 200 and video decoder 300 may operate according to a video coding standard, such as ITU-T H.265, also known as High Efficiency Video Coding (HEVC), or extensions thereof, such as multiview and / or scalable video coding extensions. Alternatively, video encoder 200 and video decoder 300 may operate according to other proprietary or industry standards, such as ITU-T H.266, also known as Joint Exploration Test Model (JEM), or Versatile Video Coding (VVC). A draft of the VVC standard is described in Bross et al., "Versatile Video Coding (Draft 4)," Joint Video Experts Team (JVET) of ITU-T SG 16 WP 3 and ISO / IEC JTC 1 / SC 29 / WG 11, 13th Meeting, Marrakech, Morocco, 9-18 January 2019, JVET-M1001 (hereafter "VVC WD4"). Another draft of the VVC standard is described in Bross et al., "Versatile Video Coding (Draft 5)," Joint Video Experts Team (JVET) of ITU-T SG 16 WP 3 and ISO / IEC JTC 1 / SC 29 / WG 11, 14th Meeting, Geneva, Switzerland, 19-27 March 2019, JVET-N1001-v5 (hereafter "VVC Draft 5"). The goal of VVC is to provide significant improvements in compression performance over the existing HEVC standard that will aid in the deployment of higher quality video services and emerging applications, such as 360° omnidirectional immersive multimedia and high dynamic range (HDR) video, although the techniques of this disclosure are not limited to any particular coding standard.
[0033]
[0052] In general, the video encoder 200 and the video decoder 300 may perform block-based coding of pictures. The term “block” generally refers to a structure that includes data to be processed (e.g., to be encoded, to be decoded, or to be otherwise used in the encoding and / or decoding process). For example, a block may include a two-dimensional matrix of samples of luminance and / or chrominance data. In general, the video encoder 200 and the video decoder 300 may code video data represented in a YUV (e.g., Y, Cb, Cr) format. That is, rather than coding red, green, and blue (RGB) data for a sample of a picture, the video encoder 200 and the video decoder 300 may code a luminance component and a chrominance component, where the chrominance component may include both red and blue hues of chrominance components. In some examples, the video encoder 200 converts received RGB format data into a YUV representation prior to encoding, and the video decoder 300 converts the YUV representation into the RGB format. Alternatively, pre-processing and post-processing units (not shown) may perform these transformations.
[0034]
[0053] This disclosure may generally refer to coding (e.g., encoding and decoding) a picture to include processes of encoding or decoding data of a picture. Similarly, this disclosure may refer to coding a block of a picture to include processes of encoding or decoding data of the block, e.g., predictive and / or residual coding. A coded video bitstream generally includes a series of values of syntax elements that represent coding decisions (e.g., coding modes) and partitioning of a picture into blocks. Thus, references to coding a picture or a block should be understood generally as coding the values of the syntax elements forming the picture or block.
[0035]
[0054] HEVC defines various blocks, including coding units (CUs), prediction units (PUs), and transform units (TUs). According to HEVC, a video coder (such as the video encoder 200) partitions coding tree units (CTUs) into CUs according to a quadtree structure. That is, the video coder partitions CTUs and CUs into four equal, non-overlapping squares, and each node of the quadtree has either zero or four child nodes. A node without children may be called a "leaf node", and a CU of such a leaf node may include one or more PUs and / or one or more TUs. The video coder may further partition PUs and TUs. For example, in HEVC, a residual quadtree (RQT) represents a partition of TUs. In HEVC, a PU represents inter-predicted data, while a TU represents residual data. An intra-predicted CU includes intra-prediction information, such as an intra-prediction mode indication.
[0036]
[0055] As another example, the video encoder 200 and the video decoder 300 may be configured to operate according to JEM or VVC. According to JEM or VVC, a video coder (such as the video encoder 200) partitions a picture into multiple CTUs. The video encoder 200 may partition the CTUs according to a tree structure, such as a quad-tree binary tree (QTBT) structure or a multi-type tree (MTT) structure. The QTBT structure eliminates the concept of multiple partition types, such as the separation between CUs, PUs, and TUs in HEVC. The QTBT structure includes two levels: a first level partitioned according to a quad-tree partition, and a second level partitioned according to a binary tree partition. The root node of the QTBT structure corresponds to a CTU. The leaf nodes of the binary tree correspond to coding units (CUs).
[0037]
[0056] In the MTT partition structure, blocks may be partitioned using quad-tree (QT) partitions, binary-tree (BT) partitions, and one or more types of ternary-tree (TT) partitions. Ternary-tree partitions are partitions in which a block is split into three sub-blocks. In some examples, ternary-tree partitions split a block into three sub-blocks without splitting the original block through the center. The partition types in the MTT (e.g., QT, BT, and TT) may be symmetric or asymmetric.
[0038]
[0057] In some examples, video encoder 200 and video decoder 300 may use a single QTBT or MTT structure to represent each of the luminance and chrominance components, and in other examples, video encoder 200 and video decoder 300 may use two or more QTBT or MTT structures, such as one QTBT / MTT structure for the luminance component and another QTBT / MTT structure for both chrominance components (or two QTBT / MTT structures for each chrominance component).
[0039]
[0058] Video encoder 200 and video decoder 300 may be configured to use quadtree partitioning, QTBT partitioning, MTT partitioning, or other partition structures. For purposes of explanation, the description of the techniques of this disclosure is presented with respect to QTBT partitioning. However, it should be understood that the techniques of this disclosure may also be applied to video coders configured to use quadtree partitioning, or other types of partitioning as well.
[0040]
[0059] In this disclosure, "NxN" and "N by N" may be used interchangeably to refer to the sample dimensions of a block (such as a CU or other video block) in terms of vertical and horizontal dimensions, e.g., 16x16 samples or 16 by 16 samples. Generally, a 16x16 CU has 16 samples in the vertical direction (y=16) and 16 samples in the horizontal direction (x=16). Similarly, an NxN CU has N samples in the vertical direction and N samples in the horizontal direction, where N represents a non-negative integer value. Samples in a CU may be arranged in rows and columns. Furthermore, a CU does not necessarily have to have the same number of samples in the horizontal direction as in the vertical direction. For example, a CU may include NxM samples, where M is not necessarily equal to N.
[0041]
[0060] The video encoder 200 encodes video data for a CU that represents prediction and / or residual information, as well as other information. The prediction information indicates how the CU should be predicted to form a predictive block for the CU. The residual information generally represents sample-by-sample differences between samples of the CU prior to encoding and the predictive block.
[0042]
[0061] To predict a CU, the video encoder 200 may form a predictive block for the CU generally through inter-prediction or intra-prediction. Inter-prediction generally refers to predicting a CU from data of one or more previously coded pictures, while intra-prediction generally refers to predicting a CU from previously coded data of the same picture. To perform inter-prediction, the video encoder 200 may generate a predictive block using one or more motion vectors. The video encoder 200 may generally perform a motion search to identify a reference block that closely matches the CU, for example, with respect to the difference between the CU and the reference block. The video encoder 200 may calculate a difference metric using a sum of absolute differences (SAD), sum of squared differences (SSD), mean absolute difference (MAD), mean squared difference (MSD), or other such difference calculation to determine whether the reference block closely matches the current CU. In some examples, the video encoder 200 may predict the current CU using unidirectional or bidirectional prediction.
[0043]
[0062] Some examples of JEM and VVC also provide an affine motion compensation mode, which may be considered an inter-prediction mode. In an affine motion compensation mode, video encoder 200 may determine two or more motion vectors that represent non-translational motion, such as zooming in or out, rotation, perspective motion, or other irregular motion types.
[0044]
[0063] To perform intra prediction, the video encoder 200 may select an intra prediction mode for generating a predictive block. Some examples of JEM and VVC provide 67 intra prediction modes, including various directional modes, as well as planar and DC modes. In general, the video encoder 200 selects an intra prediction mode that describes neighboring samples relative to a current block (e.g., a block of a CU) from which samples of the current block should be predicted. Such samples may generally be above, above and to the left, or to the left of the current block in the same picture as the current block, assuming that the video encoder 200 codes the CTUs and CUs in raster scan order (left to right, top to bottom).
[0045]
[0064] In general, a video coder, such as video encoder 200 or video decoder 300, may generate a predictive block using a planar mode as gradients estimated from neighboring samples. For example, in VVC WD4, a video coder may generate a predictive block using a planar intra-prediction mode as follows: 8.3.4.2.5 INTRA_PLANAR Intra Prediction Mode Specifications The inputs to this process are: - variable nTbW, which specifies the transformation block width; - variable nTbH, which specifies the transformation block height, - The adjacent samples p[x][y], where x=-1, y=-1..nTbH, and x=0..nTbW, y=-1. The output of this process is the predicted samples predSamples[x][y], where x=0..nTbW-1, y=0..nTbH-1. The variables nW and nH are derived as follows:
[0046]
number
[0047] The values of the predicted samples predSamples[x][y], where x=0..nTbW-1 and y=0..nTbH-1, are derived as follows:
[0048]
number
[0049]
[0065] Video encoder 200 encodes data representing a prediction mode for the current block. For example, in an inter prediction mode, video encoder 200 may encode data representing which of various available inter prediction modes is used, as well as motion information of the corresponding mode. For example, in unidirectional or bidirectional inter prediction, video encoder 200 may encode motion vectors using advanced motion vector prediction (AMVP) or merge mode. Video encoder 200 may use similar modes to encode motion vectors for affine motion compensation modes.
[0050]
[0066] Following prediction, such as intra- or inter-prediction, of a block, the video encoder 200 may calculate residual data for the block. The residual data, such as a residual block, represents sample-by-sample differences between the block and a predictive block for the block formed using a corresponding prediction mode. The video encoder 200 may apply one or more transforms to the residual block to produce transformed data in a transform domain rather than the sample domain. For example, the video encoder 200 may apply a discrete cosine transform (DCT), an integer transform, a wavelet transform, or a conceptually similar transform to the residual video data. Additionally, the video encoder 200 may apply a secondary transform following the first transform, such as a mode-dependent non-separable quadratic transform (MDNSST), a signal-dependent transform, a Karhunen-Loeve transform (KLT), etc. The video encoder 200 produces transform coefficients through application of the one or more transforms.
[0051]
[0067] Following any transformation to produce transform coefficients, as described above, the video encoder 200 may perform quantization of the transform coefficients. 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, providing further compression. By performing a quantization process, the video encoder 200 may reduce the bit depth associated with some or all of the transform coefficients. For example, the video encoder 200 may truncate an n-bit value to an m-bit value during quantization, where n is greater than m. In some examples, to perform quantization, the video encoder 200 may perform a bitwise right shift of the value to be quantized.
[0052]
[0068] Following quantization, the video encoder 200 may scan the transform coefficients to produce a one-dimensional vector from a two-dimensional matrix including the quantized transform coefficients. The scan may be designed to place higher energy (and therefore lower frequency) transform coefficients at the front of the vector and lower energy (and therefore higher frequency) transform coefficients at the rear of the vector. In some examples, the video encoder 200 may utilize a predefined scan order to scan the quantized transform coefficients to produce a serialized vector and then entropy code the quantized transform coefficients of the vector. In other examples, the video encoder 200 may perform an adaptive scan. After scanning the quantized transform coefficients to form the one-dimensional vector, the video encoder 200 may entropy code the one-dimensional vector, for example, according to context-adaptive binary arithmetic coding (CABAC). The video encoder 200 may also entropy code values of syntax elements describing metadata associated with the encoded video data for use by the video decoder 300 in decoding the video data. To implement CABAC, the video encoder 200 may assign a context within a context model to a symbol to be transmitted.
[0053]
[0069] As described above, video encoder 200 and video decoder 300 may apply CABAC encoding and decoding to values of syntax elements. To apply CABAC encoding to a syntax element, video encoder 200 may binarize the values of the syntax element to form a series of one or more bits called “bins”. In addition, video encoder 200 may identify a coding context, sometimes simply referred to as a “context”. The coding context may identify a probability of a bin having a particular value. For example, the coding context may indicate a probability of 0.7 of coding a bin with a value of 0 and a probability of 0.3 of coding a bin with a value of 1. After identifying the coding context, video encoder 200 may divide the interval into a lower sub-interval and an upper sub-interval. One of the sub-intervals may be associated with a value of 0 and the other sub-interval may be associated with a value of 1. The width of the sub-interval may be proportional to the probability indicated for the associated value by the identified coding context. If a bin of a syntax element has a value associated with a lower subinterval, the encoded value may be equal to the lower bound of the lower subinterval. If the same bin of a syntax element has a value associated with an upper subinterval, the encoded value may be equal to the lower bound of the upper subinterval. To encode the next bin of the syntax element, video encoder 200 may repeat these steps in an interval that is the subinterval associated with the value of the encoded bits. When video encoder 200 repeats these steps for the next bin, video encoder 200 may use a modified probability that is based on the identified coding context and the probability indicated by the actual value of the encoded bin.
[0054]
[0070] When the video decoder 300 performs CABAC decoding on the value of the syntax element, the video decoder 300 may identify a coding context. The video decoder 300 may then divide the interval into a lower sub-interval and an upper sub-interval. One of the sub-intervals may be associated with a value 0, and the other sub-interval may be associated with a value 1. The width of the sub-interval may be proportional to the probability indicated for the associated value by the identified coding context. If the encoded value is within the lower sub-interval, the video decoder 300 may decode a bin having a value associated with the lower sub-interval. If the encoded value is within the upper sub-interval, the video decoder 300 may decode a bin having a value associated with the upper sub-interval. To decode the next bin of the syntax element, the video decoder 300 may repeat these steps with the interval being the sub-interval containing the encoded value. When the video decoder 300 repeats these steps for the next bin, the video decoder 300 may use a modified probability based on the identified coding context and the probability indicated by the decoded bin. The video decoder 300 may then de-binarize the bins to recover the values of the syntax elements.
[0055]
[0071] In some instances, the video encoder 200 may use bypass CABAC coding to encode bins. Performing bypass CABAC coding on bins may be less computationally expensive than performing regular CABAC coding on bins. Furthermore, performing bypass CABAC coding may enable a higher degree of parallelization and throughput. Bins encoded using bypass CABAC coding may be referred to as "bypass bins." Grouping bypass bins together may increase the throughput of the video encoder 200 and the video decoder 300. The bypass CABAC coding engine may be capable of coding several bins in a single cycle, whereas a regular CABAC coding engine may be capable of coding only a single bin in a cycle. The bypass CABAC coding engine may be simpler because it does not select a context and may assume a 1 / 2 probability for both symbols (0 and 1). Thus, in bypass CABAC coding, an interval is directly split in half.
[0056]
[0072] Video encoder 200 may further generate syntax data, such as block-based syntax data, picture-based syntax data, and sequence-based syntax data, for example, in a picture header, a block header, a slice header, or other syntax data, such as a sequence parameter set (SPS), a picture parameter set (PPS), or a video parameter set (VPS). Video decoder 300 may similarly decode such syntax data to determine how to decode the corresponding video data.
[0057]
[0073] In this manner, video encoder 200 may generate a bitstream including encoded video data, e.g., syntax elements that describe partitions of a picture into blocks (e.g., CUs) as well as predictive and / or residual information for the blocks. Finally, video decoder 300 may receive the bitstream and decode the encoded video data.
[0058]
[0074] In general, the video decoder 300 performs an inverse process to that performed by the video encoder 200 to decode the encoded video data of the bitstream. For example, the video decoder 300 may decode values of syntax elements of the bitstream using CABAC in a manner that is inverse to, but substantially similar to, the CABAC encoding process of the video encoder 200. The syntax elements may define partition information for partitioning a picture into CTUs and partitions of each CTU according to a corresponding partition structure, such as a QTBT structure, to define CUs of the CTU. The syntax elements may further define prediction and residual information for blocks (e.g., CUs) of video data.
[0059]
[0075] The residual information may be represented, for example, by quantized transform coefficients. The video decoder 300 may dequantize and inverse transform the quantized transform coefficients of the block to reconstruct a residual block of the block. The video decoder 300 uses the signaled prediction mode (intra- or inter-prediction) and associated prediction information (e.g., motion information for inter-prediction) to form a predictive block of the block. The video decoder 300 may then combine (sample-by-sample) the predictive block and the residual block to reconstruct the original block. The video decoder 300 may perform additional processing, such as performing a deblocking process to reduce visual artifacts along block boundaries.
[0060]
[0076] Intra prediction involves a DC prediction mode, a planar prediction mode, and a directional (or angular) prediction mode. For a square block, the directional prediction, as shown in FIG. 2, uses the directions between -135 degrees and 45 degrees of the current block in the Versatile Video Coding Test Model 2 (VTM2) (J. Chen, Y. Ye, S. Kim, "Algorithm description for Versatile Video Coding and Test Mode 2 (VTM2)", the 11th JVET meeting, Ljubljana, Slovenia, July 2018, JVET-K1002). FIG. 2 is a block diagram showing an example of intra prediction where the arrow points to the reference sample.
[0061]
[0077] In VTM2, the block structure used to specify the prediction block for intra prediction is not limited to a square (width w = height h). Rectangular or non-square prediction blocks (w > h or w < h) can improve the coding efficiency based on the characteristics of the content.
[0062]
[0078] In such rectangular blocks, restricting the intra prediction direction to be within -135 degrees to 45 degrees can result in a situation where a farther reference sample rather than a nearer reference sample for intra prediction is used. Such a design may have an impact on the coding efficiency, and it is more beneficial to have a relaxed range of restrictions so that a nearer reference sample (beyond the -135 to 45 degree angle) can be used for prediction. An example of such a case is given in FIG. 3. FIG. 3 is a conceptual diagram of an example of an 8×4 rectangular block where, due to the restriction of the intra prediction direction to be within the range of -135 degrees to 45 degrees, a "nearer" reference sample (the dashed circle 502 in the upper right) is not used and a farther reference sample (the dashed circle 504 in the lower left) can be used. FIG. 4 is an illustration of a wide angle adopted in VTM2.
[0063]
[0079] During the 12th JVET meeting, the change in wide-angle intra prediction was adopted in VTM3 (L. Zhao, X. Zhao, S. Liu, X. Li, "CE3-related: Unification of angular intra prediction for square and non-square blocks", 12th JVET meeting, Macau SAR, China, October 2018, JVET-L0279; J. Chen, Y. Ye, S. Kim, "Algorithm description for Versatile Video Coding and Test Mode 3 (VTM3)", 12th JVET meeting, Macau SAR, China, October 2018, JVET-L1002; B. Bross, J. Chen, S. Liu, "Versatile Video Coding (Draft 3),” 12th JVET Meeting, Macau Special Administrative Region, China, October 2018, JVET-L1001 and (see JVET-L1001). This adoption includes two modifications to unify angular intra prediction for square and non-square blocks. First, the angular prediction direction is changed to cover the diagonal directions of all block shapes. Second, as shown in Figures 5A-5C, all angular directions are kept within the range between the bottom-left diagonal direction and the top-right diagonal direction for all block aspect ratios (square and non-square). Figures 5A, 5B, and 5C are diagrams of the mode mapping process for intra prediction modes outside the diagonal range. Figure 5A shows a square block, which does not require angular mode remapping. Figure 5B shows angular mode remapping for horizontal non-square blocks. Figure 5C shows angular mode remapping for vertical non-square blocks.
[0064]
[0080] In addition, the number of reference samples in the top reference row and left reference column is limited to 2*width+1 and 2*height+1 for all block shapes. An illustration of the wider angles employed in VTM3 is provided in FIG. 6. FIG. 6 is a conceptual diagram showing the wide angles (-1 to -14 and 67 to 80) in mode 2 and VVC Test Model 3 (VTM3) beyond 66 for a total of 93 angle modes. VTM3 defines 95 modes, but for any block size, only 67 modes are allowed. The exact modes allowed depend on the ratio of block width to height. This is done by restricting the mode range for some block sizes.
[0065]
[0081] Table 1 shown in FIG. 7 specifies a mapping table between intra prediction modes (predModeIntra) and angle parameters intraPredAngle in VTM3 (JVET-L1001). Non-square block diagonals and corresponding angle modes are underlined. Vertical and horizontal modes are italicized. Square block diagonal modes are underlined and italicized. The diagonal modes for a block have an angle equal to the angle for a straight line between the lower left and upper right corners of the block, or between the upper left and lower right corners of the block, respectively. In this disclosure, angle modes with positive intraPredAngle values are referred to as positive angle modes (mode index <18 or >50), while angle modes with negative intraPredAngle values are referred to as negative angle modes (mode index >18 and <50).
[0066]
[0082] The inverse angle parameter invAngle is derived based on intraPredAngle as follows:
[0067]
number
[0068]
[0083] Note that intraPredAngle values that are multiples of 32 (0, 32, 64, 128, 256, 512) correspond to predictions from non-partially referenced array samples, as in the VTM3 specification.
[0069]
[0084] Table 2 below shows diagonal modes (ie, diagonal intra prediction modes) for blocks having various aspect ratios.
[0070] [Table 1]
[0071]
[0085] Samples in the neighborhood of a coding block are used for intra prediction of the block. Typically, the reconstructed reference sample lines closest to the left and top boundaries of the coding block are used as reference samples for intra prediction. However, VVC WD4 also allows other samples in the neighborhood of the coding block to be used as reference samples. Figure 8 shows reference sample lines that may be used for intra prediction. In the example of Figure 8, the reference sample lines are shown using multiple reference line indexes (MRLIdx). For each coding block, an index indicating the reference line to be used is signaled.
[0072]
[0086] The value of the signaled index may be different from the MRLIdx indicated by the signaled index. For example, in VVC WD4, only reference lines with MRLIdx equal to 0, 1, and 3 may be used. In VVC WD4, the signaled index to the reference line used to code the block (values 0, 1, and 2, indicating lines with MRLIdx 0, 1, and 3, respectively) is coded using a shortened unary codeword. Planar mode and DC mode are not used when MRLIdx>0. In more recent versions of VVC, MRLIdx equal to 0, 1, and 2 may be used, and DC mode may be used when MRLIdx>0.
[0073]
[0087] To make the process of signaling intra-prediction modes more efficient, video encoder 200 and video decoder 300 may identify one or more intra-prediction modes as being the "most probable mode" (MPM) for a block. If the intra-prediction mode of the block is one of the MPMs for the block, an index into the MPM is signaled. If the intra-prediction mode of the block is not one of the MPMs for the block, an index into one of the non-MPM intra-prediction modes for the block may be signaled. Because there are typically many fewer MPMs for a block than non-MPM intra-prediction modes, the index into the MPM may be signaled using fewer bits than the index into the non-MPM intra-prediction modes. The following text from VVC WD4 in one example of a process for determining an intra-prediction mode that determines an MPM for a block:
[0074] The inputs to this process are:
[0075] A luma location (xCb, yCb) that specifies the top left sample of the current luma coding block relative to the top left luma sample of the current picture; A variable cbWidth that specifies the width of the current coding block in luma samples; Variable cbHeight that specifies the height of the current coding block in luma samples.
[0076] In this process, the luma intra prediction mode IntraPredModeY[xCb][yCb] is derived.
[0077] Table 8-1 specifies values and associated names for the intra prediction modes IntraPredModeY[xCb][yCb].
[0078] [Table 2]
[0079] IntraPredModeY[xCb][yCb] is derived by the following ordered steps:
[0080] The neighboring locations (xNbA, yNbA) and (xNbB, yNbB) are set equal to (xCb-1, yCb+cbHeight-1) and (xCb+cbWidth-1, yCb-1), respectively.
[0081] For X to be replaced by either A or B, the variable candIntraPredModeX is derived as follows:
[0082] The availability derivation process for the block as specified in Section 6.4.X [Ed.(BB): Pending Neighbor Block Availability Check Process] is invoked with input location (xCurr, yCurr) set equal to (xCb, yCb) and neighboring locations (xNbY, yNbY) set equal to (xNbX, yNbX), and the output is assigned to availableX.
[0083] The candidate intra-prediction mode candIntraPredModeX is derived as follows.
[0084] If one or more of the following conditions are true, candIntraPredModeX is set equal to INTRA_PLANAR.
[0085] The variable availableX is equal to FALSE.
[0086] CuPredMode[xNbX][yNbX] is not equal to MODE_INTRA and ciip_flag[xNbX][yNbX] is not equal to 1.
[0087] pcm_flag[xNbX][yNbX] is equal to 1.
[0088] X is equal to B and yCb - 1 is less than ((yCb >> CtbLog2SizeY) << CtbLog2SizeY).
[0089] Otherwise, candIntraPredModeX is set equal to IntraPredModeY[xNbX][yNbX].
[0090] The variables ispDefaultMode1 and ispDefaultMode2 are defined as follows.
[0091] If IntraSubPartitionsSplitType is equal to ISP_HOR_SPLIT, ispDefaultMode1 is set equal to INTRA_ANGULAR18 and ispDefaultMode2 is set equal to INTRA_ANGULAR5.
[0092] Otherwise, ispDefaultMode1 is set equal to INTRA_ANGULAR50 and ispDefaultMode2 is set equal to INTRA_ANGULAR63.
[0093] candModeList[x] where x = 0..5 is derived as follows.
[0094] If candIntraPredModeB is equal to candIntraPredModeA, which is greater than INTRA_DC, then candModeList[x], for x=0..5, is derived as follows:
[0095] If IntraLumaRefLineIdx[xCb][yCb] is equal to 0 and IntraSubPartitionsSplitType is equal to ISP_NO_SPLIT, the following applies:
[0096]
number
[0097] Otherwise (IntraLumaRefLineIdx[xCb][yCb] is not equal to 0 or IntraSubPartitionsSplitType is not equal to ISP_NO_SPLIT), the following applies:
[0098]
number
[0099] If one of the following conditions is true: IntraSubPartitionsSplitType is equal to ISP_HOR_SPLIT and candIntraPredModeA is less than INTRA_ANGULAR34; IntraSubPartitionsSplitType is equal to ISP_VER_SPLIT and candIntraPredModeA is greater than or equal to INTRA_ANGULAR34; IntraLumaRefLineIdx[xCb][yCb] is not equal to 0, The following applies:
[0100]
number
[0101] If not, the following applies:
[0102]
number
[0103] Otherwise, if candIntraPredModeB is not equal to candIntraPredModeA, and candIntraPredModeA or candIntraPredModeB is greater than INTRA_DC, the following applies:
[0104] The variables minAB and maxAM are derived as follows.
[0105]
number
[0106] If candIntraPredModeA and candIntraPredModeB are both greater than INTRA_DC, then candModeList[x], for x=0..5, is derived as follows:
[0107]
number
[0108] If IntraLumaRefLineIdx[xCb][yCb] is equal to 0 and IntraSubPartitionsSplitType is equal to ISP_NO_SPLIT, the following applies:
[0109]
number
[0110] If maxAB-minAB is in the range from 2 to 62, inclusive, the following applies:
[0111]
number
[0112] If not, the following applies:
[0113]
number
[0114] Otherwise (IntraLumaRefLineIdx[xCb][yCb] is not equal to 0 or IntraSubPartitionsSplitType is not equal to ISP_NO_SPLIT), the following applies:
[0115] When IntraSubPartitionsSplitType is not equal to ISP_NO_SPLIT and abs(candIntraPredModeB-ispDefaultMode1) is less than abs(candIntraPredModeA-ispDefaultMode1), the following applies:
[0116]
number
[0117] If maxAB-minAB is equal to 1, the following applies:
[0118]
number
[0119] Otherwise, if maxAB-minAB is equal to 2, then the following applies:
[0120]
number
[0121] Otherwise, if maxAB-minAB is greater than 61, the following applies:
[0122]
number
[0123] If not, the following applies:
[0124]
number
[0125] Otherwise (candIntraPredModeA or candIntraPredModeB is greater than INTRA_DC), candModeList[x], for x=0..5, is derived as follows:
[0126] If IntraLumaRefLineIdx[xCb][yCb] is equal to 0 and IntraSubPartitionsSplitType is equal to ISP_NO_SPLIT, the following applies:
[0127]
number
[0128] Otherwise, if IntraLumaRefLineIdx[xCb][yCb] is not equal to 0, the following applies:
[0129]
number
[0130] Otherwise (IntraSubPartitionsSplitType is not equal to ISP_NO_SPLIT), the following applies:
[0131]
number
[0132] If not, the following applies:
[0133] If IntraLumaRefLineIdx[xCb][yCb] is equal to 0 and IntraSubPartitionsSplitType is equal to ISP_NO_SPLIT, the following applies:
[0134]
number
[0135] Otherwise, if IntraLumaRefLineIdx[xCb][yCb] is not equal to 0, the following applies:
[0136]
number
[0137] Otherwise, if IntraSubPartitionsSplitType is equal to ISP_HOR_SPLIT, the following applies:
[0138]
number
[0139] Otherwise, if IntraSubPartitionsSplitType is equal to ISP_VER_SPLIT, the following applies:
[0140]
number
[0141] The IntraPredModeY[xCb][yCb] is derived by applying the following procedure.
[0142] If intra_luma_mpm_flag[xCb][yCb] is equal to 1, IntraPredModeY[xCb][yCb] is set equal to candModeList[intra_luma_mpm_idx[xCb][yCb]].
[0143] Otherwise, IntraPredModeY[xCb][yCb] is derived by applying the following ordered steps:
[0144] For i=0..4, and for each i,j=(i+1)..5, when candModeList[i] is greater than candModeList[j], both values are swapped as follows:
[0145]
number
[0146] IntraPredModeY[xCb][yCb] is derived by the following ordered steps:
[0147] IntraPredModeY[xCb][yCb] is set equal to intra_luma_mpm_remainder[xCb][yCb].
[0148] For i equal to 0 through 5, inclusive, when IntraPredModeY[xCb][yCb] is greater than or equal to candModeList[i], the value of IntraPredModeY[xCb][yCb] is incremented by 1.
[0149] The variable IntraPredModeY[x][y], where x=xCb..xCb+cbWidth-1 and y=yCb..yCb+cbHeight-1, is set equal to IntraPredModeY[xCb][yCb].
[0150]
[0088] Intra sub-partition coding (ISP) (see S. De Luxan Hernandez, V. George, J. Ma, T. Nguyen, H. Schwarz, D. Marpe, T. Wiegand (HHI), "CE3: Intra Sub-Partitions Coding Mode", JVET-M0102) is a method whereby a coding block is split into two or four sub-blocks. Each sub-block in the block is reconstructed in decoding order before the reconstruction of the subsequent sub-block in decoding order. In VVC WD4, ISP is applied only to luma coding blocks. The reference samples for ISP coded blocks are restricted to be from the reference line closest to the coding block (e.g., MRLIdx=0, as shown in Figure 8). Examples of splitting are shown in Figures 9 and 10.
[0151]
[0089] One bit is used to signal whether the coding block is split to the ISP, and the second bit is used to indicate the split type, i.e., horizontal or vertical. Based on the intra mode and split type used, two different classes of processing orders can be used, called normal order and reverse order. In the normal order, the first subsection to be processed contains the top-left sample of the CU and then continues downwards (horizontal split) or to the right (vertical split). On the other hand, the reverse processing order either starts with the subsection containing the bottom-left sample of the CU (horizontal split) and continues upwards, or starts with the subsection containing the top-right sample of the CU and continues to the left (vertical split).
[0152]
[0090] A variant of ISP that uses only the standard processing order is used in JVET WD4. Note that the terms subblock and subpartition are used interchangeably herein, and both refer to blocks obtained by partitioning a coding block using ISP.
[0153] Some syntax and semantics associated with ISP in JVET WD4 are shown below, with the relevant syntax being the tag<!----> ...<!--!--> It is surrounded by.
[0154] [Table 3]
[0155] [Table 4-1] [Table 4-2]
[0156] Coding Unit Semantics <!----> An intra_subpartitions_mode_flag[x0][y0] equal to 1 specifies that the current intra coding unit is partitioned into NumIntraSubPartitions[x0][y0] rectangular transform block subpartitions. An intra_subpartitions_mode_flag[x0][y0] equal to 0 specifies that the current intra coding unit is not partitioned into rectangular transform block subpartitions. When intra_subpartitions_mode_flag[x0][y0] is not present, intra_subpartitions_mode_flag[x0][y0] equal to 0 is inferred. The intra_subpartitions_split_flag[x0][y0] specifies whether the intra subpartition split type is horizontal or vertical. When intra_subpartitions_mode_flag[x0][y0] is not present, intra_subpartitions_mode_flag[x0][y0] is inferred to be equal to 0. The variable IntraSubPartitionsSplitType specifies the type of split used for the current luma coding block, as shown in Table 2-3. IntraSubPartitionsSplitType is derived as follows:
[0157] - if intra_subpartitions_mode_flag[x0][y0] is equal to 0, then IntraSubPartitionsSplitType is set equal to 0.
[0158] - Otherwise, IntraSubPartitionsSplitType is set equal to 1 + intra_subpartitions_split_flag[x0][y0].
[0159] [Table 5]
[0160] The variable NumIntraSubPartitions specifies the number of transform block subpartitions into which an intra-luma coding block is divided. NumIntraSubPartitions is derived as follows:
[0161] If IntraSubPartitionsSplitType is equal to ISP_NO_SPLIT, then NumIntraSubPartitions is set equal to 1.
[0162] Otherwise, if one of the following conditions is true, then NumIntraSubPartitions is set equal to 2:
[0163] - cbWidth equals 4 and cbHeight equals 8, - cbWidth equals 8 and cbHeight equals 4.
[0164] - Otherwise, NumIntraSubPartitions is set equal to 4.<!--!-->
[0092] Affine linear weighted intra prediction (ALWIP) (e.g., as described in J. Pfaff et al., "Affine linear weighted intra prediction (CE3-4.1, CE3-4.2)," Joint Video Experts Team (JVET) of ITU-T SG 16 WP 3 and ISO / IEC JTC 1 / SC 29 / WG 11, 14th Meeting: Geneva, Switzerland, March 19-27, 2019, document JVET-N0217 (hereinafter "JVET-N0217")) uses an affine linear weighted prediction model to generate a prediction of a block (i.e., a predicted block) from neighboring reference samples. The neighboring samples are first processed (e.g., in some cases, the neighboring samples are downsampled), and the processed (e.g., downsampled) samples are then used to derive (using the affine model) a set of reduced samples that resemble intermediate downsampled versions of the predicted samples. The final prediction is obtained by upsampling (if necessary) the intermediate values. ALWIP is sometimes called matrix intra prediction (MIP).
[0165] An illustration of the ALWIP process is given in FIG. 11. The ALWIP process of FIG. 11 may be implemented by the video encoder 200 and the video decoder 300. To obtain reduced boundary samples, the reference samples (also called boundary samples) of the block are downsampled. A vector representation of the boundary samples, bdry red But matrix A k and multiplied with a downsampled version of the predicted block, pred red To obtain the offset / bias term b k The final prediction is made by adding these predicted samples pred together with the boundary samples. red It is obtained by upsampling the matrix A k and the offset / bias vector b k is selected based on the mode value indicated for the block. k and the offset / bias vector b k This combination is sometimes referred to herein as the "ALWIP mode."
[0166]
[0094] The derivation of the intermediate predicted samples uses an affine linear weighting prediction model. Three types (i.e., ALWIP types) are defined, and the number of intermediate samples derived varies for each type as follows:
[0167] 1) 4x4 for a block size with width and height both equal to 4. In other words, there are 16 intermediate samples for a block having a size of 4x4.
[0168] 2) 8×8 for block sizes with width and height both less than or equal to 8 (i.e., 4×8, 8×4, and 8×8 blocks), except when both width and height are equal to 4. In other words, there are 64 intermediate samples for a block with size H×W, except when 4 <H≦8および4<W≦8、またはH=4および4<W≦8、またはW=4および4<H≦8である。
[0169] 3) 16×16 for blocks where at least one of the width and height is greater than 8. In other words, there are 256 intermediate samples for blocks having a size of H×W, where either H>8 or W>8. In each of these three cases, a different number of ALWIP modes is used, namely 35, 19, and 11, respectively. In other words, in ALWIP type 1, there are 35 different ALWIP modes available, in ALWIP type 2, there are 19 different ALWIP modes available, and in ALWIP type 3, there are 11 different ALWIP modes available. Each of the different ALWIP modes is represented by a matrix A. k and offset / bias value b k It may correspond to different combinations of
[0170]
[0095] ALWIP signaling includes the following:
[0171] a) A flag (alwip_flag) to indicate that the current block is coded using ALWIP.
[0172] b) When the current block is coded using ALWIP, another flag is signaled to indicate whether the current block is coded using ALWIP-Most Probable Mode (MPM) mode or not.
[0173] If the block is coded using ALWIP-MPM mode, then an MPM index is signaled. The derivation of ALWIP-MPM mode is described below in this disclosure.
[0174] b. Otherwise, an index to a remaining mode value is signaled, the remaining mode value indicating an ALWIP mode other than the ALWIP-MPM mode.
[0175]
[0096] alwip_flag is a coded context, with four contexts allowed.
[0176] - If block width > 2*height, or height > 2*width, context 3 is used.
[0177] Otherwise, the context ctxId is used, where ctxId is derived as follows:
[0178] ○ Initialize ctxId to 0.
[0179] o If the left adjacent block is coded with ALWIP, then ctxId++ (i.e., increment ctxId).
[0180] o ctxId++ if the upper adjacent block is coded with ALWIP.
[0181]
[0097] The derivation of the ALWIP MPM mode involves the following steps.
[0182] 1) LeftIntraMode and AboveIntraMode are initialized to -1.
[0183] 2) If the left neighboring block is intra-coded: a. If the left neighboring block is coded using ALWIP mode L (i.e., if the left neighboring block is coded using ALWIP, then the ALWIP mode of the left neighboring block shall be denoted as L): If iL is of the same ALWIP type as the current block, then LeftIntraMode is set equal to L.
[0184] b. Otherwise, if the left neighboring block is not coded using an ALWIP mode, then the intra mode of the left neighboring block is mapped to an ALWIP mode of the same type as the current block and assigned to LeftIntraMode.
[0185] 3) If the upper neighboring block is intra-coded: a. If the upper neighboring block is coded using ALWIP mode A (i.e., if the upper neighboring block is coded using ALWIP, then the ALWIP mode of the upper neighboring block shall be denoted as A): If iA is of the same ALWIP type as the current block, then AboveIntraMode is set equal to A.
[0186] b. Otherwise, if the upper neighboring block is not coded using an ALWIP mode, then the intra mode of the upper neighboring block is mapped to an ALWIP mode of the same type as the current block and assigned to AboveIntraMode.
[0187] 4) An MPM is then derived based on LeftIntraMode and AboveIntraMode. In other words, a first ALWIP-MPM is set equal to LeftIntraMode, and a second ALWIP-MPM is set equal to AboveIntraMode. If LeftIntraMode remains equal to -1 or AboveIntraMode remains equal to -1, the corresponding MPM is unavailable. In the remainder of this specification, blocks coded using ALWIP may be referred to as ALWIP coded blocks, or ALWIP blocks, and other blocks (e.g., blocks coded using regular intra prediction, intra subdivision, or multiple reference lines) may be referred to as non-ALWIP blocks.
[0188]
[0098] There are some problems in the design of ALWIP (i.e., MIP). For example, the context derivation of the flag (e.g., alwip_flag) indicating whether the current block is coded using the ALWIP mode uses the alwip_flag value from the left and upper neighboring blocks. The value of alwip_flag of the upper neighboring block is used even when the upper neighboring block belongs to a different CTU row. This results in additional storage requirements. For example, if r refers to the CTU boundary between the current CTU row and the previous CTU row, the alwip_flag of all blocks from the previous CTU row that share the boundary r needs to be stored. In the worst case scenario of 4x4 blocks in a 4K picture, the number of bytes required is 3840 / 4 (number of blocks) x 1 (value of bits per flag) = 120 bytes. Providing storage for the alwip_flag values of all blocks from the previous CTU row increases the memory storage requirements of the video encoder 200 and the video decoder 300, thereby potentially increasing the cost and complexity of the video encoder 200 and the video decoder 300.
[0189]
[0099] In another example of the problem with the design of ALWIP, there are 35 matrices / modes specified for 4x4 blocks. These 35 matrices / modes represent approximately 25% of the parameters required for ALWIP. The compression efficiency when enabling ALWIP 4x4 blocks was approximately 0.05%, and the storage required about 2KB (to store the 35 matrices and the offset / bias vectors). Thus, the storage burden in the encoder / decoder implementation is excessive for the efficiency gained. Figure 12 is a table showing the number of matrix parameters and offset parameters for each ALWIP type in VVC WD4.
[0190] During the most probable mode (MPM) derivation of a non-ALWIP block, the intra-modes used for the left and upper neighboring blocks are checked and used when available. For example, when deriving an ALWIP MPM mode, a video coder (e.g., video encoder 200 and video decoder 300) determines whether the left neighboring block is available, and if so, the video coder determines whether the left neighboring block is intra-coded, and if so, the video coder determines whether the left neighboring block is coded using the ALWIP mode. Similarly, the video coder also determines whether the upper neighboring block is available, and if so, the video coder determines whether the upper neighboring block is intra-coded, and if so, the video coder determines whether the upper neighboring block is coded using the ALWIP mode. For non-ALWIP blocks (i.e., blocks that are not coded using the ALWIP mode), the mode value corresponds to an angular intra-prediction mode or a planar / DC intra-prediction mode. Except for trivial cases, one set of matrix coefficients used in ALWIP (e.g., a set of matrix coefficients for an ALWIP mode) may not correspond to any of the intra-modes used in the non-ALWIP block. ALWIP currently uses a first mapping table to approximate the mapping of the ALWIP matrix to one of the intra-modes. This approximation is then taken as the intra-mode of the neighboring block to be used in the MPM derivation of the non-ALWIP block. In other words, when the left neighboring block is coded using a non-ALWIP intra-prediction mode, the video coder (e.g., video encoder 200 or video decoder 300) sets the first ALWIP-MPM to the approximation value for the left neighboring block. Similarly, when the upper neighboring block is coded using a non-ALWIP intra-prediction mode, the video coder sets the second ALWIP-MPM to the approximation value for the upper neighboring block. This may result in inefficient compression, for example, due to an error in the approximation.Moreover, the mapping table requires additional storage and adds lookup operations in the MPM derivation process. The additional storage increases the cost and complexity of the video encoder 200 and the video decoder 300. The additional lookup operations may slow down the encoding and decoding processes.
[0191]
[0101] This problem may also apply to chroma Direct Mode (DM) modes, where the intra mode used for a chroma block is copied from the collocated intra block. When a collocated intra block is ALWIP coded, a first mapping table is used to derive the chroma DM mode from the ALWIP block matrix / mode. In other words, a luma block collocated with a chroma block may be coded using an ALWIP mode, but the chroma block cannot be coded using any ALWIP mode. Thus, if a chroma block is to be coded using a chroma DM mode, where the intra prediction mode of the luma block is inherited by the chroma block, it may be necessary for the video coder (e.g., video encoder 200 or video decoder 300) to convert from the ALWIP mode of the luma block to a non-ALWIP intra prediction mode for use in the chroma block. This conversion is an approximation that may reduce coding efficiency. Furthermore, this conversion may require additional storage for the mapping table and may add lookup operations, which may increase the cost and complexity of the video coder and may slow down the encoding and decoding process.
[0192]
[0102] Similar to the example in the previous paragraph, during MPM derivation of an ALWIP block, the intra modes from the left and upper neighboring blocks are checked and used when available. When the neighboring blocks are non-ALWIP blocks, the intra modes of the non-ALWIP blocks may not correspond to the matrix / mode used by the ALWIP block. In other words, depending on the size of the current block and the intra modes of the upper or left neighboring blocks of the current block, the different ALWIP modes available for use with the current block may not correspond to any of the ALWIP modes available for use with the current block. Therefore, a second mapping table is used to map the intra modes of the non-ALWIP blocks to the matrix / modes of the ALWIP blocks. This may cause inefficiencies in compression. Moreover, the second mapping table requires additional storage and adds lookup operations in the MPM derivation process. If the neighboring block is coded using a combined intra / inter mode (CIIP), the neighboring block is considered (e.g., by the video encoder 200 and the video decoder 300) as a non-intra coded mode and is marked as unavailable. If the neighboring block is coded using an intra block copy mode (IBC), the block is considered as a non-intra coded mode and is marked as unavailable.
[0193]
[0103] This disclosure describes techniques that may improve the design of the ALWIP mode. The techniques of this disclosure may reduce the cost and complexity of a video coder, such as video encoder 200 and video decoder 300, and may increase the speed of the encoding and decoding process. The techniques and examples of this disclosure may be used by video encoder 200 and video decoder 300 individually or in any combination.
[0194] According to the first technique of this disclosure, when an upper neighboring block belongs to a different CTU than the current block (i.e., the block that the video coder (e.g., video encoder 200 or video decoder 300) is currently coding), the upper neighboring block is considered to be unavailable for derivation of a context for alwip_flag. For example, the derivation process of the context for alwip_flag may be modified as follows:<!----> ...<!--!--> The tag indicates the addition.
[0195] alwip_flag is a coded context where four contexts are allowed.
[0196] - If block width > 2*height, or height > 2*width, context 3 is used.
[0197] Otherwise, the context ctxId is used, where ctxId is derived as follows:
[0198] ○ Initialize ctxId to 0 o ctxId++ if the left adjacent block is coded using ALWIP.
[0199] The upper adjacent block is coded using ALWIP.<!----> , if the upper adjacent block is in the same CTU as the current block<!--!--> , ctxId++ Thus, in this example, video encoder 200 and video decoder 300 may avoid having to store data indicating whether blocks in CTU rows above the CTU row containing the current block are coded using ALWIP mode. Avoiding the need to store such data may reduce the cost and complexity of video encoder 200 and video decoder 300.
[0200]
[0105] In some examples, the value of alwip_flag from the CTU row above may be inferred to be equal to a particular value (e.g., 0) to derive the context of alwip_flag for the current block. In other words, the video encoder 200 and the video decoder 300 may assume that the alwip_flag values for the upper neighboring blocks in the CTU row above all have the same particular value. In this way, the video encoder 200 and the video decoder 300 may avoid the need to store data indicating whether the blocks in the CTU row above the CTU row containing the current block are coded using the ALWIP mode, with a resulting potential reduction in cost and complexity for the video encoder 200 and the video decoder 300.
[0201]
[0106] Thus, according to an example of the first technique of this disclosure, a video coder (e.g., video encoder 200 or video decoder 300) may determine a context for an ALWIP syntax element (e.g., alwip_flag). In this example, the ALWIP syntax element indicates whether the current block is coded using ALWIP. Further, in this example, it is determined that the upper neighboring block is unavailable for determining the context based on the upper neighboring block being in a different CTU from the current block, and the upper neighboring block is an above neighbor of the current block. In this example, the video coder may code the ALWIP syntax element based on the context. For example, the video coder may use the context in CABAC coding of the ALWIP syntax element.
[0202]
[0107] According to the second technique of the present disclosure, the width w T and height h TA constraint is introduced to disable ALWIP for blocks below a certain threshold of . In other words, a video coding standard (such as VVC) may impose a constraint that disables ALWIP for blocks with a width less than a threshold width or a height less than a threshold height. Thus, a video coding standard may impose a constraint that disables ALWIP for blocks with a width less than a threshold width or a height less than a threshold height. T Width less than h T The constraint may specify that blocks having a width less than 8 and a height less than 8 cannot be coded using ALWIP. For example, the constraint may specify that ALWIP is disabled for blocks with a width less than 8 and a height less than 8. In some examples, ALWIP-related syntax elements are adjusted based on such block size restrictions. As described above, e.g., with respect to FIG. 12, coding small blocks with ALWIP may result in high storage requirements but relatively modest gains in coding efficiency. Introducing this constraint may reduce the number of parameters that video encoder 200 and video decoder 300 may need to store to implement ALWIP, thereby potentially reducing the complexity and cost of video encoder 200 and video decoder 300. Thus, according to the second technique of this disclosure, a constraint may be imposed that disables ALWIP for blocks having a width less than a threshold width (e.g., 8) or a height less than a threshold height (e.g., 8).
[0203]
[0108] According to the third technique of the present disclosure, when an ALWIP coded neighboring block is considered / tested in the MPM derivation of a non-ALWIP coded block, the neighboring block may be considered unavailable (or inter-coded) and / or the value of the intra mode of such a neighboring block may be inferred to be a specific value (e.g., planar mode, DC mode, or another intra prediction mode) for the MPM derivation of the non-ALWIP coded block. For ease of explanation, the present disclosure may refer to the specific value as a default value. In this manner, the video encoder 200 and the video decoder 300 may avoid the need to store a mapping table and may avoid lookup operations to the mapping table to map the ALWIP mode to the non-ALWIP intra prediction mode. This may reduce the storage requirements of the video encoder 200 and the video decoder 300, which may reduce the cost and complexity of the video encoder 200 and the video decoder 300.
[0204]
[0109] Thus, according to a third technique of this disclosure, a video coder (e.g., video encoder 200 or video decoder 300) may perform an MPM derivation process that derives one or more MPMs for a current block that is not coded using ALWIP. As part of performing the MPM derivation process, the video coder may determine whether a neighboring block of the current block is an ALWIP coded neighboring block. Based on the neighboring block being an ALWIP coded neighboring block, the video coder may determine that a value of an intra prediction mode of the neighboring block is a default value. The video coder may then include as one of the one or more MPMs an intra prediction mode corresponding to the default value. If the neighboring block is not ALWIP coded, the video coder may determine that the one or more MPMs include the intra prediction mode of the neighboring block. The video coder may code (e.g., encode or decode) the current block based on one of the MPMs for the current block or based on another intra prediction mode.
[0205]
[0110] Furthermore, in some examples, when a chroma block is coded using a DM mode (i.e., the intra prediction mode of the chroma block is inherited from the co-located luma block) and the co-located luma block (or, more specifically, the luma block used to derive the DM mode of the chroma block) is coded using ALWIP, the intra mode of the co-located block may be determined, e.g., inferred, to be a default value (e.g., planar). In this manner, the video encoder 200 and the video decoder 300 may avoid the need to store a mapping table to map ALWIP modes to non-ALWIP intra prediction modes and may avoid lookup operations to the mapping table. This may reduce the storage requirements of the video encoder 200 and the video decoder 300, which may reduce the cost and complexity of the video encoder 200 and the video decoder 300.
[0206]
[0111] Thus, in some examples where a chroma block is coded using a DM mode, a video coder (e.g., video encoder 200 or video decoder 300) may determine whether a co-located luma block is coded using ALWIP, where the co-located luma block is co-located with a chroma block. Based on the co-located luma block being coded using ALWIP, the video coder may determine, e.g., infer, that an intra-prediction mode of the co-located luma block is a default value (e.g., planar mode), such as a planar mode or another intra-prediction mode. The video coder may code (e.g., encode or decode) the chroma block using the intra-prediction mode corresponding to the default value. For example, to code a chroma block using an intra-prediction mode corresponding to a default value, video encoder 200 may generate a predictive block using the intra-prediction mode. Video encoder 200 may then generate residual data for the chroma block based on samples of the chroma block and the predictive block. To decode a chroma block using an intra-prediction mode corresponding to a default value, the video decoder 300 may generate a predictive block using the intra-prediction mode. The video decoder 300 may then reconstruct the chroma block based on the predictive block and the residual data for the chroma block.
[0207]
[0112] According to the fourth technique of this disclosure, when a non-ALWIP neighboring block is used in the MPM derivation of an ALWIP block, the neighboring block may be considered unavailable (or inter-coded) and / or the neighboring mode value may be assigned to a default value for the MPM derivation of the ALWIP block. In other words, when determining an ALWIP-MPM for an ALWIP-coded block and the neighboring block is not coded using ALWIP, the video encoder 200 and the video decoder 300 may consider the neighboring block unavailable or may assume that the neighboring block has a default intra-prediction mode. This may avoid or reduce the need for the video encoder 200 and the video decoder 300 to store mapping data to convert a non-ALWIP directional intra-prediction mode to an ALWIP mode. Avoiding or reducing the need to store such mapping data may reduce the cost and complexity of the video encoder 200 and the video decoder 300.
[0208] In some examples, if a neighboring block is coded using a combined intra / inter mode (CIIP), the neighboring block may be considered available and assigned a planar mode, or another suitable non-ALWIP mode, for MPM derivation of the ALWIP block. Alternatively, the CIIP mode may be directly mapped to a suitable ALWIP mode to optimize coding efficiency benefits. The assignment may depend on the block dimensions, etc. If a neighboring block is coded using an intra block copy mode (IBC), the block may be considered available and assigned a planar mode, or another suitable non-ALWIP mode, for MPM derivation of the ALWIP block. Alternatively, the IBC mode may be directly mapped to a suitable ALWIP mode to optimize coding efficiency benefits. The assignment may depend on the block dimensions, etc. Mapping the CIIP and IBC modes directly (e.g., in a one-to-one relationship) to a particular mode, such as a planar mode, may avoid or reduce the need to store more complex mapping data. Avoiding or reducing the need to store more complex mapping data may reduce the cost and complexity of the video encoder 200 and the video decoder 300.
[0209] According to a fifth technique of this disclosure, a constraint may be introduced to disable ALWIP for blocks with a width-to-height ratio of 4 or 0.25. In other words, a video coding standard may specify that blocks with a width-to-height ratio of 4 or 0.25 may not be coded using ALWIP. Not coding blocks with such width-to-height ratios may reduce the number of ALWIP parameters that video encoder 200 and video decoder 300 may need to store, thereby potentially reducing the cost and complexity of video encoder 200 and video decoder 300.
[0210]
[0115] The MPM list derivation for ALWIP uses modes from neighboring blocks adjacent to the top right (e.g., immediately above the top right sample) and / or adjacent to the bottom left sample (e.g., immediately to the left of the bottom left sample) of the current block. In some examples, the neighboring locations used to derive the MPM for ALWIP are aligned with the neighboring locations used to derive the MPM for normal intra prediction. More generally, any one or more blocks in the vicinity of the current block may be used for MPM derivation for ALWIP. FIG. 13 is a conceptual diagram illustrating example neighboring blocks 550, 552 used to derive an ALWIP MPM for a current block 554, according to one or more techniques of this disclosure. In the example of FIG. 13, block A (550) is a block adjacent (above) to the top right sample of the current block 554. Block L (552) is a block adjacent (on the left) to the bottom left sample of the current block 554.
[0211] The following specification text from JVET-N0217 is edited to implement the techniques described with respect to the fourth technique of this disclosure. The changes are made to the tag<!----> ...<!--!--> As shown by: Assignment of modes to CIIP coded blocks for derivation of MPM of ALWIP blocks Derivation process for affine linear weighted intra prediction modes The inputs to this process are: - a luma location (xCb, yCb) that specifies the top-left sample of the current luma coding block relative to the top-left luma sample of the current picture; - a variable cbWidth that specifies the width of the current coding block in luma samples, - The variable cbHeight that specifies the height of the current coding block in luma samples.
[0212] In this process, an affine linear weighted intra prediction mode IntraPredModeY[xCb][yCb] is derived.
[0213] IntraPredModeY[xCb][yCb] is derived by the following ordered steps:
[0214] 1. The neighbor locations (xNbA, yNbA) and (xNbB, yNbB) are set equal to (xCb-1, yCb) and (xCb, yCb-1), respectively.
[0215] 2. For X to be replaced by either A or B, the variable candLwipModeX is derived as follows:
[0216] - The availability derivation process for the block as specified in Section 6.4.X [Ed.(BB): Pending Neighbor Block Availability Check Process] is invoked with input location (xCurr, yCurr) set equal to (xCb, yCb) and neighboring locations (xNbY, yNbY) set equal to (xNbX, yNbX) and the output is assigned to availableX.
[0217] A candidate affine linear weighted intra prediction mode candLwipModeX is derived as follows:
[0218] - candLwipModeX is set equal to -1 if one or more of the following conditions are true:
[0219] - The variable availableX is equal to FALSE.
[0220] - CuPredMode[xNbX][yNbX] is not equal to MODE_INTRA and ciip_flag[xNbX][yNbX] is not equal to 1.
[0221] - pcm_flag[xNbX][yNbX] is equal to 1.
[0222] - X is equal to B, and yCb - 1 is less than ((yCb >> CtbLog2SizeY) << CtbLog2SizeY).
[0223] - Otherwise, the following applies.
[0224] - A size type derivation process for a block as specified in Section 8.4.X.1 is called with the width cbWidth of the current coding block in the luma sample and the height cbHeight of the current coding block in the luma sample as inputs, and the output is assigned to the variable sizeId.
[0225] - If intra_lwip_flag[xNbX][yNbX] is equal to 1, a size type derivation process for a block as specified in Section 8.4.X.1 is called with the width nbWidthX of the adjacent coding block in the luma sample and the height nbHeightX of the adjacent coding block in the luma sample as inputs, and the output is assigned to the variable sizeIdX.
[0226] - If sizeId is equal to sizeIdX, candLwipModeX is set equal to IntraPredModeY[xNbX][yNbX].
[0227] - Otherwise, candLwipModeX is set equal to -1.
[0228] -<!---->Otherwise, if intra_lwip_flag[xNbX][yNbX] is equal to 0 and ciip_flag ciip_flag[xNbX][yNbX] is equal to 1, then IntraPredModeY[xNbX][yNbX] is set equal to INTRA_PLANAR and candLwipModeX is derived using IntraPredModeY[xNbX][yNbX] and sizeId as specified in Table 8-X1.<!--!--> - Otherwise, candLwipModeX is derived using IntraPredModeY[xNbX][yNbX] and sizeId as specified in Table 8-X1.
[0229] 3. candLwipModeList[x], for x=0..2, is derived using lwipMpmCand[sizeId] as specified in Table 8-X2 as follows:
[0230] - If candLwipModeA and candLwipModeB are both equal to -1, the following applies:
[0231]
number
[0232] - If not, the following applies:
[0233] - if candLwipModeA is equal to candLwipModeB, or if either candLwipModeA or candLwipModeB is equal to -1, the following applies:
[0234]
number
[0235] - If candLwipModeList[0] is equal to lwipMpmCand[sizeId][0], the following applies:
[0236]
number
[0237] - If not, the following applies:
[0238]
number
[0239] - If not, the following applies:
[0240]
number
[0241] - If candLwipModeA and candLwipModeB are not both equal to lwipMpmCand[sizeId][0], the following applies:
[0242]
number
[0243] - If not, the following applies:
[0244] - If candLwipModeA and candLwipModeB are not both equal to lwipMpmCand[sizeId][1], the following applies:
[0245]
number
[0246] - If not, the following applies:
[0247]
number
[0248] 4. IntraPredModeY[xCb][yCb] is derived by applying the following steps:
[0249] - if intra_lwip_mpm_flag[xCb][yCb] is equal to 1, IntraPredModeY[xCb][yCb] is set equal to candLwipModeList[intra_lwip_mpm_idx[xCb][yCb]].
[0250] - Otherwise, IntraPredModeY[xCb][yCb] is derived by applying the following ordered steps:
[0251] 1. For i=0..1, and for each i,j=(i+1)..2, when candLwipModeList[i] is greater than candLwipModeList[j], both values are swapped as follows:
[0252]
number
[0253] 2. IntraPredModeY[xCb][yCb] is derived by the following ordered steps:
[0254] i. IntraPredModeY[xCb][yCb] is set equal to intra_lwip_mpm_remainder[xCb][yCb].
[0255] ii. For i equal to 0 to 2, inclusive, when IntraPredModeY[xCb][yCb] is greater than or equal to candLwipModeList[i], the value of IntraPredModeY[xCb][yCb] is incremented by 1.
[0256] The variable IntraPredModeY[x][y], where x=xCb..xCb+cbWidth-1 and y=yCb..yCb+cbHeight-1, is set equal to IntraPredModeY[xCb][yCb]. 8.4.X.1 Derivation process for predicted block size types The inputs to this process are: - a variable cbWidth that specifies the width of the current coding block in luma samples, - The variable cbHeight that specifies the height of the current coding block in luma samples.
[0257] The output of this process is the variable sizeId.
[0258] The variable sizeId is derived as follows: - If both cbWidth and cbHeight are equal to 4, sizeId is set equal to 0. - Otherwise, if both cbWidth and cbHeight are less than or equal to 8, then sizeId is set equal to 1. - Otherwise, sizeId is set equal to 2.
[0259] [Table 6]
[0260] [Table 7]
[0261]
[0117] An exemplary modification to the specification text of JVET-N0217 to implement the fifth technique of this disclosure is as follows:<!----> ...<!--!--> Shown with the tag. Derivation process for affine linear weighted intra prediction modes The inputs to this process are: - a luma location (xCb, yCb) that specifies the top-left sample of the current luma coding block relative to the top-left luma sample of the current picture; - a variable cbWidth that specifies the width of the current coding block in luma samples, - The variable cbHeight that specifies the height of the current coding block in luma samples.
[0262] In this process, an affine linear weighted intra prediction mode IntraPredModeY[xCb][yCb] is derived.
[0263] IntraPredModeY[xCb][yCb] is derived by the following ordered steps:
[0264] 1. The adjacent locations (xNbA, yNbA) and (xNbB, yNbB) are (xCb-1, yCb<!----> +cbHeight-1<!--!--> ) and (xCb<!----> +cbWidth-1<!--!--> ,yCb-1).
[0265] 2. For X to be replaced by either A or B, the variable candLwipModeX is derived as follows:
[0266] - The availability derivation process for blocks, as specified in Section 6.4.X [Ed.(BB): Undetermined adjacent block availability check process], is called with the location (xCurr, yCurr) set equal to (xCb, yCb) and the adjacent location (xNbY, yNbY) set equal to (xNbX, yNbX), and the output is assigned to availableX.
[0267] - The candidate affine linear weighted intra prediction mode candLwipModeX is derived as follows.
[0268] - If one or more of the following conditions are true, candLwipModeX is set equal to -1.
[0269] - The variable availableX is equal to FALSE.
[0270] - CuPredMode[xNbX][yNbX] is not equal to MODE_INTRA and ciip_flag[xNbX][yNbX] is not equal to 1.
[0271] - pcm_flag[xNbX][yNbX] is equal to 1.
[0272] - X is equal to B and yCb - 1 is less than ((yCb >> CtbLog2SizeY) << CtbLog2SizeY).
[0273] - Otherwise, the following applies.
[0274] - The size type derivation process for blocks, as specified in Section 8.4.X.1, is called with the width cbWidth of the current coding block in the luma samples and the height cbHeight of the current coding block in the luma samples, and the output is assigned to the variable sizeId.
[0275] - If intra_lwip_flag[xNbX][yNbX] is equal to 1, then the size type derivation process for the block, as specified in section 8.4.X.1, is called with the width nbWidthX of the neighboring coding block in luma samples and the height nbHeightX of the neighboring coding block in luma samples as input, and the output is assigned to the variable sizeIdX.
[0276] - If sizeId is equal to sizeIdX, candLwipModeX is set equal to IntraPredModeY[xNbX][yNbX].
[0277] - Otherwise, candLwipModeX is set equal to -1.
[0278] - Otherwise, candLwipModeX is derived using IntraPredModeY[xNbX][yNbX] and sizeId as specified in Table 8-X1.
[0279] 3. candLwipModeList[x], where x=0..2, is derived using lwipMpmCand[sizeId] as specified in Table 8-X2 as follows:
[0280] - If candLwipModeA and candLwipModeB are both equal to -1, the following applies:
[0281]
number
[0282] - If not, the following applies:
[0283] - if candLwipModeA is equal to candLwipModeB, or if either candLwipModeA or candLwipModeB is equal to -1, the following applies:
[0284]
number
[0285] - If candLwipModeList[0] is equal to lwipMpmCand[sizeId][0], the following applies:
[0286]
number
[0287] - If not, the following applies:
[0288]
number
[0289] - If not, the following applies:
[0290]
number
[0291] - If candLwipModeA and candLwipModeB are not both equal to lwipMpmCand[sizeId][0], the following applies:
[0292]
number
[0293] - If not, the following applies:
[0294] - If candLwipModeA and candLwipModeB are not both equal to lwipMpmCand[sizeId][1], the following applies:
[0295]
number
[0296] - If not, the following applies:
[0297]
number
[0298] 4. IntraPredModeY[xCb][yCb] is derived by applying the following steps:
[0299] - if intra_lwip_mpm_flag[xCb][yCb] is equal to 1, IntraPredModeY[xCb][yCb] is set equal to candLwipModeList[intra_lwip_mpm_idx[xCb][yCb]].
[0300] - Otherwise, IntraPredModeY[xCb][yCb] is derived by applying the following ordered steps:
[0301] 1. For i=0..1, and for each i,j=(i+1)..2, when candLwipModeList[i] is greater than candLwipModeList[j], both values are swapped as follows:
[0302]
number
[0303] 2. IntraPredModeY[xCb][yCb] is derived by the following ordered steps:
[0304] i. IntraPredModeY[xCb][yCb] is set equal to intra_lwip_mpm_remainder[xCb][yCb].
[0305] ii. For i equal to 0 to 2, inclusive, when IntraPredModeY[xCb][yCb] is greater than or equal to candLwipModeList[i], the value of IntraPredModeY[xCb][yCb] is incremented by 1.
[0306] The variable IntraPredModeY[x][y], where x=xCb..xCb+cbWidth-1 and y=yCb..yCb+cbHeight-1, is set equal to IntraPredModeY[xCb][yCb].
[0307] [Table 8]
[0308] [Table 9]
[0309] This disclosure may generally refer to "signaling" certain information, such as a syntax element. The term "signaling" may generally refer to communication of values of syntax elements and / or other data used to decode encoded video data. That is, video encoder 200 may signal values of syntax elements in a bitstream. Generally, signaling refers to generating values in the bitstream. As described above, source device 102 may transport the bitstream to destination device 116 in substantially real-time or may transport the bitstream to destination device 116 in non-real-time, such as may occur when storing syntax elements in storage device 112 for later retrieval by destination device 116.
[0310] 14A and 14B are conceptual diagrams illustrating an exemplary quad-tree bi-tree (QTBT) structure 130 and a corresponding coding tree unit (CTU) 132. Solid lines represent quad-tree splitting, and dotted lines indicate bi-tree splitting. At each split (i.e., non-leaf) node of the bi-tree, one flag is signaled to indicate which splitting type (i.e., horizontal or vertical) is used, where in this example, 0 indicates horizontal splitting and 1 indicates vertical splitting. In the case of quad-tree splitting, the quad-tree node does not need to indicate the splitting type, since it splits the block horizontally and vertically into four sub-blocks of equal size. Thus, video encoder 200 may encode, and video decoder 300 may decode, syntax elements (e.g., solid lines) (e.g., splitting information) for the region tree level (i.e., first level) of QTBT structure 130 and syntax elements (e.g., dashed lines) (e.g., splitting information) for the prediction tree level (i.e., second level) of QTBT structure 130. Video encoder 200 may encode, and video decoder 300 may decode, video data, such as prediction and transform data, for CUs represented by terminal leaf nodes of QTBT structure 130.
[0311]
[0120] In general, the CTU 132 of Fig. 14B may be associated with parameters that define the sizes of blocks corresponding to nodes of the QTBT structure 130 at the first and second levels. These parameters may include a CTU size (representing the size of the CTU 132 in samples), a minimum quadtree size (representing the minimum allowed quadtree leaf node size, MinQTSize), a maximum bi-tree size (representing the maximum allowed bi-tree root node size, MaxBTSize), a maximum bi-tree depth (representing the maximum allowed bi-tree depth, MaxBTDepth), and a minimum bi-tree size (representing the minimum allowed bi-tree leaf node size, MinBTSize).
[0312]
[0121] The root node of the QTBT structure corresponding to the CTU may have four child nodes at the first level of the QTBT structure, each of which may be partitioned according to a quadtree partition. That is, the nodes at the first level are either leaf nodes (without child nodes) or have four child nodes. The example of the QTBT structure 130 represents such nodes as including parent nodes and child nodes with solid lines for branching. The nodes at the first level may be further partitioned by their respective binary trees if they are not larger than the maximum allowed binary tree root node size (MaxBTSize). The binary tree splitting of one node may be repeated until the node resulting from the split reaches the minimum allowed binary tree leaf node size (MinBTSize) or the maximum allowed binary tree depth (MaxBTDepth). The example of the QTBT structure 130 represents such nodes as including dashed lines for branching. The binary tree leaf nodes are called coding units (CUs), which are used for prediction (e.g., intra-picture or inter-picture prediction) and transformation without further partitioning. As described above, CUs are sometimes called "video blocks" or "blocks."
[0313] In one example of a QTBT partitioning structure, the CTU size is set as 128×128 (luma samples and two corresponding 64×64 chroma samples), MinQTSize is set as 16×16, MaxBTSize is set as 64×64, MinBTSize is set as 4 (for both width and height), and MaxBTDepth is set as 4. To generate a quadtree leaf node, first a quadtree partitioning is applied to the CTU. The quadtree leaf node may have a size from 16×16 (i.e., MinQTSize) to 128×128 (i.e., CTU size). If the quadtree leaf node is 128×128, it is not further split by the binary tree because the size exceeds MaxBTSize (i.e., 64×64 in this example). Otherwise, the quadtree leaf node is further partitioned by the binary tree. Therefore, the quadtree leaf node is also the root node for the binary tree and has the binary tree depth as 0. When the binary tree depth reaches MaxBTDepth (4 in this example), no further splitting is allowed. When a binary tree node has a width equal to MinBTSize (4 in this example), it implies that no further vertical splitting is allowed. Similarly, a binary tree node with a height equal to MinBTSize implies that no further horizontal splitting is allowed for that binary tree node. As mentioned above, the leaf nodes of the binary tree are called CUs and are further processed according to the prediction and transformation without further partitioning.
[0314]
[0123] Figure 15 is a block diagram illustrating an example video encoder 200 that may implement the techniques of this disclosure. Figure 15 is provided for illustrative purposes and should not be considered as limiting the techniques broadly illustrated and described in this disclosure. For illustrative purposes, this disclosure describes the video encoder 200 in the context of video coding standards such as the HEVC video coding standard and the developing H.266 video coding standard. However, the techniques of this disclosure are not limited to these video coding standards and are generally applicable to video encoding and decoding.
[0315] In the example of Figure 15, the video encoder 200 includes a video data memory 230, a mode selection unit 202, a residual generation unit 204, a transform processing unit 206, a quantization unit 208, an inverse quantization unit 210, an inverse transform processing unit 212, a reconstruction unit 214, a filter unit 216, a decoded picture buffer (DPB) 218, and an entropy coding unit 220. Any or all of the video data memory 230, the mode selection unit 202, the residual generation unit 204, the transform processing unit 206, the quantization unit 208, the inverse quantization unit 210, the inverse transform processing unit 212, the reconstruction unit 214, the filter unit 216, the DPB 218, and the entropy coding unit 220 may be implemented in one or more processors or processing circuits. Moreover, the video encoder 200 may include additional or alternative processors or processing circuits for performing these and other functions.
[0316]
[0125] The video data memory 230 may store video data to be encoded by components of the video encoder 200. The video encoder 200 may receive video data stored in the video data memory 230, for example, from the video source 104 (FIG. 1). The DPB 218 may act as a reference picture memory that stores reference video data for use in predicting subsequent video data by the video encoder 200. The video data memory 230 and the DPB 218 may be formed by any of a variety of memory devices, such as dynamic random access memory (DRAM), including synchronous DRAM (SDRAM), magnetoresistive RAM (MRAM), resistive RAM (RRAM), or other types of memory devices. The video data memory 230 and the DPB 218 may be provided by the same memory device or separate memory devices. In various examples, the video data memory 230 may be on-chip with other components of the video encoder 200, as shown, or off-chip relative to those components.
[0317] In this disclosure, references to video data memory 230 should not be construed as limited to memory internal to video encoder 200 unless specifically so described, or to memory external to video encoder 200 unless specifically so described. Instead, references to video data memory 230 should be understood as a reference memory that stores video data that video encoder 200 receives for encoding (e.g., video data of a current block to be encoded). Memory 106 of FIG. 1 may also provide temporary storage of outputs from various units of video encoder 200.
[0318]
[0127] The various units in FIG. 15 are shown to aid in understanding the operations performed by the video encoder 200. The units may be implemented as fixed-function circuits, programmable circuits, or a combination thereof. A fixed-function circuit refers to a circuit that provides a specific function and is pre-configured with respect to the operations that may be performed. A programmable circuit refers to a circuit that may be programmed to perform various tasks and provide flexible functionality in the operations that may be performed. For example, a programmable circuit may execute software or firmware that causes the programmable circuit to operate in a manner defined by the software or firmware instructions. A fixed-function circuit may execute software instructions (e.g., to receive parameters or output parameters), but the type of operations that the fixed-function circuit performs is generally invariant. In some examples, one or more of the units may be separate circuit blocks (fixed function or programmable), and in some examples, one or more of the units may be integrated circuits.
[0319]
[0128] The video encoder 200 may include an arithmetic logic unit (ALU), an elementary function unit (EFU), a digital circuit, an analog circuit, and / or a programmable core formed from a programmable circuit. In examples in which the operation of the video encoder 200 is implemented using software executed by a programmable circuit, the memory 106 (FIG. 1) may store object code of the software that the video encoder 200 receives and executes, or another memory (not shown) within the video encoder 200 may store such instructions.
[0320]
[0129] The video data memory 230 is configured to store the received video data. The video encoder 200 may retrieve pictures of the video data from the video data memory 230 and provide the video data to the residual generation unit 204 and the mode selection unit 202. The video data in the video data memory 230 may be raw video data to be encoded.
[0321]
[0130] The mode selection unit 202 includes a motion estimation unit 222, a motion compensation unit 224, and an intra prediction unit 226. The mode selection unit 202 may include additional functional units for performing video prediction according to other prediction modes. As an example, the mode selection unit 202 may include a palette unit, an intra block copy unit (which may be part of the motion estimation unit 222 and / or the motion compensation unit 224), an affine unit, a linear model (LM) unit, etc. For example, in the example of FIG. 15, the intra prediction unit 226 includes an ALWIP unit 227 configured to perform ALWIP.
[0322]
[0131] The mode selection unit 202 generally coordinates multiple encoding passes to test combinations of encoding parameters and the resulting rate-distortion values for such combinations. The encoding parameters may include partitioning of CTUs into CUs, prediction modes for CUs, transform types for residual data of CUs, quantization parameters for residual data of CUs, etc. The mode selection unit 202 may finally select a combination of encoding parameters that has a rate-distortion value that is better than other tested combinations.
[0323]
[0132] The video encoder 200 may partition a picture retrieved from the video data memory 230 into a series of CTUs and encapsulate one or more CTUs in a slice. The mode selection unit 202 may partition the CTUs of the picture according to a tree structure, such as the QTBT structure or quadtree structure of HEVC described above. As described above, the video encoder 200 may form one or more CUs from partitioning the CTUs according to the tree structure. Such a CU may also be generally referred to as a "video block" or a "block."
[0324]
[0133] In general, the mode selection unit 202 also controls its components (e.g., the motion estimation unit 222, the motion compensation unit 224, and the intra prediction unit 226) to generate a prediction block for a current block (e.g., the current CU, or in HEVC, the overlapping portion of the PU and TU). For inter prediction of the current block, the motion estimation unit 222 may perform motion search to identify one or more closely matching reference blocks in one or more reference pictures (e.g., one or more previously coded pictures stored in the DPB 218). In particular, the motion estimation unit 222 may calculate a value representing how similar a potential reference block is to the current block according to, for example, a sum of absolute differences (SAD), a sum of squared differences (SSD), a mean absolute difference (MAD), a mean squared difference (MSD), etc. The motion estimation unit 222 may generally perform these calculations using a sample-by-sample difference between the current block and the reference block under consideration. Motion estimation unit 222 may identify the reference block having the lowest value resulting from these calculations, which indicates the reference block that most closely matches the current block.
[0325]
[0134] The motion estimation unit 222 may form one or more motion vectors (MVs) that define the position of a reference block in a reference picture relative to the position of a current block in a current picture. The motion estimation unit 222 may then provide the motion vectors to the motion compensation unit 224. For example, in unidirectional inter prediction, the motion estimation unit 222 may provide a single motion vector, while in bidirectional inter prediction, the motion estimation unit 222 may provide two motion vectors. The motion compensation unit 224 may then use the motion vectors to generate a predictive block. For example, the motion compensation unit 224 may use the motion vectors to retrieve data of a reference block. As another example, if the motion vector has partial sample accuracy, the motion compensation unit 224 may interpolate values for the predictive block according to one or more interpolation filters. Moreover, in bidirectional inter prediction, the motion compensation unit 224 may retrieve data for two reference blocks identified by the respective motion vectors and combine the retrieved data, for example, through sample-wise averaging or weighted averaging.
[0326]
[0135] As another example, for intra prediction, or intra predictive coding, the intra prediction unit 226 may generate a predictive block from samples adjacent to a current block. For example, in a directional mode, the intra prediction unit 226 may generally mathematically combine values of adjacent samples to produce a predictive block, and populate these calculated values in a prescribed direction across the current block. As another example, in a DC mode, the intra prediction unit 226 may calculate the average of the adjacent samples for the current block, and generate a predictive block to include this obtained average for each sample of the predictive block.
[0327]
[0136] According to an example of the third technique of this disclosure, the intra prediction unit 226 may perform an MPM derivation process to derive one or more MPMs for a current block of video data. In this example, the current block is not coded using ALWIP. As part of performing the MPM derivation process, the intra prediction unit 226 may determine whether a neighboring block of the current block is an ALWIP coded neighboring block. Based on the neighboring block being an ALWIP coded neighboring block, the intra prediction unit 226 may determine that a value of an intra prediction mode of the neighboring block is a default value, such as a value corresponding to a planar mode. The intra prediction unit 226 may include an intra prediction mode corresponding to the default value as one of the one or more MPMs. The video encoder 200 may encode the current block based on one of the MPMs for the current block, or another intra prediction mode. For example, as part of the video encoder 200 encoding the current block, the intra prediction unit 226 may use one of the MPMs, or another intra prediction mode, to generate a predictive block for the current block.
[0328]
[0137] The mode selection unit 202 provides the prediction block to the residual generation unit 204. The residual generation unit 204 receives a raw uncoded version of the current block from the video data memory 230 and receives the prediction block from the mode selection unit 202. The residual generation unit 204 calculates sample-by-sample differences between the current block and the prediction block. The resulting sample-by-sample differences define a residual block for the current block. In some examples, the residual generation unit 204 may also determine differences between sample values in the residual block to generate the residual block using residual differential pulse code modulation (RDPCM). In some examples, the residual generation unit 204 may be formed using one or more subtractor circuits that perform binary subtraction.
[0329]
[0138] In an example where the mode selection unit 202 partitions a CU into PUs, each PU may be associated with a luma PU and a corresponding chroma PU. The video encoder 200 and the video decoder 300 may support PUs having various sizes. As indicated above, the size of a CU may refer to the size of the luma coding block of the CU, and the size of a PU may refer to the size of the luma prediction unit of the PU. Assuming that the size of a particular CU is 2N×2N, the video encoder 200 may support a PU size of 2N×2N or N×N for intra prediction, and a symmetric PU size of 2N×2N, 2N×N, N×2N, N×N, or the like for inter prediction. The video encoder 200 and the video decoder 300 may also support asymmetric partitioning of PU sizes of 2N×nU, 2N×nD, nL×2N, and nR×2N for inter prediction.
[0330]
[0139] In an example where the mode selection unit does not further partition the CU into PUs, each CU may be associated with a luma coding block and a corresponding chroma coding block. As described above, the size of a CU may refer to the size of the luma coding block of the CU. The video encoder 200 and the video decoder 300 may support CU sizes of 2Nx2N, 2NxN, or Nx2N.
[0331]
[0140] For other video coding techniques, such as intra block copy mode coding, affine mode coding, and linear model (LM) mode coding, as some examples, the mode selection unit 202 generates a predictive block for the current block being coded via a respective unit associated with the coding technique. In some examples, such as palette mode coding, the mode selection unit 202 may not generate a predictive block, but instead generate syntax elements that indicate how the block should be reconstructed based on a selected palette. In such modes, the mode selection unit 202 may provide these syntax elements to the entropy coding unit 220 to be coded.
[0332]
[0141] As described above, the residual generation unit 204 receives video data for a current block and a corresponding predictive block. The residual generation unit 204 then generates a residual block for the current block. To generate the residual block, the residual generation unit 204 calculates sample-by-sample differences between the predictive block and the current block.
[0333]
[0142] Transform processing unit 206 applies one or more transforms to the residual block to generate a block of transform coefficients (referred to herein as a "transform coefficient block"). Transform processing unit 206 may apply various transforms to the residual block to form the transform coefficient block. For example, transform processing unit 206 may apply a discrete cosine transform (DCT), a directional transform, a Karhunen-Loeve transform (KLT), or a conceptually similar transform to the residual block. In some examples, transform processing unit 206 may apply multiple transforms to the residual block, e.g., a linear transform and a secondary transform, such as a rotation transform. In some examples, transform processing unit 206 does not apply a transform to the residual block.
[0334]
[0143] The quantization unit 208 may quantize the transform coefficients in the transform coefficient block to produce a quantized transform coefficient block. The quantization unit 208 may quantize the transform coefficients of the transform coefficient block according to a quantization parameter (QP) value associated with the current block. The video encoder 200 (e.g., via the mode selection unit 202) may adjust the degree of quantization applied to the transform coefficient block associated with the current block by adjusting the QP value associated with the CU. Quantization may introduce loss of information, and thus the quantized transform coefficients may have less precision than the original transform coefficients produced by the transform processing unit 206.
[0335]
[0144] The inverse quantization unit 210 and the inverse transform processing unit 212 may apply inverse quantization and inverse transform to the quantized transform coefficient block, respectively, to reconstruct a residual block from the transform coefficient block. The reconstruction unit 214 may produce a reconstructed block corresponding to the current block (potentially with some distortion) based on the reconstructed residual block and the predictive block generated by the mode selection unit 202. For example, the reconstruction unit 214 may add samples of the reconstructed residual block to corresponding samples from the predictive block generated by the mode selection unit 202 to produce a reconstructed block.
[0336]
[0145] Filter unit 216 may perform one or more filter operations on the reconstructed block. For example, filter unit 216 may perform a deblocking operation to reduce blockiness artifacts along the edges of a CU. The operations of filter unit 216 may be skipped in some examples.
[0337]
[0146] The video encoder 200 stores the reconstructed blocks in the DPB 218. For example, in an example where the operation of the filter unit 312 is not performed, the reconstruction unit 310 may store the reconstructed blocks in the DPB 314. In an example where the operation of the filter unit 312 is performed, the filter unit 312 may store the filtered reconstructed blocks in the DPB 314. For example, in an example where the operation of the filter unit 216 is not required, the reconstruction unit 214 may store the reconstructed blocks in the DPB 218. In an example where the operation of the filter unit 216 is required, the filter unit 216 may store the filtered reconstructed blocks in the DPB 218. The motion estimation unit 222 and the motion compensation unit 224 may retrieve reference pictures formed from the reconstructed (and potentially filtered) blocks from the DPB 218 to inter-predict blocks of a picture to be subsequently encoded. In addition, the intra prediction unit 226 may use reconstructed blocks in the DPB 218 of the current picture to intra predict other blocks in the current picture.
[0338] In general, the entropy encoding unit 220 may entropy encode syntax elements received from other functional components of the video encoder 200. For example, the entropy encoding unit 220 may entropy encode quantized transform coefficient blocks from the quantization unit 208. As another example, the entropy encoding unit 220 may entropy encode predictive syntax elements (e.g., motion information for inter prediction or intra mode information for intra prediction) from the mode selection unit 202. The entropy encoding unit 220 may perform one or more entropy encoding operations on syntax elements, which are another example of video data, to generate entropy encoded data. For example, the entropy encoding unit 220 may perform a context-adaptive variable length coding (CAVLC) operation, a CABAC operation, a variable-to-variable (V2V) length coding operation, a syntax-based context-adaptive binary arithmetic coding (SBAC) operation, a probability interval partitioned entropy (PIPE) coding operation, an exponential-Golomb coding operation, or another type of entropy coding operation on the data. In some examples, the entropy encoding unit 220 may operate in a bypass mode in which syntax elements are not entropy coded.
[0339]
[0148] Video encoder 200 may output a bitstream that includes entropy coding syntax elements needed to reconstruct blocks of a slice or picture. In particular, entropy coding unit 220 may output the bitstream.
[0340]
[0149] The operations described above are described with respect to blocks. Such descriptions should be understood as being operations for luma coding blocks and / or chroma coding blocks. As described above, in some examples, the luma coding blocks and chroma coding blocks are luma and chroma components of a CU. In some examples, the luma coding blocks and chroma coding blocks are luma and chroma components of a PU.
[0341]
[0150] In some examples, the operations performed with respect to the luma coding block do not need to be repeated for the chroma coding block. As an example, the operations for identifying a motion vector (MV) and a reference picture for the luma coding block do not need to be repeated to identify the MV and the reference picture for the chroma block. Rather, the MV for the luma coding block may be scaled to determine the MV for the chroma block, and the reference picture may be the same. As another example, the intra prediction process may be the same for the luma coding block and the chroma coding block.
[0342]
[0151] Video encoder 200 represents an example of a device configured to encode video data, including a memory configured to store video data and one or more processing units implemented in a circuit and configured to perform the ALWIP technique of the present disclosure. For example, video encoder 200 may represent an example of a device including a memory configured to store video data and one or more processing units implemented in a circuit and configured to perform an MPM derivation process to derive one or more MPMs for a current block of video data, where the current block is not coded using ALWIP. In this example, as part of performing the MPM derivation process, the one or more processors are configured to determine whether a neighboring block of the current block is an ALWIP coded neighboring block. Furthermore, the one or more processors are configured to determine, based on the neighboring block being an ALWIP coded neighboring block, that a value of an intra prediction mode of the neighboring block is a default value, such as a value corresponding to a planar mode. The one or more processors may be further configured to include an intra prediction mode corresponding to the default value as one of the one or more MPMs. The one or more processors may encode the current block based on one of the MPMs for the current block.
[0343]
[0152] Furthermore, in some examples where the block is a chroma block coded using a DM mode, the video encoder 200 represents an example of a device including a memory configured to store video data and one or more processors configured to determine whether the co-located luma block is coded using ALWIP. In such examples, the co-located luma block is co-located with the block. Furthermore, in such examples, the one or more processors may determine, e.g., infer, that the intra-prediction mode of the co-located luma block is a default value based on the co-located luma block being coded using ALWIP. In other words, the one or more processors may determine or otherwise treat the intra-prediction mode of the co-located luma block as being a default intra-prediction mode, such as a planar intra-prediction mode. The one or more processors may be configured to encode the block using an intra-prediction mode corresponding to the default value.
[0344]
[0153] Figure 16 is a block diagram illustrating an example video decoder 300 that may implement the techniques of this disclosure. Figure 16 is provided for illustrative purposes and is not a limitation on the techniques broadly illustrated and described in this disclosure. For illustrative purposes, this disclosure describes the video decoder 300 in accordance with JEM, VVC, and HEVC techniques. However, the techniques of this disclosure may be implemented by video coding devices configured for other video coding standards.
[0345] In the example of FIG. 16, the video decoder 300 includes a coded picture buffer (CPB) memory 320, an entropy decoding unit 302, a prediction processing unit 304, an inverse quantization unit 306, an inverse transform processing unit 308, a reconstruction unit 310, a filter unit 312, and a decoded picture buffer (DPB) 314. Any or all of the CPB memory 320, the entropy decoding unit 302, the prediction processing unit 304, the inverse quantization unit 306, the inverse transform processing unit 308, the reconstruction unit 310, the filter unit 312, and the DPB 314 may be implemented in one or more processors or processing circuits. Moreover, the video decoder 300 may include additional or alternative processors or processing circuits for performing these and other functions.
[0346]
[0155] The prediction processing unit 304 includes a motion compensation unit 316 and an intra prediction unit 318. The prediction processing unit 304 may include additional units for performing prediction according to other prediction modes. By way of example, the prediction processing unit 304 may include a palette unit, an intra block copy unit (which may form part of the motion compensation unit 316), an affine unit, a linear model (LM) unit, etc. For example, in the example of FIG. 16, the intra prediction unit 318 includes an ALWIP unit 319 that performs an ALWIP process. In other examples, the video decoder 300 may include more, fewer, or different functional components.
[0347]
[0156] The CPB memory 320 may store video data, such as an encoded video bitstream, to be decoded by components of the video decoder 300. The video data stored in the CPB memory 320 may be obtained, for example, from the computer-readable medium 110 (FIG. 1). The CPB memory 320 may include a CPB that stores encoded video data (e.g., syntax elements) from the encoded video bitstream. The CPB memory 320 may also store video data other than syntax elements of a coded picture, such as temporary data representing output from various units of the video decoder 300. The DPB 314 generally stores decoded pictures that the video decoder 300 may output and / or use as reference video data when decoding subsequent data or pictures of the encoded video bitstream. The CPB memory 320 and the DPB 314 may be formed by any of a variety of memory devices, such as dynamic random access memory (DRAM), including synchronous DRAM (SDRAM), magnetoresistive RAM (MRAM), resistive RAM (RRAM), or other types of memory devices. The CPB memory 320 and the DPB 314 may be provided by the same memory device or separate memory devices. In various examples, the CPB memory 320 may be on-chip with other components of the video decoder 300 or off-chip relative to those components.
[0348] Additionally or alternatively, in some examples, the video decoder 300 may retrieve coded video data from memory 120 (FIG. 1). That is, memory 120 may store data as described above along with CPB memory 320. Similarly, memory 120 may store instructions to be executed by the video decoder 300 when some or all of the functionality of the video decoder 300 is implemented in software to be executed by processing circuitry of the video decoder 300.
[0349]
[0158] The various units shown in FIG. 16 are shown to aid in understanding the operations performed by the video decoder 300. The units may be implemented as fixed-function circuits, programmable circuits, or a combination thereof. As in FIG. 15, a fixed-function circuit refers to a circuit that provides a specific function and is preconfigured with respect to the operations that may be performed. A programmable circuit refers to a circuit that may be programmed to perform various tasks and provide flexible functionality in the operations that may be performed. For example, a programmable circuit may execute software or firmware that causes the programmable circuit to operate in a manner defined by the software or firmware instructions. A fixed-function circuit may execute software instructions (e.g., to receive parameters or output parameters), but the type of operations that the fixed-function circuit performs is generally invariant. In some examples, one or more of the units may be separate circuit blocks (fixed function or programmable), and in some examples, one or more of the units may be integrated circuits.
[0350]
[0159] The video decoder 300 may include a programmable core formed from an ALU, an EFU, a digital circuit, an analog circuit, and / or a programmable circuit. In examples in which the operation of the video decoder 300 is performed by software executing on a programmable circuit, an on-chip or off-chip memory may store instructions (e.g., object code) of the software that the video decoder 300 receives and executes.
[0351]
[0160] The entropy decoding unit 302 may receive the encoded video data from the CPB and entropy decode the video data to recover the syntax elements. The prediction processing unit 304, the inverse quantization unit 306, the inverse transform processing unit 308, the reconstruction unit 310, and the filter unit 312 may generate decoded video data based on the syntax elements extracted from the bitstream.
[0352]
[0161] Generally, the video decoder 300 reconstructs a picture on a block-by-block basis. The video decoder 300 may perform a reconstruction operation on each block individually (wherein the block currently being reconstructed, i.e., decoded, may be referred to as the "current block").
[0353]
[0162] The entropy decoding unit 302 may entropy decode syntax elements defining quantized transform coefficients of a quantized transform coefficient block, as well as transform information, such as a quantization parameter (QP) and / or a transform mode indication. The inverse quantization unit 306 may use the QP associated with the quantized transform coefficient block to determine the degree of quantization and, similarly, the degree of inverse quantization that the inverse quantization unit 306 should apply. The inverse quantization unit 306 may perform, for example, a bitwise left shift operation to inverse quantize the quantized transform coefficients. The inverse quantization unit 306 may thereby form a transform coefficient block including the transform coefficients.
[0354] After the inverse quantization unit 306 forms a transform coefficient block, the inverse transform processing unit 308 may apply one or more inverse transforms to the transform coefficient block to generate a residual block associated with the current block. For example, the inverse transform processing unit 308 may apply an inverse DCT, an inverse integer transform, an inverse Karhunen-Loeve transform (KLT), an inverse rotational transform, an inverse transform, or another inverse transform to the transform coefficient block.
[0355]
[0164] Furthermore, the prediction processing unit 304 generates a prediction block according to the prediction information syntax element entropy decoded by the entropy decoding unit 302. For example, if the prediction information syntax element indicates that the current block is inter-predicted, the motion compensation unit 316 may generate a prediction block. In this case, the prediction information syntax element may indicate a reference picture in the DPB 314 from which the reference block should be retrieved, as well as a motion vector that identifies the location of the reference block in the reference picture relative to the location of the current block in the current picture. The motion compensation unit 316 may generally perform an inter prediction process in a manner substantially similar to that described with respect to the motion compensation unit 224 (FIG. 15).
[0356]
[0165] As another example, if the prediction information syntax element indicates that the current block is intra predicted, the intra prediction unit 318 may generate a prediction block according to the intra prediction mode indicated by the prediction information syntax element. Again, the intra prediction unit 318 may generally perform an intra prediction process in a manner substantially similar to that described with respect to the intra prediction unit 226 (FIG. 15). The intra prediction unit 318 may retrieve data of neighboring samples for the current block from the DPB 314.
[0357]
[0166] According to an example of the third technique of this disclosure, the intra prediction unit 318 may perform an MPM derivation process to derive one or more MPMs for a current block of video data. In this example, the current block is not coded using ALWIP. As part of performing the MPM derivation process, the intra prediction unit 318 may determine whether a neighboring block of the current block is an ALWIP coded neighboring block. Based on the neighboring block being an ALWIP coded neighboring block, the intra prediction unit 318 may determine that a value of an intra prediction mode of the neighboring block is a default value, such as a value corresponding to a planar mode. The intra prediction unit 318 may include an intra prediction mode corresponding to the default value as one of the one or more MPMs. The video decoder 300 may decode the current block based on one of the MPMs for the current block, or another intra prediction mode. For example, as part of the video decoder 300 coding the current block, the intra prediction unit 318 may use one of the MPMs, or another intra prediction mode, to generate a predictive block for the current block.
[0358]
[0167] The reconstruction unit 310 may reconstruct the current block using the predictive block and the residual block. For example, the reconstruction unit 310 may add samples of the residual block to corresponding samples of the predictive block to reconstruct the current block.
[0359]
[0168] The filter unit 312 may perform one or more filter operations on the reconstructed block. For example, the filter unit 312 may perform a deblocking operation to reduce blockiness artifacts along edges of the reconstructed block. The operations of the filter unit 312 are not necessarily performed in all examples.
[0360] The video decoder 300 may store the reconstructed blocks in the DPB 314. As discussed above, the DPB 314 may provide reference information to the prediction processing unit 304, such as samples of the current picture for intra prediction and previously decoded pictures for subsequent motion compensation. Moreover, the video decoder 300 may output decoded pictures from the DPB for subsequent presentation on a display device, such as the display device 118 of FIG. 1.
[0361]
[0170] In this manner, the video decoder 300 represents an example of a video decoding device including a memory configured to store video data and one or more processing units implemented in a circuit and configured to perform the ALWIP technique of the present disclosure. For example, the video decoder 300 may represent an example of a device including a memory configured to store video data and one or more processing units implemented in a circuit and configured to perform an MPM derivation process to derive one or more MPMs for a current block of the video data, where the current block is not coded using ALWIP. In this example, as part of performing the MPM derivation process, the one or more processors are configured to determine whether a neighboring block of the current block is an ALWIP coded neighboring block. Furthermore, the one or more processors are configured to determine, based on the neighboring block being an ALWIP coded neighboring block, that a value of an intra prediction mode of the neighboring block is a default value, such as a value corresponding to a planar mode. The one or more processors may include an intra prediction mode corresponding to a default as one of the one or more MPMs. The one or more processors may decode the current block based on one of the MPMs for the current block.
[0362]
[0171] Furthermore, in some examples where the block is a chroma block coded using a DM mode, the video encoder 200 represents an example of a device including a memory configured to store video data and one or more processors configured to determine whether the co-located luma block is coded using ALWIP. In such examples, the co-located luma block is co-located with the block. Furthermore, in such examples, the one or more processors may determine, e.g., infer, that the intra-prediction mode of the co-located luma block is a default value based on the co-located luma block being coded using ALWIP. In other words, the one or more processors may determine or otherwise treat the intra-prediction mode of the co-located luma block as being a default intra-prediction mode, such as a planar intra-prediction mode. The one or more processors may be configured to decode the block using an intra-prediction mode corresponding to the default value.
[0363]
[0172] Figure 17 is a flowchart illustrating an example method for encoding a current block. The current block may include a current CU. Although described with respect to video encoder 200 (Figures 1 and 15), it should be understood that other devices may be configured to implement a method similar to that of Figure 17.
[0364]
[0173] In this example, the video encoder 200 first predicts the current block (350). For example, the video encoder 200 may form a predictive block for the current block. In some examples, the video encoder 200 (e.g., the intra prediction unit 226 of the video encoder 200) performs an MPM derivation process that derives one or more MPMs for the current block. In this example, the current block is not coded using ALWIP. The MPMs may include intra prediction modes, and in some examples, each of the MPMs is an intra prediction mode. Furthermore, in this example, as part of performing the MPM derivation process, the video encoder 200 may determine whether a neighboring block of the current block is an ALWIP coded neighboring block, and may determine that a value of the intra prediction mode of the neighboring block is a default value based on the neighboring block being an ALWIP coded neighboring block. The video encoder 200 may include an intra prediction mode corresponding to the default value as one of the one or more MPMs. Video encoder 200 may then use one of the MPMs, or another intra-prediction mode, to form a predictive block for the current block.
[0365]
[0174] Video encoder 200 may then calculate a residual block for the current block (352). To calculate the residual block, video encoder 200 may calculate a difference between the original uncoded block and the predictive block for the current block. Video encoder 200 may then transform and quantize transform coefficients of the residual block (354).
[0366]
[0175] Next, the video encoder 200 may scan the quantized transform coefficients of the residual block (356). During or following the scan, the video encoder 200 may entropy code the transform coefficients (358). For example, the video encoder 200 may code the transform coefficients using CAVLC or CABAC. The video encoder 200 may then output entropy coded data for the block (360).
[0367]
[0176] Figure 18 is a flowchart illustrating an example method for decoding a current block of video data. The current block may include a current CU. Although described with respect to video decoder 300 (Figures 1 and 16), it should be understood that other devices may be configured to implement a method similar to that of Figure 18.
[0368]
[0177] The video decoder 300 may receive entropy coded data for the current block, such as entropy coded prediction information and entropy coded data for the transform coefficients of the residual block that corresponds to the current block (370). The video decoder 300 may entropy decode the entropy coded data to determine the prediction information for the current block and to reconstruct the transform coefficients of the residual block (372).
[0369]
[0178] To calculate a predictive block for the current block, the video decoder 300 may predict the current block (374), for example, using an intra-prediction or inter-prediction mode indicated by the prediction information for the current block. In some examples, the video decoder 300 (e.g., the intra-prediction unit 318 of the video decoder 300) performs an MPM derivation process to derive one or more MPMs for the current block. In this example, the current block is not coded using ALWIP. The MPMs may include intra-prediction modes, and in some examples, each of the MPMs is an intra-prediction mode. Further, in this example, as part of performing the MPM derivation process, the video decoder 300 may determine whether a neighboring block of the current block is an ALWIP coded neighboring block, and may determine that a value of the intra-prediction mode of the neighboring block is a default value, such as a value corresponding to a planar mode, based on the neighboring block being an ALWIP coded neighboring block. The video decoder 300 may include an intra-prediction mode corresponding to a default value (e.g., a planar mode) as one of the one or more MPMs. Video decoder 300 may then use one of the MPMs or another intra-prediction mode to form a predictive block for the current block.
[0370]
[0179] The video decoder 300 may then inverse scan the reconstructed transform coefficients to create a block of quantized transform coefficients (376). The video decoder 300 may then dequantize the transform coefficients and apply one or more inverse transforms to the transform coefficients to produce a residual block (378). The video decoder 300 may decode the current block by combining the predictive block and the residual block (380).
[0371]
[0180] Figure 19 is a flowchart illustrating an example method for coding video data in accordance with one or more techniques of this disclosure. The method of Figure 19 may be implemented by a video coder, such as video encoder 200 or video decoder 300.
[0372] In the example of FIG. 19, the video coder may perform an MPM derivation process (400) to derive one or more MPMs for a current block of video data. In some examples, the intra prediction unit 226 (FIG. 15) of the video encoder 200 performs the MPM derivation process. In some examples, the intra prediction unit 318 (FIG. 16) of the video decoder 300 performs the MPM derivation process. In the example of FIG. 19, the current block is not coded using ALWIP. The MPMs may include intra prediction modes, and in some examples, each of the MPMs is an intra prediction mode. In examples where the video coder is a video encoder (e.g., video encoder 200), the video encoder may be included in a device (e.g., source device 102) that includes a camera that captures a picture including the current block.
[0373]
[0182] Further, in the example of Figure 19, performing the MPM derivation process may include the video coder determining whether a neighboring block of the current block is an ALWIP coded neighboring block (402). The neighboring block may be an upper neighboring block or a left neighboring block of the current block. In some examples, the video coder may store an alwip_flag for the block of the current picture and may use the stored alwip_flag of the neighboring block to determine whether the neighboring block is coded using ALWIP.
[0374]
[0183] Based on the neighboring block being an ALWIP coded neighboring block, the video coder may determine that the value of the intra-prediction mode of the neighboring block is a default value (404). For example, the video coder may determine (e.g., infer) that the value of the intra-mode of the neighboring block is a particular value indicating a planar mode. In other words, the intra-prediction mode corresponding to the default value may be a planar mode. In other examples, the intra-prediction mode corresponding to the default value may be another intra-prediction mode. The video coder may then include the intra-prediction mode corresponding to the default value as one of the one or more MPMs for the current block (406).
[0375]
[0184] The video coder may code the current block based on one of the MPMs for the current block (408). For example, in an example where the video coder is a video encoder, such as video encoder 200, the video encoder may encode the current block based on one of the MPMs for the current block. In such an example, the video encoder may use the MPM to generate a predictive block for the current block. The video encoder may then use the predictive block and samples of the current block to generate residual data for the current block. The video encoder may then process the residual data for the current block as described elsewhere in this disclosure, e.g., with respect to FIG. 15. In an example where the video coder is a video decoder, such as video decoder 300, the video decoder may decode the current block based on one of the MPMs for the current block. In such an example, the video decoder may use the MPM to generate a predictive block for the current block. The video decoder may then use the predictive block and the residual data for the current block to reconstruct the current block. Further, in some examples, a device that includes a video decoder may include a display that displays the picture that includes the current block.
[0376]
[0185] Figure 20 is a flowchart illustrating an example method for coding a chroma block in accordance with one or more techniques of this disclosure. In the example of Figure 20, a video coder (e.g., video encoder 200 or video decoder 300) may be coding a chroma block using DM mode.
[0377]
[0186] In particular, the video coder may determine whether the co-located luma block is coded using ALWIP (450). The co-located luma block is co-located with the chroma block. Based on the co-located luma block being coded using ALWIP, the video coder may determine that a value of an intra-prediction mode of the co-located luma block is a default value, such as a value corresponding to a planar mode.
[0378]
[0187] The video coder may then code the chroma block using an intra-prediction mode corresponding to the default value (454). For example, in examples where the video coder is a video encoder, such as video encoder 200, the video encoder may generate a predictive block for the chroma block using an intra-prediction mode corresponding to the default value. The video encoder may then use the predictive block and samples of the chroma block to generate residual data for the chroma block. The video encoder may then process the residual data for the chroma block as described elsewhere in this disclosure, e.g., with respect to FIG. 15. In examples where the video coder is a video decoder, such as video decoder 300, the video decoder may decode the chroma block based on the intra-prediction mode corresponding to the default value. In such examples, the video decoder may use the intra-prediction mode corresponding to the default value to generate a predictive block for the chroma block. The video decoder may then use the predictive block and residual data for the chroma block to reconstruct the chroma block. Furthermore, in some examples, a device including a video decoder may include a display that displays a picture including the chroma block.
[0379]
[0188] The following paragraphs provide a non-limiting set of examples in accordance with one or more techniques of this disclosure.
[0380]
[0189] Example 1. A method for coding video data, comprising: determining a context for an ALWIP syntax element indicating whether a current block is coded using affine linear weighted intra prediction (ALWIP); and coding the ALWIP syntax element based on the context, wherein an upper neighboring block is determined to be unavailable for determining the context based on the upper neighboring block being in a different coding tree unit (CTU) than the current block, and the upper neighboring block is an upper neighbor of the current block.
[0381]
[0190] Example 2. A method for coding video data, comprising: coding a set of blocks of the video data, wherein a constraint is imposed on the coding that disables affine linear weighted intra prediction (ALWIP) for blocks having a width less than a threshold width or a height less than a threshold height.
[0382]
[0191] Example 3. A method for coding video data, comprising: determining that a neighboring block for a current block of video data is deemed unavailable based on the neighboring block being affine linear weighted intra prediction (ALWIP) coded and the neighboring block being considered in a most probable mode (MPM) derivation of a non-ALWIP coded block of the video data; determining an MPM for the current block based on the available neighboring blocks; and coding the current block based on one of the MPMs.
[0383]
[0192] Example 4. A method for coding video data, comprising: assigning a default value for a most probable mode (MPM) derivation of the ALWIP block based on a determination that a neighboring block for a current block of video data is deemed unavailable based on the neighboring block being non-affine linear weighted intra prediction (ALWIP) coded and the neighboring block being used in a most probable mode (MPM) derivation of the ALWIP coded block of the video data; and using ALWIP to code the current block.
[0384]
[0193] Example 5. A method for coding video data, comprising: deriving a most probable mode (MPM) list for affine linear weighted intra prediction (ALWIP) based on one or more blocks in the vicinity of a current block of the video data; and using an MPM from the MPM list to implement the ALWIP for coding the current block.
[0385]
[0194] Example 6. The method of Example 5, wherein the one or more blocks in the vicinity of the current block include a first adjacent block adjacent to the current block above the top right sample of the current block and a second adjacent block adjacent to the current block to the left of the bottom left sample of the current block.
[0386] Example 7. A method comprising any combination of one or more of the methods of Examples 1-6.
[0387]
[0196] Example 8. The method of any of Examples 1-7, wherein the coding includes decoding.
[0388]
[0197] Example 9. The method of any of Examples 1-7, wherein coding includes encoding.
[0389]
[0198] Example 10. A device for coding video data, comprising one or more means for implementing the method of any of Examples 1-9.
[0390]
[0199] Example 11. The device of Example 10, wherein the one or more means include one or more processors implemented in the circuit.
[0391]
[0200] Example 12. The device of any of Examples 10 and 11, further including a memory for storing video data.
[0392]
[0201] Example 13. The device of any of Examples 10-12, further including a display configured to display the decoded video data.
[0393]
[0202] Example 14. The device of any of Examples 10-13, wherein the device includes one or more of a camera, a computer, a mobile device, a broadcast receiver device, or a set-top box.
[0394]
[0203] Example 15. The device of any of Examples 10-14, wherein the device includes a video decoder.
[0395]
[0204] Example 16. The device of any of Examples 10-15, wherein the device includes a video encoder.
[0396]
[0205] Example 17. A computer-readable storage medium having stored thereon instructions that, when executed, cause one or more processors to perform the method of any of Examples 1-7.
[0397]
[0206] Example 18. A device for coding video data, comprising means for carrying out the method of any of Examples 1-7.
[0398]
[0207] It should be appreciated that, depending on the example, some acts or events of any of the techniques described herein may be performed in a different sequence, added, merged, or omitted entirely (e.g., not all described acts or events may be required to practice the techniques). Moreover, in some examples, acts or events may be performed simultaneously rather than sequentially, for example, through multi-threaded processing, interrupt processing, or multiple processors.
[0399]
[0208] In one or more examples, the described functions may be implemented in hardware, software, firmware, or any combination thereof. If implemented in software, the functions may be stored on or transmitted via a computer-readable medium as one or more instructions or codes and executed by a hardware-based processing unit. A computer-readable medium may include a computer-readable storage medium, which corresponds to a tangible medium, such as a data storage medium, or may include a communication medium, which includes any medium that facilitates the transfer of a computer program from one place to another, for example, according to a communication protocol. In this manner, a computer-readable medium may generally correspond to (1) a non-transitory 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 retrieve instructions, codes and / or data structures for implementation of the techniques described in this disclosure. A computer program product may include a computer-readable medium.
[0400]
[0209] By way of example and not limitation, such computer-readable storage media may include RAM, ROM, EEPROM, CD-ROM or other optical disk storage, magnetic disk storage or other magnetic storage devices, flash memory, or any other medium that can be used to store desired program code in the form of instructions or data structures and that can be accessed by a computer. Also, any connection is properly referred to as a computer-readable medium. For example, if the instructions are transmitted from a website, server, or other remote source using coaxial cable, fiber optic cable, twisted pair, digital subscriber line (DSL), or wireless technology such as infrared, radio, and microwave, the coaxial cable, fiber optic cable, twisted pair, DSL, or wireless technology such as infrared, radio, and microwave are 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 transitory media, but instead cover non-transitory tangible storage media. As used herein, disk and disc include compact disc (CD), laser disc, optical disc, digital versatile disc (DVD), floppy disk and Blu-ray disc, where disks typically reproduce data magnetically and discs reproduce data optically with lasers. Combinations of the above should also be included within the scope of computer readable media.
[0401]
[0210] The instructions may be executed by one or more processors, such as one or more digital signal processors (DSPs), general-purpose microprocessors, application specific integrated circuits (ASICs), field programmable gate arrays (FPGAs), or other equivalent integrated or discrete logic circuits. Thus, the terms "processor" and "processing circuitry" as used herein may refer to any of the aforementioned structures, or any other structures suitable for implementing the techniques described herein. In addition, in some aspects, the functions described herein may be provided in dedicated hardware and / or software modules configured for encoding and decoding, or may be incorporated into a composite codec. Also, the techniques may be fully implemented in one or more circuits or logic elements.
[0402]
[0211] The techniques of the present disclosure may be implemented in a wide variety of devices or apparatuses, including wireless handsets, integrated circuits (ICs) or sets of ICs (e.g., chipsets). Various components, modules, or units are described in this disclosure to highlight functional aspects of devices configured to implement the disclosed techniques, but do not necessarily require realization by different hardware units. Instead, 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 described above, along with suitable software and / or firmware.
[0403]
[0212] Various examples have been described. These and other examples are within the scope of the following claims. The invention as described in the claims of the original application is set forth below. [C1] 1. A method for coding video data, comprising: performing a Most Probable Mode (MPM) derivation process for deriving one or more Most Probable Modes (MPMs) for a current block of the video data, wherein the current block is not coded using affine linear weighted intra prediction (ALWIP), and performing the MPM derivation process; determining whether a neighboring block of the current block is an ALWIP coded neighboring block; Based on the fact that the neighboring block is an ALWIP coded neighboring block, determining that the value of the intra prediction mode of the neighboring block is a default value; and including as one of the one or more MPMs an intra-prediction mode corresponding to the default value. and coding the current block based on one of the MPMs for the current block. [C2] The method of C1, wherein the intra prediction mode corresponding to the default value is a planar mode. [C3] the current block is a first block and the second block of video data is a chroma block coded using a Direct Mode (DM) mode, the method comprising: determining whether a co-located luma block is coded using ALWIP; and the co-located luma block is co-located with the second block. based on the co-located luma block being coded using ALWIP, determining that a value of an intra prediction mode for the co-located luma block is a default value; and coding the second block using an intra-prediction mode corresponding to the default value. [C4] The method of C3, wherein the intra prediction mode corresponding to the default value is a planar mode. [C5] determining a context for an ALWIP syntax element, where the ALWIP syntax element indicates whether the current block is coded using ALWIP, and where an upper neighboring block is determined to be unavailable for determining the context based on the upper neighboring block being in a different coding tree unit (CTU) than the current block, and the upper neighboring block is an upper neighbor of the current block. and coding the ALWIP syntax element based on the context. [C6] The method of C1, wherein the video coding standard imposes a constraint that disables ALWIP for blocks having a width less than a threshold width or a height less than a threshold height. [C7] The method of C6, wherein the threshold width is 8 and the threshold height is 8. [C8] The method of C1, wherein coding the current block comprises decoding the current block. [C9] The method of C8, further comprising displaying a picture including the current block. [C10] The method of C1, wherein coding the current block comprises encoding the current block. [C11] The method of C10, further comprising capturing a picture including the current block. [C12] 1. A device for coding video data, comprising: a memory for storing said video data; and one or more processors implemented in a circuit, the one or more processors comprising: performing a Most Probable Mode (MPM) derivation process for deriving one or more Most Probable Modes (MPMs) for a current block of the video data, wherein the current block is not coded using affine linear weighted intra prediction (ALWIP), and performing the MPM derivation process; determining whether a neighboring block of the current block is an ALWIP coded neighboring block; Based on the fact that the neighboring block is an ALWIP coded neighboring block, determining that the value of the intra prediction mode of the neighboring block is a default value; and including as one of the one or more MPMs an intra-prediction mode corresponding to the default value. and coding the current block based on one of the MPMs for the current block. [C13] The device of C12, wherein the intra prediction mode corresponding to the default value is a planar mode. [C14] the current block is a first block and the second block of video data is a chroma block coded using a Direct Mode (DM) mode, and the one or more processors: determining whether a co-located luma block is coded using ALWIP; and the co-located luma block is co-located with the second block. based on the co-located luma block being coded using ALWIP, determining that a value of an intra prediction mode for the co-located luma block is a default value; The device of C12, further configured to: code the second block using an intra-prediction mode corresponding to the default value. [C15] The device of C14, wherein the intra prediction mode corresponding to the default value is a planar mode. [C16] the one or more processors: determining a context for an ALWIP syntax element indicating whether the current block is coded using ALWIP, and wherein an upper neighboring block is determined to be unavailable for determining the context based on the upper neighboring block being in a different coding tree unit (CTU) than the current block, and the upper neighboring block is an upper neighbor of the current block. The device of C12, further configured to: code the ALWIP syntax element based on the context. [C17] The device of C12, wherein a video coding standard imposes a constraint that disables ALWIP for blocks having a width less than a threshold width or a height less than a threshold height. [C18] The device of C17, wherein the threshold width is 8 and the threshold height is 8. [C19] The device of C12, wherein the one or more processors are configured to decode the current block as part of coding the current block. [C20] The device of C19, further comprising a display configured to display the decoded video data. [C21] The device of C12, wherein the one or more processors are configured to encode the current block as part of coding the current block. [C22] The device of C12, wherein the device comprises one or more of a camera, a computer, a mobile device, a broadcast receiver device, or a set-top box. [C23] 1. A device for coding video data, comprising: means for performing a Most Probable Mode (MPM) derivation process to derive one or more Most Probable Modes (MPMs) for a current block of the video data, wherein the current block is not coded using Affine Linear Weighted Intra Prediction (ALWIP), and the means for performing the MPM derivation process: means for determining whether a neighboring block of the current block is an ALWIP coded neighboring block; means for determining, based on the neighboring block being an ALWIP coded neighboring block, a value of an intra prediction mode of the neighboring block to be a default value; and including, as one of the one or more MPMs, an intra prediction mode corresponding to the default value. and means for coding the current block based on one of the MPMs for the current block. [C24] The device of C23, wherein the intra prediction mode corresponding to the default value is a planar mode. [C25] the current block is a first block and the second block of video data is a chroma block coded using a direct mode (DM) mode, and the device: means for determining whether a co-located luma block is coded using ALWIP; and the co-located luma block is co-located with the second block. means for determining, based on the co-located luma block being coded using ALWIP, that a value of an intra prediction mode for the co-located luma block is a default value; and means for coding the second block using an intra-prediction mode corresponding to the default value. [C26] A computer-readable storage medium having stored thereon instructions that, when executed, cause one or more processors to: performing a Most Probable Mode (MPM) derivation process for deriving one or more Most Probable Modes (MPMs) for a current block of video data, wherein the current block is not coded using affine linear weighted intra prediction (ALWIP), and performing the MPM derivation process; determining whether a neighboring block of the current block is an ALWIP coded neighboring block; Based on the fact that the neighboring block is an ALWIP coded neighboring block, determining that the value of the intra prediction mode of the neighboring block is a default value; and including as one of the one or more MPMs an intra-prediction mode corresponding to the default value. and coding the current block based on one of the MPMs for the current block. [C27] The computer-readable storage medium of C26, wherein the intra-prediction mode corresponding to the default value is a planar mode. [C28] the current block is a first block and the second block of video data is a chroma block coded using a Direct Mode (DM) mode, and the one or more processors: determining whether a co-located luma block is coded using ALWIP; and the co-located luma block is co-located with the second block. based on the co-located luma block being coded using ALWIP, determining that a value of an intra prediction mode for the co-located luma block is a default value; and coding the second block using an intra-prediction mode corresponding to the default value.
Claims
1. 1. A method for coding video data, comprising: determining a context for an affine linear weighted intra prediction (ALWIP) syntax element, where the ALWIP syntax element indicates whether the current block of video data is coded using ALWIP; wherein an upper neighboring block is determined to be unavailable for determining the context based on the upper neighboring block being in a different coding tree unit (CTU) than the current block, and a value of an ALWIP syntax element for the upper neighboring block is used to determine the context; wherein the upper adjacent block is an upper neighbor of the current block, and wherein the context for the ALWIP syntax element identifies a probability of a bin having a particular value. coding the ALWIP syntax element based on the context; and performing a Most Probable Mode (MPM) derivation process to derive one or more MPMs for the current block, wherein the current block is not coded using ALWIP and performing the MPM derivation process; determining that a neighboring block of the current block is an ALWIP coded neighboring block; Based on the fact that the neighboring block is an ALWIP coded neighboring block, including as one of the one or more MPMs an intra-prediction mode corresponding to a default value, wherein the value of the included intra-prediction mode is the same as or different from the value of the determined intra-prediction mode. and coding the current block based on one of the MPMs for the current block.
2. The method of claim 1 , wherein the intra-prediction mode corresponding to the default value is a planar mode.
3. the current block is a first block and the second block of video data is a chroma block coded using a Direct Mode (DM) mode, the method comprising: determining whether a co-located luma block is coded using ALWIP; and the co-located luma block is co-located with the second block. Based on the fact that the co-located luma block is coded using ALWIP, determining that a value of an intra prediction mode for the co-located luma block is the default value; The method of claim 1 , further comprising: coding the second block using an intra-prediction mode corresponding to the default value.
4. The method of claim 3 , wherein the intra-prediction mode corresponding to the default value is a planar mode.
5. 2. The method of claim 1, wherein a value of 3 is determined as the context for the ALWIP syntax element if the width of the current block is greater than twice the height of the current block or if the height is greater than twice the width.
6. 2. The method of claim 1, wherein a video coding standard imposes a constraint that disables ALWIP for blocks having a width less than a threshold width or a height less than a threshold height.
7. The method of claim 6 , wherein said threshold width is eight and said threshold height is eight.
8. The method of claim 1 , wherein coding the current block comprises decoding the current block.
9. The method of claim 8 , further comprising displaying a picture including the current block.
10. The method of claim 1 , wherein coding the current block comprises encoding the current block.
11. The method of claim 10 , further comprising capturing a picture that includes the current block.
12. 1. A device for coding video data, comprising: and means for determining a context for an affine linear weighted intra prediction (ALWIP) syntax element, wherein the ALWIP syntax element indicates whether the current block of the video data is coded using ALWIP, and wherein an upper neighboring block is determined to be unavailable for determining the context based on the upper neighboring block being in a different coding tree unit (CTU) than the current block, and a value of an ALWIP syntax element for the upper neighboring block is used to determine the context, wherein the upper neighboring block is an upper neighbor of the current block, and wherein the context for the ALWIP syntax element identifies a probability of a bin having a particular value. means for coding the ALWIP syntax element based on the context; means for performing a Most Probable Mode (MPM) derivation process to derive one or more MPMs for the current block, wherein the current block is not coded using ALWIP, and the means for performing the MPM derivation process: means for determining that a neighboring block of the current block is an ALWIP coded neighboring block; means for including, as one of the one or more MPMs, an intra-prediction mode corresponding to a default value based on the neighboring block being an ALWIP coded neighboring block, wherein the value of the included intra-prediction mode is the same as or different from the determined value of the intra-prediction mode. and means for coding the current block based on one of the MPMs for the current block.
13. The device of claim 12 , wherein the intra-prediction mode corresponding to the default value is a planar mode.
14. A device according to claim 12 or claim 13, further comprising means for carrying out the method according to any one of claims 3 to 11.
15. A computer readable storage medium having instructions stored thereon that, when executed, cause one or more processors to perform a method according to any one of claims 1 to 11.
Citation Information
Patent Citations
Intra prediction using linear or affine transformations with adjacent sample reduction
JP2022514870A
Intra predictions using linear or affine transforms with neighbouring sample reduction
WO2020127811A2
