Combination of mode-dependent intra-frame smoothing (MDIS) and intra-frame interpolation filter switching
By combining the smooth filtering operation of MDIS and Gaussian interpolation filtering, the problems of high storage requirements and coding complexity in the existing technology are solved, and more efficient video encoding and decoding are achieved.
Patent Information
- Application Number
- CN201980044117.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Priority Date
- 2019-07-01
- Filing Date
- 2019-07-02
- Publication Date
- 2024-09-17
- Estimated Expiration
- 2039-07-02
AI Technical Summary
In existing video coding technology, storing multiple sets of weights and applying two consecutive smoothing filter operations increases storage requirements and complexity of the coding process, resulting in low efficiency.
Combining the smooth filtering operation of MDIS and Gaussian interpolation filtering, conditions determine whether to apply non-smooth or smooth interpolation filters, reducing storage requirements and reducing coding complexity.
The storage requirements and encoding process complexity are reduced, and the efficiency of video encoding and decoding is improved.
Smart Images

Figure CN112385223B_ABST
Abstract
Description
[0001] CROSS-REFERENCE TO RELATED APPLICATIONS
[0002] This patent application claims priority to U.S. Patent Application No. 16 / 459,024, filed on July 1, 2019, which claims the benefit of U.S. Provisional Patent Application No. 62 / 693,266, filed on July 2, 2018, U.S. Provisional Patent Application No. 62 / 727,341, filed on September 5, 2018, and U.S. Provisional Patent Application No. 62 / 731,723, filed on September 14, 2018, the entire contents of which are incorporated herein by reference. Technical Field
[0003] The present disclosure relates to video encoding and video decoding. Background Art
[0004] Digital video capabilities may be incorporated into a wide variety of devices, including digital televisions, digital live broadcast systems, wireless broadcast systems, personal digital assistants (PDAs), laptop or desktop computers, tablet computers, e-readers, digital cameras, digital recording devices, digital media players, video game devices, video game consoles, cellular or satellite radiotelephones, so-called "smart phones", video teleconferencing devices, and video streaming devices. 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), ITU-T H.265 / High Efficiency Video Coding, and extensions of such standards. By implementing the above video coding techniques, video devices can more efficiently send, receive, encode, decode, and / or store digital video information.
[0005] Video coding techniques include spatial (intra-picture) prediction and / or temporal (inter-picture) prediction to reduce or remove redundancy inherent in video sequences. For block-based video coding, a video slice (such as 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 the same picture are encoded using spatial prediction relative to reference samples in neighboring blocks in the picture. Video blocks in an inter-coded (P or B) slice of a picture may use spatial prediction relative to reference samples in neighboring blocks in the picture, or temporal prediction relative to reference samples in other reference pictures. Pictures may be referred to as frames, and reference pictures may be referred to as reference frames. Summary of the invention
[0006] In general, the present disclosure describes a technique for combining two smoothing filter operations for directional mode intra prediction, namely mode-dependent intra smoothing (MDIS) filtering and Gaussian interpolation filtering. In some examples, this can be achieved by directly applying the MDIS condition to make a decision between the two interpolation filters and eliminating a separate interpolation filter condition.
[0007] In one example, the present disclosure describes a method of decoding video data, the method comprising: determining whether a condition is true for a first block of a current picture of the video data; based on the condition being true for the first block, applying a non-smooth interpolation filter to unfiltered reference samples of the first block to produce predicted samples of the first block; determining whether a condition is true for a second block of the current picture; based on the condition being false for the second block, applying a smooth interpolation filter to unfiltered reference samples of the second block to produce predicted samples of the second block; reconstructing the first block based on the predicted samples of the first block; and reconstructing the second block based on the predicted samples of the second block. .
[0008] In another example, the present disclosure describes a method of encoding video data, the method comprising: determining whether a condition is true for a first block of a current picture of the video data; based on the condition being true for the first block, applying a non-smooth interpolation filter to unfiltered reference samples of the first block to produce prediction samples of the first block; determining whether the condition is true for a second block of the current picture; based on the condition being false for the second block, applying a smooth interpolation filter to unfiltered reference samples of the second block to produce prediction samples of the second block; generating residual data for the first block based on the prediction samples of the first block; generating residual data for the second block based on the prediction samples of the second block; and including data representing the residual data for the first block and the residual data for the second block in a bitstream comprising an encoded representation of the video data.
[0009] In another example, the present disclosure describes a device for encoding or decoding video data, the device comprising: a memory storing video data; and one or more processors configured to: determine whether a condition is true for a block of a current picture of the video data; based on the condition being true for the block, apply a non-smooth interpolation filter to unfiltered reference samples of the block to generate prediction samples of the block; and based on the condition being false for the block, apply a smooth interpolation filter to the unfiltered reference samples of the block to generate prediction samples of the block.
[0010] In another example, the present disclosure describes an apparatus for encoding or decoding video data, the apparatus comprising: means for determining whether a condition is true for a block of a current picture of the video data; means for applying a non-smooth interpolation filter to unfiltered reference samples of the block to produce prediction samples of the block based on the condition being true for the block; and means for applying a smooth interpolation filter to the unfiltered reference samples of the block to produce prediction samples of the block based on the condition being false for the block.
[0011] In another example, the present disclosure describes a computer-readable storage medium having instructions stored thereon that, when executed, cause one or more processors to: determine whether a condition is true for a block of a current picture of video data; based on the condition being true for the block, apply a non-smoothing interpolation filter to unfiltered reference samples of the block to produce predicted samples; and based on the condition being false for the block, apply a smoothing interpolation filter to the unfiltered reference samples of the block to produce predicted samples for the block.
[0012] One or more examples are described in detail in the drawings and the following description. Other features, objects, and advantages will be apparent in the description, drawings, and claims. BRIEF DESCRIPTION OF THE DRAWINGS
[0013] Figure 1 is a block diagram illustrating an example video encoding and decoding system that may perform the disclosed techniques.
[0014] Figure 2 is a conceptual diagram illustrating an example of an intra prediction mode.
[0015] Figure 3 is a conceptual diagram illustrating an example technique for generating prediction samples for a block of video data according to an angular intra prediction mode.
[0016] Figure 4A and Figure 4B is a conceptual diagram illustrating an example quadtree binary tree (QTBT) structure and a corresponding coding tree unit (CTU).
[0017] Figure 5 is a block diagram illustrating an example video encoder that may perform the disclosed techniques.
[0018] Figure 6 is a block diagram illustrating an example video decoder that may perform the disclosed techniques.
[0019] Figure 7 is a flow chart illustrating an example method for encoding a current block.
[0020] Figure 8 is a flow chart illustrating an example method for decoding a current block of video data.
[0021] Fig. 9 is a flow diagram illustrating example operations performed by a video encoder during intra prediction of a block of video data, in accordance with one or more techniques of this disclosure.
[0022] Fig.10 is a diagram showing a method performed by a video encoder to determine Fig. 9 A flowchart of an example operation in which the condition of the operation is true. DETAILED DESCRIPTION
[0023] In video coding, a video encoder (e.g., a video encoder or a video decoder) may encode (e.g., encode or decode) a current block of a current picture. As part of the process of encoding the current block, the video encoder may use intra prediction to generate a prediction block for the current block. To generate the prediction block using intra prediction, the video encoder may determine sample values for the prediction block based on a set of reference samples. The set of reference samples may include samples of the current picture located in a column to the left of the current block and samples of the current picture located in a row above the current block. The video encoder may use reference samples to determine sample values for the prediction block in different ways depending on the intra prediction mode of the prediction block.
[0024] Before determining the sample values of a prediction block based on a set of reference samples, a video encoder may apply filters to the reference samples. Applying filters to reference samples may improve compression efficiency. A variety of techniques have been developed to apply various types of filters to reference samples. For example, mode-dependent intra-frame smoothing (MDIS) is a technique for applying filters to reference samples. In MDIS, a video encoder may determine whether to apply a filter to a reference sample based on an intra-frame prediction mode and the size of a prediction block. In addition, if the video encoder determines to apply a filter to a reference picture, the video encoder may apply different filters to the reference samples based on the intra-frame prediction mode and the size of the prediction block. The video encoder may store the original, unfiltered reference samples (e.g., for the purpose of outputting the reference samples or reusing them in the prediction of other blocks), and may need to store filtered reference samples.
[0025] In addition to applying filters to reference samples as part of performing MDIS, a video encoder may apply interpolation filters to reference samples. The video encoder applies interpolation filters to integer reference samples to determine reference sample values between integer reference samples. Integer reference samples are reference samples located at integer-valued coordinates within a current picture. The video encoder may use interpolated reference samples to determine sample values in a prediction block. When applying interpolation filters, the video encoder may apply a set of weights to the integer reference samples. There may be different weights for different sub-integer positions. For example, in an example where there are 31 different positions between integer reference samples, there may be 32 different sets of weights, namely 31 sets of weights for positions between reference samples and 1 set of weights for integer reference samples. Therefore, the video encoder may need to store all 32 different sets of weights. In addition, the video encoder may be configured to apply different types of interpolation filters in different situations. For example, the video encoder may be configured to apply a cubic interpolation filter in some cases and a Gaussian interpolation filter in other cases. Therefore, the video encoder may also need to store multiple sets of weights for each type of interpolation filter. Similar to the filters applied as part of performing MDIS, Gaussian interpolation filters can provide a smoothing effect. Therefore, the video encoder can actually apply two consecutive smoothing filter operations. The smoothing filter is a low-pass filter that passes signals below the cutoff frequency. The non-smoothing filter is an all-pass filter or a filter with a cutoff frequency higher than the cutoff frequency of the smoothing filter.
[0026] Storing multiple sets of weights and storing filtered and unfiltered reference samples consumes valuable memory space. In addition, applying two consecutive smoothing filter operations can increase the complexity of the encoding process, thereby increasing the cost of building circuits to implement the encoding process.
[0027] The present invention describes techniques that can reduce storage requirements and / or can reduce the complexity of the encoding process. For example, as described herein, a video encoder can implement a process of combining MDIS and Gaussian interpolation filtering smoothing filter operations for directional intra-frame prediction mode. As described herein, this can be achieved by selecting filters in MDIS and Gaussian interpolation filtering using the same condition. Therefore, in one example, the video encoder can be configured to determine whether a condition is true for a block of a current picture of video data. Based on the condition being true for the block, the video encoder can apply a non-smoothing interpolation filter to the unfiltered reference samples of the block to generate prediction samples for the block. However, based on the condition being false for the block, the video encoder can apply a smoothing interpolation filter to the unfiltered reference samples of the block to generate prediction samples for the block. Therefore, based on the need to store MDIS filtered samples, the video encoder can apply the filter to the unfiltered reference samples instead of applying the MDIS filter and the interpolation filter separately.
[0028] Figure 1 1 is a block diagram illustrating an example video encoding and decoding system 100 that can perform the disclosed techniques. The disclosed techniques generally relate to encoding (encoding and / or decoding) video data. Generally speaking, video data includes any data used to process video. Therefore, video data may include unencoded raw video, encoded video, decoded (e.g., reconstructed) video, and video metadata such as syntax data.
[0029] like Figure 1 As shown, 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. Source device 102 and destination device 116 can be a variety of devices, such as desktop computers, laptop (i.e., portable) computers, tablet computers, mobile devices, set-top boxes, handheld phones such as smartphones, televisions, cameras, display devices, digital media players, video game consoles, video streaming devices, etc. In some cases, source device 102 and destination device 116 can be equipped for wireless communication and can therefore be referred to as wireless communication devices.
[0030] exist Figure 1 In the example of , the source device 102 includes a video source 104, a memory 106, a video encoder 200, and an output interface 108. The destination device 116 includes an input interface 122, a video decoder 300, the memory 120, and a display device 118. According to the present disclosure, the video encoder 200 of the source device 102 and the video decoder 300 of the destination device 116 can be configured to apply a technique for combining MDIS and Gaussian interpolation filtering. Therefore, the source device 102 represents an example of a video encoding device, and the destination device 116 represents an example of a video decoding device. In other examples, the source device and the destination device may include other components or configurations. For example, the source device 102 can receive video data from an external video source such as an external camera. Similarly, the destination device 116 can be connected to an external display device without a built-in integrated display device.
[0031] Figure 1The system 100 shown is only one example. In general, any digital video encoding and / or decoding device can perform the techniques of the present disclosure for combining MDIS and Gaussian interpolation filtering. The source device 102 and the destination device 116 are only examples of such encoding devices, where the source device 102 generates encoded video data for transmission to the destination device 116. The present disclosure refers to a "coding" device as a device that performs data encoding (encoding and / or decoding). Therefore, the video encoder 200 and the video decoder 300 represent examples of encoding devices, specifically, a video encoder and a video decoder, respectively. In some examples, the devices 102 and 116 operate in a substantially symmetrical manner, so that the devices 102 and 116 both include video encoding and decoding components. Therefore, the system 100 can support one-way or two-way video transmission between the video devices 102 and 116, such as can be used for video streaming, video playback, video broadcasting, or video telephony.
[0032] In general, video source 104 represents a source of video data (i.e., uncoded raw 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 raw video, and / or a video feed interface for receiving video from a video content provider. As another optional solution, video source 104 may generate computer graphics-based data as a 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 order in which they were received (sometimes referred to as "display order") into a coding order for encoding. Video encoder 200 may generate a bitstream including coded 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 .
[0033] 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 memory 106 and the memory 120 may store raw video data, such as raw video data from the video source 104 and decoded raw video data from the video decoder 300. In addition or alternatively, the memory 106 and the memory 120 may store software instructions that can be executed by the video encoder 200 and the video decoder 300, etc., respectively. Although 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 may also include internal memory to achieve functionally similar or equivalent purposes. In addition, the memory 106 and the memory 120 may store encoded video data output from the video encoder 200 and input to the video decoder 300, etc. In some examples, some portions of the memory 106 and the memory 120 may be allocated as one or more video buffers, such as for storing decoded raw video data and / or encoded raw video data.
[0034] 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 to enable the source device 102 to transmit the encoded video data directly to the destination device 116 in real time via a radio frequency network or a computer network, etc. According to a communication standard such as a wireless communication protocol, the output interface 108 can modulate a transmission signal including the encoded video data, and the input interface 122 can modulate the received transmission signal. The communication medium may include a wireless or wired communication medium, or both, 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 can be used to facilitate communication from the source device 102 to the destination device 116.
[0035] 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 various distributed data storage media or locally accessed data storage media, such as a hard drive, a Blu-ray disc, a digital video disc (DVD), a compact disc-read only drive (CD-ROM), flash memory, volatile or non-volatile memory, or any other suitable digital storage medium for storing encoded video data.
[0036] In some examples, source device 102 may output the encoded video data to file server 114 or another intermediate storage device that may store the encoded video generated by source device 102. Destination device 116 may access the stored video data from file server 114 via online or download. File server 114 may be any type of server device that can store encoded video data and transmit the encoded video data to destination device 116. File server 114 may represent a network server (such as for a website), a file transfer protocol (FTP) server, a content distribution network device, or a network attached storage (NAS) device. Destination device 116 may access the encoded video data from file server 114 via any standard data connection including an Internet connection. This may include a wireless channel such as a Wi-Fi connection, a wired connection such as a digital subscriber line (DSL) and a cable modem, or a combination of a wireless channel and a wired connection suitable for accessing the encoded video data stored on file server 114. File server 114 and input interface 122 may be configured to operate according to a streaming transmission protocol, a download transmission protocol, or a combination thereof.
[0037] Output interface 108 and input interface 122 may represent wired networking components such as wireless transmitters / receivers, modems, Ethernet cards, wireless communication components that operate according to any of the various IEEE 802.11 standards, 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 fourth generation mobile communication technology (4G), 4G long term evolution (4G-LTE), advanced LTE (LTE Advanced), fifth generation mobile communication technology (5G), or other cellular communication standards. 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 IEEE 802.11 specifications, IEEE 802.15 specifications (e.g., ZigBee TM ),Bluetooth TM The source device 102 and / or the destination device 116 may include corresponding system-on-chip (SoC) devices. For example, the source device 102 may include a SoC device to perform the functions of the video encoder 200 and / or the output interface 108, and the destination device 116 may include a SoC device to perform the functions attributed to the video decoder 300 and / or the input interface 122.
[0038] The technology disclosed in the present invention can be applied to video encoding that supports a variety of multimedia applications, such as wireless television broadcasting, cable television transmission, satellite television transmission, Internet streaming video transmission such as HTTP-based dynamic adaptive streaming, digital video encoded on data storage media, decoding of digital video stored on data storage media, or other applications.
[0039] The input interface 122 of the destination device 116 receives the encoded video bitstream from the computer-readable medium 110 (such as the storage device 112 and the file server 114). The encoded video bitstream computer-readable medium 110 may include signaling information defined by the video encoder 200 and used by the video decoder 300, such as syntax elements with values describing the properties and / or processing of video blocks or other coding units (such as slices, pictures, groups of pictures, and sequences). The display device 118 displays the decoded pictures of the decoded video data to the user. The display device 118 may represent various display devices such as cathode ray tubes (CRTs), liquid crystal displays (LCDs), plasma displays, organic light emitting diode (OLED) displays, or other types of display devices.
[0040] although Figure 1 , but in some examples, the video encoder 200 and the video decoder 300 may each be integrated with an audio encoder and / or an audio decoder, and may include appropriate multiplexing-demultiplexing (MUX-DEMUX) units or other hardware and / or software to handle multiplexed streams including both audio and video in a common data stream. If applicable, the MUX-DEMUX unit may conform to the ITU H.223 multiplexer protocol or other protocols such as the User Datagram Protocol (UDP).
[0041] The video encoder 200 and the video decoder 300 may be implemented as any suitable encoder circuit and / or decoder circuit, such as one or more microprocessors, digital signal processors (DSPs), application specific integrated circuits (ASICs), field programmable gate arrays (FPGAs), discrete logic elements, software, hardware, firmware, or any combination thereof. When the technology is partially implemented in software, the device may store instructions for the software in a suitable non-temporary computer-readable medium, and use one or more processors to execute the instructions in hardware to perform the technology of the present disclosure. The video encoder 200 and the video decoder 300 may be included in one or more encoders or decoders, either of which may 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.
[0042] The video encoder 200 and the video decoder 300 may operate according to a video coding standard, such as ITU-T H.265 (also known as High Efficiency Video Coding (HEVC)), or according to an extension of HEVC such as multi-view and / or scalable video coding extensions. Alternatively, the video encoder 200 and the video decoder 300 may operate according to other proprietary or industrial standards, such as the Joint Exploration Test Model (JEM) or the Versatile Video Coding (VVC) standard currently under development. However, the technology of the present disclosure is not limited to any particular coding standard.
[0043] Video coding standards include ITU-T H.261, ISO / IEC MPEG-1 Visual, ITU-T H.262 or ISO / IEC MPEG-2 Visual, ITU-T H.263, ISO / IEC MPEG-4 Visual, ITU-T H.264 (also known as ISO / IEC MPEG-4 AVC), ITU-T H.264 including its Scalable Video Coding (SVC) extension and Multi-View Video Coding (MVC) extension, and ITU-TH.265 (also known as ISO / IEC MPEG-4 HEVC) and its extensions. During the Joint Video Experts Group (JVET) meeting in April 2018, the general video coding standardization activity (also known as ITU-T H.266) was launched with the evaluation of video compression technologies submitted to the call for proposals. The video encoder 200 and the video decoder 300 or other codecs may operate according to the H.266 video coding standard.
[0044] In general, the video encoder 200 and the video decoder 300 may perform block-based encoding of a picture. The term "block" generally refers to a structure that includes data to be processed (such as encoded, decoded, or otherwise used in the encoding and / or decoding process). For example, a block may include a two-dimensional matrix of luminance and / or chrominance data samples. In general, the video encoder 200 and the video decoder 300 may encode video data represented in a YUV (such as Y, Cb, Cr) format. That is, the video encoder 200 and the video decoder 300 may encode luminance and chrominance components instead of encoding red, green, and blue (RGB) data of the picture samples, wherein the chrominance components may include chrominance components of red hues and blue hues. In some examples, the video encoder 200 converts the received RGB formatted data into a YUV format before encoding, and the video decoder 300 converts the YUV format into an RGB format. Optionally, a pre-processing unit and a post-processing unit (not shown) may perform these conversions.
[0045] The present disclosure may generally relate to encoding (e.g., encoding and decoding) a picture to include the process of encoding or decoding picture data. Similarly, the present disclosure may relate to encoding a block of a picture to include the process of encoding or decoding data of the block, such as prediction and / or residual coding. The encoded video bitstream typically includes a series of values for syntax elements that represent coding decisions (e.g., coding modes) and the partitioning of the picture into blocks. Therefore, references to encoding a picture or a block should generally be understood as encoding the values of the syntax elements that form the picture or the block.
[0046] HEVC defines various blocks, including coding units (CUs), prediction units (PUs), and transform units (TUs). According to HEVC, a video encoder (such as video encoder 200) partitions a coding tree unit (CTU) into CUs according to a quadtree structure. That is, the video encoder partitions the CTU and CU into four equal non-overlapping blocks, and each node of the quadtree has zero or four child nodes. A node without child nodes may be referred to as a "leaf node", and the CU of such a leaf node may include one or more PUs and / or one or more TUs. The video encoder may further partition the PU and TU. For example, in HEVC, the residual quadtree (RQT) represents the partitioning of the TU. In HEVC, PU represents inter-frame prediction data, and TU represents residual data. The intra-predicted CU includes intra-frame prediction information such as intra-frame mode indication.
[0047] As another example, the video encoder 200 and the video decoder 300 may be configured to operate according to JEM. According to JEM, a video encoder (e.g., video encoder 200) partitions a picture into multiple CTUs. The video encoder 200 may partition the CTU according to a tree structure such as a quadtree binary tree (QTBT) structure. The QTBT structure of JEM removes the concepts of multiple partition types such as the partition between CU, PU, and TU of HEVC. The QTBT structure of JEM includes two layers: a first layer partitioned according to a quadtree and a second layer partitioned according to a binary tree. The root node of the QTBT structure corresponds to a CTU. The leaf nodes of the binary tree correspond to coding units (CUs).
[0048] In some examples, the video encoder 200 and the video decoder 300 may use a single QTBT structure to represent each of the luma components and the chroma components, while in other examples, the video encoder 200 and the video decoder 300 may use two or more QTBT structures, such as one QTBT structure for representing the luma component and another QTBT structure for representing the chroma component (or two QTBT structures for representing corresponding chroma components).
[0049] The video encoder 200 and the video decoder 300 may be configured to use quadtree segmentation according to HEVC, QTBT segmentation according to JEM, or other segmentation structures. For the purpose of explanation, the description of the disclosed technology is presented in terms of QTBT segmentation. However, it should be understood that the disclosed technology may also be applied to video encoders configured to use quadtree segmentation or other segmentation types.
[0050] This disclosure may use "N×N" and "N times N" interchangeably to refer to the sample size of a block (such as a CU or other video block) in the vertical dimension and the horizontal dimension (e.g., 16×16 samples or 16 times 16 samples). In general, a 16×16 CU has 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 can be arranged in rows and columns. In addition, a CU does not necessarily 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.
[0051] The video encoder 200 encodes the video data of the CU for representing prediction information and / or residual information and other information. The prediction information indicates how to predict the CU to form the prediction block of the CU. The residual information generally indicates the sample-by-sample difference between the sample of the CU before encoding and the sample of the prediction block.
[0052] To predict a CU, the video encoder 200 may typically form a prediction block for the CU by inter-frame prediction or intra-frame prediction. Inter-frame prediction typically refers to predicting a CU based on data of a previously encoded picture, while intra-frame prediction typically refers to predicting a CU based on previously encoded data of the same picture. To perform inter-frame prediction, the video encoder 200 may use one or more motion vectors to generate a prediction block. The video encoder 200 may typically perform a motion search, such as identifying a reference block that closely matches the CU based on the difference between the CU and the reference block. The video encoder 200 may calculate a difference metric using the sum of absolute differences (SAD), the sum of squared differences (SSD), the mean absolute difference (MAD), the mean squared difference (MSD), or other such difference calculations to determine whether the reference block closely matches the current CU. In some examples, the video encoder 200 may use unidirectional prediction or bidirectional prediction to predict the current CU.
[0053] JEM also provides an affine motion compensation mode, which can be considered an inter-prediction mode. In the affine motion compensation mode, the video encoder 200 can determine two or more motion vectors representing non-translational motion, such as zooming in or out, rotation, perspective motion, or other types of irregular motion.
[0054] To perform intra prediction, the video encoder 200 may select an intra prediction mode to generate a prediction block. JEM provides 67 intra prediction modes, including a planar mode, a DC mode, and various directional modes. In general, the video encoder 200 selects an intra prediction mode that describes neighboring samples of a current block (such as a block of a CU) from which to predict the samples of the current block. 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 are typically located above, above and to the left, or to the left of the current block in the same picture as the current block.
[0055] Figure 2 is a conceptual diagram showing an example of intra prediction modes. In JEM 7 (J. Chen, E. Alshina et al., Joint Exploration Test Model 7 Algorithm Description, 7th JVET Conference, Torino, Italy, July 2017, JVET-G1001, hereinafter referred to as "JEM 7"), 67 modes for luma block intra prediction are listed, such as Figure 2 As shown, it includes a planar mode (ie, a planar intra-frame prediction mode), a DC mode, and 65 angular modes (ie, angular intra-frame prediction modes).
[0056] Figure 3 is a conceptual diagram illustrating an example technique for generating prediction samples for a block of video data according to an angular intra prediction mode. Figure 3 In this example, the video encoder 200 may determine the fractional position α between adjacent samples L and R, where the adjacent samples L and R are two reconstructed samples adjacent to the current PU. The video encoder 200 may determine the fractional position by projecting the coordinates of the corresponding sample to a row or column of adjacent reconstructed samples containing the two adjacent reconstructed samples along a prediction direction associated with the selected intra prediction mode. Figure 3 In this example, line 130 shows the prediction direction associated with the selected intra prediction mode, and (x, y) is the coordinate of the corresponding sample 62. In this example, the video encoder 200 can use an interpolation filter to calculate the prediction value of the corresponding sample, and the interpolation filter uses the values of two adjacent reconstructed samples to interpolate the value at the determined fractional position. Figure 3 In addition to the two adjacent reconstructed samples shown in the example, the video encoder 200 may use the values of one or more adjacent reconstructed samples. The interpolation may have 1 / 32 pixel accuracy. In addition, in this example, as part of encoding a block of video data, the video encoder 200 may generate residual data representing the pixel difference between the current block and the predictive block. The video encoder 200 may transform and quantize the residual data and include entropy coding syntax elements representing the resulting quantized transform coefficients in the bitstream. The video decoder 300 may generate prediction samples in the same manner.
[0057] The video encoder 200 encodes data indicating a prediction mode for the current block. For example, for an inter-frame prediction mode, the video encoder 200 may encode data indicating which available inter-frame prediction mode is used and motion information for the corresponding mode. For example, for unidirectional or bidirectional inter-frame prediction, the video encoder 200 may encode motion vectors using advanced motion vector prediction (AMVP) or merge mode. The video encoder 200 may encode motion vectors for affine motion compensation mode using a similar mode.
[0058] After prediction (such as intra-frame prediction or inter-frame prediction of a block), the video encoder 200 may calculate residual data for the block. The residual data (such as a residual block) represents the samples by the sample-by-sample difference between the block and the predicted block of the block formed using the corresponding prediction mode. The video encoder 200 may apply one or more transforms to the residual block to generate transform data in a transform domain rather than a sample domain. For example, the video encoder 200 may apply a discrete cosine transform (DCT), an integer transform, a wavelet transform, or a conceptually similar transform to the residual video data. In addition, the video encoder 200 may apply a secondary transform after the first transform, such as a mode-dependent non-separable secondary transform (MDNSST), a signal-dependent transform, a Karhunen-Loewenstein transform (KLT), etc. The video encoder 200 generates transform coefficients after applying the one or more transforms.
[0059] As described above, after performing any transforms to produce transform coefficients, the video encoder 200 may perform quantization of the transform coefficients. Quantization generally refers to the process of quantizing the transform coefficients to minimize the amount of data used to represent the coefficients, thereby providing further compression. By performing the quantization process, the video encoder 200 may reduce the bit depth associated with some or all of the coefficients. For example, the video encoder 200 may 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 may perform a bit-by-bit right shift on the value to be quantized.
[0060] After quantization, the video encoder 200 may scan the transform coefficients to produce a one-dimensional vector from a two-dimensional matrix including the quantized transform coefficients. The scan may be designed to place coefficients with higher energy (and thus lower frequency) before the vector and transform coefficients with lower energy (and thus higher frequency) after the vector. In some examples, the video encoder 200 may scan the quantized transform coefficients using a predefined scan order to produce a serialized vector, and then entropy encode the quantized transform coefficients of the vector. In other examples, the video encoder 200 may perform adaptive scanning. After scanning the quantized transform coefficients to form a one-dimensional vector, the video encoder 200 may entropy encode the one-dimensional vector according to context adaptive binary arithmetic coding (CABAC), etc. The video encoder 200 may also entropy encode the values of syntax elements that describe metadata associated with the encoded video data for use by the video decoder 300 when decoding the video data.
[0061] To perform CABAC, video encoder 200 may assign context within a context model to a symbol to be transmitted. The context may relate to, for example, whether neighboring values of the symbol are zero values, etc. The probability determination may be based on the context assigned to the symbol.
[0062] The video encoder 200 may further generate syntax data for the video decoder 300, such as block-based syntax data, picture-based syntax data, and sequence-based syntax data, for example, in a picture header, a block header, a slice header, etc., or generate other syntax data such as a sequence parameter set (SPS), a picture parameter set (PPS), or a video parameter set (VPS). The video decoder 300 may also decode such syntax data to determine how to decode the corresponding video data.
[0063] In this way, the video encoder 200 can generate a bitstream including encoded video data, such as syntax elements describing partitioning a picture into blocks (such as CUs) and prediction information and / or residual information of the blocks. Finally, the video decoder 300 can receive the bitstream and decode the encoded video data.
[0064] In general, the video decoder 300 performs a process that is inverse to 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 inverse to) the CABAC encoding process of the video encoder 200. The syntax elements may define partitioning information of the picture into CTUs, and each CTU may be partitioned according to a corresponding partitioning structure such as a QTBT structure to define CUs of the CTU. The syntax elements may further define prediction information and residual information for a block (such as a CU) of video data.
[0065] 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 a residual block for the block. The video decoder 300 uses the signaled prediction mode (intra-frame or inter-frame prediction) and related prediction information (such as motion information for inter-frame prediction) to form 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, such as performing a deblocking process to reduce visual artifacts along block boundaries.
[0066] In HEVC, adjacent reference samples may be filtered using a 2-tap linear filter or a 3-tap (1, 2, 1) / 4 filter prior to intra prediction. The taps of the filter are the input values, such as sample values, that the filter uses to determine the output value. The nomenclature (x, y, z) / α indicates that the first tap has a weight x, the second tap has a weight y, and the third tap has a weight z, and the sum of the weights multiplied by the corresponding taps divided by α is the filtered value assigned to the second tap. This process is called intra reference smoothing or MDIS. In MDIS, given an intra prediction mode index (predModeIntra) and a block size (nTbS), a video encoder (such as a video encoder or a video decoder) determines whether to perform a reference smoothing process, and if so, which smoothing filter to use. The following text is the relevant paragraph of the HEVC specification:
[0067] 8.4.4.2.3 Filtering process of adjacent samples
[0068] The input to this process is:
[0069] Neighboring sample points p[x][y], where x=-1, y=-1..nTbS*2-1, x=0..nTbS*2-1, y=-1, and the variable nTbS specifies the transform block size.
[0070] The output of this process is the filtered samples pF[x][y], x=-1, y=-1..nTbS*2-1, x=0..nTbS*2-1, y=-1.
[0071] The variable filterFlag can be derived as follows:
[0072] filterFlag is set equal to 0 if one or more of the following conditions are true:
[0073] predModeIntra is equal to INTRA_DC.
[0074] nTbS is equal to 4.
[0075] Otherwise, the following settings apply:
[0076] The variable minDistVerHor is set equal to Min(Abs(predModeIntra-26), Abs(predModeIntra-10)).
[0077] The variable intraHorVerDistThres[nTbS] is specified in Table 8-3.
[0078] The variable filterFlag is obtained as follows:
[0079] If minDistVerHor is greater than intraHorVerDistThres[nTbS], filterFlag is set equal to 1.
[0080] Otherwise, filterFlag is set equal to 0.
[0081] Table 8-3 Specification of intraHorVerDistThres[nTbS] for various transform block sizes
[0082] nTbS=8 nTbS=16 nTbS=32 intraHorVerDistThres[nTbS] 7 1 0
[0083] When filterFlag is equal to 1, the following settings apply:
[0084] The variable biIntFlag is obtained as follows:
[0085] biIntFlag is set equal to 1 if all of the following conditions are true:
[0086] strong_intra_smoothing_enabled_flag is equal to 1
[0087] nTbS is equal to 32
[0088] Abs(p[-1][-1]+p[nTbS*2-1][-1]–2*p[nTbS-1][-1])<(1<<(BitDepthY-5))
[0089] Abs(p[-1][-1]+p[-1][nTbS*2-1]–2*p[-1][nTbS-1])<(1<<(BitDepthY-5))
[0090] Otherwise, biIntFlag is set equal to 0.
[0091] The filtering is performed as follows:
[0092] If biIntFlag is equal to 1, the filtered sample values pF[x][y], x=-1, y=-1..63 and x=0..63, y=-1 are obtained as follows:
[0093] pF[-1][-1]=p[-1][-1] (8-30)
[0094] pF[-1][y]=((63-y)*p[-1][-1]+(y+1)*p[-1]
[63] +32)>>6 for y=0..62 (831)
[0095] pF[-1]
[63] =p[-1]
[63] (8-32)
[0096] For x=0, pF[x][-1]=((63-x)*p[-1][-1]+(x+1)*p
[63] [-1]+32)>>6..62 (8-33)
[0097] pF
[63] [-1]=p
[63] [-1] (8-34)
[0098] Otherwise (biIntFlag is equal to 0), the filtered sample value pF[x][y], x=-1, y=-1..nTbS*2-1, x=0..nTbS*2-1, y=-1 is obtained as follows:
[0099] pF[-1][-1]=(p[-1][0]+2*p[-1][-1]+p[0][-1]+2)>>2 (8-35)
[0100] pF[-1][y]=(p[-1][y+1]+2*p[-1][y]+p[-1][y-1]+2)>>2 for
[0101] y=0..nTbS*2-2 (8-36)
[0102] pF[-1][nTbS*2-1]=p[-1][nTbS*2-1](8-37)
[0103] pF[x][-1]=(p[x-1][-1]+2*p[x][-1]+p[x+1][-1]+2)>>2for x=0..nTbS*2–2(8-38)
[0104] pF[nTbS*2-1][-1]=p[nTbS*2-1][-1] (8-39)”
[0105] During the Joint Video Study Group (JVET) activities, JEM 7 was defined and the following version of the MDIS table was added for the luma block.
[0106] Table 1
[0107] sizeIndex Threshold[sizeIndex] 0 20 1 20 2 14 3 2 4 0 5 20 6 0
[0108] In addition, the block size index is defined as follows in JEM7:
[0109] sizeIndex=(log2(BlockWidth)–2+log2(BlockHeight)–2) / 2+2–1 (1)
[0110] In equation (1), BlockWidth is the width of the block, BlockHeight is the height of the block, and log2(.) is the logarithmic function with base 2.
[0111] Whether to apply the [1 2 1] / 4 smoothing filter to the intra-frame reference samples is determined as follows:
[0112]
[0113] In the above equation (2), HOR_IDX is the index for the horizontal intra prediction mode, and VER_IDX is the index for the vertical intra prediction mode. HOR_IDX is equal to 18 and VER_IDX is equal to 50 because JEM 7 has 65 directional intra modes (IntraModeIdx 2-66) in addition to the plane (IntraModeIdx=0) mode and the DC (IntraModeIdx=1) mode. The IntraModeIdx values of the 65 directional intra prediction modes are in the range of 2-66. If the plane intra prediction mode is 0, IntraModeIdx is equal to 0. For the DC intra prediction mode, IntraModeIdx is equal to 1.
[0114] Determines whether to apply a smoothing filter based on the following conditions:
[0115] If IntraModeDiff>Threshold[sizeIndex] then "Apply smoothing filter" (3)
[0116] In equation (3), the video encoder uses equation (1) to determine the value of sizeIndex, and uses the MDIS table of Table 1 to determine the value of Threshold[sizeIndex].
[0117] J. Chen, E. Alshina, "Generic Video Coding and Test Model 1 (VTM1) Algorithmic Description" (10th JVET Conference, San Diego, USA, April 2018, JVET-J1002, hereinafter referred to as "VTM1") and Benchmark Model Version 1 ("BMS1"), including the following MDIS tables:
[0118] Table 2
[0119] sizeIndex Threshold[sizeIndex] 0 20 1 20 2 20 3 14 4 2 5 0 6 20 or 0 7 0
[0120] In VTM1 and BMS1, the block size index is defined as follows
[0121] sizeIndex=(log2(BlockWidth)+log2(BlockHeight)) / 2 (4)
[0122] In addition, in VTM1 and BMS1, whether to apply the [1 2 1] / 4 smoothing filter to the intra reference samples is determined as follows:
[0123]
[0124] In the above equation (5), HOR_IDX is the index for the horizontal intra prediction mode, and VER_IDX is the index for the vertical intra prediction mode. In VTM1 and BMS1, HOR_IDX is equal to 18 and VER_IDX is equal to 50, because in addition to the plane intra prediction mode and DC intra prediction mode (IntraModeIdx=1) mode, VTM1 and BMS1 also have 65 directional intra modes. The IntraModeIdx values of the 65 directional intra prediction modes are in the range of 2-66. If the plane intra prediction mode is 0, IntraModeIdx is equal to 0. For the DC intra prediction mode, IntraModeIdx is equal to 1.
[0125] If IntraModeDiff>Threshold[sizeIndex], then "Apply Smoothing Filter" (6)
[0126] The conditions expressed in equation (3) and equation (6) may be referred to as MDIS conditions because these conditions may control whether a smoothing filter is applied to the reference samples. In JEM 7, VTM1, and BMS1, if a smoothing filter is applied to the reference samples, the video encoder first applies the smoothing filter to the reference samples and then applies the interpolation filter to the reference samples to determine the values of sub-pixel positions between the reference samples.
[0127] In HEVC, a 2-tap linear interpolation filter is used to generate intra prediction blocks in directional prediction modes (i.e., intra prediction modes other than planar intra prediction mode and DC intra prediction mode). In JEM 7 (J. Chen, E. Alshina et al., Joint Exploration Test Model 7 Algorithm Description, 7th JVET Conference, Torino, Italy, July 2017, JVET-G1001, hereinafter referred to as "JEM7") and J. Chen, E. Alshina, General Video Coding and Test Model 1 (VTM1) Algorithm Description (10th JVET Conference, San Diego, USA, April 2018, JVET-J1002, hereinafter referred to as "BMS1" or "VTM1"), a 4-tap intra interpolation filter is used for directional intra prediction filtering. Two types of 4-tap interpolation filters are used:
[0128] · 4-tap cubic interpolation filter, used for vertical prediction mode with block width less than or equal to 8 samples (IntraModeIdx>=DIA_IDX(=34)). DIA_IDX represents the index of the intra prediction mode with intra prediction mode index 34.
[0129] 4-tap cubic interpolation filter for horizontal prediction modes with block height less than or equal to 8 samples (IntraModeIdx <DIA_IDX(=34))
[0130] 4-tap Gaussian interpolation filter for vertical prediction modes with block width greater than 8 samples (IntraModeIdx>=DIA_IDX(=34))
[0131] 4-tap Gaussian interpolation filter for horizontal prediction modes with block height greater than 8 samples (IntraModeIdx <DIA_IDX(=34))
[0132] The phase of an interpolation filter may refer to the number of positions relative to an integer position that may be determined using the interpolation filter. The following 4-tap cubic (32 phase) interpolation filter is used in JEM7 and BMS1:
[0133]
[0134]
[0135] The following 4-tap Gaussian filter (32 phases) is used in JEM7 and BMS1:
[0136]
[0137]
[0138] The Gaussian interpolation filter can be derived by the following Matlab code example. In this example, the smoothing strength sigma is set to 0.9:
[0139] Table 3
[0140]
[0141]
[0142] In Table 3, exp(.) represents an exponential function, and sigma represents a standard deviation.
[0143] In another example, the following 6-tap interpolation filter (64 phases) may be used instead of a 4-tap interpolation filter:
[0144]
[0145]
[0146]
[0147] In another example, the following 6-tap cubic interpolation filter (32 phases) may be used:
[0148]
[0149]
[0150] Depending on the MDIS condition, a mode-dependent intra smoothing (MDIS) filter (e.g., [1 2 1] / 4) may be first applied to the intra reference samples. This requires storing both unfiltered and filtered intra reference sample rows for intra prediction. In case of using directional intra prediction mode, two interpolation filters (e.g., a cubic interpolation filter and a Gaussian interpolation filter) may be applied to the unfiltered or filtered reference samples, depending on different conditions associated with the interpolation filtering. If Gaussian interpolation is used, filtering is applied on the MDIS filtered reference samples, i.e., two consecutive smoothing filtering operations are applied. This means an increase in complexity and the storage of unfiltered and filtered intra reference sample rows needs to be doubled.
[0151] The present disclosure proposes to combine two smoothing filter operations of directional mode intra-frame prediction, that is, to combine MDIS filtering and Gaussian interpolation filtering, which can be achieved by directly applying MDIS conditions to make decisions between two interpolation filters and eliminating separate interpolation filter conditions. This can reduce the storage space required for intra-frame reference sample rows. The disclosed technology can also enable the video encoder 200 or the video decoder 300 to perform intra-frame prediction faster, reducing the speed of video encoding and decoding.
[0152] The following MDIS tables are included in the Joint Video Experts Team (JVET) and its VVC Test Model Version 1 (VTM), VVC Test Model Version 2 (VTM2) (J. Chen, Y. Ye, S. Kim, "Generic Video Coding and Test Model 2 (VTM2) Algorithm Description", 11th JVET Conference, Ljubljana, Slovenia, July 2018, JVET-K1002), Benchmark Model Version 1 (BMS1) software, and Benchmark Model Version 2 (BMS2):
[0153] Table 4
[0154] sizeIndex MDISthreshold[sizeIndex] 0 20 1 20 2 20 3 14 4 2 5 0 6 20 or 0 7 0
[0155] The block size index is defined in VTM1, VTM2, BMS1 and BMS2 as follows:
[0156] sizeIndex=(log2(BlockWidth)+log2(BlockHeight)) / 2 (7)
[0157] Define the minimum index difference between directional intra modes and their respective indices or between horizontal and vertical modes:
[0158]
[0159] Horizontal mode corresponds to directions parallel to the top and bottom edges of the image. Vertical mode corresponds to directions parallel to the left and right sides of the image.
[0160] The new conditions for switching interpolation filters in directional intra prediction are as follows:
[0161] Table 5
[0162]
[0163] Thus, a Gaussian interpolation filter with smoothing properties is used as the only smoothing filtering step, and only the unfiltered reference sample rows need to be stored for directional intra mode prediction. Therefore, the video encoder may not need to store filtered reference samples for interpolation filtering. The complexity of the video encoder is reduced.
[0164] Thus, in this example, the video encoder may determine whether a condition (e.g., IntraModeDiff>MDISthreshold[sizeIndex]) is true for a block of the current picture of the video data. Based on the condition being true for the block, the video encoder may apply a non-smoothing interpolation filter (e.g., a cubic interpolation filter) to the unfiltered reference samples of the block to generate prediction samples for the block. Based on the condition being false for the block, the video encoder may apply a smoothing interpolation filter (e.g., a Gaussian interpolation filter) to the unfiltered reference samples of the block to generate prediction samples for the block.
[0165] Note that there are additional conditions in VTM1 and BMS1 to control smoothing filtering of intra reference samples, such as dependence on luma or chroma, use of position dependent intra prediction combining (PDPC) tool, use of non-separable secondary transform (NSST), etc. Additional conditions can be added to control MDIS.
[0166] In some examples, the cubic interpolation filter is intraCubic6TapFilter32, and the Gaussian filter is a 6-tap filter, which is obtained by convolution of a [1 2 1] / 4MDIS filter and an intraGauss4TapFilter32 filter to obtain the following intraGauss6TapFilter32:
[0167]
[0168]
[0169] In another example, the cubic interpolation filter is intraCubic4TapFilter32 (defined above), and the Gaussian filter is a 4-tap filter with increased smoothing strength by setting sigma to 1.3 (see Matlab code in Table 3), resulting in the following intraGauss4TapFilter32strong:
[0170]
[0171]
[0172] In another example, the cubic interpolation filter is intraCubic4TapFilter32 (as defined above), and after reducing the number of bits required to store the filter coefficients (from 9 bits / coefficient to 7 bits / coefficient), the intraCubic4TapFilter32_7bitcoeff filter is obtained:
[0173]
[0174]
[0175] In yet another example, the Gaussian interpolation filter is intraGauss4TapFilter32strong (as defined above), and after reducing the number of bits required to store the filter coefficients (from 7 bits / coefficient to 5 bits / coefficient), the following intraGauss4TapFilter32strong_5bitcoeff filter is obtained:
[0176]
[0177]
[0178] Note that a phase of 0 is used for both filters when computing the integer reference sample locations.
[0179] In general, if the MDIS condition is true, the video encoder applies a non-smoothing interpolation filter; if the MDIS condition is false, the video encoder applies an interpolation filter with smoothing properties. The number of filter taps may also vary, for example:
[0180] 4-tap non-smoothing interpolation filters (such as intraCubic4TapFilter32 or intraCubic4TapFilter32_7bitcoeff) and 4-tap smoothing interpolation filters (such as intraGauss4TapFilter32 or intraGauss4TapFilter32strong or intraGauss4TapFilter32strong_5bitcoeff)
[0181] 4-tap non-smoothing interpolation filters (such as intraCubic4TapFilter32 or intraCubic4TapFilter32_7bitcoeff) and 6-tap smoothing interpolation filters (such as intraGauss6TapFilter32)
[0182] 6-tap non-smoothing interpolation filter (such as intraCubic6TapFilter32) and 4-tap smoothing interpolation filter (such as intraGauss4TapFilter32 or intraGauss4TapFilter32strong or intraGauss4TapFilter32strong_5bitcoeff)
[0183] Other filters.
[0184] In addition, the number of phases of the non-smoothing interpolation filter and the smoothing interpolation filter may be the same or different, such as 32 phases or 64 phases.
[0185] In a further generalization, the MDIS condition can determine the use of two or more interpolation filters with different smoothing properties. For example, the smoothing strength may depend on the type of intra mode, the distance to the block boundary, the block dimension, etc. For example, a video encoder may select an interpolation filter with gradually increasing smoothing strength for determining the values of reference samples that are gradually farther from the boundary of the current block. A filter with a larger smoothing strength can reduce the difference between sample values more than a filter with a smaller smoothing strength.
[0186] In a further generalization, multiple intra-frame reference rows may be used for prediction, and the selection of interpolation filters and their properties may depend on the reference row index. For example, the video encoder may select interpolation filters to apply to different reference samples of the current block based on the MDIS condition and based on the reference row index of the reference sample. For example, in one example, when the MDIS condition is true, the video encoder may select a first interpolation filter to determine the value of the reference sample in the first reference row, select a second interpolation filter to determine the value of the reference sample in the second reference row, and so on; when the MDIS condition is false, the video encoder may select a third interpolation filter to determine the value of the reference sample in the first reference row, select a fourth interpolation filter to determine the value of the reference sample in the second reference row, and so on. The reference row index is the index of the row or column of the reference sample.
[0187] In some alternatives, in addition to or instead of the MDIS condition, the selection of a smoothing filter may be determined by examining the properties of an interpolation filter used in one or more neighboring blocks. For example, in one example, if the video encoder uses a non-smoothing interpolation filter with neighboring blocks, the video encoder may determine whether the condition is true for the block (and therefore apply a non-smoothing interpolation filter). In this example, if the video encoder uses a smoothing interpolation filter with neighboring blocks, the video encoder may determine that the condition is false for the block (and therefore apply a smoothing interpolation filter).
[0188] In other alternatives, bidirectional intra-frame prediction coding (prediction of two or more samples from two directions) may be applied, and the selection of interpolation filters and their properties may also depend on whether bidirectional intra-frame prediction is applied, and may also depend on the specific mode / direction associated with the bidirectional prediction. For example, in this example, when bidirectional intra-frame prediction is applied to the block and the intra-frame mode difference is greater than a threshold (such as the threshold determined using Table 4), the video encoder may determine that the condition is true; and when bidirectional intra-frame prediction is not applied or the intra-frame mode difference is not greater than the threshold, the video encoder may determine that the condition is false.
[0189] The present disclosure may generally refer to "signaling" certain information, such as syntax elements. The term "signaling" may generally refer to the communication of syntax element values and / or other data used to decode encoded video data. That is, the video encoder 200 may signal the values of syntax elements in the bitstream. Generally speaking, signaling refers to generating values in the bitstream. As described above, the source device 102 may transmit the bitstream to the destination device 116 substantially in real time, which may not be possible if, for example, the syntax elements are stored in the storage device 112 for later retrieval by the destination device 116.
[0190] Figure 4A and Figure 4B 1 is a conceptual diagram showing an example quadtree binary tree (QTBT) structure and a corresponding coding tree unit (CTU). The solid line represents the quadtree partition, and the dotted line represents the binary tree partition. In each partition (i.e., non-leaf) node of the binary tree, a flag is signaled to indicate which partition type (i.e., horizontal type or vertical type) is used, 0 indicates horizontal partition, and 1 indicates vertical partition. There is no need to indicate the partition type of the quadtree partition because the quadtree node divides the block into 4 sub-blocks of equal size from the horizontal direction and the vertical direction. Therefore, the video encoder 200 and the video decoder 300 can encode and decode the syntax elements (such as partition information) of the regional tree level of the QTBT structure 140 (i.e., the solid line) and the syntax elements (such as partition information) of the prediction tree level of the QTBT structure 140 (i.e., the dotted line). The video encoder 200 and the video decoder can encode and decode video data, such as the prediction data and transform data of the CU represented by the terminal leaf node of the QTBT structure 140.
[0191] Generally speaking, Figure 4B The CTU 142 may be associated with parameters defining the block sizes corresponding to nodes at the first and second levels in the QTBT structure 140. These parameters may include a CTU size (indicating the size of the CTU 142 in a sample), a minimum quadtree size (MinQTSiz, 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).
[0192] The root node of the QTBT structure corresponding to the CTU can have four child nodes at the first level of the QTBT structure, and each child node can be segmented according to the quadtree segmentation. That is, the node of the first level is a leaf node (no child nodes) or has four child nodes. The example of the QTBT structure 140 represents such a node including a parent node and a child node with a solid line branch. If the node of the first level is not larger than the maximum allowed binary tree root node size (MaxBTSize), the corresponding binary tree can be used to further segment the node. The binary tree partitioning of a node can be iterated until the node obtained by the partition reaches the minimum allowed binary tree leaf node size (MinBTSize) or the maximum allowed binary tree depth (MaxBTDepth). The example of the QTBT structure 140 represents such a node with a dotted line for branching. The binary tree leaf node is called a coding unit (CU), which is used for prediction (such as intra-picture prediction or inter-picture prediction) and transformation without any further segmentation. As described above, a CU may also be referred to as a "video block" or "block".
[0193] In one example of a QTBT partitioning structure, the CTU size is set to 128×128 (luminance sample and two corresponding 64×64 chrominance samples), MinQTSize is set to 16×16, MaxBTSize is set to 64×64, MinBTSize (width and height) is set to 4, and MaxBTDepth is set to 4. The quadtree partitioning is applied to the CTU to generate a quadtree leaf node. The size of the quadtree leaf node can be from 16×16 (i.e., MinQTSize) to 128×128 (i.e., CTU size). If the quadtree leaf node size is 128×128, the node is not further partitioned by the binary tree because the size exceeds the size of MaxBTSize (i.e., 16×64 in this example). Otherwise, the quadtree leaf node is further partitioned using a binary tree. Therefore, the quadtree leaf node is also the root node of the binary tree, and its binary tree depth is 0. When the binary tree depth reaches MaxBTDepth (4 in this example), further partitioning is not allowed. If the width of the binary tree node is equal to MinBTSize (4 in this example), no further horizontal splitting is allowed. Similarly, if the height of the binary tree node is equal to MinBTSize, no further vertical splitting is allowed for this binary tree node. As described above, the leaf nodes of the binary tree are called CUs and are further processed according to prediction and transformation without further splitting.
[0194] Figure 5 is a block diagram illustrating an example video encoder 200 that may implement the disclosed techniques. Figure 5For the purpose of explanation, it should not be considered as limiting the techniques widely illustrated and described in this disclosure. For the purpose of explanation, this disclosure describes the video encoder 200 in the context of developing video coding standards such as the HEVC video coding standard and the H.266 video coding standard. However, the techniques of this disclosure are not limited to these video coding standards and are generally applicable to video encoding and decoding.
[0195] exist Figure 5 In the example, 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.
[0196] The video data memory 230 may store video data to be encoded by the video encoder 200 components. The video encoder 200 may receive video data from the video source 104 ( Figure 1 ) etc. receive video data stored in the video data memory 230. DPB 218 can be used as a reference picture memory to store reference video data for use when the video encoder 200 predicts subsequent video data. Video data memory 230 and DPB 218 can be formed by a variety of memory devices, such as dynamic random access memory (DRAM) including synchronous DRAM (SDRAM), magnetoresistive RAM (MRAM), resistive RAM (RRAM) or other types of memory devices. Video data memory 230 and DPB 218 can be provided by the same storage device or different storage devices. In various examples, video data memory 230 can be located on the same chip as other components of video encoder 200, as shown, or it can be located on a different chip than other components.
[0197] In the present disclosure, references to the video data memory 230 should not be interpreted as limited to memory internal to the video encoder 200 (unless specifically described as such) or to memory external to the video encoder 200 (unless specifically described as such). Rather, references to the video data memory 230 should be understood as a reference memory that stores video data received by the video encoder 200 for encoding (such as video data of 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 .
[0198] Figure 5The units in are shown to help understand the operations performed by the video encoder 200. These units can be implemented as fixed-function circuits, programmable circuits, or a combination of the two. Fixed-function circuits refer to circuits that provide specific functions and are pre-set on executable operations. Programmable circuits refer to circuits that can be programmed to perform a variety of tasks and provide flexible functions in executable operations. 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 (to receive parameters or output parameters, etc.), but the type of operation performed by the fixed-function circuit is generally fixed. In some examples, one or more units can be different circuit blocks (fixed-function circuit blocks or programmable circuit blocks), and in some examples, one or more units can be integrated circuits.
[0199] 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.
[0200] The video data memory 230 is configured to store the received video data. The video encoder 200 may retrieve the picture of the video data from the video data memory 230 and provide the video data to the residual generation unit 204 and the mode selection unit 202. The video data in the video data memory 230 may be the original video data to be encoded.
[0201] The mode selection unit 202 includes a motion estimation unit 222, a motion compensation unit 224, and an intra prediction unit 226. The mode selection unit 202 may include additional functional units for performing video prediction according to other prediction modes. As an example, the mode selection unit 202 may include a palette unit, an intra-block copy unit (which may be part of the motion estimation unit 222 and / or the motion compensation unit 224), an affine unit, and a linear model (LM) unit, etc.
[0202] The mode selection unit 202 generally coordinates multiple encoding passes to test combinations of encoding parameters and rate-distortion values obtained by these combinations. The encoding parameters may include the partitioning of CTUs into CUs, the prediction mode of the CUs, the transform type of the CU residual data, the quantization parameter of the CU residual data, etc. The mode selection unit 202 may ultimately select a coding parameter combination with a better rate-distortion value than other tested combinations.
[0203] The video encoder 200 may partition the picture retrieved from the video data memory 230 into a series of CTUs and pack one or more CTUs into a slice. The mode selection unit 202 may partition the CTUs of the picture according to a tree structure (such as the QTBT structure described above or the quadtree structure of HEVC). 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".
[0204] In general, the mode selection unit 202 also controls its components (such as 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 (such as the overlapping portion of the current CU or the PU and TU in HEVC). For inter-frame prediction of the current block, the motion estimation unit 222 can perform a motion search to identify one or more closely matching reference blocks in one or more reference pictures (such as one or more coded pictures stored in the DPB 218). Specifically, the motion estimation unit 222 can calculate a value indicating the degree of similarity between the potential reference block and the current block based on the sum of absolute differences (SAD), the sum of squared differences (SSD), the mean absolute difference (MAD), the mean squared difference (MSD), etc. The motion estimation unit 222 can generally use the sample-by-sample difference between the current block and the reference block under consideration to perform these calculations. The motion estimation unit 222 can identify the reference block with the lowest value generated from these calculations, thereby indicating the reference block that matches the current block most closely.
[0205] 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 vector has fractional sample precision, the motion compensation unit 224 may interpolate 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 by sample-by-sample averaging or weighted averaging, etc.
[0206] As another example, for intra prediction or intra prediction encoding, the intra prediction unit 226 may generate a prediction block from samples adjacent to the current block. For example, for directional mode, the intra prediction unit 226 may generally mathematically combine the values of the adjacent samples and fill these calculated values along a defined direction on the current block to generate a prediction block. As another example, for DC mode, the intra prediction unit 226 may calculate the average value of the samples adjacent to the current block and generate a prediction block to include the resulting average value for each sample of the prediction block.
[0207] 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 by one or more subtractor circuits that perform binary subtraction.
[0208] 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 described 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 PUs of size 2N×2N or N×N for intra-frame prediction, and symmetric PUs of size 2N×2N, 2N×N, N×2N, N×N or similar for inter-frame prediction. The video encoder 200 and the video decoder 300 may also support asymmetric partitioning of PUs of sizes 2N×nU, 2N×nD, nL×2N, and nR×2N for inter-frame prediction.
[0209] In an example where the mode selection unit 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. The video encoder 200 and the video decoder 300 may support CUs of 2N×2N, 2N×N, or N×2N size.
[0210] For other video coding techniques such as intra block copy mode coding, affine mode coding, and linear model (LM) mode coding, for example, the mode selection unit 202 generates a prediction block for the current block being encoded via a corresponding unit associated with the coding technique. In some examples, such as palette mode coding, the mode selection unit 202 may not generate a prediction block, but instead generate syntax elements indicating how to reconstruct the block according to the selected palette. In such modes, the mode selection unit 202 may provide these syntax elements to the entropy coding unit 220 for encoding.
[0211] As described above, the residual generation unit 204 receives the video data of the current block and the video data of the 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.
[0212] Transform processing unit 206 applies one or more transforms to the residual block to produce a block of transform coefficients (referred to herein as a "transform coefficient block"). Transform processing unit 206 may apply various transforms to the residual block to form a transform coefficient block. For example, transform processing unit 206 may apply a discrete cosine transform (DCT), a directional transform, a Karhunen-Loewen transform (KLT), or a conceptually similar transform to the residual block. In some examples, transform processing unit 206 may perform multiple transforms on the residual block, for example, a primary transform and a secondary transform, such as a rotation transform. In some examples, transform processing unit 206 does not apply a transform to the residual block.
[0213] 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 coefficient block associated with the current block by adjusting the QP value associated with the CU. Quantization may result in a loss of information, and thus the quantized transform coefficients may have a lower precision than the original transform coefficients generated by transform processing unit 206.
[0214] 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 there may be 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 of the prediction block generated by the mode selection unit 202 to generate a reconstructed block.
[0215] 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 the edges of the CU. In some examples, the operations of filter unit 216 may be skipped.
[0216] The video encoder 200 stores the reconstructed blocks in the DPB 218. For example, in an example where the filter unit 216 operation is not required, the reconstruction unit 214 may store the reconstructed blocks in the DPB 218. In an example where the filter unit 216 operation is required, the filter unit 216 may store the filtered reconstructed blocks in the DPB 218. The motion estimation unit 222 and the motion compensation unit 224 may retrieve a reference picture formed by the reconstructed (and possibly filtered) blocks from the DPB 218 to perform inter-frame prediction on blocks of subsequently encoded pictures. In addition, the intra-frame prediction unit 226 may use the reconstructed blocks in the DPB 218 of the current picture to perform intra-frame prediction on other blocks in the current picture.
[0217] 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 a prediction syntax element (such as motion information for inter-frame prediction or intra-frame mode information for intra-frame prediction) from the mode selection unit 202. The entropy coding unit 220 may perform one or more entropy coding operations on the syntax element (another 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 (VH) 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 other types of entropy coding operations on the data. In some examples, the entropy coding unit 220 may operate in a bypass mode where the syntax element is not entropy-encoded. The video encoder 200 may output a bitstream including entropy encoding syntax elements required to reconstruct blocks of a slice or a picture.
[0218] The operations described above are about blocks. This description 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 components and chroma components of a CU. In some examples, the luma coding blocks and chroma coding blocks are the luma components and chroma components of a PU.
[0219] In some examples, operations performed on luma coding blocks need not be repeated for chroma coding blocks. As an example, operations to identify motion vectors (MVs) and reference pictures for luma coding blocks need not be repeated for identifying MVs and reference pictures for chroma blocks. The MVs of luma coding blocks may be scaled to determine MVs for chroma blocks, and the reference pictures may be the same. As another example, intra prediction processes for luma coding blocks and chroma coding blocks may be the same.
[0220] The video encoder 200 represents an example of a device configured to encode video data, the device comprising: a memory storing the video data and one or more processing units, the one or more processing units being implemented in a circuit and configured to determine whether a condition is true for a first block of a current picture of the video data. Based on the condition being true for the first block, the video encoder 200 may apply a non-smooth interpolation filter to unfiltered reference samples of the first block to generate prediction samples of the first block. Additionally, the video encoder 200 may determine whether the condition is true for a second block of the current picture. Based on the condition being false for the second block, the video encoder 200 may apply a smooth interpolation filter to unfiltered reference samples of the second block to generate prediction samples of the second block. The video encoder 200 may generate residual data for the first block based on the prediction samples of the first block. Additionally, the video encoder 200 may generate residual data for the second block based on the prediction samples of the second block. The video encoder 200 may include data representing the residual data for the first block and the residual data for the second block in a bitstream comprising an encoded representation of the video data. For example, video encoder 200 may generate data representing residual data by applying one or more transforms to the residual data to form transform coefficients, quantizing the transform coefficients, entropy encoding syntax elements indicating the quantized transform coefficients, and so on.
[0221] In this example, the video encoder 200 may determine an intra-mode difference value for the first block and determine an intra-mode difference value for the second block. The video encoder 200 may determine whether a condition is true for the first block based at least in part on whether the intra-mode difference value for the first block is greater than a threshold. The video encoder 200 may determine whether a condition is true for the second block based at least in part on whether the intra-mode difference value for the second block is less than a threshold. The video encoder 200 may determine the intra-mode difference value for the first block as the minimum of: (1) the absolute value of the difference between the intra-mode index of the first block and the intra-mode index of the horizontal intra-prediction mode, and (2) the absolute value of the difference between the intra-mode index of the first block and the intra-mode index of the vertical intra-prediction mode. Similarly, the video encoder 200 may determine the intra-mode difference value of the second block as the minimum value of: (1) the absolute value of the difference between the intra-mode index of the second block and the intra-mode index of the horizontal intra-prediction mode, and (2) the absolute value of the difference between the intra-mode index of the second block and the intra-mode index of the vertical intra-prediction mode.
[0222] In addition, in some instances, the video encoder 200 may determine whether the condition is true for the first block based on one or more additional conditions. Similarly, the video encoder 200 may determine whether the condition is true for the second block based on one or more additional conditions. The one or more additional conditions may include one or more of the following: dependence on brightness or chrominance, the use of position-dependent intra-prediction combination tools, and the use of indivisible secondary transforms. In some examples, the video encoder 200 may determine whether the condition is true for the first block based at least in part on the properties of the interpolation filters used in one or more neighboring blocks of the first block, and may determine whether the condition is true for the second block based at least in part on the properties of the interpolation filters used in one or more neighboring blocks of the second block. In some examples, the video encoder 200 may determine whether the condition is true for the first block based at least in part on whether bidirectional intra-frame prediction coding is applied to the first block, and may determine whether the condition is true for the second block based at least in part on whether bidirectional intra-frame prediction coding is applied to the second block.
[0223] In some examples, the smoothing interpolation filter is a Gaussian interpolation filter. In some examples, the non-smoothing interpolation filter is a cubic interpolation filter. In some examples, the smoothing interpolation filter and the non-smoothing interpolation filter have different numbers of phases. In some examples, the smoothing interpolation filter and the non-smoothing interpolation filter have different numbers of taps.
[0224] Figure 6 is a block diagram illustrating an example video decoder 300 that may perform the disclosed techniques. Figure 6 This is for the purpose of explanation, not limitation of the techniques widely exemplified and described in this disclosure. For the purpose of explanation, this disclosure describes a video decoder 300 described according to the techniques of JEM and HEVC. However, the techniques of this disclosure may be performed by video encoding devices configured to other video encoding standards.
[0225] exist Figure 6 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 an addition unit to perform prediction according to other prediction modes. As an example, the prediction processing unit 304 may include a palette unit, an intra-block copy unit (which may form part of the motion compensation unit 316), an affine unit, a linear model (LM) unit, etc. In other examples, the video decoder 300 may include more, fewer, or different functional components.
[0226] The CPB memory 320 may store video data of an encoded video bitstream awaiting decoding by the video decoder 300 component. The video data stored in the CPB memory 320 may be read from the computer readable medium 110 ( Figure 1 ) or the like. The CPB memory 320 may include a CPB that stores coded video data (such as syntax elements) from a coded video bitstream. And the CPB memory 320 may store video data other than coded picture syntax elements, such as temporary data representing the output of each unit of the video decoder 300. The DPB 314 typically stores decoded pictures, and the video decoder 300 may output and / or use the decoded pictures as reference video data when decoding subsequent data or pictures of the coded video bitstream. The CPB memory 320 and the DPB 314 may be formed by a variety of memory devices, such as dynamic random access memory (DRAM) including synchronous DRAM (SDRAM), magnetoresistive RAM (MRAM), resistive RAM (RRAM), or other types of memory devices. The CPB memory 320 and the DPB 314 may be provided by the same storage device or different storage devices. In various examples, the CPB memory 320 may be located on the same chip as other components of the video decoder 300, as shown, or may not be located on the same chip as other components.
[0227] 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 use CPB memory 320 to store data as described above. Similarly, when some or all of the functions of video decoder 300 are implemented in software to be executed by the processing circuit of video decoder 300, memory 120 may store instructions to be executed by video decoder 300.
[0228] Figure 6 The various units shown in FIG. 3 are shown to aid in understanding the operations performed by the video decoder 300. These units may be implemented as fixed function circuits, programmable circuits, or a combination of both. Figure 5 Similarly, fixed-function circuits refer to circuits that provide specific functions and are pre-set on executable operations. Programmable circuits refer to circuits that can be programmed to perform a variety of tasks and provide flexible functions in executable operations. 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 (to receive parameters or output parameters, etc.), but the type of operation performed by the fixed-function circuit is generally fixed. In some examples, one or more units can be different circuit blocks (fixed-function circuit blocks or programmable circuit blocks), and in some examples, one or more units can be integrated circuits.
[0229] 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 the programmable circuit, an on-chip or off-chip memory may store instructions (such as object code) of the software received and executed by the video decoder 300.
[0230] 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.
[0231] In general, the video decoder 300 reconstructs a picture block by block. The video decoder 300 may perform a reconstruction operation on each block separately, wherein the block currently being reconstructed (ie, decoded) may be referred to as a "current block".
[0232] 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 may likewise determine a degree of inverse quantization of the inverse quantization unit 306 to apply. For example, the inverse quantization unit 306 may 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.
[0233] 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 produce 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-Loewen transform (KLT), an inverse rotational transform, an inverse directional transform, or other inverse transforms to the coefficient block.
[0234] 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 may generate the prediction block. In this case, the prediction information syntax element may 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 may generally generate a prediction block in a manner substantially similar to that described with respect to motion compensation unit 224 ( Figure 5 ) to perform the inter-frame prediction process in the manner described.
[0235] As another example, if the prediction information syntax element indicates that intra prediction is performed on the current block, the intra prediction unit 318 may generate a prediction block according to the intra prediction mode indicated by the prediction information syntax element. Similarly, the intra prediction unit 318 may generally generate a prediction block in a manner substantially similar to that described with respect to the intra prediction unit 226 ( Figure 5 ) to perform the intra prediction process. The intra prediction unit 318 can retrieve the data of the neighboring samples of the current block from the DPB 314.
[0236] 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.
[0237] 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.
[0238] The video decoder 300 may store the reconstructed blocks in the DPB 314. As described above, the DPB 314 may provide reference information to the prediction processing unit 304, such as samples of the current picture for intra-frame prediction and samples of previously decoded pictures for subsequent motion compensation. 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).
[0239] In this way, the video decoder 300 represents an example of a video decoding device, the device including a memory storing video data and one or more processing units, the one or more processing units being implemented in a circuit and configured to determine whether a condition is true for a first block of a current picture of the video data. Based on the condition being true for the first block, the video decoder 300 may apply a non-smooth interpolation filter to the unfiltered reference samples of the first block to generate prediction samples of the first block. In addition, the video decoder 300 may determine whether the condition is true for a second block of the current picture. Based on the condition being false for the second block, the video decoder 300 may apply a smooth interpolation filter to the unfiltered reference samples of the second block to generate prediction samples of the second block. The video decoder 300 may reconstruct the first block based on the prediction samples of the first block. In addition, the video decoder 300 may reconstruct the second block based on the prediction samples of the second block. The video decoder 300 may reconstruct the block based on the prediction samples of the block by adding the prediction samples of the block to the residual data of the block.
[0240] In this example, the video decoder 300 may determine an intra-mode difference value for a first block and determine an intra-mode difference value for a second block. The video decoder 300 may determine whether a condition is true for the first block based at least in part on whether the intra-mode difference value for the first block is greater than a threshold value. For example, the condition may be true when the intra-mode difference value is greater than the threshold value, otherwise the condition may be false. The video decoder 300 may determine whether the condition is true for the second block based at least in part on whether the intra-mode difference value for the second block is less than a threshold value. The video decoder 300 may determine the intra-mode difference value for the first block as the minimum of: (1) the absolute value of the difference between the intra-mode index of the first block and the intra-mode index of the horizontal intra-prediction mode, and (2) the absolute value of the difference between the intra-mode index of the first block and the intra-mode index of the vertical intra-prediction mode. Similarly, the video decoder 300 may determine the intra-mode difference value of the second block as the minimum value of: (1) the absolute value of the difference between the intra-mode index of the second block and the intra-mode index of the horizontal intra-prediction mode, and (2) the absolute value of the difference between the intra-mode index of the second block and the intra-mode index of the vertical intra-prediction mode.
[0241] In addition, in some examples, the video decoder 300 may determine whether the condition is true for the first block based on one or more additional conditions. Similarly, the video decoder 300 may determine whether the condition is true for the second block based on the one or more additional conditions. The one or more additional conditions may include one or more of the following: dependence on brightness or chrominance, use of position-dependent intra-prediction combination tools, and use of indivisible secondary transforms. In some examples, the video decoder 300 may determine whether the condition is true for the first block based at least in part on the properties of the interpolation filters used in one or more neighboring blocks of the first block, and may determine whether the condition is true for the second block based at least in part on the properties of the interpolation filters used in one or more neighboring blocks of the second block. In some examples, the video decoder 300 may determine whether the condition is true for the first block based at least in part on whether bidirectional intra-frame prediction coding is applied to the first block, and may determine whether the condition is true for the second block based at least in part on whether bidirectional intra-frame prediction coding is applied to the second block.
[0242] In some examples, the smoothing interpolation filter is a Gaussian interpolation filter. In some examples, the non-smoothing interpolation filter is a cubic interpolation filter. In some examples, the smoothing interpolation filter and the non-smoothing interpolation filter have different numbers of phases. In some instances, the smoothing interpolation filter and the non-smoothing interpolation filter have different numbers of taps.
[0243] Figure 7 is a flowchart illustrating an example method for encoding a current block. Although with respect to the video encoder 200 ( Figure 1 and Figure 5 ), but it should be understood that other devices may be configured to perform similar Figure 7 Method of method.
[0244] In this example, the video encoder 200 first predicts the current block (350). For example, the video encoder 200 may form a prediction block for the current block. The video encoder 200 may perform the intra-frame filtering techniques of the present disclosure as part of predicting 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).
[0245] Figure 8 is a flowchart illustrating an example method for decoding a current block of video data. The current block may be a current CU. Although with respect to the video decoder 300 ( Figure 1 and Figure 6 ), but it should be understood that other devices may be configured to perform similar Figure 8 method of method of method.
[0246] The video decoder 300 may receive entropy coded data for a current block, such as entropy coded prediction information and entropy coded data corresponding to coefficients of a residual block of the current block (370). The video decoder 300 may entropy decode the entropy coded data to determine prediction information for the current block and reproduce coefficients of the residual block (372). The video decoder 300 may predict the current block (374) by using an intra-frame or inter-frame prediction mode indicated by the current block prediction information, etc., to calculate a prediction block for the current block. The video decoder 300 may perform the intra-frame filtering techniques of the present disclosure as part of predicting the current block. The video decoder 300 may then inverse scan the reproduced coefficients (376) to create a quantized transform coefficient block. The video decoder 300 may then inverse quantize and inverse transform the coefficients to generate a residual block (378). The video decoder 300 may ultimately decode the current block by combining the prediction block and the residual block (380).
[0247] Fig. 9 is a flow diagram illustrating example operations performed by a video encoder during intra prediction of a block of video data in accordance with one or more techniques of this disclosure. Fig. 9 The operation may be performed by the video encoder 200 or the video decoder 300. For example, Figure 5 In the context of Fig. 9 Operation. Figure 6 In the context of, the intra prediction unit 318 may perform Fig. 9 Operation. Figure 7 In the context of Fig. 9 as part of the prediction block. Figure 8 In the context of Fig. 9 operations as part of the prediction block.
[0248] like Fig. 9 As shown in the example, a video encoder may determine whether a condition is true for a block of a current picture of video data (400). The video encoder may determine whether the condition is true in one or more ways. For example, Fig.10 Describes example operations for determining whether a condition is true. Fig.10 In some examples, as described elsewhere in this disclosure, the condition may be based on the nature of the interpolation filter used by one or more neighboring blocks, whether bidirectional intra-frame prediction coding is applied, and the like.
[0249] exist Fig. 9 In the example of , based on the condition being true for the block (the "yes" branch of 400), the video encoder may apply a non-smoothing interpolation filter to the unfiltered reference samples of the block to generate prediction samples of the block (402). For example, the video encoder may apply any of the cubic interpolation filters or other filters described elsewhere in this disclosure. Note that Fig. 9 The video encoder in JEM7 applies a non-smooth interpolation filter to unfiltered reference samples. This is in contrast to JEM7, in which the video encoder may apply a non-smooth interpolation filter to filtered reference samples in certain circumstances, such as to reference samples to which the video encoder has already applied an MDIS filter. According to the techniques of the present disclosure, because there is no situation where the video encoder needs to apply a non-smooth interpolation filter to filtered reference samples, the video encoder does not need to store or retrieve the filtered reference samples, and the complexity of the video encoder can be reduced.
[0250] To apply a non-smooth interpolation filter to unfiltered reference samples of a block to generate prediction samples of the block, the video encoder may use a non-smooth interpolation filter for each sample of the block to interpolate values for fractional positions between two integer reference samples, as described above with respect to Figure 3Description of . The video encoder may then assign the interpolated values to the samples of the block, thereby generating predicted samples of the block. In an example where the video encoder applies bidirectional intra-frame prediction, the block may have two intra-frame prediction modes, and the video encoder may interpolate two values for each sample of the block based on the two intra-frame prediction modes of the block. The video encoder may interpolate each value in the same manner as described elsewhere in this disclosure. The video encoder may then generate a predicted value for the sample based on the two interpolated values. For example, the video encoder may generate the predicted value for the sample as an average of the two interpolated values.
[0251] However, based on the condition being false for the block (the "NO" branch of 400), the video encoder may apply a smoothing interpolation filter to the unfiltered reference samples of the block to generate prediction samples for the block (404). For example, the video encoder may apply any of the Gaussian interpolation filters or other interpolation filters described elsewhere in this disclosure. To apply the smoothing interpolation filter to the unfiltered reference samples of the block to generate prediction samples for the block, the video encoder may use the smoothing interpolation filter for each sample of the block to interpolate values for fractional positions between two integer reference samples, as described above with respect to Figure 3 The video encoder may then assign the interpolated values to the samples of the block, thereby generating predicted samples for the block.
[0252] Notice, Fig. 9 The video encoder in JEM7 applies a smoothing interpolation filter to unfiltered reference samples. This is in contrast to JEM7, in which the video encoder may apply a smoothing interpolation filter to filtered reference samples in certain circumstances, such as to reference samples to which the video encoder has already applied an MDIS filter. According to the techniques of the present disclosure, because there is no situation where the video encoder needs to apply a smoothing interpolation filter to filtered reference samples, the video encoder does not need to store or retrieve the filtered reference samples, and the complexity of the video encoder can be reduced.
[0253] In the present disclosure, regarding the condition for determining whether to apply a non-smooth interpolation filter or to apply a non-smooth interpolation filter, "true" may correspond to a Boolean value, and "false" may correspond to another Boolean value. In any example of the present disclosure, references to "true" and "false" may be interchangeable. For example, when the condition is determined to be false, the video encoder may apply a non-smooth interpolation filter, and when the condition is determined to be true, a smooth interpolation filter may be applied.
[0254] Subsequently, in examples where the video encoder is video encoder 200, video encoder 200 may generate residual data for the block based on the prediction samples of the first block. In these examples, video encoder 200 may include data representing the residual data for the block in a bitstream that includes an encoded representation of the video data. For example, in Figure 5In the context of , the residual generation unit 204 of the video encoder 200 may calculate the sample-by-sample difference between the block and the predicted block (ie, the predicted samples of the block). Figure 7 In the context of , the video encoder 200 may generate residual data at 352. In addition, Figure 7 In the context of , video encoder 200 may include data representing residual data for a block in a bitstream as part of the entropy encoded data for the output coefficients in 360 .
[0255] In an example where the video encoder is the video decoder 300, the video decoder 300 may reconstruct the block based on the predicted samples of the block. Figure 5 In the context of , the reconstruction unit 310 of the video decoder 300 may add the samples of the residual block to the corresponding samples of the prediction block (ie, the prediction samples of the block) to reconstruct the block. Figure 8 In the context of , the video decoder 300 may reconstruct the block as a portion of a combined prediction block and residual data at 380 .
[0256] The video encoder can perform Fig. 9 Therefore, the video encoder can perform the operation on the first block of the current picture, the second block of the current picture, etc. Fig. 9 The video encoder may determine that the condition is true for some blocks of the current picture and may determine that the condition is false for other blocks of the current picture. In an example where the video encoder is video encoder 200, video encoder 200 may include data representing residual data for the first block and residual data for the second block, etc., in a bitstream including an encoded representation of the video data.
[0257] Fig.10 is a diagram showing that one or more techniques of the present disclosure are performed by a video encoder to determine Fig. 9 Flowchart of example operations where the condition of the operation is true. Fig.10 In the example of , the video encoder may determine the intra-mode difference value of the block. The video encoder may determine the intra-mode difference value of the first block as the minimum value of: (1) the absolute value of the difference between the intra-mode index of the first block and the intra-mode index of the horizontal intra-prediction mode, and (2) the absolute value of the difference between the intra-mode index of the first block and the intra-mode index of the vertical intra-prediction mode. That is, according to the above equations (2) and (8), the video encoder may determine the intra-mode difference value of the block.
[0258] exist Fig.10In the example of , the video encoder may determine whether a condition is true for the block based at least in part on whether the intra-mode difference value of the block is greater than a threshold (422). For example, if the intra-mode difference value is greater than the threshold, such as described in Table 5, the video encoder may determine that the condition is true. Similarly, if the intra-mode difference value is not greater than the threshold, the video encoder may determine that the condition is false. Therefore, in Fig.10 In the example of , if it is determined that the intra-mode difference value is greater than the threshold value (the "yes" branch of 422), the video encoder can determine that the condition is true (424). Conversely, if it is determined that the intra-mode difference value is not greater than the threshold value (the "no" branch of 422), the video encoder can determine that the condition is not true (426). In some examples, the video encoder uses equation (7) and Table 4 to determine the threshold value.
[0259] In some examples, the video encoder may determine whether a condition is true for a block based on one or more additional conditions (i.e., conditions other than whether the intra-mode difference of the block is greater than a threshold value). For example, the one or more additional conditions may include one or more of the following: dependence on luma or chroma, use of a position-dependent intra-prediction combining tool, and use of a non-separable secondary transform.
[0260] In some examples, the video encoder may determine whether the condition is true for the block based at least in part on the properties of the interpolation filters used in one or more neighboring blocks of the block. For example, in one example, if the video encoder uses a non-smooth interpolation filter with neighboring blocks, the video encoder may determine whether the condition is true for the block (and therefore apply a non-smooth interpolation filter). In this example, if the video encoder uses a smooth interpolation filter with neighboring blocks, the video encoder may determine that the condition is false for the block (and therefore apply a smooth interpolation filter).
[0261] In some examples, the video encoder may determine whether the condition is true for the block based at least in part on whether bidirectional intra-frame prediction encoding is applied to the block. For example, when bidirectional intra-frame prediction is applied to the block and the intra-frame mode difference is greater than a threshold value (such as the threshold value determined using Table 4), the video encoder may determine that the condition is true (and therefore a non-smooth interpolation filter is applied). In this example, when bidirectional intra-frame prediction is not applied or the intra-frame mode difference is not greater than the threshold value, the video encoder may determine that the condition is false (and therefore a smooth interpolation filter is applied). For example, in this example, when bidirectional intra-frame prediction is applied to the block and the intra-frame mode difference is greater than a threshold value (such as the threshold value determined using Table 4), the video encoder may determine that the condition is true; and when bidirectional intra-frame prediction is not applied or the intra-frame mode difference is not greater than the threshold value, the video encoder may determine that the condition is false. In another example, the video encoder may determine that the condition is true (and therefore a non-smooth interpolation filter is applied) when bidirectional intra-frame prediction is not applied to the block, and determine that the condition is false (and therefore a smooth interpolation filter is applied) when bidirectional intra-frame prediction is applied.
[0262] It should be appreciated that, according to examples, certain actions or events of any of the techniques described herein may be performed in a different order, may be added, combined, or omitted entirely (e.g., not all described actions or events are necessary to practice the described techniques). In addition, in some examples, actions or events may be performed simultaneously, rather than sequentially, via multithreading, interrupt handling, or multiple processors.
[0263] In one or more examples, the functions described herein can be implemented in hardware, software, firmware, or any combination thereof. If implemented in software, these functions can be stored or transmitted as one or more instructions or codes on a computer-readable medium and executed by a hardware-based processing unit. Computer-readable media may include computer-readable storage media, which corresponds to tangible media such as data storage media or communication media, and communication media includes any media that facilitates the transmission of computer programs from one place to another according to communication protocols. In this way, computer-readable media can generally correspond to (1) non-temporary tangible computer-readable storage media or (2) communication media such as signals or carrier waves. Data storage media can be any available media 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 techniques described in this disclosure. A computer program product may include computer-readable media.
[0264] As an example and not limitation, such computer-readable storage media may include RAM, ROM, EEPROM, CD-ROM or other optical disk storage, disk storage or other magnetic storage devices, flash memory or any other medium that can be used to store the desired program code in the form of instructions or data structures and can be accessed by a computer. In addition, any connection is properly referred to as a computer-readable medium. For example, if a coaxial cable, fiber optic cable, twisted pair, digital subscriber line (DSL) or wireless technology (such as infrared, radio and microwave) is used to transmit instructions from a website, server or other remote source, the coaxial cable, fiber optic cable, twisted pair, DSL or wireless technology (such as infrared, radio and microwave) is included in the definition of the medium. However, it should be understood that computer-readable storage media and data storage media do not include connections, carrier waves, signals or other temporary media, but non-temporary, tangible storage media. The disk and disc used in this article include compact disks (CDs), laser discs, optical discs, digital video discs (DVDs), floppy disks and blue-ray discs, and the disks usually reproduce data magnetically, and the discs reproduce data optically with lasers. The above combination should also be included in the scope of computer-readable media.
[0265] Instructions may be executed by one or more processors, such as one or more digital signal processors (DSPs), general-purpose microprocessors, application-specific integrated circuits (ASICs), field programmable gate arrays (FPGAs), or other equivalent integrated or discrete logic circuits. Therefore, 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 in a combined codec. Or the functionality described herein may be incorporated into a combined codec. Similarly, the techniques described herein may be fully implemented in one or more circuits or logic elements.
[0266] The technology of the present disclosure may be implemented in a variety of devices or apparatuses including wireless handsets, integrated circuits (ICs) or a group of ICs (such as a chipset), etc. Various components, modules or units are described in the present disclosure to emphasize the functions of devices configured to perform the technology of the present disclosure, but do not necessarily need to be implemented by different hardware units. Instead, as described above, the various units may be combined in a coding and decoding hardware unit, or provided by a collection of interoperable hardware units (including one or more processors as described above) in combination with appropriate software and / or firmware.
[0267] Various examples are described herein. These and other examples are within the scope of the following claims.
Claims
1. A method for decoding video data, the method comprising: determining an intra-mode difference value for a block of a current picture of the video data, wherein determining the intra-mode difference value for the block comprises determining the intra-mode difference value for the block as a minimum of: (1) an absolute value of a difference between an intra-mode index for the block and an intra-mode index for a horizontal intra-prediction mode, and (2) an absolute value of a difference between the intra-mode index for the block and an intra-mode index for a vertical intra-prediction mode; determining which of a non-smoothing interpolation filter and a smoothing interpolation filter to apply to unfiltered reference samples of the block based at least in part on a comparison of the intra mode difference value of the block to a threshold; Based on the determination, applying the non-smoothing interpolation filter or the smoothing interpolation filter to the unfiltered reference samples of the block to generate prediction samples of the block; and The block is reconstructed based on the prediction samples of the block.
2. The method of claim 1 , wherein determining which of the non-smoothing interpolation filter and the smoothing interpolation filter to apply to the unfiltered reference samples of the block comprises: Based on a comparison of the intra mode difference value of the block with the threshold and based on one or more additional conditions, it is determined which one of the non-smoothing interpolation filter and the smoothing interpolation filter to apply to the unfiltered reference samples of the block.
3. The method according to claim 2, wherein: The one or more additional conditions include one or more of: dependence on luma or chroma, use of a position-dependent intra prediction combining tool, or use of a non-separable secondary transform.
4. The method according to claim 1, wherein: Determining which one of the non-smoothing interpolation filter and the smoothing interpolation filter to apply to the unfiltered reference samples of the block includes determining which one of the non-smoothing interpolation filter and the smoothing interpolation filter to apply to the unfiltered reference samples of the block based on a comparison of the intra mode difference value of the block with the threshold and based on properties of interpolation filters used in one or more neighboring blocks of the block.
5. The method according to claim 1, wherein: Determining which one of the non-smoothing interpolation filter and the smoothing interpolation filter to apply to the unfiltered reference samples of the block includes: determining which one of the non-smoothing interpolation filter and the smoothing interpolation filter to apply to the unfiltered reference samples of the block based on a comparison of the intra mode difference value of the block with the threshold and based on whether bidirectional intra prediction coding is applied to the block.
6. The method of claim 1, wherein the smoothing interpolation filter is a Gaussian interpolation filter and the non-smoothing interpolation filter is a cubic interpolation filter.
7. A method for encoding video data, the method comprising: determining an intra-mode difference value for a block of a current picture of the video data, wherein determining the intra-mode difference value for the block comprises determining the intra-mode difference value for the block as a minimum of: (1) an absolute value of a difference between an intra-mode index for the block and an intra-mode index for a horizontal intra-prediction mode, and (2) an absolute value of a difference between the intra-mode index for the block and an intra-mode index for a vertical intra-prediction mode; determining which of a non-smoothing interpolation filter and a smoothing interpolation filter to apply to unfiltered reference samples of the block based at least in part on a comparison of the intra-mode interpolation value of the block to a threshold; Based on the determination, applying the non-smoothing interpolation filter or the smoothing interpolation filter to the unfiltered reference samples of the block to generate prediction samples of the block; and Residual data for the block is generated based on the prediction samples for the block.
8. The method of claim 7, wherein the smoothing interpolation filter is a Gaussian interpolation filter and the non-smoothing interpolation filter is a cubic interpolation filter.
9. A device for encoding or decoding video data, the device comprising: A memory for storing the video data; and One or more processors configured to: determining an intra-mode difference value for a block of a current picture of the video data, wherein determining the intra-mode difference value for the block comprises determining the intra-mode difference value for the block as a minimum of: (1) an absolute value of a difference between an intra-mode index for the block and an intra-mode index for a horizontal intra-prediction mode, and (2) an absolute value of a difference between the intra-mode index for the block and an intra-mode index for a vertical intra-prediction mode; determining which of a non-smoothing interpolation filter and a smoothing interpolation filter to apply to unfiltered reference samples of the block based at least in part on a comparison of the intra-mode difference value of the block to a threshold; and Based on the determination, the non-smoothing interpolation filter or the smoothing interpolation filter is applied to the unfiltered reference samples of the block to generate prediction samples of the block.
10. The device of claim 9, wherein the one or more processors are configured to determine which of the non-smoothing interpolation filter and the smoothing interpolation filter to apply to the unfiltered reference samples of the block based on one or more additional conditions.
11. The device according to claim 10, wherein: The one or more additional conditions include one or more of: dependence on luma or chroma, use of a position-dependent intra prediction combining tool, or use of a non-separable secondary transform.
12. The apparatus of claim 9 , wherein the one or more processors are configured to, as part of determining which of the non-smoothing interpolation filter and the smoothing interpolation filter to apply to the unfiltered reference samples of the block, determine which of the non-smoothing interpolation filter and the smoothing interpolation filter to apply to the unfiltered reference samples of the block based on a comparison of the intra mode difference value of the block with the threshold and based on properties of interpolation filters used in one or more neighboring blocks of the block.
13. The apparatus of claim 9 , wherein the one or more processors are configured to, as part of determining which of the non-smoothing interpolation filter and the smoothing interpolation filter to apply to the unfiltered reference samples of the block, determine which of the non-smoothing interpolation filter and the smoothing interpolation filter to apply to the unfiltered reference samples of the block based on a comparison of the intra mode difference value of the block with the threshold and based on whether bidirectional intra prediction coding is applied to the block.
14. The apparatus of claim 9, wherein the smoothing interpolation filter is a Gaussian interpolation filter and the non-smoothing interpolation filter is a cubic interpolation filter.
15. The apparatus of claim 9, wherein the one or more processors are configured to reconstruct the block based on prediction samples of the block.
16. The apparatus according to claim 9, wherein: The one or more processors are configured to: generating residual data of the block based on the prediction samples of the block; and Data representing residual data for the block is included in a bitstream comprising an encoded representation of the video data.
17. The apparatus of claim 9, wherein a smoothing strength of the interpolation filter depends on one or more of: intra mode, distance of samples from a block boundary, or block dimension.
18. The device of claim 9, further comprising a display configured to display the decoded video data.
19. The apparatus according to claim 9, wherein: The device includes one or more of the following: a camera, a computer, a mobile device, or a set-top box.
20. A device for encoding or decoding video data, the device comprising: means for determining an intra-mode difference value for a block of a current picture of the video data, wherein the means for determining the intra-mode difference value for the block comprises means for determining the intra-mode difference value for the block as a minimum of: (1) an absolute value of a difference between an intra-mode index for the block and an intra-mode index for a horizontal intra-prediction mode, and (2) an absolute value of a difference between the intra-mode index for the block and an intra-mode index for a vertical intra-prediction mode; means for determining which of a non-smoothing interpolation filter and a smoothing interpolation filter to apply to unfiltered reference samples of the block based at least in part on a comparison of the intra-mode difference value of the block to a threshold; and Means for applying the non-smoothing interpolation filter or the smoothing interpolation filter to unfiltered reference samples of the block to produce prediction samples of the block based on the determination.
21. A non-transitory computer-readable storage medium having stored thereon instructions that, when executed, cause one or more processors to: Determining an intra-mode difference value for a block of a current picture of video data, wherein The instructions causing the one or more processors to determine the intra-mode difference value for the block include instructions that, when executed, cause the one or more processors to determine the intra-mode difference value for the block as the minimum of: (1) an absolute value of a difference between an intra-mode index for the block and an intra-mode index for a horizontal intra-prediction mode, and (2) an absolute value of a difference between the intra-mode index for the block and an intra-mode index for a vertical intra-prediction mode; determining which of a non-smoothing interpolation filter and a smoothing interpolation filter to apply to unfiltered reference samples of the block based at least in part on a comparison of the intra-mode interpolation value of the block to a threshold; as well as Based on the determination, the non-smoothing interpolation filter or the smoothing interpolation filter is applied to the unfiltered reference samples of the block to generate prediction samples of the block.
Citation Information
Patent Citations
Combining mode dependent intra smoothing (MDIS) with intra interpolation filter switching
US20200007895A1
Improved video intra-prediction using position-dependent prediction combination for video coding
CN108141608A
Intra smoothing filter for video coding
US20120082224A1
Disabling intra prediction filtering
US20150023405A1
Intra prediction and intra mode coding
US20160373769A1
