Prediction Signal Filtering in Affine Linear Weighted Intra Prediction
By adopting ALWIP mode in video encoding, the boundary reference samples of video data are filtered to generate more accurate prediction blocks, which solves the problem of large prediction errors in intra-frame prediction and improves the rate-distortion trade-off effect of video encoding.
Patent Information
- Application Number
- CN202080033085.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Priority Date
- 2020-05-07
- Filing Date
- 2020-05-08
- Publication Date
- 2024-09-27
- Estimated Expiration
- 2040-05-08
AI Technical Summary
Existing video coding technology has large prediction errors in intra-frame prediction, which causes more bits to be required for compression and affects the decoding quality of video data.
Using Affine Linear Weighted Intra Prediction (ALWIP) mode, the boundary reference samples are filtered to generate more accurate prediction blocks. By deriving the left edge sample subset and the top edge sample subset, the affine model is applied and filtered to generate more accurate prediction blocks. Generate the final prediction block.
Improved video encoders generate predicted blocks that more closely match the original blocks, reducing residual values and total bit count, achieving a better rate-distortion trade-off.
Smart Images

Figure CN113785589B_ABST
Abstract
Description
[0001] This application claims priority to U.S. Patent Application No. 16 / 868,982, filed on May 7, 2020, which claims the benefit of U.S. Provisional Patent Application No. 62 / 845,839, filed on May 9, 2019, the entire contents of each of the above applications are hereby incorporated herein by reference. Technical Field
[0002] The present disclosure relates to video encoding and video decoding. Background Art
[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), desktop or laptop computers, tablet computers, e-book readers, digital cameras, digital recording devices, digital media players, video game devices, video game consoles, cellular or satellite wireless telephones, so-called "smart phones", video teleconferencing devices, video streaming devices, and the like. Digital video devices implement video coding techniques, such as those described in the standards defined by MPEG-2, MPEG-4, ITU-T H.263, ITU-T H.264 / MPEG-4 Part 10, Advanced Video Coding (AVC), High Efficiency Video Coding (HEVC) standards, ITU-T H.265 / High Efficiency Video Coding (HEVC), and extensions of such standards. Video devices may more efficiently send, receive, encode, decode, and / or store digital video information by implementing such video coding techniques.
[0004] Video coding techniques include spatial (intra-picture) prediction and / or temporal (inter-picture) prediction to reduce or remove the redundancy inherent in video sequences. For 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 predictions for 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 predictions for reference samples in neighboring blocks in the same picture or temporal predictions for reference samples in other reference pictures. Pictures may also be referred to as frames, and reference pictures may be referred to as reference frames. Summary of the invention
[0005] The present disclosure describes techniques that can improve intra prediction, including deriving and signaling a mode for linear weighted intra prediction, which may also be referred to as matrix intra prediction or matrix weighted intra prediction or affine linear weighted intra prediction (ALWIP). More specifically, for a current block of video data encoded in ALWIP mode, the present disclosure describes techniques for filtering boundary reference samples to generate a filtered prediction block. The filtered prediction block can improve the rate-distortion tradeoff of a block encoded in ALWIP mode by generating a more accurate prediction block.
[0006] According to one example, a method for decoding video data includes: determining that a current block of video data is encoded in an affine linear weighted intra prediction (ALWIP) mode; deriving a left edge sample subset and a top edge sample subset based on a left edge neighboring sample set of the current block and a top edge neighboring sample set of the current block, wherein the left edge sample subset includes fewer samples than the left edge sample set and the top edge sample subset includes fewer samples than the top edge sample set; applying an affine model to the left edge sample subset and the top edge sample subset to generate an intermediate block of intermediate samples; filtering the intermediate samples using the left edge neighboring sample set and the top edge neighboring sample set of the current block to generate a final prediction block; and decoding the current block of video data based on the final prediction block.
[0007] According to another example, an apparatus for decoding video data includes determining that a current block of video data is encoded in an affine linear weighted intra prediction (ALWIP) mode; deriving a left edge sample subset and a top edge sample subset based on a left edge neighboring sample set of the current block and a top edge neighboring sample set of the current block, wherein the left edge sample subset includes fewer samples than the left edge sample set and the top edge sample subset includes fewer samples than the top edge sample set; applying an affine model to the left edge sample subset and the top edge sample subset to generate an intermediate block of intermediate samples; filtering the intermediate samples using the left edge neighboring sample set and the top edge neighboring sample set of the current block to generate a final prediction block; and decoding the current block of video data based on the final prediction block.
[0008] According to another example, a computer-readable storage medium stores instructions that, when executed by one or more processors, cause the one or more processors to perform the following operations: determine that a current block of video data is encoded in an affine linear weighted intra prediction (ALWIP) mode; derive a left edge sample subset and a top edge sample subset based on a left edge neighboring sample set of the current block and a top edge neighboring sample set of the current block, wherein the left edge sample subset includes fewer samples than the left edge sample set and the top edge sample subset includes fewer samples than the top edge sample set; apply an affine model to the left edge sample subset and the top edge sample subset to generate an intermediate block of intermediate samples; filter the intermediate samples using the left edge neighboring sample set and the top edge neighboring sample set of the current block to generate a final prediction block; and decode the current block of video data based on the final prediction block.
[0009] According to another example, an apparatus for decoding video data includes: a unit for determining that a current block of video data is encoded in an affine linear weighted intra prediction (ALWIP) mode; a unit for deriving a left edge sample subset and a top edge sample subset based on a left edge neighboring sample set of the current block and a top edge neighboring sample set of the current block, wherein the left edge sample subset includes fewer samples than the left edge sample set and the top edge sample subset includes fewer samples than the top edge sample set; a unit for applying an affine model to the left edge sample subset and the top edge sample subset to generate an intermediate block of intermediate samples; a unit for filtering the intermediate samples using the left edge neighboring sample set and the top edge neighboring sample set of the current block to generate a final prediction block; and a unit for decoding the current block of video data based on the final prediction block.
[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 be apparent from the description, drawings, and claims. BRIEF DESCRIPTION OF THE DRAWINGS
[0011] Figure 1 is a block diagram illustrating an example video encoding and decoding system that may perform the techniques of this disclosure.
[0012] Figure 2A and Figure 2B is a conceptual diagram illustrating an exemplary quadtree binary tree (QTBT) structure and a corresponding coding tree unit (CTU).
[0013] Figure 3 An example of the direction of intra prediction is shown, where the arrow points to the reference sample.
[0014] Figure 4 An example of an 8x4 rectangular block is shown, where "nearer" reference samples are not used for intra prediction, but farther reference samples may be used.
[0015] Figure 5A-5C An example of a mode mapping process for modes outside the diagonal direction range is shown.
[0016] Figure 6 is a conceptual diagram illustrating an exemplary intra prediction direction having a wide-angle direction.
[0017] Fig. 7A is a conceptual diagram showing another example of an intra prediction direction having a wide-angle direction.
[0018] Figure 7B is a table showing the relationship between the intra prediction mode and the intra prediction angle.
[0019] Figure 8 is a conceptual diagram illustrating exemplary vertical and horizontal partitioning of blocks.
[0020] Fig. 9 is a conceptual diagram showing other examples of vertical and horizontal division of blocks.
[0021] Fig.10 is a diagram of reference samples in multiple reference rows that can be used for intra prediction of a coding block.
[0022] Fig.11A and Fig. 11B is a conceptual diagram showing an example of DC-mode PDPC weights for sample positions within a 4×4 block.
[0023] Fig.12 is a conceptual diagram illustrating an example of an intra prediction angle mode.
[0024] Fig.13A is a conceptual diagram showing an example of a diagonal upper right mode.
[0025] Fig. 13B is a conceptual diagram showing an example of a diagonal lower left mode.
[0026] Fig. 13C is a conceptual diagram showing an example of an adjacent diagonal upper right mode.
[0027] Fig.13D is a conceptual diagram showing an example of an adjacent diagonal lower left mode.
[0028] Fig.14 is a conceptual diagram illustrating an example of an affine linear weighted intra prediction (ALWIP) process on an 8×8 block.
[0029] Fig.15 Some examples of types of boundary bands are shown.
[0030] Fig.16 An example of a boundary reference sample is shown.
[0031] Fig.17 An exemplary derivation of a sample is shown.
[0032] Fig.18 is a block diagram illustrating an example video encoder that may perform the techniques of this disclosure.
[0033] Fig.19 is a block diagram illustrating an example video decoder that may perform the techniques of this disclosure.
[0034] Fig. 20 is a flow chart illustrating an exemplary video encoding process.
[0035] Fig.21 is a flow chart illustrating an exemplary video decoding process.
[0036] Fig. 22 is a flow chart illustrating an exemplary video decoding process. DETAILED DESCRIPTION
[0037] Video coding (e.g., video encoding and / or video decoding) generally involves predicting a block of video data from an already encoded block of video data in the same picture (e.g., intra-frame prediction) or predicting a block of video data from an already encoded block of video data in a different picture (e.g., inter-frame prediction). In some instances, the video encoder also calculates residual data by comparing a predictive block (also referred to as a prediction block) with an original block. Thus, the residual data identifies the difference between the predicted block and the original block of video data, so that adding the residual data to the prediction block results in the original block of video. In some coding scenarios, in order to reduce the number of bits required to signal the residual data, the video encoder transforms and quantizes the residual data, and signals the transformed and quantized residual data in the encoded bitstream. The compression achieved by the transform and quantization process may be lossy, which means that the transform and quantization process may introduce distortion into the decoded video data.
[0038] The video decoder decodes the residual data and adds it to the prediction block to produce a reconstructed video block that more closely matches the original video block than the prediction block alone. The reconstructed block may have distortion or artifacts due to losses introduced by transforming and quantizing the residual data. One common type of artifact or distortion is known as blocking, where the boundaries of the blocks used to encode the video data are visible.
[0039] To further improve the quality of the decoded video, the video decoder may perform one or more filtering operations on the reconstructed video blocks. As part of performing the one or more filtering operations, the video decoder may, for example, perform one or more of deblocking filtering, sample adaptive offset (SAO) filtering, and adaptive loop filtering (ALF). The parameters of these filtering operations may be determined by the video encoder and explicitly signaled in the encoded video bitstream, or may be implicitly determined by the video decoder without explicitly signaling the parameters in the encoded video bitstream.
[0040] The present disclosure describes techniques that can improve intra prediction, including deriving and signaling a mode for linear weighted intra prediction, which may also be referred to as matrix intra prediction or matrix weighted intra prediction or affine linear weighted intra prediction (ALWIP). More specifically, for a current block of video data encoded in ALWIP mode, the present disclosure describes techniques for filtering boundary reference samples to generate a filtered prediction block. The filtered prediction block can improve the rate-distortion tradeoff of a block encoded in ALWIP mode by generating a more accurate prediction block.
[0041] As explained in more detail below, when a video encoder encodes a block in ALWIP mode, the video encoder generates a set of "intermediate" prediction samples by multiplying a reduced number of boundary samples by a matrix and a bias vector. The video encoder then upsamples the intermediate samples using linear interpolation to generate a prediction block. This process can result in prediction errors, which will be larger at the edges of the prediction blocks, resulting in larger residual values that require more bits to compress the video data. The present disclosure describes techniques for filtering intermediate samples to generate a final prediction block in a manner that can reduce the prediction error in the prediction block. For example, a video encoder configured according to the techniques of the present disclosure can apply an affine model to a subset of left edge samples and a subset of top edge samples to generate an intermediate block of intermediate samples, and then filter the intermediate samples by applying one or more filters in the vertical direction using the full set of left edge samples and the full set of top edge samples.
[0042] That is, the techniques of the present disclosure can result in a video encoder that generates a prediction block that more closely matches the original block of video data when using the ALWIP mode, and therefore requires smaller residual values and therefore fewer total bits to compress. By using fewer total bits to compress a block of video data encoded in the ALWIP mode, the techniques of the present disclosure can result in a video encoder that achieves a better rate-distortion tradeoff.
[0043] Figure 11 is a block diagram illustrating an exemplary video encoding and decoding system 100 that can perform the techniques of the present disclosure. The techniques of the present disclosure generally relate to decoding (encoding and / or decoding) video data. Generally, video data includes any data used to process video. Thus, video data can include original unencoded video, encoded video, decoded (e.g., reconstructed) video, and video metadata, such as signaling data.
[0044] like Figure 1 As shown in , in this example, system 100 includes a source device 102 that provides encoded video data to be decoded and displayed by a destination device 116. Specifically, source device 102 provides video data to destination device 116 via computer-readable medium 110. Each of source device 102 and destination device 116 may include any of a wide range of devices, including desktop computers, notebook (i.e., laptop) computers, mobile devices, tablet computers, set-top boxes, telephone handsets (e.g., smart phones), televisions, cameras, display devices, digital media players, video game consoles, video streaming devices, broadcast receiver devices, etc. 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.
[0045] exist Figure 1 In the example of , source device 102 includes video source 104, memory 106, video encoder 200, and output interface 108. Destination device 116 includes input interface 122, video decoder 300, memory 120, and display device 118. According to the present disclosure, the video encoder 200 of source device 102 and the video decoder 300 of destination device 116 can be configured to apply the technology described herein for decoding blocks in ALWIP mode. Therefore, source device 102 represents an example of a video encoding device, and 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 (e.g., an external camera). Similarly, destination device 116 may be docked with an external display device, rather than including an integrated display device.
[0046] like Figure 1The system 100 shown in is only an example. In general, any digital video encoding and / or decoding device can perform the techniques described herein for decoding blocks in ALWIP mode. The source device 102 and the destination device 116 are only examples of such decoding devices, wherein the source device 102 generates encoded video data for transmission to the destination device 116. The present disclosure refers to a "decoding" device as a device that performs decoding (encoding and / or decoding) on data. Therefore, the video encoder 200 and the video decoder 300 represent examples of decoding devices, specifically, examples of video encoders and video decoders, respectively. In some examples, the source device 102 and the destination device 116 can operate in a substantially symmetrical manner so that each device in the source device 102 and the destination device 116 includes a video encoding and decoding component. Therefore, the system 100 can support one-way or two-way video transmission between the source device 102 and the destination device 116, for example, for video streaming, video playback, video broadcasting, or video telephony.
[0047] Typically, video source 104 represents the source of video data (i.e., original, unencoded video data), and provides a continuous series of pictures (also referred to as "frames") of video data to video encoder 200, which encodes the data of 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 original video, and / or a video feed interface for receiving video from a video content provider. As another alternative, video source 104 may generate computer graphics-based data as source video, or a combination of live video, archived video, and computer-generated video. In each case, video encoder 200 encodes captured, pre-captured, or computer-generated video data. Video encoder 200 may rearrange pictures from the received order (sometimes referred to as "display order") into a decoding order for decoding. Video encoder 200 may generate a bitstream comprising encoded video data. Source device 102 may then output the encoded video data onto computer-readable medium 110 via output interface 108 for receipt and / or retrieval by, for example, input interface 122 of destination device 116 .
[0048] 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 can store original video data, for example, original video from the video source 104 and original decoded video data from the video decoder 300. Additionally or alternatively, the memories 106, 120 can store software instructions that can be executed by, for example, the video encoder 200 and the video decoder 300, respectively. Although the memory 106 and the memory 120 are shown separately from the video encoder 200 and the video decoder 300 in this example, it should be understood that the video encoder 200 and the video decoder 300 can also include internal memory for functionally similar or equivalent purposes. In addition, the memories 106, 120 can store, for example, encoded video data output from the video encoder 200 and input to the video decoder 300. In some examples, portions of the memories 106, 120 can be allocated as one or more video buffers, for example, to store original, decoded and / or encoded video data.
[0049] The computer-readable medium 110 may represent any type of medium or device capable of transmitting the 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 so that the source device 102 can directly send the encoded video data 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 the transmission signal including the encoded video data according to a communication standard (e.g., a wireless communication standard or protocol), and the input interface 122 may demodulate the received transmission signal according to the communication standard. The communication medium may include any wireless or wired communication medium, such as a radio frequency (RF) spectrum or one or more physical transmission lines. The communication medium may form part of a packet-based network, such as a local area network, a wide area network, or a global network such as the Internet. The communication medium may include a router, a switch, a base station, or any other device that may be used to facilitate communication from the source device 102 to the destination device 116.
[0050] In some examples, source device 102 may output the encoded data from output interface 108 to storage device 112. Similarly, destination device 116 may access the 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.
[0051] In some examples, the source device 102 may output the encoded video data to a file server 114 or another intermediate storage device that may store the encoded video data generated by the source device 102. The destination device 116 may access the stored video data from the file server 114 via streaming or downloading. The file server 114 may be any type of server device capable of storing the encoded video data and sending the encoded video data to the destination device 116. The file server 114 may represent a network 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 via 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 protocol, a download transmission protocol, or a combination thereof.
[0052] Output interface 108 and input interface 122 may represent wireless transmitters / receivers, modems, wired network components (e.g., Ethernet cards), wireless communication components that operate according to any variation of the IEEE 802.11 standard, or other physical components. In examples where output interface 108 and input interface 122 include wireless components, output interface 108 and input interface 122 may be configured to transmit data, such as encoded video data, according to a cellular communication standard (e.g., 4G, 4G-LTE (Long Term Evolution), Advanced LTE, 5G, etc.). In some examples where output interface 108 includes a wireless transmitter, output interface 108 and input interface 122 may be configured to transmit data, such as encoded video data, according to other wireless standards (e.g., IEEE 802.11 specifications, IEEE 802.15 specifications (e.g., ZigBee 5G, etc.). TM ),Bluetooth TM Standards, etc.) to transmit data, such as encoded video data. In some examples, source device 102 and / or destination device 116 may include corresponding system-on-chip (SoC) devices. For example, source device 102 may include a SoC device for performing functions attributed to video encoder 200 and / or output interface 108, and destination device 116 may include a SoC device for performing functions attributed to video decoder 300 and / or input interface 122.
[0053] The techniques of the present disclosure may be applied to video decoding to support any of a variety of multimedia applications, such as over-the-air television broadcasting, cable television transmission, satellite television transmission, Internet streaming video transmission, such as Dynamic Adaptive Streaming over HTTP (DASH), digital video encoded onto a data storage medium, decoding of digital video stored on a data storage medium, or other applications.
[0054] The input interface 122 of the destination device 116 receives an 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 and also used by the video decoder 300, such as syntax elements with values describing characteristics and / or processing of video blocks or other encoded 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 liquid crystal display (LCD), a plasma display, an organic light emitting diode (OLED) display, or another type of display device.
[0055] Despite Figure 1 2, but in some examples, the video encoder 200 and the video decoder 300 may both be integrated with an audio encoder and / or an audio decoder and may include appropriate MUX-DEMUX units or other hardware and / or software to process multiplexed streams including both audio and video in a common data stream. If applicable, the MUX-DEMUX units may conform to the ITU H.223 multiplexer protocol or other protocols, such as the User Datagram Protocol (UDP).
[0056] The video encoder 200 and the video decoder 300 can be implemented as any of a variety of suitable encoder circuits and / or decoder circuits, such as one or more microprocessors, digital signal processors (DSPs), application specific integrated circuits (ASICs), field programmable gate arrays (FPGAs), discrete logic units, software, hardware, firmware, or any combination thereof. When the technology is partially implemented in software, the device can store instructions for the software in a suitable non-transitory computer-readable medium and use one or more processors to execute the instructions in the hardware to perform the technology of the present disclosure. Each of the video encoder 200 and the video decoder 300 can be included in one or more encoders or decoders, and any of the encoders or decoders can be integrated as part of a combined encoder / decoder (CODEC) in the corresponding device. 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.
[0057] The video encoder 200 and the video decoder 300 can operate according to a video coding standard, such as ITU-T H.265, also known as high-efficiency video coding (HEVC) or an extension thereof, such as multi-view and / or scalable video coding extension. Alternatively, the video encoder 200 and the video decoder 300 can operate according to other proprietary or industry standards (e.g., ITU-T H.266, also known as universal video coding (VVC)). Bross et al. described the latest draft of the VVC standard in the 17th meeting of the Joint Video Experts Group (JVET) of ITU-T SG 16WP 3 and ISO / IEC JTC 1 / SC 29 / WG 11 (January 7-17, 2020, Brussels, Belgium, JVET-Q2001-v15) in "Universal Video Coding (Draft 8)" (hereinafter referred to as "VVC Draft 8"). However, the technology of the present disclosure is not limited to any particular coding standard.
[0058] Typically, the video encoder 200 and the video decoder 300 can perform block-based decoding on the picture. The term "block" generally refers to a structure that includes data to be processed (e.g., encoded, decoded, or other processing 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. Typically, the video encoder 200 and the video decoder 300 can decode video data represented in a YUV (e.g., Y, Cb, Cr) format. That is, the video encoder 200 and the video decoder 300 can decode luminance and chrominance components instead of decoding red, green and blue (RGB) data of the picture sample, where the chrominance component may include both red-toned and blue-toned chrominance components. In some examples, the video encoder 200 converts the received RGB format data into a YUV representation before encoding, and the video decoder 300 converts the YUV representation into an RGB format. Alternatively, pre-processing and post-processing units (not shown) can perform these conversions.
[0059] The present disclosure may generally refer to decoding (e.g., encoding and decoding) of a picture to include the process of encoding or decoding picture data. Similarly, the present disclosure may refer to decoding a picture block to include the process of encoding or decoding the data of the block, for example, prediction and / or residual coding. The encoded video bitstream typically includes a series of values of syntax elements that represent coding decisions (coding modes) and partition the picture into blocks. Therefore, references to decoding a picture or block should generally be understood as decoding the values of the syntax elements that form the picture or block.
[0060] HEVC defines various blocks, including coding units (CUs), prediction units (PUs), and transform units (TUs). According to HEVC, a video decoder (e.g., video encoder 200) partitions a coding tree unit (CTU) into CUs according to a quadtree structure. That is, the video decoder partitions the CTU and the CU into four equal, non-overlapping squares, and each node of the quadtree has neither zero child nodes nor four child nodes. A node without child nodes may be referred to as 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 decoder may further partition the PU and TU. For example, in HEVC, a residual quadtree (RQT) represents the partitioning of a TU. In HEVC, a PU represents inter-prediction data, and a TU represents residual data. An intra-predicted CU includes intra-prediction information, such as an intra-mode indication.
[0061] As another example, the video encoder 200 and the video decoder 300 may be configured to operate according to VVC. According to VVC, a video encoder (e.g., the video encoder 200) partitions a picture into a plurality of coding tree units (CTUs). The video encoder 200 may partition the CTUs according to a tree structure (e.g., a quadtree binary tree (QTBT) structure or a multi-type tree (MTT) structure). The QTBT structure removes the concept of multiple partition types, such as the separation between CU, PU, and TU of HEVC. The QTBT structure includes two levels: a first level partitioned according to quadtree partitioning, and a second level partitioned according to binary tree partitioning. The root node of the QTBT structure corresponds to the CTU. The leaf nodes of the binary tree correspond to coding units (CUs).
[0062] In the MTT partitioning structure, blocks can be partitioned using quadtree (QT) partitioning, binary tree (BT) partitioning, and one or more types of ternary tree (TT) (also known as ternary tree (TT)) partitioning. A ternary tree or ternary tree partitioning is a partitioning that splits a block into three sub-blocks. In some examples, a ternary tree or ternary tree partitioning divides a block into three sub-blocks without dividing the original block through the center. The partitioning types in MTT (e.g., QT, BT, and TT) can be symmetric or asymmetric.
[0063] In some examples, the video encoder 200 and the video decoder 300 may use a single QTBT or MTT structure to represent each of the luma and chroma components, while in other examples, the video encoder 200 and the video decoder 300 may use two or more QTBT or MTT structures, such as one QTBT / MTT structure for the luma component and another QTBT / MTT structure for the two chroma components (or two QTBT / MTT structures for corresponding chroma components).
[0064] The video encoder 200 and the video decoder 300 may be configured to use quadtree segmentation, QTBT segmentation, MTT segmentation, or other segmentation structures per HEVC. For purposes of explanation, a description of the technology of the present disclosure is given for QTBT segmentation. However, it should be understood that the technology of the present disclosure may also be applied to a video encoder configured to use quadtree segmentation, or other types of segmentation.
[0065] In some examples, a CTU includes a coding tree block (CTB) of luma samples of a picture having three sample arrays, two corresponding CTBs of chroma samples of the picture, or a CTB of samples of a monochrome picture or a picture encoded using three separate color planes and syntax structures for encoding the samples. A CTB can be an N×N block of samples for some value of N, so that the division of a component into a CTB is a partition. A component is an array or a single sample of one of the three arrays (luminance and two chroma) constituting a picture in 4:2:0, 4:2:2, or 4:4:4 color format, or an array or a single sample of an array constituting a picture in monochrome form. In some examples, a coding block is an M×N block of samples for some values of M and N, so that the division of a CTB into a coding block is a partition.
[0066] Blocks (e.g., CTUs or CUs) may be grouped into pictures in various ways. As an example, a block may refer to a matrix region of a CTU row within a particular tile in a picture. A tile may be a matrix region of a CTU within a particular tile column and a particular tile row in a picture. A tile column refers to a matrix region of a CTU having a height equal to the picture height and a width specified by a syntax element (e.g., such as in a picture parameter set). A tile row refers to a matrix region of a CTU having a height specified by a syntax element (e.g., such as in a picture parameter set) and a width equal to the picture width.
[0067] In some examples, a tile may be partitioned into multiple building blocks, each of which may include one or more CTU rows within the tile. A tile that is not partitioned into multiple building blocks may also be referred to as a building block. However, a building block that is a proper subset of a tile may not be referred to as a tile.
[0068] Tiles in a picture may also be arranged in slices. A slice may be an integer number of tiles of a picture that may be contained exclusively in a single network abstraction layer (NAL) unit. In some examples, a slice includes a plurality of complete tiles or only a complete tile of a contiguous sequence of tiles.
[0069] This disclosure may use "N×N" and "N by N" interchangeably to refer to the sample dimensions of a block (e.g., a CU or other video block) in terms of vertical and horizontal dimensions, for example, 16×16 samples or 16 by 16 samples. Typically, a 16×16 CU will have 16 samples in the vertical direction (y=16) and 16 samples in the horizontal direction (x=16). Similarly, an N×N CU typically has N samples in the vertical direction and N samples in the horizontal direction, where N represents a non-negative integer value. The samples in a CU may be arranged in rows and columns. In addition, a CU does not necessarily need to have the same number of samples in the horizontal direction as in the vertical direction. For example, a CU may include N×M samples, where M does not necessarily equal N.
[0070] The video encoder 200 encodes the video data representing prediction and / or residual information and other information of the CU. The prediction information indicates how to predict the CU in order to form the prediction block of the CU. The residual information generally represents the sample-by-sample difference between the samples of the CU and the prediction block before encoding.
[0071] In order to predict a CU, the video encoder 200 can generally form a prediction block of the CU by inter-frame prediction or intra-frame prediction. Inter-frame prediction generally refers to predicting a CU from data of a previously encoded picture, while intra-frame prediction generally refers to predicting a CU from previously encoded data of the same picture. In order to perform inter-frame prediction, the video encoder 200 can use one or more motion vectors to generate a prediction block. The video encoder 200 can generally perform a motion search to identify a reference block that closely matches the CU, for example, in terms of the difference between the CU and the reference block. The video encoder 200 can use the sum of absolute differences (SAD), the sum of square differences (SSD), the mean absolute difference (MAD), the mean square difference (MSD), or other such difference calculations to determine a difference metric to determine whether the reference block closely matches the current CU. In some examples, the video encoder 200 can use unidirectional prediction or bidirectional prediction to predict the current CU.
[0072] Some examples of VVC also provide an affine motion compensation mode, which can be considered an inter-frame prediction mode. In the affine motion compensation mode, the video encoder 200 can determine two or more motion vectors representing non-translational motion (e.g., zooming in or out, rotation, perspective motion, or other irregular motion types).
[0073] To perform intra prediction, the video encoder 200 can select an intra prediction mode to generate a prediction block. Some examples of VVC provide 67 intra prediction modes, including various directional modes as well as planar modes and DC modes. Typically, the video encoder 200 selects an intra prediction mode that describes neighboring samples of a current block (e.g., a block of a CU), and predicts samples of the current block from these neighboring samples. Assuming that the video encoder 200 encodes CTUs and CUs in a raster scan order (from left to right, from top to bottom), such samples can typically be above, above left, or to the left of the current block in the same picture as the current block.
[0074] The video encoder 200 encodes data representing the prediction mode of the current block. For example, for inter-frame prediction mode, the video encoder 200 can encode data representing which various available inter-frame prediction modes are used and motion information of the corresponding mode. For unidirectional or bidirectional inter-frame prediction, for example, the video encoder 200 can encode the motion vector using advanced motion vector prediction (AMVP) or merge mode. The video encoder 200 can encode the motion vector of the affine motion compensation mode using a similar mode.
[0075] After prediction (e.g., intra-frame prediction or inter-frame prediction of a block), the video encoder 200 can calculate residual data for the block. The residual data (e.g., a residual block) represents the sample-by-sample difference between the block and the prediction block formed using the corresponding prediction mode of the block. The video encoder 200 can apply one or more transforms to the residual block to produce transformed data in a transform domain rather than a sample domain. For example, the video encoder 200 can apply a discrete cosine transform (DCT), an integer transform, a wavelet transform, or a conceptually similar transform to the residual video data. In addition, the video encoder 200 can apply a secondary transform after the first transform, such as a mode-dependent non-separable secondary transform (MDNSST), a signal-dependent transform, a Karhunen-Loeve transform (KLT), and the like. The video encoder 200 generates transform coefficients after applying the one or more transforms.
[0076] As mentioned above, after performing any transforms to produce transform coefficients, the video encoder 200 can perform quantization of the transform coefficients. Quantization generally refers to the process of quantizing the transform coefficients to possibly reduce the amount of data used to represent the transform coefficients, thereby providing further compression. By performing the quantization process, the video encoder 200 can reduce the bit depth associated with some or all quantized coefficients. For example, the video encoder 200 can round 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 can perform a bitwise right shift of the value to be quantized.
[0077] After quantization, the video encoder 200 can scan the transform coefficients to generate a one-dimensional vector from a two-dimensional matrix including the quantized transform coefficients. The scan can be designed to place higher energy (and therefore lower frequency) transform coefficients in front of the vector and lower energy (and therefore higher frequency) transform coefficients behind the vector. In some examples, the video encoder 200 can scan the quantized transform coefficients using a predefined scan order to generate a serialized vector, and then entropy encode the quantized transform coefficients of the vector. In other examples, the video encoder 200 can perform adaptive scanning. After scanning the quantized transform coefficients to form a one-dimensional vector, the video encoder 200 can entropy encode the one-dimensional vector, for example, according to context adaptive binary arithmetic coding (CABAC). The video encoder 200 can also entropy encode the values of the syntax elements describing the metadata associated with the encoded data for use by the video decoder 300 when decoding the video data.
[0078] To perform CABAC, the video encoder 200 may assign context within a context model to a symbol to be transmitted. The context may relate to, for example, whether the neighboring values of the symbol are zero values. The probability determination may be based on the context assigned to the symbol.
[0079] The video encoder 200 may also generate syntax data (e.g., block-based syntax data, picture-based syntax data, and sequence-based syntax data) for the video decoder 300, for example, in a picture header, a block header, a slice header, or other syntax data (e.g., a sequence parameter set (SPS), a picture parameter set (PPS), or a video parameter set (VPS). The video decoder 300 may similarly decode such syntax data to determine how to decode the corresponding video data.
[0080] In this way, the video encoder 200 can generate a bitstream including encoded video data, for example, a syntax element describing the partitioning of a picture into blocks (e.g., CUs) and prediction and / or residual information of the blocks. Finally, the video decoder 300 can receive the bitstream and decode the encoded video data.
[0081] In general, the video decoder 300 performs a process that is the reverse of the process performed by the video encoder 200 to decode the encoded video data of the bitstream. For example, the video decoder 300 may use CABAC to decode the values of the syntax elements of the bitstream in a manner substantially similar to (although reversed from) the CABAC encoding process of the video encoder 200. The syntax elements may define partitioning information for partitioning a picture into CTUs according to a corresponding partitioning structure (e.g., a QTBT structure) and partitioning each CTU to define CUs of the CTU. The syntax elements may also define prediction and residual information for a block (e.g., a CU) of video data.
[0082] The residual information may be represented by, for example, quantized transform coefficients. The video decoder 300 may inverse quantize and inverse transform the quantized transform coefficients of the block to reproduce the residual block of the block. The video decoder 300 uses the prediction mode (intra-frame or inter-frame prediction) and related prediction information (e.g., motion information for inter-frame prediction) sent by the signal to generate a prediction block for the block. The video decoder 300 may then combine the prediction block and the residual block (on a sample-by-sample basis) to reproduce the original block. The video decoder 300 may perform additional processing (e.g., performing a deblocking process) to reduce visual artifacts along the boundaries of the blocks.
[0083] According to the technology of the present disclosure, the video decoder 300 can be configured to: determine that a current block of video data is encoded in ALWIP mode; derive a left edge sample subset and a top edge sample subset based on a left edge neighboring sample set of the current block and a top edge neighboring sample set of the current block; apply an affine model to the left edge sample subset and the top edge sample subset to generate an intermediate block of intermediate samples; filter the intermediate samples using the left edge neighboring sample set and the top edge neighboring sample set of the current block to generate a final prediction block; and decode the current block of video data based on the final prediction block. The video encoder 200 as part of a decoding loop of a video encoding process may similarly be configured to: determine that a current block of video data is encoded in ALWIP mode; derive a left edge sample subset and a top edge sample subset based on a left edge neighboring sample set of the current block and a top edge neighboring sample set of the current block; apply an affine model to the left edge sample subset and the top edge sample subset to generate an intermediate block of intermediate samples; filter the intermediate samples using the left edge neighboring sample set and the top edge neighboring sample set of the current block to generate a final prediction block; and decode the current block of video data based on the final prediction block.
[0084] The present disclosure may generally refer to "signaling" certain information, such as syntax elements. The term "signaling" may generally refer to the communication of values for syntax elements and / or other data used to decode the encoded video data. That is, the video encoder 200 may signal the values of syntax elements in the bitstream. Generally, signaling refers to generating values in the bitstream. As mentioned above, the source device 102 may transmit the bitstream to the destination device 116 in substantially real time, or in non-real time (e.g., as may occur when the syntax elements are stored to the storage device 112 for later retrieval by the destination device 116).
[0085] Figure 2A and Figure 2B1 is a conceptual diagram showing an exemplary QTBT structure 130 and a corresponding CTU 132. The solid lines represent quadtree splitting, and the dashed lines indicate binary tree splitting. In each split (i.e., non-leaf) node of the binary tree, a flag is signaled to indicate which split type (i.e., horizontal or vertical) is used, where in this example, 0 indicates horizontal splitting and 1 indicates vertical splitting. For quadtree splitting, there is no need to indicate the split type because the quadtree node splits the block horizontally and vertically into 4 sub-blocks of equal size. Therefore, the video encoder 200 can encode the syntax elements (e.g., split information) of the regional tree level (i.e., solid line) of the QTBT structure 130 and the syntax elements (e.g., split information) of the prediction tree level (i.e., dashed line) of the QTBT structure 130 and the video decoder 300 can decode these syntax elements. The video encoder 200 can encode the video data and the video decoder can decode the video data, such as the prediction and transformation data of the CU represented by the terminal leaf node of the QTBT structure 130.
[0086] generally, Figure 2B The CTU 132 may be associated with parameters defining block sizes corresponding to nodes of the QTBT structure 130 at the first and second levels. These parameters may include a CTU size (indicating the size of the CTU 132 in samples), a minimum quadtree size (MinQTSize, indicating the minimum allowed quadtree leaf node size), a maximum binary tree size (MaxBTSize, indicating the maximum allowed binary tree root node size), a maximum binary tree depth (MaxBTDepth, indicating the maximum allowed binary tree depth), and a minimum binary tree size (MinBTSize, indicating the minimum allowed binary tree leaf node size).
[0087] 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 segmented according to a quadtree segmentation. That is, the nodes of the first level are leaf nodes (without child nodes) or have four child nodes. The example of the QTBT structure 130 represents such nodes as a parent node and a child node including a branching solid line. If the node of the first level is not larger than the maximum allowed binary tree root node size (MaxBTSize), the nodes may be further segmented by the corresponding binary tree. The binary tree splitting of a node may be iterated until the node generated by 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 a dotted line with a branch. The binary tree leaf node is called a coding unit (CU), which is used for prediction (e.g., intra-picture or inter-picture prediction) and transformation without any further segmentation. As discussed above, a CU may also be referred to as a "video block" or "block".
[0088] In one example of a QTBT partitioning structure, the CTU size is set to 128×128 (luminance sample and two corresponding 64×64 chroma samples), MinQTSize is set to 16×16, MaxBTSize is set to 64×64, MinBTSize (for both width and height) is set to 4, and MaxBTDepth is set to 4. Quadtree partitioning is first applied to the CTU to generate a quadtree leaf node. The quadtree leaf node can have a size from 16×16 (i.e., MinQTSize) to 128×128 (i.e., CTU size). If the quadtree leaf node is 128×128, the node will not be further split by the binary tree because the size exceeds MaxBTSize (i.e., 64×64 in this example). Otherwise, the quadtree leaf node will be further split by the binary tree. Therefore, the quadtree leaf node is also the root node of the binary tree, and the binary tree depth is 0. When the binary tree depth reaches MaxBTDepth (4 in this example), further splitting is not allowed. A binary tree node with a width equal to MinBTSize (4 in this example) implies that no further horizontal splits are allowed. Similarly, a binary tree node with a height equal to MinBTSize implies that no further vertical splits are allowed for the binary tree node. As mentioned above, the leaf nodes of the binary tree are called CUs and are further processed according to prediction and transformation without further segmentation.
[0089] Figure 3An example of the direction of intra prediction is shown, where the arrow points to the reference sample. The video encoder 200 and the video decoder 300 may be configured to perform intra prediction using both wide-angle and non-wide-angle. Intra prediction modes include a DC prediction mode, a planar prediction mode, and a direction (or angle) prediction mode. As Figure 3 shown, in the Versatile Video Coding Test Model 2 (VTM2), the direction prediction of a square block uses directions between -135 degrees and 45 degrees of the current block ("Algorithm description for Versatile Video Coding and Test Model 2 (VTM2)" by J. Chen, Y. Ye, S. Kim, the 11th JVET Conference, Ljubljana, Slovenia, July 2018 (JVET-K1002)).
[0090] In VTM2, the block structure of the prediction block for specifying intra prediction is not limited to square (width w = height h). Rectangular or non-square prediction blocks (w > h or w < h) can increase the decoding efficiency based on the characteristics of the content.
[0091] In such rectangular blocks, restricting the direction of intra prediction to within -135 degrees to 45 degrees may result in a situation where a farther reference sample rather than a nearer reference sample is used for intra prediction. This design is likely to have an impact on the decoding efficiency. Relaxing the restriction range so that nearer reference samples (angles outside -135 to 45 degrees) can be used for prediction may be more beneficial. Figure 4 An example of this situation is given.
[0092] Figure 4 An example of an 8×4 rectangular block (current block 400) is shown, where the "nearer" reference sample (circle 404) is not used for intra prediction of the current block 400. Instead, a farther reference sample (circle 402) can be used because of the restriction that the intra prediction direction must be in the range from -135 degrees to 45 degrees.
[0093] In the 12th JVET conference, modifications to wide-angle intra prediction were proposed in "CE3-related: Unification of angular intra prediction for square and non-square blocks" by L. Zhao, X. Zhao, S. Liu, and X. Li (12th JVET Conference, Macau SAR, China, October 2018, JVET-L0279) and adopted into VTM3. VTM3 is described in "Algorithm description for Versatile Video Coding and Test Model 3 (VTM3)" by J. Chen, Y. Ye, and S. Kim (12th JVET Conference, Macau SAR, China, October 2018, JVET-L1002).
[0094] The proposal includes two modifications to unify angular intra prediction for square and non-square blocks. First, the angular prediction direction is modified to cover the diagonal direction for all block shapes. Second, for Figure 5A-5C For all block aspect ratios (square and non-square) shown in , all angular directions are kept in the range between the lower left diagonal direction and the upper right diagonal direction. In addition, the number of reference samples in the top reference row and the left reference column can be restricted to 2*width+1 and 2*height+1 for all block shapes.
[0095] Figure 5A-5C is a conceptual diagram illustrating mode mapping for coding units with different shapes. The video encoder 200 and the video decoder 300 may implement a mode mapping process to determine available intra prediction modes for CUs of various shapes and sizes. Figure 5A Square blocks are shown that do not require angular mode remapping. Figure 5B Angular mode remapping for horizontal non-square blocks is shown. Figure 5C Angular mode remapping for vertical non-square blocks is shown. Figure 5B and Figure 5C In , Mode A and Mode B are replaced by Map Mode A and Map Mode B, so that there are still only 65 available angle modes, but these 65 available modes are Figure 5A , Figure 5B and Figure 5C Different between.
[0096] exist Figure 5AIn the example of , CU 502 is a square block (ie, w=h). Diagonal direction 504 corresponds to a 45 degree prediction angle, and diagonal direction 506 corresponds to a -135 degree prediction angle. All available prediction modes for CU 502 are between diagonal direction 504 and diagonal direction 506, and therefore no mode remapping is required.
[0097] exist Figure 5B In the example of , CU 512 is a non-square, rectangular block, where w is greater than h. Diagonal direction 514 represents a diagonal direction running from the lower left corner of CU 512 to the upper right corner of CU 512, and diagonal direction 516 represents a diagonal direction running from the upper right corner of CU 512 to the lower left corner of CU 512. Since modes A and B are not between diagonal directions 514 and 516, mode A and mode B are replaced by mapping mode A and mapping mode B so that all available prediction modes for CU 512 are between diagonal direction 514 and diagonal direction 516.
[0098] exist Figure 5C In the example of , CU 522 is a non-square, rectangular block, where h is greater than w. Diagonal direction 524 represents a diagonal direction running from the lower left corner of CU 522 to the upper right corner of CU 522, and diagonal direction 526 represents a diagonal direction running from the upper right corner of CU 522 to the lower left corner of CU 522. Since modes A and B are not between diagonal directions 524 and 526, mode A and mode B are replaced by mapping mode A and mapping mode B so that all available prediction modes for CU 522 are between diagonal direction 624 and diagonal direction 526.
[0099] Figure 6 This is a diagram of the wide angle used in VTM2. Fig. 7A The wide angle mode (labeled as Figure 6 -1 to -10 and 67 to 76 in the Fig. 7A In the example of , mode 50 corresponds to a prediction angle of -90 degrees. Mode 66 corresponds to a prediction angle of -135 degrees, and mode 2 corresponds to a prediction angle of 45 degrees.
[0100] Fig. 7A The wide angle (marked as Fig. 7A -1 to -14 and 67 to 80 in the angular range, for a total of 93 angle modes. Figure 8In the example, mode 50 corresponds to a prediction angle of -90 degrees. Mode 66 corresponds to a prediction angle of -135 degrees, and mode 2 corresponds to a prediction angle of 45 degrees. Although VTM3 defines 95 modes, only 67 modes are allowed for any block size. The exact modes allowed depend on the width and height ratio of the block. This is achieved by limiting the range of modes based on the block size.
[0101] Figure 7B is a table showing the relationship between the intra prediction mode and the intra prediction angle. Specifically, Figure 7B Table 1 in specifies the mapping table between intra prediction mode predModeIntra and angle parameter intraPredAngle in VTM3. VTM3 is described in B. Bross, J. Chen, S. Liu, "Versatile Video Coding (Draft 3)", 12th JVET Conference, Macau SAR, China, October 2018, JVET-L100.
[0102] In Table 1, angle patterns corresponding to non-square block diagonals are shown with a caret (^). Vertical and horizontal patterns are shown with a pound sign (#) for reference. Square block diagonal patterns are shown with an asterisk (*) in Table 1. Hereinafter, angle patterns with positive intraPredAngle values are referred to as positive angle patterns (pattern index <18 or >50), and angle patterns with negative intraPredAngle values are referred to as negative angle patterns (pattern index >18 and <50).
[0103] The inverse angle parameter invAngle is derived based on intraPredAngle as follows:
[0104]
[0105] Note that intraPredAngle values that are multiples of 32 (0, 32, 64, 128, 256, 512) always correspond to predictions from non-fractional reference array samples, as is the case in the VTM3 specification.
[0106] Table 2: Diagonal patterns for various aspect ratios
[0107] Block aspect ratio (width / height) Diagonal mode 1(Square) 2,34,66 2 8,28,72 4 12,24,76 8 14,22,78 16 16,20,80 1 / 2 -6,40,60 1 / 4 -10,44,56 1 / 8 -12,46,54 1 / 16 -14,48,52
[0108] The video encoder 200 and the video decoder 300 may be configured to perform intra-sub-partition coding (ISP). The intra-sub-partition (ISP) coding mode is proposed in "CE3: Line-based intra coding mode" (hereinafter referred to as "JVET-L0076") published by S. De Luxán Hernández, H. Schwarz, D. Marpe, and T. Wiegand (HHI). When the ISP coding mode is used to decode the video data, the video encoder 200 and the video decoder 300 may be configured to vertically or horizontally divide (e.g., split or partition) the luma intra prediction block into two (2) or four (4) sub-partitions depending on the block size. Refer to the following Figure 8 and Fig. 9 An example of block splitting in ISP decoding mode is described.
[0109] Figure 8 is a conceptual diagram showing an exemplary vertical and horizontal partitioning of a block. Figure 8 As shown in , the current block 800 is an ISP block. That is, the block 800 is a block to be split into sub-partitions, and each sub-partition is to be encoded using intra-frame prediction. The current block 800 has a height (H) and a width. In the ISP decoding mode, the video encoder 200 and / or the video decoder 300 can be configured to split the current block 800 horizontally or vertically. Figure 8 In an example of , the video encoder 200 and / or the video decoder 300 may be configured to split the current block 800 into two sub-partitions. When the horizontal partition type is used, the video encoder 200 and / or the video decoder 300 may split the current block 800 into sub-partitions 802 and 804. Each of the sub-partitions 802 and 804 has a height equal to H / 2 and a width equal to W. When the vertical partition type is used, the video encoder 200 and / or the video decoder 300 may split the current block 800 into sub-partitions 806 and 808. Each of the sub-partitions 806 and 808 has a height equal to H and a width equal to W / 2.
[0110] Fig. 9 is a conceptual diagram showing other examples of vertical and horizontal division of blocks. Fig. 9The current block 900 is shown again, which is an ISP block. In this example, the video encoder 200 and / or the video decoder 300 may split the current block 900 into four sub-partitions. When the horizontal split type is used, the video encoder 200 and / or the video decoder 300 may split the current block 900 into sub-partitions 910, 912, 914, and 916. Each of the sub-partitions 910, 912, 914, and 916 has a height equal to H / 4 and a width equal to W. When the vertical split type is used, the video encoder 200 and / or the video decoder 300 may split the current block 900 into sub-partitions 920, 922, 924, and 926. Each of the sub-partitions 920, 922, 924, and 926 has a height equal to H and a width equal to W / 4.
[0111] Figure 8 and Fig. 9 This is merely an exemplary split type. In other examples of ISP, the current block can be split into any number of partitions (e.g., 3, 5, 6, etc.). Additionally, in some examples, the sizes of the sub-partitions do not need to be symmetrical. That is, the sub-partitions can have different sizes.
[0112] In one example, two different categories of processing order, referred to as "normal" order and "reverse" order, may be used based on the intra-coding mode and split type utilized. In the normal order, the first sub-partition to be processed is the sub-partition containing the upper left samples of the CU, and then proceeds downward (horizontal split) or to the right (vertical split). The video encoder 200 may signal a bit indicating the split type (e.g., horizontal or vertical split) of the CU to the video decoder 300. In another example, the reverse processing order starts with the sub-partition containing the lower left samples of the CU and continues upward, or starts with the sub-partition containing the upper right samples of the CU and continues to the left.
[0113] An ISP variant that uses only normal processing order is used in JVET WD4. It should be noted that the terms sub-block and sub-partition are used interchangeably in this document and both refer to blocks obtained by splitting a decoded block using ISP.
[0114] The following shows some of the syntax and semantics associated with ISP in JVET WD4, where the symbols <<**>> and << / **> The relevant syntax is shown.
[0115] Decoding unit syntax table
[0116]
[0117]
[0118] Transformation tree syntax table
[0119]
[0120]
[0121] Semantics of decoding units
[0122] <<**>>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. intra_subpartitions_mode_flag[x0][y0] equal to 0 specifies that the current intra-coding unit is not partitioned into rectangular transform block subpartitions.
[0123] When intra_subpartitions_mode_flag[x0][y0] is not present, it is inferred to be equal to 0.
[0124] 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, it is inferred to be equal to 0.
[0125] The variable IntraSubPartitionsSplitType specifies the split type used for the current luma coding block, as shown in Table 2-3. IntraSubPartitionsSplitType is derived as follows:
[0126] – If intra_subpartitions_mode_flag[x0][y0] is equal to 0, IntraSubPartitionsSplitType is set equal to 0.
[0127] – Otherwise, IntraSubPartitionsSplitType is set equal to 1 + intra_subpartitions_split_flag[x0][y0].
[0128] Table 2-3 - Naming associations with IntraSubPartitionsSplitType
[0129] IntraSubPartitionsSplitType Naming of IntraSubPartitionsSplitType 0 ISP_NO_SPLIT 1 ISP_HOR_SPLIT 2 ISP_VER_SPLIT
[0130] The variable NumIntraSubPartitions specifies the number of transform block subpartitions that the intra luma decoding block is divided into. NumIntraSubPartitions is derived as follows:
[0131] – If IntraSubPartitionsSplitType is equal to ISP_NO_SPLIT, then NumIntraSubPartitions is set equal to 1.
[0132] – Otherwise, NumIntraSubPartitions is set equal to 2 if one of the following conditions is true:
[0133] –cbWidth is equal to 4 and cbHeight is equal to 8,
[0134] –cbWidth is equal to 8 and cbHeight is equal to 4.
[0135] – Otherwise, NumIntraSubPartitions is set equal to 4. << / **> >
[0136] Fig.10 A diagram of reference samples in multiple reference rows that can be used for intra prediction of a coded block is shown. The video encoder 200 and the video decoder 300 can be configured to perform multiple reference row prediction. Samples near the coded block are used for intra prediction of the block. Typically, the reconstructed reference sample rows closest to the left and top boundaries of the coded block are used as reference samples for intra prediction. However, VVCWD4 also enables other samples near the coded block to be used as reference samples. Fig.10 Reference sample rows that can be used for intra prediction are shown. For each coded block, an index indicating the used reference row is signaled.
[0137] In VVC WD4, only reference lines with MRLIdx equal to 0, 1 and 3 can be used. The index of the reference line used to decode the block (values 0, 1 and 2 indicate lines with MRLIdx 0, 1 and 3 respectively) is encoded using a truncated unary codeword. For reference lines with MRLIdx>0 used, planar and DC modes are not used.
[0138] The video encoder 200 and the video decoder 300 can be configured to perform position-dependent intra prediction combinations. Block-based intra prediction is part of video standards such as AVC, HEVC, VVC, etc. Typically, reference sample rows from adjacent reconstructed blocks are used to predict samples within the current block. One or more rows of samples can be used for prediction. Reference samples are adopted by typical intra prediction modes such as DC, plane, and angle / direction modes.
[0139] Position-dependent intra prediction combining (PDCP) in J. Pfaff, B. Stallenberger, M. It was proposed in "CE3: Affine linear weighted intra prediction (CE3-4.1, CE3-4.2)" (JVET-N0217) by P.Merkle, P.Helle, T.Hinz, H.Schwarz, D.Marpe, T.Wiegand (HHI) and further simplified in JVET-M0102. In "Algorithm description for Versatile Video Coding and Test Model 3 (VTM3)" (JVET-L1002) submitted to JVET's Call for Proposals (Macau, China, October 2018), PDCP is applied to planar, DC, horizontal, and vertical modes without signaling, as outlined below. In “Non-CE3: A unified luma intra mode list construction process” (JVET-M0528) published by F. Bossen and K. Misra, PDPC was further extended to diagonal modes and modes adjacent to diagonal modes.
[0140] The prediction sample pred(x,y) at (x,y) is predicted using an intra prediction mode (DC, planar, angular) and its value is modified using the PDPC expression for a single reference sample row:
[0141] pred(x,y)=(wL×R -1,y +wT×R x,-1 –wTL×R -1,-1 +(64–wL–wT+wTL)×pred(x,y)+32)>>6, (Formula 1)
[0142] Where R x,-1 , R -1,y Respectively represent the reference samples located at the top and left of the current sample (x, y), and R -1,-1 Represents the reference sample located at the top left corner of the current block. For DC mode, for a block with size width and height, the weight is calculated as follows:
[0143] wT=32>>((y<<1)>>shift), wL=32>>((x<<1)>>shift), wTL=(wL>>4)+(wT>>4),
[0144] Where shift = (log 2 (width)+log 2 (height)+2)>>2,
[0145] For planar mode wTL=0, for horizontal mode wTL=wT, and for vertical mode wTL=wL. The PDPC weights can only be calculated by addition and shift. The value of pred(x,y) can be calculated in a single step using Equation 1.
[0146] Fig.11A The DC-mode PDPC weights (wL, wT, wTL) at the (0,0) position within a 4×4 block are shown. Fig. 11B The DC-mode PDPC weights (wL, wT, wTL) for the (1,0) position within a 4×4 block are shown. If PDPC is applied to DC, planar, horizontal, and vertical intra modes, no additional boundary filters, such as DC-mode boundary filters or horizontal / vertical mode edge filters, are applied. Equation 1 can be generalized to include reference sample rows other than zero (e.g., not limited to sampling one row above or one row to the left of the current block). In this case, multiple reference samples are available in the neighborhood of Rx,-1,R-1,y,R-1,-1, and each reference sample can be assigned a weight that can be optimized, for example, through training.
[0147] The technology described in U.S. patent application 16 / 371,638, filed on April 1, 2019, extends PDPC to diagonal intra modes and angular modes adjacent to the diagonal modes. The intended diagonal intra modes are modes predicted according to the lower left and upper right directions, and several adjacent angular modes, such as N adjacent modes between the lower left diagonal mode and the vertical mode, and N or M adjacent modes between the upper right diagonal mode and the horizontal mode. Fig.12 The identification of the angle modes is shown. In general, the adjacent modes may be a selected subset of the available angle modes. The spacing between angle modes may not be uniform, and some angle modes may be skipped.
[0148] Figures 13A-13D The definition of samples used by the PDPC extension to diagonal and adjacent angle intra modes is shown. Fig.13AThe definition of reference samples Rx,-1, R-1,y and R-1,-1 for extending PDPC to the upper right diagonal mode is shown. The prediction sample pred(x',y') is located at (x',y') within the prediction block. The coordinate x of the reference sample Rx,-1 is given by x=x'+y'+1, and the coordinate y of the reference sample R-1,y is similarly given by y=x'+y'+1. The PDPC weights for the upper right diagonal mode are, for example: wT=16>>((y'<<1)>>shift), wL=16>>((x'<<1)>>shift), wTL=0.
[0149] Similarly, Fig. 13B The definitions of reference samples Rx,-1, R-1,y and R-1,-1 for extending PDPC to the lower left diagonal pattern are shown. The coordinate x of the reference sample Rx,-1 is given by x=x'+y'+1, and the coordinate y of the reference sample R-1,y is given by y=x'+y'+1. The PDPC weights for the upper right diagonal pattern are, for example: wT=16>>((y'<<1)>>shift), wL=16>>((x'<<1)>>shift), wTL=0.
[0150] exist Fig.13A and 13B In the embodiment, the video encoder 200 and the video decoder 300 may both determine a row above the current block (e.g., immediately above, but the technology herein is not limited thereto) and determine an x-coordinate in the determined row. The x-coordinate in the determined row is equal to the x-coordinate of the prediction sample plus the y-coordinate of the prediction sample plus 1. The video encoder 200 and the video decoder 300 may determine a reference sample in one or more reference samples based on the determined row and the determined x-coordinate.
[0151] Similarly, in Fig.13A and 13B In the example, the video encoder 200 and the video decoder 300 may determine a column to the left of the current block (e.g., the immediate left, but the technology herein is not limited thereto) and determine a y coordinate in the determined column. The y coordinate in the determined column is equal to the x coordinate of the prediction sample plus the y coordinate of the prediction sample plus 1. The video encoder 200 and the video decoder 300 may determine a reference sample in one or more reference samples based on the determined column and the determined y coordinate.
[0152] Based on the determined x and y coordinates, the video encoder 200 and the video decoder 300 may determine reference samples (e.g., a first reference sample based on the determined row and the determined x coordinate and a second reference sample based on the determined column and the determined y coordinate). In addition, the video encoder 200 and the video decoder 300 may determine weights for diagonal patterns (e.g., an upper right diagonal pattern and a lower left diagonal pattern, as two examples) according to the exemplary techniques described above. Subsequently, based on Equation 1 (as a non-limiting example), the video encoder 200 and the video decoder 300 may determine a modified prediction sample (e.g., pred(x, y)).
[0153] exist Fig. 13C The case of adjacent upper right diagonal patterns is shown in FIG. Fig.12 The y coordinate of the reference sample R-1,y is determined as follows: y = y' + tan(α) × (x' + 1), and the x coordinate of Rx,-1 is given by x = x' + cotan(α) × (y' + 1), where tan(α) and cotan(α) are the tangent and cotangent of the angle α. The PDPC weights of the adjacent upper right diagonal pattern are, for example: wT = 32>>((y' <<1)>>shift), wL = 32>>((x' <<1)>>shift), wTL = 0 or wT = 32>>((y' <<1)>>shift), wL = 0, wTL = 0.
[0154] Similarly, in Fig.13D The case of the adjacent lower left diagonal pattern is shown in FIG. Fig.12 The angle β defined in , the x-coordinate of the reference sample Rx,-1 is determined as follows: x = x' + tan(β) × (y' + 1), and the y-coordinate of R-1,y is given by y = y' + cotan(β) × (x' + 1), where tan(β) and cotan(β) are the tangent and cotangent of the angle β. The PDPC weights of the adjacent lower left diagonal pattern are, for example: wL = 32>>((x' <<1)>>shift), wT = 32>>((y' <<1)>>shift), wTL = 0 or wL = 32>>((x' <<1)>>shift), wT = 0, wTL = 0.
[0155] exist Fig. 13C and Fig.13DIn the embodiment, the video encoder 200 and the video decoder 300 may both determine a row above the current block (e.g., immediately above, but the technology herein is not limited thereto) and determine an x-coordinate in the determined row. The x-coordinate in the determined row is based on an angle of the angular intra prediction mode. The video encoder 200 and the video decoder 300 may determine a reference sample in one or more reference samples based on the determined row and the determined x-coordinate.
[0156] To determine the x-coordinate in the determined row, the video encoder 200 and the video decoder 300 may determine one of the cotangent (e.g., for the adjacent upper right diagonal mode) or the tangent (e.g., for the adjacent lower left diagonal mode) of the angle of the angular intra-frame prediction mode. The video encoder 200 and the video decoder 300 may determine the x-coordinate in the determined row based on one of the cotangent or the tangent of the angle of the angular intra-frame prediction mode, the x-coordinate of the prediction sample, and the y-coordinate of the prediction sample. For example, for the adjacent upper right diagonal angular intra-frame prediction mode, the x-coordinate in the determined row is equal to x'+cotan(α)×(y'+1), and for the adjacent lower left diagonal mode, the x-coordinate in the determined row is equal to x'+tan(β)×(y'+1), where x' and y' are the x and y coordinates of the modified prediction sample.
[0157] Similarly, in Fig. 13C and Fig.13D In the embodiment, the video encoder 200 and the video decoder 300 may both determine a column to the left of the current block (e.g., the immediate left, but the technology herein is not limited thereto) and determine a y coordinate in the determined column. The y coordinate in the determined column is based on the angle of the angular intra prediction mode. The video encoder 200 and the video decoder 300 may determine a reference sample in one or more reference samples based on the determined column and the determined y coordinate.
[0158] To determine the y coordinate in the determined column, the video encoder 200 and the video decoder 300 may determine one of the cotangent (e.g., for the adjacent lower left diagonal mode) or the tangent (e.g., for the adjacent upper right diagonal mode) of the angle of the angular intra-frame prediction mode. The video encoder 200 and the video decoder 300 may determine the y coordinate in the determined column based on one of the cotangent or the tangent of the angle of the angular intra-frame prediction mode, the x coordinate of the prediction sample, and the y coordinate of the prediction sample. For example, for the adjacent upper right diagonal angular intra-frame prediction mode, the y coordinate in the determined column is equal to y'+tan(α)×(x'+1), and for the adjacent lower left diagonal mode, the y coordinate in the determined column is equal to y'+cotan(β)×(x'+1), where x' and y' are the x and y coordinates of the modified prediction sample.
[0159] Based on the determined x and y coordinates, the video encoder 200 and the video decoder 300 can determine reference samples (e.g., a first reference sample based on the determined row and the determined x coordinate and a second reference sample based on the determined column and the determined y coordinate). In addition, the video encoder 200 and the video decoder 300 can determine weights for adjacent diagonal patterns (e.g., adjacent upper right diagonal patterns and adjacent lower left diagonal patterns, as two examples) according to the above exemplary techniques. Subsequently, based on Equation 1 (as a non-limiting example), the video encoder 200 and the video decoder 300 can determine a modified prediction sample (e.g., pred(x, y)).
[0160] Exemplary techniques for upper right and lower left diagonal patterns and adjacent upper right and adjacent lower left diagonal patterns are described above as exemplary angle patterns to which PDPC can be applied. The exemplary techniques can also be extended to other angle patterns. In addition, in some examples, one or more reference samples have x-coordinates and y-coordinates that are different from both the x-coordinates and y-coordinates of the prediction samples in the prediction block. For example, in the exemplary equations for determining the x and y coordinates in each row and column to determine the reference sample, the x-coordinate is different from the x-coordinate of the modified prediction sample, and the y-coordinate is different from the y-coordinate of the modified prediction sample. That is, the reference sample may not be in the same row or column as the modified prediction sample.
[0161] As in the case of DC, planar, horizontal, and vertical mode PDPC, for diagonal and adjacent diagonal modes, there is no additional boundary filtering when the PDPC is extended to these angular modes, such as specified in "Algorithm description of JointExploration Test Model 7" by J. Chen, E. Alshina, G. J. Sullivan, J.-R. Ohm, J. Boyce (7th JVET Meeting, Turin, Italy, July 2017, JVET-G1001).
[0162] The video encoder 200 and the video decoder 300 may be configured to perform ALWIP. That is, the video encoder 200 and the video decoder 300 may be configured to encode and decode video data blocks in ALWIP mode. ALWIP as described in JVET-N0217 uses an affine linear weighted prediction model to generate predictions of blocks from adjacent reference samples. First, adjacent samples are processed. In some cases, adjacent samples are downsampled and then used to derive (using an affine model) a reduced sample set that is similar to an intermediate downsampled version of the prediction sample. The final prediction is obtained by upsampling the intermediate values (as needed).
[0163] exist Fig.14 A diagram of the ALWIP process is given in FIG. Fig.14 An exemplary ALWIP process for an 8×8 block is shown. Boundary samples 1402 represent adjacent samples on the 8×8 block boundary and include the top boundary samples above the 8×8 block (bdry top ) and the left boundary sample on the left side of the 8×8 block (bdry left The video encoder 200 or the video decoder 300 downsamples the boundary samples 1402 to obtain reduced boundary samples 1404, which include top reduced boundary samples (bdry red top ) and the left reduced boundary sample (bdry red left ). The video encoder 200 or the video decoder 300 represents the vector of the boundary sample bdry red Multiply by matrix A k and with the offset / bias term b k Add together to get the downsampled version of the prediction block pred red , which is represented by the gray samples inside block 1406. The video encoder 200 or the video decoder 300 performs the prediction by red The boundary samples are upsampled together to determine the values of the other samples (ie, white samples) in block 1406 to obtain the final predicted block 1408. Matrix A k and the offset or bias vector b k Selected based on the mode value indicated for the block.
[0164] exist Fig.14 A diagram of the ALWIP process is given in . Fig.14 The ALWIP process can be performed by the video encoder 200 and the video decoder 300. The reference samples (also called boundary samples) of the block are downsampled to obtain reduced boundary samples. The vector representation of the boundary samples is red Multiply by matrix A k Multiply and add to the offset / bias term b k Add together to get the downsampled version of the prediction block pred red By using these prediction samples pred red Together with the boundary samples, upsampling is performed to obtain the final prediction. Matrix A k and the offset / bias vector b k Selected based on the mode value indicated for the block. Matrix A k and the offset / bias vector b k The combination of may be referred to herein as "ALWIP mode".
[0165] To derive the intermediate prediction samples, the video encoder 200 and the video decoder 300 use an affine linear weighted prediction model. Three types are defined. The number of derived intermediate samples is different for each type, as shown below:
[0166] 1) For a block size where both width and height are equal to 4, it is 4×4
[0167] 2) For block sizes with width and height both less than or equal to 8, it is 8×8, except for the case where both width and height are equal to 4 (i.e. 4×8, 8×4, and 8×8 blocks)
[0168] 3) 16x16 for blocks where at least one of width and height is greater than 8.
[0169] In each of the three cases, a different number of ALWIP patterns was used: 35, 19, and 11, respectively.
[0170] The video encoder 200 and the video decoder 300 may be configured to signal ALWIP as follows:
[0171] a) Signal a flag (alwip_flag) to indicate that the current block is coded with ALWIP.
[0172] a) In case the block is coded with ALWIP, a signal sends another flag to indicate whether the current block is coded with ALWIP-MPM mode.
[0173] a. If the current block is encoded with ALWIP MPM, the MPM index is signaled.
[0174] b. Otherwise, signal the indices of the remaining mode values.
[0175] alwip_flag can be context coded, where four contexts are allowed:
[0176] – If block width > 2*height or height > 2*width, use context 3.
[0177] – Otherwise, the context ctxId is used, where ctxId is derived as follows:
[0178] Initialize ctxId to 0
[0179] If the left neighboring block is coded with ALWIP, then ctxId++
[0180] If the upper adjacent block is coded with ALWIP, then ctxId++
[0181] The video encoder 200 and the video decoder 300 may be configured to derive the ALWIP MPM as follows:
[0182] 1) LeftIntraMode and AboveIntraMode are initialized to -1
[0183] 2) If the left adjacent block is intra-coded
[0184] a. If the left adjacent block is coded in ALWIP mode L
[0185] i. If L is the same ALWIP type as the current block, LeftIntraMode is set equal to L.
[0186] b. The intra mode of the left neighboring block is mapped to the same type of ALWIP mode as the current block and assigned to LeftIntraMode.
[0187] 3) If the upper adjacent block is intra-coded:
[0188] a. If the upper adjacent block is encoded using ALWIP mode A
[0189] i. If A is the same ALWIP type as the current block, AboveIntraMode is set equal to A.
[0190] b. The intra mode of the above neighboring block is mapped to the same type of ALWIP mode as the current block and assigned to AboveIntraMode.
[0191] 4) Then the MPM is derived based on LeftIntraMode and AboveIntraMode.
[0192] In the present disclosure, blocks encoded with ALWIP may be referred to as ALWIP-coded blocks or ALWIP blocks; other blocks (blocks encoded with conventional intra prediction, intra sub-partitioning, or multiple reference lines) may be referred to as non-ALWIP blocks.
[0193] The video encoder 200 and the video decoder 300 may be configured to perform single-step linear interpolation. For a W×H block with max(W,H)≥8, the prediction signal is in W red ×H red The predicted signal pred is obtained by linear interpolation from the reduced redGenerated. Depending on the block shape, the video encoder 200 and the video decoder 300 perform linear interpolation in the vertical direction, the horizontal direction, or both directions. In some examples, if linear interpolation is to be applied in both directions, the video encoder 200 and the video decoder 300 first apply linear interpolation in the horizontal direction when W < H, or first apply linear interpolation in the vertical direction in the opposite case.
[0194] Without loss of generality, consider a W×H block where max(W, H) ≥ 8 and W ≥ H. Then the video encoder 200 and the video decoder 300 can perform one-dimensional linear interpolation as follows. For the purpose of explanation, linear interpolation will be described for the vertical direction. First, the reduced prediction signal is extended to the top by the boundary signal. Define the vertical upsampling factor U ver = H / H red and write Subsequently, the extended reduced prediction signal is defined by the following formula:
[0195]
[0196] Subsequently, from this extended reduced prediction signal, a vertically linearly interpolated prediction signal is generated by the following formula:
[0197]
[0198] For 0 ≤ x < W red , 0 ≤ y < Hre d and 0 ≤ k < U ver .
[0199] The above techniques include some potential problems. ALWIP generates a set of "intermediate" prediction samples by multiplying the reduced boundary samples by a matrix and a bias vector. Subsequently, linear interpolation is used as needed to upsample the intermediate samples to generate a prediction block. Although the matrix used for ALWIP is selected from a set of several matrices, any finite set of matrices may not be able to (and in some cases may not be possible to) effectively predict the almost countless blocks that appear in the video content. The prediction error at the edge of the prediction block may be large, resulting in more bits being required for compression. Although linear interpolation is used with the intermediate prediction block and the boundary samples to generate the residual samples, not all boundary samples are used in the interpolation function. As Fig.14 shown, the final prediction block pred is generated from the intermediate prediction samples, one downsampled boundary ( Fig.14 the top in the example of
[0200] As used in the present disclosure, "edge samples of a block" generally refer to samples in a block that are adjacent to one of the four boundaries of the block, such as samples in the first and last rows of a block and samples in the first and last columns of a block. As used in the present disclosure, the top, left, bottom, and right edge samples of a block generally refer to samples in a block that are adjacent to the top, left, bottom, and right boundaries of the block, respectively. Note that the top left corner sample of a block can be considered as both a top edge sample and a left edge sample. It should be understood that in some examples, the top left corner sample can be considered as a top edge sample instead of a left edge sample; while in other examples, the top left corner sample can be considered as a left edge sample instead of a top edge sample. Similar considerations can apply to the top right corner, bottom right corner, and bottom left corner samples of a block.
[0201] As used in the present disclosure, a sample edge band of a block generally refers to samples in a block that are located near any of the four boundaries of the block, for example, samples in the first or last rows of a block or in the first or last columns of a block. Similar definitions may also be defined for the top, left, right, and bottom edge bands of samples of a block. As used in the present disclosure, an n-top edge band of samples of a block generally refers to samples belonging to the top n rows of a block, and an n-bottom edge band of samples of a block is defined as samples belonging to the bottom n rows of a block. An n-left edge band of a block is defined as samples belonging to the left n columns of a block, and an n-right edge band of a block is defined as samples belonging to the right n columns of a block. In these examples, n will be an integer.
[0202] Fig.15 Some examples of the boundary bands defined above are shown. For example, block 1502 (shown by a thick black line) includes a left edge sample 1504 shown in gray. Block 1506 (shown by a thick black line) includes a 3-top edge band 1512 of samples and a 2-bottom edge band 1514 of samples.
[0203] This disclosure describes techniques that can improve ALWIP efficiency. The techniques described below can be used alone or in combination.
[0204] In some examples, the upsampling process described above can be modified so that the prediction error of the samples can be reduced. For example, the video encoder 200 and the video decoder 300 can be configured to perform additional filtering stages to reduce the prediction error. In some examples, the additional filtering stages can be effectively incorporated into the interpolation or upsampling stages so that the additional filtering is part of the interpolation or upsampling stages, rather than being separate from the interpolation or upsampling stages. In other examples, additional filtering can be performed instead of the interpolation or upsampling stages.
[0205] In some examples, the video encoder 200 and the video decoder 300 may be configured to perform further filtering on the top and left edge samples after applying linear interpolation in one or both directions to generate prediction samples. For example, filter F1 may be applied to the top edge samples in the vertical direction, and filter F2 may be applied to the left edge samples in the horizontal direction. The video encoder 200 and the video decoder 300 may be configured to use all boundary reference samples in additional filter stages. In some examples, the video encoder 200 and the video decoder 300 may be configured to apply different downsampling filters to the boundary samples for additional filter stages to generate a reduced set of boundary reference samples.
[0206] The video encoder 200 and the video decoder 300 may be configured to select filters F1 and F2 from a set of filters that may be signaled or predetermined. A non-exhaustive set of coefficients for such filters is as follows: 1.[1 2 1] 2.[1] 3.[1 2 2 2 1] 4.[1 4 6 4 1] 5.[1 3]
[0212] In the above example, the filter of [1] may actually be a "copy" filter that copies the sample values to which the filter is applied without averaging. In contrast, the filter of [11 1 1] may represent an average filter. Filters with other values may represent weighted average filters. Filters 1-4 above are symmetric filters so that intermediate coefficients (e.g., 2 in filter 1, 6 in filter 4, etc.) are applied to the samples being filtered.
[0213] In some examples, filters F1 and F2 may be different. In other examples, video encoder 200 and video decoder 300 may select filters based on the upsampling factor used in the upsampling process of ALWIP. In some examples, video encoder 200 and video decoder 300 may apply additional filter levels to the top edge samples of the block only when the upsampling factor is greater than 1 in the horizontal direction. In some examples, video encoder 200 and video decoder 300 may apply additional filter levels to the left edge samples of the block only when the upsampling factor is greater than 1 in the vertical direction.
[0214] In some examples, additional filter stages may be performed similar to the PDPC operation, where a weighted average of the prediction samples and boundary samples is used to update the prediction samples.
[0215] Fig.16An example is shown in which a boundary reference sample is used without downsampling and there is one intermediate prediction sample value in the lower right corner. UpV and UpH indicate upsampling factors in the vertical and horizontal directions.
[0216] In this example, let pred(x,y) be the prediction obtained due to ALWIP linear interpolation. The other stages modify pred(x,y) as follows.
[0217] Pred(x,y)=(wT*BT(x)+wL*BL(y)+(64–wT–wL)*Pred(x,y)+3)>>6
[0218] Note that the above values of 32 and 64 are selected according to the precision of the values wL and wT, and can be different for different precisions of wT and wL. In this example, it is assumed that the values of wT and wL are in the range of 0 to 64; in some cases, wT, wL and 64-wT-wT are constrained to be non-negative. The weights can be derived as follows:
[0219] wT=32>>((y<<1)>>shift), wL=32>>((x<<1)>>shift)
[0220] The shift value can be fixed or derived using the block width and height; for example, shift = (log 2 (width)+log 2 (height)+2)>>2.
[0221] In some cases, the prediction position (e.g. Fig.16 The values of the predicted samples corresponding to P in are not modified.
[0222] When modifying samples in other parts of the block, only the left or top boundary samples can be used for additional filter stages. For example, for the sample (x, y) of the top left corner sample of the block, when the value of x is greater than or equal to a threshold value (e.g., UpH), the value of wL can be set equal to 0; similarly, when the value of y is greater than or equal to a threshold value (e.g., UpV), the value of wT can be set equal to 0.
[0223] In some examples, the additional filter stages are applied only to modify the sample position values in n1 - top edge samples and n2 - left edge samples of the block, where the values of n1 and n2 may be determined by the upsampling factors of the ALWIP in the block (e.g., n1 may be equal to UpV-1, and n2 may be equal to UpH-1, where UpV and UpH are the upsampling factors in the vertical and horizontal directions, respectively).
[0224] In some examples, the upsampling process is modified so that samples are predicted using position-dependent weights—or in other words, linear interpolation and additional level operations are combined in one step.
[0225] The predictions for all samples in a block can be summarized as follows:
[0226] When (x, y) does not belong to an intermediate prediction sample, the value pred(x, y) is determined as follows (x and y are relative to the sample at the bottom right corner of P3):
[0227] Pred(x,y)=(w1*P1+w2*P2+w3*P3+w4*P4+wL*L+wT*T+offset)>>shift
[0228] Where the values of offset and shift are selected as normalized prediction sample values and the values are set as follows: w1 = x*y, w2 = (UpH-1-x)*y, w3 = (UpH-1–x)*(UpV-1-y), w4 = x*(UpH-1–y), and wL and wT are determined based on equations similar to PDPC, with the following exceptions:
[0229] – When L and T belong to boundary references, w2, w3, and w4 are set equal to 0.
[0230] – Otherwise, if L does not belong to the boundary and T belongs to the boundary, then wL, w3 and w4 are set equal to 0.
[0231] – Otherwise, if L belongs to the boundary and T does not belong to the boundary, then wT, w3 and w2 are set equal to 0.
[0232] – Otherwise, wL and wT are set equal to 0.
[0233] In some examples, the values of the prediction samples are derived similarly to the derivation of the planar predictions; for example, in Fig.17 , the sample values at x,y are derived similarly to the derivation of planar prediction - by deriving the horizontal prediction from L (or P2 and P3), P4 and P1, and the vertical prediction from T (or P3 and P4), P1 and P2.
[0234] Note that the values of w1, w2, w3, w4, wL, and wT are shown as examples only, and other values of these weights may also be chosen.
[0235] In some examples, when position-dependent weights are used for a modified upsampling process, the selection of weights can be based on a specific mode / matrix used with ALWIP. In some cases, a mapping table can be used to interpret the intra-frame prediction mode corresponding to a specific matrix. The position-dependent weights can be selected based on the interpreted intra-frame prediction mode, and one or more boundary reference samples can be used to calculate the predicted value. In some cases, a set of default weights can be used for the position-dependent weights independent of the matrix used. In some examples, the position-dependent weights can also depend on other characteristics, including but not limited to block shape (width, height), aspect ratio, etc.
[0236] Fig.18 is a block diagram illustrating an example video decoder 200 that can perform the techniques of this disclosure. Fig.18 For purposes of explanation, and should not be considered limiting of the techniques extensively illustrated and described in this disclosure. For purposes of explanation, this disclosure describes the video encoder 200 in the context of video coding standards such as the HEVC video coding standard and the H.266 video coding standard under development. However, the techniques of this disclosure are not limited to these video coding standards and are generally applicable to video encoding and decoding.
[0237] exist Fig.18 In the example of , 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 encoding unit 220.
[0238] The video data memory 230 may store video data to be encoded by the components of the video encoder 200. The video encoder 200 may receive video data from, for example, the video source 104 ( Figure 1 ) receives video data stored in video data memory 230. DPB 218 can act as a reference picture memory that stores reference video data for use by video encoder 200 when predicting subsequent video data. Video data memory 230 and DPB 218 can be formed by any memory device in 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 storage devices. Video data memory 230 and DPB 218 can be provided by the same storage device or a separate storage device. In various examples, video data memory 230 can be on chip with other components of video encoder 200 (as shown), or off chip relative to those components.
[0239] In the present disclosure, the reference video data memory 230 should not be interpreted as limited to a memory inside the video encoder 200 (unless specifically described as such) or a memory outside the video encoder 200 (unless specifically described as such). Instead, the reference video data memory 230 should be understood as a reference memory that stores video data received by the video encoder 200 for encoding (e.g., video data for a current block to be encoded). Figure 1 The memory 106 may also provide temporary storage for outputs from the various units of the video encoder 200 .
[0240] Show Fig.18 The various units of the video encoder 200 are provided to help understand the operations performed by the video encoder 200. These 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 pre-sets the operations that can be performed. A programmable circuit refers to a circuit that can be programmed to perform various tasks and provide flexible functions in terms of the operations that can 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 instructions of the software or firmware. A fixed-function circuit may execute software instructions (e.g., to receive parameters or output parameters), but the type of operation performed by the fixed-function circuit is generally immutable. In some examples, one or more units may be different circuit blocks (fixed-function or programmable), and in some examples, one or more units may be integrated circuits.
[0241] 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 by a programmable circuit. In an example where the operation of the video encoder 200 is performed using software executed by a programmable circuit, the memory 106 ( Figure 1 ) may store object code for software received and executed by the video encoder 200, or another memory (not shown) within the video encoder 200 may store such instructions.
[0242] The video data memory 230 is configured to store received video data. The video encoder 200 may retrieve pictures of 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 original video data to be encoded.
[0243] 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 to perform video prediction according to other prediction modes. For 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, and the like.
[0244] The mode selection unit 202 typically coordinates multiple encoding passes to test combinations of encoding parameters and the rate-distortion values generated for such combinations. The encoding parameters may include the partitioning of CTUs into CUs, the prediction mode for a CU, the transform type for the residual data of a CU, the quantization parameter for the residual data of a CU, etc. The mode selection unit 202 may ultimately select a coding parameter combination that has a better rate-distortion value than other tested combinations.
[0245] The video encoder 200 may partition the picture retrieved from the video data memory 230 into a sequence 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 (e.g., the QTBT structure or quadtree structure of HEVC described above). As described above, the video encoder 200 may form one or more CUs by partitioning the CTUs according to the tree structure. Such CUs may also be generally referred to as "video blocks" or "blocks".
[0246] Typically, 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 the 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 a motion search to identify one or more closely matching reference blocks in one or more reference pictures (e.g., one or more previously encoded pictures stored in the DPB 218). Specifically, the motion estimation unit 222 may calculate a value representing the degree of similarity of the potential reference block to the current block, for example, based on the sum of absolute differences (SAD), the sum of squared differences (SSD), the mean absolute difference (MAD), the mean squared difference (MSD), and the like. The motion estimation unit 222 may typically perform these calculations using the sample-by-sample difference between the current block and the reference block under consideration. The 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.
[0247] 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, for unidirectional inter prediction, the motion estimation unit 222 may provide a single motion vector, while for 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 prediction block. For example, the motion compensation unit 224 may use the motion vectors to retrieve data for the reference block. As another example, if the motion vectors have fractional sample precision, the motion compensation unit 224 may interpolate the values of the prediction block according to one or more interpolation filters. In addition, for bidirectional inter prediction, the motion compensation unit 224 may retrieve data for two reference blocks identified by the corresponding motion vectors and combine the retrieved data, for example, by sample-by-sample averaging or weighted averaging.
[0248] As another example, for intra prediction or intra prediction decoding, the intra prediction unit 226 may generate a prediction block from samples adjacent to the current block. For example, for a directional mode, the intra prediction unit 226 may generally mathematically combine the values of the adjacent samples and fill these calculated values across the current block in a defined direction to produce a prediction block. As another example, for a DC mode, the intra prediction unit 226 may calculate an average value of the adjacent samples of the current block, and generate a prediction block to include the obtained average value for each sample of the prediction block. As another example, for an ALWIP mode, the intra prediction unit 226 may derive a left edge sample subset and a top edge sample subset based on a left edge adjacent sample set of the current block and a top edge sample set of the current block; apply an affine model to the left edge sample subset and the top edge sample subset to generate an intermediate block of intermediate samples; and filter the intermediate samples using the left edge adjacent sample set and the top edge adjacent sample set of the current block to generate a final prediction block.
[0249] The mode selection unit 202 provides the prediction block to the residual generation unit 204. The residual generation unit 204 receives the original 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 the sample-by-sample difference between the current block and the prediction block. The resulting sample-by-sample difference defines a residual block for the current block. In some examples, the residual generation unit 204 may also determine the difference between the 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.
[0250] In the example where the mode selection unit 202 partitions the CU into PUs, each PU may be associated with a luma prediction unit and a corresponding chroma prediction unit. The video encoder 200 and the video decoder 300 may support PUs of various sizes. As indicated above, the size of the CU may refer to the size of the luma coding block of the CU, and the size of the PU may refer to the size of the luma prediction unit of the PU. Assuming that the size of a particular CU is 2N×2N, the video encoder 200 may support PU sizes of 2N×2N or N×N for intra-prediction, and support symmetric PU sizes 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.
[0251] In an example where mode selection unit 202 does not further partition a 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. Video encoder 200 and video decoder 300 may support CU sizes of 2N×2N, 2N×N, or N×2N.
[0252] For other video coding techniques (e.g., intra-block copy mode coding, affine mode coding, and linear model (LM) mode coding), to name some examples, the mode selection unit 202 generates a prediction block for the current block being encoded via various units associated with the coding technique. In some examples (e.g., palette mode coding), the mode selection unit 202 may not generate a prediction block, but instead generate a syntax element indicating how to reconstruct the block based on the selected palette. In such a mode, the mode selection unit 202 may provide these syntax elements to the entropy coding unit 220 for encoding.
[0253] As described above, the residual generation unit 204 receives video data of a current block and a corresponding prediction 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 the sample-by-sample difference between the prediction block and the current block.
[0254] The 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"). The transform processing unit 206 can apply various transforms to the residual block to form a transform coefficient block. For example, the transform processing unit 206 can 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, the transform processing unit 206 can perform multiple transforms on the residual block, such as a primary transform and a secondary transform (e.g., a rotation transform). In some examples, the transform processing unit 206 does not apply a transform to the residual block.
[0255] Quantization unit 208 may quantize transform coefficients in a transform coefficient block to produce a quantized transform coefficient block. 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. Video encoder 200 (e.g., via 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 cause a loss of information, and therefore, the quantized transform coefficients may have a lower precision than the original transform coefficients produced by transform processing unit 206.
[0256] The inverse quantization unit 210 and the inverse transform processing unit 212 may apply inverse quantization and inverse transform, respectively, to the quantized transform coefficient block to reconstruct a residual block from the transform coefficient block. The reconstruction unit 214 may generate a reconstructed block corresponding to the current block (although potentially with some degree of distortion) based on the reconstructed residual block and the prediction 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 prediction block generated by the mode selection unit 202 to generate a reconstructed block.
[0257] 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 blocking artifacts along CU edges. In some examples, the operations of filter unit 216 may be skipped.
[0258] The video encoder 200 stores the reconstructed blocks in the DPB 218. For example, in an example where the operation of the filter unit 216 is not performed, the reconstruction unit 214 can store the reconstructed blocks to the DPB 218. In an example where the operation of the filter unit 216 is performed, the filter unit 216 can store the filtered reconstructed blocks to the DPB 218. The motion estimation unit 222 and the motion compensation unit 224 can retrieve the reference picture formed by the reconstructed (and potentially filtered) blocks from the DPB 218 to perform inter-frame prediction on the blocks of the subsequent encoded pictures. In addition, the intra-frame prediction unit 226 can use the reconstructed blocks in the DPB 218 of the current picture to perform intra-frame prediction on other blocks in the current picture.
[0259] In general, the entropy coding unit 220 may entropy encode syntax elements received from other functional components of the video encoder 200. For example, the entropy coding unit 220 may entropy encode a block of quantized transform coefficients from the quantization unit 208. As another example, the entropy coding unit 220 may entropy encode prediction syntax elements (e.g., motion information for inter prediction or intra mode information for intra prediction) from the mode selection unit 202. The entropy coding unit 220 may perform one or more entropy coding operations on the syntax elements (which is another example of video data) to generate entropy-encoded data. For example, the entropy coding 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 partitioning entropy (PIPE) coding operation, an exponential-Golomb coding operation, or another type of entropy coding operation on the data. In some examples, entropy encoding unit 220 may operate in a bypass mode in which syntax elements are not entropy encoded.
[0260] The video encoder 200 may output a bitstream including entropy-encoded syntax elements required to reconstruct a block of a slice or picture. Specifically, the entropy encoding unit 220 may output a bitstream.
[0261] The above operations are described for blocks. Such descriptions should be understood as 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 the luma and chroma components of a CU. In some examples, the luma coding blocks and chroma coding blocks are the luma and chroma components of a PU.
[0262] In some examples, the operations performed for the luma coding block do not need to be repeated for the chroma coding block. As an example, the operations for identifying the motion vector (MV) and reference picture of the luma coding block do not need to be repeated to identify the MV and reference picture of the chroma block. Instead, the MV of the luma coding block can be scaled to determine the MV of the chroma block, and the reference picture can be the same. As another example, the intra prediction process can be the same for the luma coding block and the chroma coding block.
[0263] Video encoder 200 represents an example of a device configured to encode video data, the device including a memory configured to store the video data, and one or more processing units implemented in circuits and configured to perform the techniques of the present disclosure, including techniques for upsampling in affine linearly weighted intra-prediction frames.
[0264] Fig.19 is a block diagram illustrating an example video decoder 300 that can perform the techniques of this disclosure. Fig.19 For purposes of explanation, and not limiting of the techniques extensively illustrated and described in this disclosure. For purposes of explanation, this disclosure describes the video decoder 300 according to the techniques of JEM and HEVC. However, the techniques of this disclosure may be performed by video decoding devices configured for other video decoding standards.
[0265] exist Fig.19 In the example of , 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. The prediction processing unit 304 includes a motion compensation unit 316 and an intra-frame prediction unit 318. The prediction processing unit 304 may include additional units to perform predictions according to other prediction modes. For 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, and the like. In other examples, the video decoder 300 may include more, fewer, or different functional components.
[0266] 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, for example, received from the computer-readable medium 110 ( Figure 1). The CPB memory 320 may include a CPB that stores encoded video data (e.g., syntax elements) from an encoded video bitstream. In addition, the CPB memory 320 may store video data other than syntax elements of an encoded picture, such as temporary data representing outputs from various units of the video decoder 300. The DPB 314 typically stores a decoded picture, which 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 a 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 a separate memory device. 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.
[0267] Additionally or alternatively, in some examples, video decoder 300 may retrieve the video from memory 120 ( Figure 1 ) to retrieve the encoded video data. That is, memory 120 may store data as discussed above with respect to CPB memory 320. Similarly, when some or all of the functionality of video decoder 300 is implemented in software executed by processing circuitry of video decoder 300, memory 120 may store instructions executed by video decoder 300.
[0268] Show Fig.19 The various units shown in FIG. 300 are used to help understand the operations performed by the video decoder 300. These units may be implemented as fixed function circuits, programmable circuits, or a combination thereof. Fig.18 , fixed-function circuits refer to circuits that provide specific functions and pre-set the operations that can be performed. Programmable circuits refer to circuits that can be programmed to perform various tasks and provide flexible functions in terms of the operations that can be performed. For example, a programmable circuit can execute software or firmware that causes the programmable circuit to operate in a manner defined by the instructions of the software or firmware. Fixed-function circuits can execute software instructions (for example, to receive parameters or output parameters), but the type of operation performed by the fixed-function circuit is generally immutable. In some examples, one or more units may be different circuit blocks (fixed function or programmable), and in some examples, one or more units may be integrated circuits.
[0269] The video decoder 300 may include an ALU, an EFU, a digital circuit, an analog circuit, and / or a programmable core formed by a programmable circuit. In an example where the operation of the video decoder 300 is performed by software executed on a programmable circuit, an on-chip or off-chip memory may store instructions (e.g., object code) of the software received and executed by the video decoder 300.
[0270] Entropy decoding unit 302 may receive encoded video data from the CPB and entropy decode the video data to reproduce syntax elements. Prediction processing unit 304, inverse quantization unit 306, inverse transform processing unit 308, reconstruction unit 310, and filter unit 312 may generate decoded video data based on syntax elements extracted from the bitstream.
[0271] Typically, 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 (where a block currently being reconstructed (ie, decoded) may be referred to as a "current block").
[0272] The entropy decoding unit 302 may entropy decode syntax elements defining quantized transform coefficients of the quantized transform coefficient block and 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 a degree of quantization, and similarly, determine a degree of inverse quantization to be applied by the inverse quantization unit 306. The inverse quantization unit 306 may, for example, perform 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.
[0273] After the inverse quantization unit 306 forms the 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 directional transform, or another inverse transform to the transform coefficient block.
[0274] In addition, prediction processing unit 304 generates a prediction block based on the prediction information syntax element entropy decoded by entropy decoding unit 302. For example, if the prediction information syntax element indicates that the current block is inter-predicted, motion compensation unit 316 can generate a prediction block. In this case, the prediction information syntax element can indicate a reference picture in DPB 314 from which the reference block is retrieved, and a motion vector that identifies the position of the reference block in the reference picture relative to the position of the current block in the current picture. Motion compensation unit 316 can generally generate a prediction block in the same manner as for motion compensation unit 224 ( Fig.18 ) is performed in a manner substantially similar to that described herein.
[0275] 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. As another example, if the prediction information syntax element indicates that the current block is intra-predicted in ALWIP mode, the intra-prediction unit 318 may derive a left edge sample subset and a top edge sample subset based on a left edge neighboring sample set of the current block and a top edge neighboring sample set of the current block; apply an affine mode to the left edge sample subset and the top edge sample subset to generate an intermediate block of intermediate samples; and use the left edge neighboring sample set and the top edge neighboring sample set of the current block to filter the intermediate samples to generate a final prediction block. Again, the intra-prediction unit 318 may generally perform the same filtering as for the intra-prediction unit 226 ( Fig.18 ) The intra prediction unit 318 may retrieve data of neighboring samples of the current block from the DPB 314.
[0276] The reconstruction unit 310 may reconstruct the current block using the prediction block and the residual block. For example, the reconstruction unit 310 may add samples of the residual block to corresponding samples of the prediction block to reconstruct the current block.
[0277] 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 blocking artifacts along the edges of the reconstructed block. The operations of the filter unit 312 need not be performed in all examples.
[0278] The video decoder 300 may store the reconstructed blocks in the DPB 314. As discussed above, the DPB 314 may provide reference information (e.g., samples of the current picture for intra prediction and previously decoded pictures for subsequent motion compensation) to the prediction processing unit 304. In addition, the video decoder 300 may output decoded pictures from the DPB for subsequent presentation on a display device (e.g., Figure 1 on a display device 118).
[0279] In this manner, video decoder 300 represents an example of a video decoding device that includes a memory configured to store video data, and one or more processing units implemented in circuits and configured to perform the techniques of the present disclosure, including techniques for upsampling in affine linearly weighted intra prediction.
[0280] Fig. 20 2 is a flowchart showing an exemplary process for encoding a current block. The current block may include a current CU. Although for the video encoder 200 ( Figure 1 and Fig.18 ), but it should be understood that other devices may be configured to perform the same Fig. 20 Similar approach.
[0281] In this example, the video encoder 200 initially predicts a current block (350). For example, the video encoder 200 may use any intra-prediction technique described in the present disclosure to form a prediction block for the current block. The video encoder 200 may then calculate a residual block for the current block (352). To calculate the residual block, the video encoder 200 may calculate the difference between the original, unencoded block and the prediction block for the current block. The video encoder 200 may then transform and quantize the coefficients of the residual block (354). Next, the video encoder 200 may scan the quantized transform coefficients of the residual block (356). During or after the scan, the video encoder 200 may entropy encode the coefficients (358). For example, the video encoder 200 may encode the coefficients using CAVLC or CABAC. The video encoder 200 may then output entropy encoded data for the block (360).
[0282] Fig.21 is a flowchart illustrating an exemplary process for decoding a current block of video data. The current block may include a current CU. Although for the video decoder 300 ( Figure 1 and 19 ), but it should be understood that other devices may be configured to perform the same Fig.21 A similar approach to the one used in this paper.
[0283] The video decoder 300 may receive entropy coded data for a current block, such as entropy coded prediction information and entropy coded data of coefficients of a residual block corresponding 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 reproduce the coefficients of the residual block (372). The video decoder 300 may predict the current block (374), for example, using an intra-frame or inter-frame prediction mode as indicated by the prediction information of the current block, to calculate a prediction block for the current block. The video decoder 300 may predict the current block, for example, using any intra-frame prediction technique described in the present disclosure. The video decoder 300 may then inverse scan the reproduced coefficients (376) to produce a block of quantized transform coefficients. The video decoder 300 may then inverse quantize and inverse transform the coefficients to produce a residual block (378). The video decoder 300 may finally decode the current block by combining the prediction block and the residual block (380).
[0284] Fig. 22 is a flowchart illustrating an exemplary process for decoding a current block of video data. The current block may include a current CU. Although for the video decoder 300 ( Figure 1 and 19 ), but it should be understood that other devices may be configured to perform the same Fig. 22 For example, the video encoder 200 ( Figure 1 and 18 ) can also be executed Fig. 22 technology.
[0285] exist Fig. 22 In the example of FIG. 3 , the video decoder 300 determines that a current block of video data is encoded in the ALWIP mode (382). The video decoder 300 derives a left edge sample subset and a top edge sample subset based on a left edge neighboring sample set of the current block and a top edge neighboring sample set of the current block (384). For example, the video decoder 300 may derive the left edge sample subset by downsampling the left edge neighboring sample set using averaging, and derive the top edge sample subset by downsampling the top edge neighboring sample set using averaging.
[0286] For example, the top edge neighboring sample set may have a total of N samples, and the top edge sample subset may have a total of N / 2 samples, where N is an integer representing the number of columns included in the current block. For example, the left edge neighboring sample set may have a total of N samples, and the left edge sample subset may have a total of N / 2 samples, where N is an integer representing the number of rows included in the current block. In one example, the current block may be an N×M sample block, where N is an integer value representing the number of columns in the current block and the number of samples in the top edge sample set, and M is an integer value representing the number of rows in the current block and the number of samples in the left edge sample set. N and M may be equal or may not be equal. The left edge sample set may have M / 2 samples, and the top edge sample set may have N / 2 samples.
[0287] The video decoder 300 applies the affine model to the left edge sample subset and the top edge sample subset to generate an intermediate block of intermediate samples (386). To apply the affine model to the left edge sample subset and the top edge sample subset to generate an intermediate block of intermediate samples, the video decoder 300 may, for example, multiply the left edge sample subset and the top edge sample subset by a matrix and a bias vector.
[0288] The video decoder 300 uses the left edge neighboring sample set and the top edge neighboring sample set of the current block to filter the intermediate samples to generate a final prediction block (388). In order to filter the intermediate samples to generate the final prediction block, the video decoder 300 can, for example, use a second left edge sample subset different from the left edge sample subset and a second top edge sample subset different from the top edge sample subset to upsample the intermediate samples. The video decoder 300 can, for example, upsample the intermediate samples based on actual sample values in the top edge sample set or the left edge sample set, as opposed to based on sample values in the top edge sample subset or the left edge sample subset, in which case the subset is obtained by averaging and is different from the sample set. In order to filter the intermediate samples to generate the final prediction block, the video decoder 300 can apply one or more filters in the vertical direction and one or more filters in the horizontal direction. In order to apply one or more filters in the vertical direction, the video decoder 300 can perform linear interpolation in the vertical direction using samples in the top edge sample set. That is, if the top edge sample subset includes M / 2 samples, the video decoder 300 may use different subsets of the M top edge samples when applying one or more filters in the vertical direction. The samples used for interpolation may be actual samples of the M top edge samples, rather than samples determined by averaging. As part of applying one or more filters in the vertical direction, the video decoder 300 may include applying position-dependent weights to at least some of the M samples in the top edge sample set.
[0289] The video decoder 300 decodes the current block of video data based on the final prediction block (390). To decode the current block of video data based on the final prediction block, the video decoder 300 may determine a residual value for the current block of video data; add the residual value to the filtered prediction block to determine a reconstructed block of the current block of video data; and apply one or more filters to the reconstructed block to generate a decoded block of video data. The video decoder 300 may then output a picture including the decoded block of video data for display and / or storage. For example, the video decoder 300 may store a copy of the picture for use in decoding other pictures of the video data.
[0290] It should be appreciated that, depending on the example, certain actions or events of any of the techniques described herein may be performed in a different order, may be added, combined, or omitted entirely (e.g., not all described actions or events are necessary for the practice of the techniques herein). Additionally, in some examples, actions or events may be performed concurrently rather than sequentially, such as through multithreading, interrupt handling, or multiple processors.
[0291] In one or more examples, the described functions can be implemented in hardware, software, firmware, or any combination thereof. If implemented in software, each function can be stored on a computer-readable medium or sent 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 a communication medium, and the communication medium includes any medium that facilitates, for example, transferring a computer program from one place to another according to a communication protocol. In this way, a computer-readable medium may generally correspond to (1) a non-temporary tangible computer-readable storage medium, or (2) a communication medium, such as a signal or carrier wave. A data storage medium may be any available medium that can be accessed by one or more computers or one or more processors to retrieve instructions, codes, and / or data structures for implementing the technology described in the present disclosure. A computer program product may include a computer-readable medium.
[0292] By way of example and not limitation, such computer-readable storage media may include one or more of the following: RAM, ROM, EEPROM, CD-ROM or other optical disk storage, disk storage or other magnetic storage device, flash memory, or any other medium that can be used to store a desired program code in the form of an instruction or data structure and that can be accessed by a computer. In addition, any connection is appropriately referred to as a computer-readable medium. For example, if a coaxial cable, optical fiber cable, twisted pair, digital subscriber line (DSL) or wireless technologies such as infrared, radio and microwave are used to transmit instructions from a website, server or other remote source, then coaxial cable, optical fiber cable, twisted pair, DSL or wireless technologies 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 temporary media, but are instead directed to non-temporary, tangible storage media. As used herein, disks and discs include compact discs (CDs), laser discs, optical discs, digital versatile discs (DVDs), floppy disks and blue-ray discs, wherein disks usually copy data magnetically, and optical discs use lasers to optically copy data. Combinations of the above should also be included within the scope of computer-readable media.
[0293] Instructions may be executed by one or more processors (e.g., one or more DSPs, general-purpose microprocessors, ASICs, FPGAs, or other equivalent integrated or discrete logic circuits). Accordingly, the term "processor" as used herein may refer to any of the aforementioned structures or any other structure suitable for implementing the techniques described herein. In addition, in some aspects, the functions described herein may be provided within dedicated hardware and / or software modules configured for encoding and decoding, or incorporated into a combined codec. In addition, each technique may be implemented entirely in one or more circuits or logic elements.
[0294] The techniques of the present disclosure may be implemented in a wide variety of devices or apparatuses, including wireless handheld devices, integrated circuits (ICs), or a set of ICs (e.g., chipsets). Various components, modules, or units are described in the present disclosure to emphasize the functional aspects of devices configured to perform the disclosed techniques, but are not necessarily required to be implemented 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 as described above) in conjunction with appropriate software and / or firmware.
[0295] Various examples have been described. These and other examples are within the scope of the following claims.
Claims
1. A method for decoding video data, the method comprising: determining that a current block of video data is encoded in a matrix intra prediction mode; deriving a downsampled left edge sample set and a downsampled top edge sample set based on a left edge neighboring sample set of the current block and a top edge neighboring sample set of the current block, wherein the downsampled left edge sample set includes fewer samples than the left edge neighboring sample set and the downsampled top edge sample set includes fewer samples than the top edge neighboring sample set; applying an affine model to the downsampled left edge sample set and the downsampled top edge sample set to generate a first prediction sample set; interpolating a second prediction sample set based on the first prediction sample set, a subset of the left edge neighboring sample set, and a subset of the top edge neighboring sample set, wherein the subset of the left edge neighboring sample set includes different samples than the downsampled left edge sample set and the subset of the top edge neighboring sample set includes different samples than the downsampled top edge sample set; generating a final prediction block, wherein the final prediction block includes the first prediction sample set and the second prediction sample set; and The current block of video data is decoded based on the final prediction block.
2. The method according to claim 1, wherein: Each sample in the downsampled left edge sample set comprises an average of two or more samples in the left edge adjacent sample set; and Each sample in the downsampled top edge sample set comprises an average of two or more samples in the top edge neighboring sample set.
3. The method according to claim 1, wherein: Applying the affine model to the downsampled left edge sample set and the downsampled top edge sample set to generate the first prediction sample set includes multiplying the downsampled left edge sample set and the downsampled top edge sample set by a matrix.
4. The method according to claim 1, wherein: The top edge neighboring sample set has a total of N samples, and the downsampled top edge sample set has a total of N / 2 samples, where N is an integer representing the number of columns included in the current block.
5. The method according to claim 1, wherein: The left edge neighboring sample set has a total of N samples, and the downsampled left edge sample set has a total of N / 2 samples, where N is an integer representing the number of rows included in the current block.
6. The method according to claim 1, wherein: The current block is an N×M sample block, N is an integer value representing the number of columns in the current block and the number of samples in the top edge neighboring sample set, and M is an integer value representing the number of rows in the current block and the number of samples in the left edge neighboring sample set; and The downsampled left edge sample set has M / 2 samples, the downsampled top edge sample set has N / 2 samples, the left edge neighbor sample set has M samples, and the top edge neighbor sample set has N samples.
7. The method according to claim 6, wherein: Interpolating the second set of prediction samples includes applying one or more filters to the first set of prediction samples and the top edge neighboring sample set in a vertical direction.
8. The method according to claim 7, wherein: Applying the one or more filters in the vertical direction includes performing linear interpolation in the vertical direction using samples in the top edge neighboring sample set.
9. The method according to claim 7, wherein: Applying the one or more filters in the vertical direction includes applying position-dependent weights to at least some of the N samples in the top-edge-neighboring sample set.
10. The method according to claim 1, wherein: Decoding the current block of video data based on the final prediction block comprises: determining a residual value for the current block of video data; adding the residual value to the filtered prediction block to determine a reconstructed block of the current block of video data; and One or more filters are applied to the reconstructed block to generate a decoded block of video data.
11. The method according to claim 1, wherein: The method is performed as part of a video encoding process.
12. A device for decoding video data, the device comprising: a memory configured to store video data; as well as One or more processors implemented in circuitry and configured to: determining that a current block of video data is encoded in a matrix intra prediction mode; deriving a downsampled left edge sample set and a downsampled top edge sample set based on a left edge neighboring sample set of the current block and a top edge neighboring sample set of the current block, wherein the downsampled left edge sample set includes fewer samples than the left edge neighboring sample set and the downsampled top edge sample set includes fewer samples than the top edge neighboring sample set; applying an affine model to the downsampled left edge sample set and the downsampled top edge sample set to generate a first prediction sample set; interpolating a second prediction sample set based on the first prediction sample set, a subset of the left edge neighboring sample set, and a subset of the top edge neighboring sample set, wherein the subset of the left edge neighboring sample set includes different samples than the downsampled left edge sample set and the subset of the top edge neighboring sample set includes different samples than the downsampled top edge sample set; generating a final prediction block, wherein the final prediction block includes the first prediction sample set and the second prediction sample set; and The current block of video data is decoded based on the final prediction block.
13. The apparatus of claim 12, wherein: Each sample in the downsampled left edge sample set comprises an average of two or more samples in the left edge adjacent sample set; and Each sample in the downsampled top edge sample set comprises an average of two or more samples in the top edge neighboring sample set.
14. The apparatus according to claim 12, wherein: In order to apply the affine model to the downsampled left edge sample set and the downsampled top edge sample set to generate the first prediction sample set, the one or more processors are further configured to: multiply the downsampled left edge sample set and the downsampled top edge sample set by a matrix.
15. The apparatus according to claim 12, wherein: The top edge neighboring sample set has a total of N samples, and the downsampled top edge sample set has a total of N / 2 samples, where N is an integer representing the number of columns included in the current block.
16. The apparatus according to claim 12, wherein: The left edge neighboring sample set has a total of N samples, and the downsampled left edge sample set has a total of N / 2 samples, where N is an integer representing the number of rows included in the current block.
17. The apparatus of claim 12, wherein: The current block is an N×M sample block, N is an integer value representing the number of columns in the current block and the number of samples in the top edge neighboring sample set, and M is an integer value representing the number of rows in the current block and the number of samples in the left edge neighboring sample set; The downsampled left edge sample set has M / 2 samples, the downsampled top edge sample set has N / 2 samples, the left edge neighbor sample set has M samples, and the top edge neighbor sample set has N samples.
18. The apparatus according to claim 17, wherein: To interpolate the second prediction sample set, the one or more processors are further configured to apply one or more filters to the first prediction sample set and the top edge neighboring sample set in a vertical direction.
19. The apparatus according to claim 18, wherein: To apply the one or more filters in the vertical direction, the one or more processors are further configured to perform linear interpolation in the vertical direction using samples in the top edge neighboring sample set.
20. The apparatus of claim 18, wherein: To apply the one or more filters in the vertical direction, the one or more processors are further configured to apply position-dependent weights to at least some of the N samples in the top-edge-neighboring sample set.
21. The apparatus of claim 12, wherein: To decode the current block of video data based on the final prediction block, the one or more processors are further configured to: determining a residual value for the current block of video data; adding the residual value to the filtered prediction block to determine a reconstructed block of the current block of video data; as well as One or more filters are applied to the reconstructed block to generate a decoded block of video data.
22. The apparatus of claim 12, wherein: The apparatus comprises a wireless communication device and also includes a receiver configured to receive encoded video data.
23. The apparatus of claim 22, wherein: The wireless communication device comprises a telephone handset and wherein the receiver is configured to demodulate a signal comprising the encoded video data in accordance with a wireless communication standard.
24. The apparatus of claim 12, wherein: The apparatus comprises a wireless communication device and also includes a transmitter configured to transmit encoded video data.
25. The apparatus of claim 24, wherein: The wireless communication device comprises a telephone handset and wherein the transmitter is configured to modulate a signal comprising the encoded video data in accordance with a wireless communication standard.
26. A non-transitory computer-readable storage medium storing instructions that, when executed by one or more processors, cause the one or more processors to: determining that a current block of video data is encoded in a matrix intra prediction mode; A downsampled left edge sample set and a downsampled top edge sample set are derived based on a left edge neighboring sample set of the current block and a top edge neighboring sample set of the current block, wherein: The downsampled left edge sample set includes fewer samples than the left edge neighboring sample set and the downsampled top edge sample set includes fewer samples than the top edge neighboring sample set; applying an affine model to the downsampled left edge sample set and the downsampled top edge sample set to generate a first prediction sample set; interpolating a second prediction sample set based on the first prediction sample set, a subset of the left edge neighboring sample set, and a subset of the top edge neighboring sample set, wherein the subset of the left edge neighboring sample set includes different samples than the downsampled left edge sample set and the subset of the top edge neighboring sample set includes different samples than the downsampled top edge sample set; generating a final prediction block, wherein the final prediction block includes the first prediction sample set and the second prediction sample set; and The current block of video data is decoded based on the final prediction block.
27. The non-transitory computer-readable storage medium of claim 26, wherein: Each sample in the downsampled left edge sample set comprises an average of two or more samples in the left edge adjacent sample set; and Each sample in the downsampled top edge sample set comprises an average of two or more samples in the top edge neighboring sample set.
28. The non-transitory computer-readable storage medium of claim 26, wherein: To apply the affine model to the downsampled left edge sample set and the downsampled top edge sample set to generate the first prediction sample set, the instructions cause the one or more processors to multiply the downsampled left edge sample set and the downsampled top edge sample set by a matrix.
29. The non-transitory computer-readable storage medium of claim 26, wherein: The top edge neighboring sample set has a total of N samples, and the downsampled top edge sample set has a total of N / 2 samples, where N is an integer representing the number of columns included in the current block.
30. The non-transitory computer-readable storage medium of claim 26, wherein: The left edge neighboring sample set has a total of N samples, and the downsampled left edge sample set has a total of N / 2 samples, where N is an integer representing the number of rows included in the current block.
31. The non-transitory computer-readable storage medium of claim 26, wherein: The current block is an N×M sample block, N is an integer value representing the number of columns in the current block and the number of samples in the top edge neighboring sample set, and M is an integer value representing the number of rows in the current block and the number of samples in the left edge neighboring sample set; The downsampled left edge sample set has M / 2 samples, the downsampled top edge sample set has N / 2 samples, the left edge neighbor sample set has M samples, and the top edge neighbor sample set has N samples.
32. The non-transitory computer-readable storage medium of claim 31, wherein: To interpolate the second set of prediction samples, the instructions cause the one or more processors to apply one or more filters to the first set of prediction samples and the top edge neighboring sample set in a vertical direction.
33. The non-transitory computer-readable storage medium of claim 32, wherein: To apply the one or more filters in the vertical direction, the instructions cause the one or more processors to perform linear interpolation in the vertical direction using samples in the top edge neighboring sample set.
34. The non-transitory computer-readable storage medium of claim 32, wherein: To apply the one or more filters in the vertical direction, the instructions cause the one or more processors to apply position-dependent weights to at least some of the N samples in the top-edge-neighboring set of samples.
35. The non-transitory computer-readable storage medium of claim 26, wherein: To decode the current block of video data based on the final prediction block, the instructions cause the one or more processors to perform the following operations: determining a residual value for the current block of video data; adding the residual value to the filtered prediction block to determine a reconstructed block of the current block of video data; as well as One or more filters are applied to the reconstructed block to generate a decoded block of video data.
36. An apparatus for decoding video data, the apparatus comprising: A unit for determining that a current block of video data is encoded in a matrix intra prediction mode; means for deriving a downsampled left edge sample set and a downsampled top edge sample set based on a left edge neighboring sample set of the current block and a top edge neighboring sample set of the current block, wherein the downsampled left edge sample set includes fewer samples than the left edge neighboring sample set and the downsampled top edge sample set includes fewer samples than the top edge neighboring sample set; means for applying an affine model to the downsampled left edge sample set and the downsampled top edge sample set to generate a first prediction sample set; means for interpolating a second set of prediction samples based on the first set of prediction samples, a subset of the left edge neighboring sample set, and a subset of the top edge neighboring sample set, wherein the subset of the left edge neighboring sample set includes different samples than the downsampled left edge sample set and the subset of the top edge neighboring sample set includes different samples than the downsampled top edge sample set; a unit for generating a final prediction block, wherein the final prediction block includes the first prediction sample set and the second prediction sample set; and Means for decoding the current block of video data based on the final prediction block.
37. The apparatus of claim 36, wherein: The means for deriving the downsampled left edge sample set comprises means for downsampling the left edge neighboring sample set, wherein each sample in the downsampled left edge sample set comprises an average of two or more samples in the left edge neighboring sample set; and The means for deriving the downsampled top edge sample set comprises means for downsampling the top edge neighboring sample set, wherein each sample in the downsampled top edge sample set comprises an average of two or more samples in the top edge neighboring sample set.
38. The device according to claim 36, wherein The unit for applying the affine model to the downsampled left edge sample set and the downsampled top edge sample set to generate the first prediction sample set includes a unit for multiplying the downsampled left edge sample set and the downsampled top edge sample set by a matrix.
39. The device according to claim 36, wherein: The top edge neighboring sample set has a total of N samples, and the downsampled top edge sample set has a total of N / 2 samples, where N is an integer representing the number of columns included in the current block.
40. The apparatus of claim 36, wherein: The left edge neighboring sample set has a total of N samples, and the downsampled left edge sample set has a total of N / 2 samples, where N is an integer representing the number of rows included in the current block.
41. The apparatus of claim 36, wherein: The current block is an N×M sample block, N is an integer value representing the number of columns in the current block and the number of samples in the top edge neighboring sample set, and M is an integer value representing the number of rows in the current block and the number of samples in the left edge neighboring sample set; and The downsampled left edge sample set has M / 2 samples, the downsampled top edge sample set has N / 2 samples, the left edge neighbor sample set has M samples, and the top edge neighbor sample set has N samples.
42. The device according to claim 41, wherein The means for interpolating the second set of prediction samples comprises means for applying one or more filters to the first set of prediction samples and the top edge neighboring sample set in a vertical direction.
43. The device according to claim 42, wherein: The means for applying the one or more filters in the vertical direction comprises means for performing linear interpolation in the vertical direction using samples in the top edge neighboring sample set.
44. The device according to claim 42, wherein: The means for applying the one or more filters in the vertical direction includes means for applying position-dependent weights to at least some of the N samples in the top-edge-neighboring sample set.
45. The apparatus of claim 36, wherein: The unit for decoding the current block of video data based on the final prediction block comprises: means for determining a residual value for said current block of video data; means for adding the residual value to the filtered prediction block to determine a reconstructed block of the current block of video data; and Means for applying one or more filters to the reconstructed block to generate a decoded block of video data.
