Wide-angle intra-frame prediction smoothing and interpolation

By performing intra-frame smoothing filtering in the video encoder and decoder, and adjusting reference samples to adapt to the diagonal direction of non-square blocks, the problem of low encoding and decoding efficiency in the existing technology is solved, and the quality and efficiency of video encoding and decoding are improved. .

CN112913234BActive Publication Date: 2024-10-25QUALCOMM INC
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN201980068988.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Priority Date
2019-10-24
Filing Date
2019-10-25
Publication Date
2024-10-25
Estimated Expiration
2039-10-25

AI Technical Summary

Technical Problem

Existing video encoding and decoding technology has the problem of low encoding and decoding efficiency in intra prediction. Especially in the wide-angle intra prediction mode of non-square blocks, it is difficult to effectively utilize closer reference samples, which affects the encoding and decoding quality.

Method used

This is done by configuring the video encoder and decoder to perform intra-frame smoothing filtering, adjusting the reference sample values ​​to accommodate the diagonal orientation of non-square blocks, and using smoothing filters or interpolation filters to generate filtered reference samples. Improved predicted block and decoded versions of video data blocks.

Benefits of technology

It improves the video encoding and decoding quality and enhances the encoding and decoding efficiency of non-square blocks. Especially in the wide-angle intra prediction mode, it can more effectively utilize closer reference samples and improve the encoding and decoding performance.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112913234B_ABST
    Figure CN112913234B_ABST
Patent Text Reader

Abstract

A device for decoding video data can be configured to: determine the size of a video data block, wherein the video data block includes rectangular and non-square blocks; determine an intra-frame prediction mode of the video data block; locate reference samples corresponding to the determined intra-frame prediction mode in adjacent blocks of the video data block; in response to the intra-frame prediction mode of the video data block being a wide-angle intra-frame prediction mode and corresponding to a diagonal direction of the block, filter the reference samples to determine filtered reference samples; generate a prediction block of the video data block from the filtered reference samples; determine a decoded version of the video data block from the prediction block; and output the decoded version of the video data block.
Need to check novelty before this filing date? Find Prior Art

Description

[0001] Cross-references

[0002] This application claims priority from the following applications:

[0003] U.S. Application No. 16 / 663,193, filed October 24, 2019, which claims the benefit of:

[0004] U.S. Provisional Application No. 62 / 750,749, filed on October 25, 2018; and

[0005] U.S. Provisional Application 62 / 865,872, filed on June 24, 2019,

[0006] The entire contents of each application are incorporated herein by reference. Technical Field

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

[0008] Digital video capabilities can be integrated into a variety of devices, including digital televisions, digital live broadcast systems, wireless broadcast systems, personal digital assistants (PDAs), laptop or desktop computers, tablet computers, e-book readers, digital cameras, digital recording devices, digital media players, video game devices, video game consoles, cellular or satellite wireless phones, so-called "smart phones", video teleconferencing devices, video streaming devices, etc. Digital video devices implement video codec (code) technologies, 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 Codec (AVC), High Efficiency Video Codec (HEVC) standards, ITU-T H.265 / High Efficiency Video Codec (HEVC), and extensions of such standards. Video devices can more efficiently send, receive, encode, decode, and / or store digital video information by implementing such video codec technologies.

[0009] Video coding techniques include spatial (intra-picture) prediction and / or temporal (inter-picture) prediction to reduce or eliminate inherent redundancy in video sequences. For block-based video coding, a video slice (e.g., a video picture or a portion of a video picture) may be partitioned into video blocks, which may also be referred to as coding tree units (CTUs), coding units (CUs), and / or coding nodes. For video blocks in an intra-coded (I) slice of a picture, spatial prediction relative to reference samples in neighboring blocks in the same picture is used for encoding. For video blocks in an inter-coded (P or B) slice of a picture, spatial prediction relative to reference samples in neighboring blocks in the same picture or temporal prediction relative to reference samples in other reference pictures may be used. Pictures may be referred to as frames, and reference pictures may be referred to as reference frames. Summary of the invention

[0010] In general, the present disclosure describes techniques for encoding and decoding video data. Specifically, the present disclosure describes example techniques for encoding and decoding video data using wide-angle intra-frame prediction. The techniques of the present disclosure potentially improve video codec quality by configuring video encoders and decoders to perform filtering (e.g., intra-frame smoothing filtering) in more codec scenarios where such filtering is beneficial.

[0011] According to one example, a method for decoding video data includes: determining the size of a video data block, wherein the video data block includes rectangular, non-square blocks; determining an intra-frame prediction mode of the video data block; locating reference samples corresponding to the determined intra-frame prediction mode in adjacent blocks of the video data block; in response to the intra-frame prediction mode of the video data block being a wide-angle intra-frame prediction mode and corresponding to a diagonal direction of the block, filtering the reference samples to determine filtered reference samples; generating a prediction block of the video data block from the filtered reference samples; determining a decoded version of the video data block from the prediction block; and outputting the decoded version of the video data block.

[0012] According to another example, a device for decoding video data includes: a memory for storing video data; and one or more processors, the one or more processors being configured to: determine the size of a video data block, wherein the video data block includes rectangular, non-square blocks; determine an intra-frame prediction mode of the video data block; locate reference samples corresponding to the determined intra-frame prediction mode in adjacent blocks of the video data block; in response to the intra-frame prediction mode of the video data block being a wide-angle intra-frame prediction mode and corresponding to a diagonal direction of the block, filter the reference samples to determine filtered reference samples; generate a prediction block of the video data block from the filtered reference samples; determine a decoded version of the video data block from the prediction block; and output the decoded version of the video data block.

[0013] A computer-readable storage medium storing instructions, when the instructions are executed by one or more processors, causes the one or more processors to perform the following operations: determine the size of a video data block, wherein the video data block includes a rectangular, non-square block; determine an intra-frame prediction mode of the video data block; locate reference samples corresponding to the determined intra-frame prediction mode in adjacent blocks of the video data block; in response to the intra-frame prediction mode of the video data block being a wide-angle intra-frame prediction mode and corresponding to a diagonal direction of the block, filter the reference samples to determine filtered reference samples; generate a prediction block of the video data block from the filtered reference samples; determine a decoded version of the video data block from the prediction block; and output the decoded version of the video data block.

[0014] According to another example, an apparatus for decoding video data includes: a component for determining the size of a video data block, wherein the video data block includes rectangular, non-square blocks; a component for determining an intra-frame prediction mode of the video data block; a component for locating reference samples corresponding to the determined intra-frame prediction mode in adjacent blocks of the video data block; a component for filtering the reference samples to determine filtered reference samples in response to the intra-frame prediction mode of the video data block being a wide-angle intra-frame prediction mode and corresponding to a diagonal direction of the block; a component for generating a prediction block of the video data block from the filtered reference samples; a component for determining a decoded version of the video data block from the prediction block; and a component for outputting the decoded version of the video data block.

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

[0016] Figure 1 is a block diagram illustrating an example video encoding and decoding system that may perform the techniques of this disclosure.

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

[0018] Figure 3 An example of the direction of intra prediction is shown, where the arrows point to the reference samples.

[0019] Figure 4 An example of an 8x4 rectangular block is shown, where "closer" reference samples are not used for intra prediction, but more distant reference samples may be used.

[0020] Figure 5A-5C An example of the pattern mapping process for patterns outside the range of the diagonal direction is shown.

[0021] Figure 6 is an illustration of a wide angle for intra prediction.

[0022] Figure 7 is an illustration of a wide angle for intra prediction.

[0023] Figure 8 is a block diagram illustrating an example video encoder that may perform the techniques of this disclosure.

[0024] Fig. 9 is a block diagram illustrating an example video decoder that may perform the techniques of this disclosure.

[0025] Fig.10 is a flow chart illustrating an example process for encoding a current block of video data.

[0026] Fig.11 is a flow chart illustrating an example process for decoding a current block of video data.

[0027] Fig.12 is a flow chart illustrating an example process for decoding a current block of video data. DETAILED DESCRIPTION

[0028] Various video coding standards, including the recently developed High Efficiency Video Codec (HEVC) standard and the Versatile Video Codec (VVC) standard currently under development, include predictive codec modes for video blocks, in which the block currently being coded (i.e., encoded or decoded) is predicted based on already coded blocks of video data. In intra-prediction mode, the current block is predicted based on one or more previously coded neighboring blocks in the same picture as the current block, while in inter-prediction mode, the current block is predicted based on already coded blocks in different pictures. In inter-prediction mode, the process of determining a block of a previously coded frame to be used as a prediction block is sometimes referred to as motion estimation, which is typically performed by a video encoder, and the process of identifying and retrieving the prediction block is sometimes referred to as motion compensation, which is performed by both the video encoder and the video decoder.

[0029] To generate a prediction block using intra prediction, a video codec (i.e., a video encoder or a video decoder) may determine the values ​​of samples of the prediction block based on a set of reference samples. The set of reference samples may include samples of the current picture in columns to the left of the current block and samples of the current picture in rows above the current block. The video codec uses the reference samples to determine the values ​​of the samples of the prediction block in different ways depending on the intra prediction mode of the prediction block. Early implementations of intra prediction used only rows or columns of samples that were immediately adjacent to the block being coded. However, newer implementations of intra prediction may utilize multiple reference lines, and may additionally or alternatively use lines that are not directly adjacent to the block being coded.

[0030] The present disclosure describes techniques for encoding and decoding blocks of video data using intra-frame prediction, and more specifically, the present disclosure describes several techniques for improving wide-angle intra-frame prediction. The techniques of the present disclosure potentially improve video encoding and decoding quality by configuring video encoders and decoders to perform filtering (e.g., intra-frame smoothing filtering) in more encoding and decoding scenarios where such filtering is beneficial.

[0031] When used in this disclosure, the term video codec generally refers to video encoding or video decoding. Similarly, the term video codec may generally refer to a video encoder or a video decoder. In addition, certain techniques described in this disclosure regarding video decoding may also be applied to video encoding, and vice versa. For example, typically, a video encoder and a video decoder are configured to perform the same process or the opposite process. In addition, a video encoder typically performs video decoding as part of the process of determining how to encode video data. Therefore, unless otherwise stated, it should not be assumed that the techniques described with respect to video decoding cannot be performed as part of video encoding, and vice versa.

[0032] The present disclosure may also use terms such as current layer, current block, current picture, current slice, etc. In the context of the present disclosure, the term "current" is intended to identify a block, picture, slice, etc. that is currently being encoded and decoded, rather than, for example, a block, picture, and slice that was previously or has been encoded or a block, picture, and slice that has not yet been encoded.

[0033] Figure 1 1 is a block diagram illustrating an example video encoding and decoding system 100 that can perform the techniques of the present disclosure. The techniques of the present disclosure are generally directed to the encoding and decoding (encoding and / or decoding) of video data. Generally, video data includes any data used to process video. Therefore, video data may include original, unencoded video, encoded video, decoded (e.g., reconstructed) video, and video metadata, such as signaling data.

[0034] 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 target device 116. Specifically, source device 102 provides video data to target device 116 via computer-readable medium 110. Source device 102 and target device 116 may include any of a variety of devices, including desktop computers, notebook (i.e., laptop) computers, tablet computers, set-top boxes, telephone handsets such as smartphones, televisions, cameras, display devices, digital media players, video game consoles, video streaming devices, etc. In some cases, source device 102 and target device 116 may be equipped for wireless communication and, therefore, may be referred to as wireless communication devices.

[0035] exist Figure 1 In the example of, source device 102 comprises video source 104, memory 106, video encoder 200 and output interface 108. Target device 116 comprises input interface 122, video decoder 300, memory 120 and display device 118. According to the present disclosure, the video encoder 200 of source device 102 and the video decoder 300 of target device 116 can be configured to apply the technology for wide-angle intra-frame prediction smoothing and interpolation described in the present disclosure. Therefore, source device 102 represents an example of video encoding device, and target device 116 represents an example of video decoding device. In other examples, source device and target device may include other components or arrangements. For example, source device 102 may receive video data from an external video source (such as an external camera). Similarly, target device 116 may interface with an external display device, rather than including an integrated display device.

[0036] like Figure 1 The system 100 shown is only an example. In general, any digital video encoding and / or decoding device can perform techniques for wide-angle intra-frame prediction smoothing and interpolation. The source device 102 and the target device 116 are only examples of such codec devices, wherein the source device 102 generates codec video data for sending to the target device 116. The present disclosure refers to a "codec" device as a device that performs data encoding and decoding (encoding and / or decoding). Therefore, the video encoder 200 and the video decoder 300 represent examples of codec devices, specifically, video encoders and video decoders, respectively. In some examples, the source device 102 and the target device 116 can operate in a substantially symmetrical manner, so that each of the source device 102 and the target device 116 includes a video encoding and decoding component. Therefore, the system 100 can support one-way or two-way video transmission between the source device 102 and the target device 116, for example, for video streaming, video playback, video broadcasting or video telephony.

[0037] Typically, the video source 104 represents the source of video data (i.e., original, uncoded video data), and provides a continuous sequence of pictures (also referred to as "frames") of video data to the video encoder 200, which encodes the data of the pictures. The video source 104 of the source device 102 may include a video capture device, such as a camera, a video archive containing previously captured original video, and / or a video feed interface receiving video from a video content provider. As another optional solution, the video source 104 may generate computer graphics-based data as source video, or a combination of real-time video, archived video, and computer-generated video. In each case, the video encoder 200 encodes the captured, pre-captured, or computer-generated video data. The video encoder 200 may rearrange the pictures from the received order (sometimes referred to as "display order") into a codec order for encoding and decoding. The video encoder 200 may generate a bitstream comprising encoded video data. Source device 102 may then output the encoded video data onto computer-readable medium 110 via output interface 108 for receipt and / or retrieval by, for example, input interface 122 of target device 116 .

[0038] The memory 106 of the source device 102 and the memory 120 of the target device 116 represent general purpose memories. In some examples, the memories 106, 120 can store raw video data, for example, raw video from the video source 104 and raw decoded video data from the video decoder 300. Additionally or alternatively, the memories 106, 120 can store software instructions that can be executed by, for example, the video encoder 200 and the video decoder 300, respectively. Although in this example, the memory 106 and the memory 120 are shown separately from the video encoder 200 and the video decoder 300, it should be understood that the video encoder 200 and the video decoder 300 can also include internal memories with similar or equivalent functions. In addition, the memories 106, 120 can store encoded video data, for example, encoded video data output from the video encoder 200 and input to the video decoder 300. In some examples, portions of the memories 106, 120 can be allocated as one or more video buffers, for example, for storing raw, decoded and / or encoded video data.

[0039] The computer-readable medium 110 may represent any type of medium or device capable of transmitting encoded video data from the source device 102 to the target device 116. In one example, the computer-readable medium 110 represents a communication medium that enables the source device 102 to transmit the encoded video data directly to the target device 116 in real time, for example, via a radio frequency network or a computer-based network. The output interface 108 may modulate a transmission signal including the encoded video data according to a communication standard such as a wireless communication protocol, and the input interface 122 may demodulate the received transmission signal according to a communication standard such as a wireless communication protocol. The communication medium may include any wireless or wired communication medium, such as a radio frequency (RF) spectrum or one or more physical transmission lines. The communication medium may form part of a packet-based network, such as a local area network, a wide area network, or a global network such as the Internet. The communication medium may include 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 target device 116.

[0040] In some examples, source device 102 may output the encoded data from output interface 108 to storage device 112. Similarly, target device 116 may access the encoded data from storage device 112 via input interface 122. Storage device 112 may include any of a variety of distributed or locally accessed data storage media, such as a hard drive, Blu-ray disc, DVD, CD-ROM, flash memory, volatile or non-volatile memory, or any other suitable digital storage medium for storing encoded video data.

[0041] 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. Target device 116 may access the stored video data from file server 114 via streaming or downloading. File server 114 may be any type of server device capable of storing encoded video data and sending the encoded video data to target device 116. File server 114 may represent a web server (e.g., for a website), a file transfer protocol (FTP) server, a content delivery network device, or a network attached storage (NAS) device. Target 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 (e.g., a Wi-Fi connection), a wired connection (e.g., a digital subscriber line (DSL), a cable modem, etc.), or a combination of both, which is 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 protocol, a downloading transmission protocol, or a combination thereof.

[0042] Output interface 108 and input interface 122 may represent wireless transmitters / receivers, modems, wired network components (e.g., Ethernet cards), wireless communication components that operate according to any 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 a cellular communication standard (e.g., 4G, 4G-LTE (Long Term Evolution), LTE Advanced, 5G, etc.). In some examples where output interface 108 includes a wireless transmitter, output interface 108 and input interface 122 may be configured to transmit data, such as encoded video data, according to other wireless standards (e.g., IEEE 802.11 specifications, IEEE 802.15 specifications (e.g., ZigBee TM ),Bluetooth TM Standards, etc.) to transmit data, such as encoded video data. In some examples, source device 102 and / or target device 116 may include corresponding system-on-chip (SoC) devices. For example, source device 102 may include a SoC device for performing functions attributed to video encoder 200 and / or output interface 108, and target device 116 may include a SoC device for performing functions attributed to video decoder 300 and / or input interface 122.

[0043] The techniques disclosed herein may be applied to video encoding and decoding to support any of a variety of multimedia applications, such as over-the-air television broadcasting, cable television transmission, satellite television transmission, Internet streaming video transmission, such as Dynamic Adaptive Streaming over HTTP (DASH), digital video encoded onto a data storage medium, decoding of digital video stored on a data storage medium, or other applications.

[0044] The input interface 122 of the destination device 116 receives the encoded video bitstream from the computer-readable medium 110 (e.g., a communication medium, a storage device 112, a file server 114, etc.). The encoded video bitstream may include signaling information defined by the video encoder 200, which is also used by the video decoder 300, such as syntax elements with values ​​describing characteristics and / or processing of video blocks or other coding and decoding units (e.g., slices, pictures, groups of pictures, sequences, etc.). The display device 118 displays decoded pictures of the decoded video data to a user. The display device 118 may represent any of a variety of display devices, such as a cathode ray tube (CRT), a liquid crystal display (LCD), a plasma display, an organic light emitting diode (OLED) display, or other types of display devices.

[0045] Despite Figure 1200 and 300 may be integrated with an audio encoder and / or an audio decoder, and may include appropriate MUX-DEMUX units or other hardware and / or software to process multiplexed streams including both audio and video in a common data stream. If applicable, the MUX-DEMUX units may conform to the ITU H.223 multiplexer protocol or other protocols such as the User Datagram Protocol (UDP).

[0046] The video encoder 200 and the video decoder 300 can each be implemented as any of a variety of suitable encoder and / or decoder circuits, such as one or more microprocessors, digital signal processors (DSPs), application specific integrated circuits (ASICs), field programmable gate arrays (FPGAs), discrete logic, software, hardware, firmware, or any combination thereof. When these techniques are partially implemented in software, the device can store the instructions of the software in an appropriate non-transitory computer-readable medium and use one or more processors to execute the instructions in hardware to perform the techniques of the present disclosure. Each of the video encoder 200 and the video decoder 300 can be included in one or more encoders or decoders, any of which can be integrated into the corresponding device as part of a combined encoder / decoder (CODEC). 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.

[0047] The video encoder 200 and the video decoder 300 may operate according to a video codec standard (e.g., ITU-T H.265, also known as High Efficiency Video Codec (HEVC)) or an extension thereof (e.g., a multi-view and / or scalable video codec extension). Optionally, the video encoder 200 and the video decoder 300 may operate according to other proprietary or industry standards, such as the Joint Exploration Test Model (JEM) or ITU-T H.266, also known as the Versatile Video Codec (VVC). Bross et al. describe the latest draft of the VVC standard, "Versatile Video Coding (Draft 6)", ITU-TSG 16WP 3 and ISO / IEC JTC 1 / SC 29 / WG 11 Joint Video Experts Group (JVET), 15th Meeting: Gothenburg, SE, July 3-12, 2019, JVET-O2001-vE (hereinafter referred to as "VVC Draft 6"). However, the technology disclosed herein is not limited to any specific codec standard.

[0048] Typically, the video encoder 200 and the video decoder 300 can perform block-based picture encoding and decoding. The term "block" generally refers to a structure that includes data to be processed (e.g., encoded, decoded, or otherwise used in the encoding and / or decoding process). For example, a block may include a two-dimensional matrix of samples of luminance and / or chrominance data. Typically, the video encoder 200 and the video decoder 300 can encode and decode video data represented in a YUV (e.g., Y, Cb, Cr) format. That is, the video encoder 200 and the video decoder 300 can encode and decode luminance and chrominance components instead of encoding and decoding red, green, and blue (RGB) data of samples of a picture, where the chrominance components may include red-toned and blue-toned chrominance components. In some examples, the video encoder 200 converts the received RGB format data into a YUV representation before encoding, and the video decoder 300 converts the YUV representation into an RGB format. Optionally, a pre-processing unit and a post-processing unit (not shown) can perform these conversions.

[0049] The present disclosure may generally relate to encoding and decoding (e.g., encoding and decoding) a picture, including the process of encoding or decoding data of a picture. Similarly, the present disclosure may relate to encoding and decoding a block of a picture, including the process of encoding or decoding data of the block, such as prediction and / or residual encoding and decoding. The encoded video bitstream generally includes a series of syntax elements representing codec decisions (e.g., codec modes) and values ​​for the partitioning of the picture into blocks. Therefore, references to encoding and decoding a picture or a block should generally be understood as encoding and decoding the values ​​of the syntax elements that form the picture or block.

[0050] HEVC defines various blocks, including coding units (CU), prediction units (PU), and transform units (TU). According to HEVC, a video encoder (e.g., 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 squares, 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 a CU of such a leaf node may include one or more PUs and / or one or more TUs. The video codec may further partition PUs and TUs. For example, in HEVC, a residual quadtree (RQT) represents a partition of a TU. In HEVC, PU represents inter-frame prediction data, and TU represents residual data. An intra-predicted CU includes intra-frame prediction information, such as an intra-frame mode indication.

[0051] As another example, the video encoder 200 and the video decoder 300 may be configured to operate according to JEM or VVC. According to JEM or VVC, a video codec (e.g., the video encoder 200) partitions a picture into a plurality of coding tree units (CTUs). The video encoder 200 may partition the CTUs according to a tree structure (e.g., a quadtree binary tree (QTBT) structure or a multi-type tree (MTT) structure). The QTBT structure eliminates the concept of multiple partition types, such as the partitioning of CU, PU, ​​and TU of HEVC. The QTBT structure includes two levels: a first level partitioned according to quadtree partitioning, and a second level partitioned according to binary tree partitioning. The root node of the QTBT structure corresponds to the CTU. The leaf nodes of the binary tree correspond to coding units (CUs).

[0052] In the MTT partitioning structure, blocks can be partitioned using quadtree (QT) partitioning, binary tree (BT) partitioning, and one or more types of ternary tree (TT) (also known as ternary tree (TT)) partitioning. A ternary tree or ternary tree partitioning is a partitioning in which a block is divided into three sub-blocks. In some examples, a ternary tree or ternary tree partitioning divides a block into three sub-blocks without dividing the original block through the center. The partitioning types in MTT (e.g., QT, BT, and TT) can be symmetric or asymmetric.

[0053] In some examples, the video encoder 200 and the video decoder 300 may use a single QTBT or MTT structure to represent each of the luma and chroma components, while in other examples, the video encoder 200 and the video decoder 300 may use two or more QTBT or MTT structures, such as one QTBT / MTT structure for the luma component and another QTBT / MTT structure for the two chroma components (or two QTBT / MTT structures for each chroma component).

[0054] The video encoder 200 and the video decoder 300 may be configured to use quadtree segmentation, QTBT segmentation, MTT segmentation or other segmentation structures according to HEVC. For illustrative purposes, the description of the disclosed technology is presented for QTBT segmentation. However, it should be understood that the disclosed technology may also be applied to a video codec configured to use quadtree segmentation or other types of segmentation.

[0055] Blocks (e.g., CTUs or CUs) may be grouped in a picture in various ways. As an example, a brick may refer to a rectangular area of ​​a CTU row within a particular tile in a picture. A slice may be a rectangular area of ​​a CTU within a particular tile column and a particular tile row in a picture. A tile column refers to a rectangular area of ​​a CTU whose height is equal to the height of the picture and whose width is specified by a syntax element (e.g., in a picture parameter set). A tile row refers to a rectangular area of ​​a CTU whose height is specified by a syntax element (e.g., in a picture parameter set) and whose width is equal to the width of the picture.

[0056] In some examples, a slice may be partitioned into multiple bricks, where each brick may include one or more CTU rows within the slice. A slice that is not partitioned into multiple bricks may also be referred to as a brick. However, a brick that is a proper subset of a slice may not be referred to as a slice.

[0057] The tiles in a picture can also be arranged in stripes. A stripe can be an integer multiple of the tiles of a picture, and these tiles can be contained exclusively in a single network abstraction layer (NAL) unit. In some examples, a stripe includes multiple complete tiles, or a continuous sequence of complete tiles of only one slice.

[0058] This disclosure may use "N×N" and "N by N" interchangeably to refer to the sample size of a block (e.g., a CU or other video block) in the vertical and horizontal dimensions, for example, 16×16 samples or 16 by 16 samples. Typically, a 16×16 CU will have 16 samples in the vertical direction (y=16) and 16 samples in the horizontal direction (x=16). Similarly, an N×N CU typically has N samples in the vertical direction and N samples in the horizontal direction, where N represents a non-negative integer value. The samples in a CU 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 is not necessarily equal to N.

[0059] The video encoder 200 encodes the video data of the CU representing the prediction and / or residual information and other information. The prediction information indicates how to predict the CU in order to form the prediction block of the CU. The residual information generally represents the sample-by-sample difference between the samples of the CU before encoding and the prediction block.

[0060] In order to predict a CU, the video encoder 200 can generally form a prediction block of the CU by inter-frame prediction or intra-frame prediction. Inter-frame prediction generally refers to predicting a CU from data of a previously coded picture, while intra-frame prediction generally refers to predicting a CU from previously coded data of the same picture. In order to perform inter-frame prediction, the video encoder 200 can use one or more motion vectors to generate a prediction block. The video encoder 200 can generally perform motion search to identify a reference block that closely matches the CU, for example, in terms of the difference between the CU and the reference block. The video encoder 200 can calculate a difference metric using the sum of absolute differences (SAD), the sum of square differences (SSD), the mean absolute difference (MAD), the mean square difference (MSD), and other such difference calculations to determine whether the reference block closely matches the current CU. In some examples, the video encoder 200 can use unidirectional prediction or bidirectional prediction to predict the current CU.

[0061] Some examples of JEM and VVC also provide an affine motion compensation mode, which can be considered an inter-frame prediction mode. In the affine motion compensation mode, the video encoder 200 can determine two or more motion vectors representing non-translational motion, such as enlargement or reduction, rotation, perspective motion, or other irregular motion types.

[0062] To perform intra prediction, the video encoder 200 can select an intra prediction mode to generate a prediction block. Some examples of JEM and VVC provide sixty-seven intra prediction modes, including various directional modes, as well as a plane mode and a DC mode. Typically, the video encoder 200 selects an intra prediction mode that describes neighboring samples to a current block (e.g., a block of a CU) to predict samples of the current block from neighboring samples. Assuming that the video encoder 200 encodes and decodes CTUs and CUs in a raster scan order (from left to right, from top to bottom), such samples can typically be above, above and to the left, or to the left of the current block in the same picture as the current block.

[0063] The video encoder 200 encodes data representing the prediction mode of the current block. For example, for the inter-frame prediction mode, the video encoder 200 may encode data indicating which of the various available inter-frame prediction modes is used and the motion information of the corresponding mode. For unidirectional or bidirectional inter-frame prediction, for example, the video encoder 200 may encode the motion vector using Advanced Motion Vector Prediction (AMVP) or Merge mode. The video encoder 200 may use a similar mode to encode the motion vector for the affine motion compensation mode.

[0064] After a prediction, such as intra prediction or inter prediction of a block, the video encoder 200 may calculate residual data for the block. The residual data, such as a residual block, represents the sample-by-sample difference between the block and a predicted block formed using a corresponding prediction mode for the block. The video encoder 200 may apply one or more transforms to the residual block to generate transform data in a transform domain rather than in 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-Loeve transform (KLT), etc. The video encoder 200 generates transform coefficients after applying one or more transforms.

[0065] As described above, after any transform used to produce transform coefficients, the video encoder 200 can perform quantization of the transform coefficients. Quantization generally refers to the process of quantizing the transform coefficients to possibly reduce the amount of data used to represent the transform coefficients, thereby providing further compression. By performing the quantization process, the video encoder 200 can reduce the bit depth associated with some or all of the transform coefficients. For example, the video encoder 200 can round an n-bit value to an m-bit value during quantization, where n is greater than m. In some examples, to perform quantization, the video encoder 200 can perform a bit-by-bit right shift on the value to be quantized.

[0066] After quantization, the video encoder 200 may scan the transform coefficients to generate a one-dimensional vector from a two-dimensional matrix including the quantized transform coefficients. The scan may be designed to place transform coefficients with higher energy (and therefore lower frequency) at the front of the vector and transform coefficients with lower energy (and therefore higher frequency) at the back of the vector. In some examples, the video encoder 200 may scan the quantized transform coefficients using a predefined scan order to generate a serialized vector, and then entropy encode the quantized transform coefficients of the vector. In other examples, the video encoder 200 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, for example, according to context adaptive binary arithmetic coding (CABAC). The video encoder 200 may also entropy encode the values ​​of syntax elements, which describe metadata associated with the encoded video data for use by the video decoder 300 in decoding the video data.

[0067] To perform CABAC, the video encoder 200 may assign context within a context model to a symbol to be transmitted. The context may relate to, for example, whether the neighboring values ​​of the symbol are zero values. The probability determination may be based on the context assigned to the symbol.

[0068] The video encoder 200 may also generate syntax data, such as block-based syntax data, picture-based syntax data, and sequence-based syntax data, to the video decoder 300, for example, in a picture header, a block header, a slice header, 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 similarly decode such syntax data to determine how to decode the corresponding video data.

[0069] In this way, the video encoder 200 can generate a bitstream including encoded video data, such as syntax elements describing the partitioning of a picture into blocks (eg, CUs) and prediction and / or residual information for the blocks. Finally, the video decoder 300 can receive the bitstream and decode the encoded video data.

[0070] In general, the video decoder 300 performs a process that is the reverse of the process performed by the video encoder 200 to decode the encoded video data of the bitstream. For example, the video decoder 300 may decode the values ​​of the syntax elements of the bitstream using CABAC in a manner substantially similar to (although reversed from) the CABAC encoding process of the video encoder 200. The syntax elements may define partitioning information for partitioning a picture into CTUs and partitioning each CTU according to a corresponding partitioning structure such as a QTBT structure to define CUs of the CTU. The syntax elements may also define prediction and residual information for a block (e.g., a CU) of video data.

[0071] 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 (e.g., 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 visible artifacts along block boundaries.

[0072] The present disclosure may generally refer to "signaling" certain information, such as syntax elements. The term "signaling" may generally refer to the communication of values ​​for syntax elements and / or other data used to decode encoded video data. That is, the video encoder 200 may signal the values ​​of syntax elements in a bitstream. Generally, signaling refers to generating values ​​in a bitstream. As described above, the source device 102 may transmit the bitstream to the target device 116 in substantially real time, or transmit the bitstream to the target device 116 in non-real time, such as may occur when storing syntax elements to the storage device 112 for later retrieval by the target device 116.

[0073] Figure 2A and Figure 2B 1 is a conceptual diagram showing an example quadtree binary tree (QTBT) structure 130 and a corresponding coding tree unit (CTU) 132. Solid lines represent quadtree partitions and dashed lines indicate binary tree partitions. In each partition (i.e., non-leaf) node of the binary tree, a flag is signaled to indicate which partition type (i.e., horizontal or vertical) is used, where 0 indicates horizontal partitioning and 1 indicates vertical partitioning in this example. For quadtree partitioning, since the quadtree node divides the block horizontally and vertically into 4 sub-blocks of equal size, there is no need to indicate the partition type. Accordingly, the video encoder 200 may encode syntax elements (e.g., partition information) at the region tree level (i.e., solid line) of the QTBT structure 130 and syntax elements (e.g., partition information) at the prediction tree level (i.e., dotted line) of the QTBT structure 130, and the video decoder 300 may decode syntax elements (e.g., partition information) at the region tree level (i.e., solid line) of the QTBT structure 130 and syntax elements (e.g., partition information) at the prediction tree level (i.e., dotted line) of the QTBT structure 130. The video encoder 200 may encode video data (such as prediction and transformation data) of a CU represented by a terminal leaf node of the QTBT structure 130, and the video decoder 300 may decode video data (such as prediction and transformation data) of a CU represented by a terminal leaf node of the QTBT structure 130.

[0074] generally, Figure 2B The CTU 132 of the first and second levels may be associated with parameters that define the size of blocks corresponding to nodes of the first and second level QTBT structures 130. These parameters may include a CTU size (indicating a sample size of the CTU 132), a minimum quadtree size (MinQTSize, indicating a minimum allowed quadtree leaf node size), a maximum binary tree size (MaxBTSize, indicating a maximum allowed binary tree root node size), a maximum binary tree depth (MaxBTDepth, indicating a maximum allowed binary tree depth), and a minimum binary tree size (MinBTSize, indicating a minimum allowed binary tree leaf node size).

[0075] The root node of the QTBT structure corresponding to the CTU may have four child nodes at the first level of the QTBT structure, and each child node may be segmented according to the quadtree segmentation. That is, the node at the first level is a leaf node (without child nodes) or has four child nodes. The example of the QTBT structure 130 represents such a node, which includes a parent node and a child node with a solid line branch. If the node at the first level is not larger than the maximum allowed binary tree root node size (MaxBTSize), the node may be further segmented by the corresponding binary tree. The binary tree partitioning of a node may be iterated until the node generated by the partitioning reaches the minimum allowed binary tree leaf node size (MinBTSize) or the maximum allowed binary tree depth (MaxBTDepth). The example of the QTBT structure 130 represents such a node as having a dotted line branch. The binary tree leaf node is called a coding unit (CU), which is used for prediction (e.g., intra-picture or inter-picture prediction) and transformation without any further segmentation. As described above, a CU may also be referred to as a "video block" or "block".

[0076] 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 (for both width and height) is set to 4, and MaxBTDepth is set to 4. Quadtree partitioning is first applied to the CTU to generate a quadtree leaf node. The size of the quadtree leaf node can be from 16×16 (i.e., MinQTSize) to 128×128 (i.e., CTU size). If the leaf quadtree node is 128×128, the leaf quadtree node will not be further divided by the binary tree because its size exceeds MaxBTSize (i.e., 64×64 in this example). Otherwise, the binary tree will further divide the leaf quadtree node. Therefore, the quadtree leaf node is also the root node of the binary tree and has a binary tree depth of 0. When the binary tree depth reaches MaxBTDepth (4 in this example), further division is not allowed. When the width of the binary tree node is equal to MinBTSize (4 in this case), it means that no further horizontal partitioning is allowed. Similarly, a binary tree node with a height equal to MinBTSize means that no further vertical partitioning is allowed for the binary tree node. As described above, the leaf nodes of the binary tree are called CUs, and they are further processed according to prediction and transformation without further segmentation.

[0077] The present disclosure describes several techniques for improving wide-angle intra prediction. In wide-angle intra prediction, video encoder 200 and video decoder 300 may use prediction angles beyond the typical -135 degrees to 45 degrees to determine intra-mode prediction samples.

[0078] Figure 3 An example of the direction of intra prediction is shown, where the arrow points to the reference sample. Figure 3 The directional prediction mode of a square block using prediction angles between -135 degrees and 45 degrees of the current block is shown, as described in the following document: "Algorithm description for Versatile Video Coding and Test Model 2 (VTM2)" by J. Chen, Y. Ye, S. Kim, 11th JVET Conference, Ljubljana, SI, July 2018, JVET-K1002. In addition to Figure 3 the directional (or angular) prediction modes shown, the intra prediction modes also include a DC prediction mode and a planar prediction mode. As will be described in more detail below, video encoder 200 and video decoder 300 may be configured to perform wide-angle intra prediction mode using Figure 3 additional angular prediction modes not shown in

[0079] In VTM2, the block structure of the prediction block used to specify intra prediction is not limited to squares. For a square block, the width (w) is equal to the height (h). Non-square, rectangular prediction blocks (w > h or w < h) may improve the coding and decoding efficiency based on the characteristics of the content.

[0080] In such a rectangular block, restricting the direction of intra prediction to between -135 degrees and 45 degrees may result in a situation where a farther reference sample rather than a nearer reference sample is used for intra prediction. Such a design may affect the coding and decoding efficiency. Therefore, it may be beneficial to change the range of the angle limit so that nearer reference samples (reference samples at angles beyond -135 to 45 degrees) can be used for prediction. An example of this situation is as Figure 4 shown.

[0081] Figure 4 An example of a 4×8 rectangular current block 400 is shown, where due to the intra prediction direction being restricted to the range of -135 degrees to 45 degrees, the "nearer" reference sample (circle 402) is not used, but a farther reference sample (circle 404) can be used.

[0082] Modifications to wide-angle intra prediction were proposed during the 12th JVET meeting in the following document: L. Zhao, X. Zhao, S. Liu, X. Li, “CE3-related: Unification of angular intra prediction for square and non-square blocks,” 12th JVET Meeting, Macau SAR, China, October 2018, JVET-L0279, and incorporated into VTM3. VTM3 is described in the following document: J. Chen, Y. Ye, S. Kim, “Algorithm description for Versatile Video Coding and Test Model 3 (VTM3),” 12th JVET Meeting, Macau SAR, China, October 2018, JVET-L1002.

[0083] The proposal includes two modifications to unify angular intra prediction for square and non-square blocks. First, the angular prediction directions are modified to cover the diagonal directions of all block shapes. Second, all angular directions are kept Figure 5A-5C The range is between the lower left diagonal and the upper right diagonal for all block aspect ratios (square and non-square) shown. In addition, for all block shapes, the number of reference samples in the top reference row and the left reference column can be restricted to 2*width+1 and 2*height+1.

[0084] Figure 5A-5C An example of a mode mapping process for modes outside the diagonal direction range is shown.The video encoder 200 and the video decoder 300 may implement a mode mapping process to determine available intra prediction modes for CUs of different shapes and sizes. Figure 5A A square block is shown that does not require angular mode remapping. Figure 5B Angular mode remapping for horizontal non-square blocks is shown. Figure 5C Angular mode remapping for vertical non-square blocks is shown. Figure 5B and Figure 5C In , modes A and B are replaced by mapped modes A and B, so that there are still only 65 available angle modes, but these 65 available modes are Figure 5A , Figure 5B and Figure 5C Different between.

[0085] exist Figure 5AIn the example of , CU 502 is a square block (ie, w=h). Diagonal direction 504 corresponds to a 45 degree prediction angle, and diagonal direction 506 corresponds to a -135 degree prediction angle. All available prediction modes for CU 502 are between diagonal direction 504 and diagonal prediction 506, so no mode remapping is required.

[0086] exist Figure 5B In the example of , CU 512 is a non-square rectangular block, where w is greater than h. Diagonal direction 514 represents a diagonal direction moving from the lower left corner of CU 512 to the upper right corner of CU 512, and diagonal direction 516 represents a diagonal direction moving from the upper right corner of CU 512 to the lower left corner of CU 512. Since modes A and B are not between diagonal directions 514 and 516, modes A and B are replaced by mapping modes A and B, so that all available prediction modes of CU 512 are between diagonal direction 514 and diagonal direction 516.

[0087] exist Figure 5C In the example of , CU 522 is a non-square rectangular block, where h is greater than w. Diagonal direction 524 represents a diagonal direction moving from the lower left corner of CU 522 to the upper right corner of CU 522, and diagonal direction 526 represents a diagonal direction moving from the upper right corner of CU 522 to the lower left corner of CU 522. Since modes A and B are not between diagonal directions 524 and 526, modes A and B are replaced by mapping modes A and B, so that all available prediction modes of CU 522 are between diagonal direction 524 and diagonal direction 526.

[0088] Figure 6 This is an illustration of the wide angle used in VTM2. Figure 6 The wide angle mode depicted in addition to the 65 angle mode (in Figure 6 are marked -1 to -10 and 67 to 76 in Figure 6 In the example of , mode 50 corresponds to a predicted angle of -90 degrees. Mode 66 corresponds to a predicted angle of -135 degrees, and mode 2 corresponds to a predicted angle of 45 degrees.

[0089] Figure 7 The wide angle in VTM3 beyond Mode 2 and 66 is shown (in Figure 7 In the example labeled -1 to -14 and 67 to 80), there are 93 angle modes in total. Figure 7 In the example of , mode 50 corresponds to a predicted angle of -90 degrees. Mode 66 corresponds to a predicted angle of -135 degrees, and mode 2 corresponds to a predicted angle of 45 degrees.

[0090] Figure 7A diagram showing a wider angle adopted in VTM3. While VTM3 defines 95 modes, only 67 are allowed for any block size. The exact modes allowed depend on the width and height ratio of the block. This is achieved by limiting the range of modes based on the block size.

[0091] Table 1 specifies the mapping table between predModeIntra and the angle parameter intraPredAngle in VTM3. VTM3 is described in the following document: B. Bross, J. Chen, S. Liu, "Versatile Video Coding (Draft 3)", 12th JVET Conference, Macau SAR, China, October 2018, JVET-L1001, and is incorporated herein by reference in its entirety.

[0092] Angle patterns corresponding to non-square block diagonals are indicated with a caret ( ∧ ). Vertical and horizontal modes are indicated by a pound sign (#) for reference. Square diagonal modes are shown in Table 1 with an asterisk (*).

[0093] predModelntra <![CDATA[-14 ∧ ]]> -13 <![CDATA[-12 ∧ ]]> -11 intraPredAngle <![CDATA[512 ∧ ]]> 341 <![CDATA[256 ∧ ]]> 171 predModelntra <![CDATA[-10 ∧ ]]> -9 -8 -7 <![CDATA[-6 ∧ ]]> -5 -4 -3 -2 -1 <![CDATA[2 * ]]> 3 4 5 6 7 <![CDATA[8 ∧ ]]> intraPredAngle <![CDATA[128 ∧ ]]> 102 86 73 <![CDATA[64 ∧ ]]> 57 51 45 39 35 <![CDATA[32 * ]]> 29 26 23 20 18 <![CDATA[16 ∧ ]]> predModelntra 9 10 11 <![CDATA[12 ∧ ]]> 13 <![CDATA[14 ∧ ]]> 15 <![CDATA[16 ∧ ]]> 17 18# 19 <![CDATA[20 ∧ ]]> 21 <![CDATA[22 ∧ ]]> 23 <![CDATA[24 ∧ ]]> 25 intraPredAngle 14 12 10 <![CDATA[8 ∧ ]]> 6 <![CDATA[4 ∧ ]]> 3 <![CDATA[2 ∧ ]]> 1 0# -1 <![CDATA[-2 ∧ ]]> -3 <![CDATA[-4 ∧ ]]> -6 <![CDATA[-8 ∧ ]]> -10 predModelntra 26 27 <![CDATA[28 ∧ ]]> 29 30 31 32 33 <![CDATA[34 * ]]> 35 36 37 38 39 40 41 42 intraPredAngle -12 -14 <![CDATA[-16 ∧ ]]> -18 -20 -23 -26 -29 <![CDATA[-32 * ]]> -29 -26 -23 -20 -18 -16 -14 -12 predModelntra 43 <![CDATA[44 ∧ ]]> 45 <![CDATA[46 ∧ ]]> 47 <![CDATA[48 ∧ ]]> 49 50# 51 <![CDATA[52 ∧ ]]> 53 <![CDATA[54 ∧ ]]> 55 <![CDATA[56 ∧ ]]> 57 58 59 intraPredAngle -10 <![CDATA[-8 ∧ ]]> -6 <![CDATA[-4 ∧ ]]> -3 <![CDATA[-2 ∧ ]]> -1 0# 1 <![CDATA[2 ∧ ]]> 3 <![CDATA[4 ∧ ]]> 6 <![CDATA[8 ∧ ]]> 10 12 14 predModelntra <![CDATA[60 ∧ ]]> 61 62 63 64 65 <![CDATA[66 * ]]> 67 68 69 70 71 <![CDATA[72 ∧ ]]> 73 74 75 <![CDATA[76 ∧ ]]> intraPredAngle <![CDATA[16 ∧ ]]> 18 20 23 26 29 <![CDATA[32 * ]]> 35 39 45 51 57 <![CDATA[64 ∧ ]]> 73 86 102 <![CDATA[128 ∧ ]]> predModelntra 77 <![CDATA[78 ∧ ]]> 79 <![CDATA[80 ∧ ]]> intraPredAngle 171 <![CDATA[256 ∧ ]]> 341 <![CDATA[512 ∧ ]]>

[0094] The inverse angle parameter invAngle is derived based on intraPredAngle as follows:

[0095]

[0096] Note that, as is the case in the VTM3 specification, intraPredAngle values ​​that are multiples of 32 (0, 32, 64, 128, 256, 512) correspond to predictions from non-fractional reference array samples.

[0097] Table 2 shows the diagonal patterns corresponding to various block aspect ratios.

[0098] Block aspect ratio (W / H) Diagonal mode 1(square) 2,34,66 2 8,28,72 4 12,24,76 8 14,22,78 16 16,20,80 1 / 2 -6,40,60 1 / 4 -10,44,56 1 / 8 -12,46,54 1 / 16 -14,48,52

[0099] The video encoder 200 and the video decoder 300 can be configured to perform mode-dependent intra-frame smoothing (MDIS) and reference sample interpolation. Smoothing filters typically change sample values ​​in a way that reduces the variation between samples. In contrast, interpolation filters determine sample values ​​at locations where sample values ​​are unknown or non-existent (e.g., locations between samples) from known sample values. In HEVC, adjacent reference samples are potentially filtered using a 2-tap linear or 3-tap (1,2,1) / 4 filter before intra prediction. This process is called intra reference smoothing, MDIS. In MDIS, given an intra prediction mode index predModeIntra and a block size nTbS, the video encoder 200 and the video decoder 300 determine whether to perform reference smoothing, and if so, which smoothing filter to use. The following text is the relevant paragraph from the HEVC specification:

[0100] "8.4.4.2.3 Filtering process of adjacent sampling points

[0101] The inputs to this process are:

[0102] - adjacent samples p[x][y], where x=-1, y=-1..nTbS*2-1 and x=0..nTbS*2-1, y=-1,

[0103] - The variable nTbS specifies the transform block size.

[0104] The output of this process is the filtered samples pF[x][y], where x=-1, y=-1..nTbS*2-1 and x=0..nTbS*2-1, y=-1.

[0105] The derivation of the variable filterFlag is as follows:

[0106] - Set filterFlag equal to 0 if one or more of the following conditions are true:

[0107] -predModeIntra is equal to INTRA_DC.

[0108] -nTbS is equal to 4.

[0109] - Otherwise, the following applies:

[0110] - Set the variable minDistVerHor equal to Min(Abs(predModeIntra-26), Abs(predModeIntra-10)).

[0111] - Table 8-3 defines the variable intraHorVerDistThres[nTbS].

[0112] -The derivation of the variable filterFlag is as follows:

[0113] - If minDistVerHor is greater than intraHorVerDistThres[nTbS], set filterFlag equal to 1.

[0114] Otherwise, set filterFlag equal to 0.

[0115] Table 8-3 — Specification of intraHorVerDistThres[nTbS] for various transform block sizes

[0116] nTbS=8 nTbS=16 nTbS=32 intraHorVerDistThres[nTbS] 7 1 0

[0117] When filterFlag is equal to 1, the following applies:

[0118] -The derivation of the variable biIntFlag is as follows:

[0119] - Set biIntFlag equal to 1 if all of the following are true:

[0120] -strong_intra_smoothing_enabled_flag equal to 1

[0121] -nTbS is equal to 32

[0122] -Abs(p[-1][-1]+p[nTbS*2-1][-1]-2*p[nTbS-1][-1])<(1<<(BitDepth Y -5))

[0123] -Abs(p[-1][-1]+p[-1][nTbS*2-1]-2*p[-1][nTbS-1])<(1<<(BitDepth Y -5))

[0124] - Otherwise, set biIntFlag equal to 0.

[0125] -The filtering process is as follows:

[0126] - If biIntFlag is equal to 1, the filtered sample values ​​pF[x][y] for x=-1, y=-1..63 and x=0..63, y=-1 are derived as follows:

[0127] pF[-1][-1]=p[-1][-1] (8-30)

[0128] pF[-1][y]=((63-y)*p[-1][-1]+(y+1)*p[-1]

[63] +32)>>6, y=0..62 (8-31)

[0129] pF[-1]

[63] =p[-1]

[63] (8-32)

[0130] pF[x][-1]=((63-x)*p[-1][-1]+(x+1)*p

[63] [-1]+32)>>6, x=0..62 (8-33)

[0131] pF

[63] [-1]=p

[63] [-1] (8-34)

[0132] Otherwise (biIntFlag is equal to 0), the derivation of the filtered sample values ​​pF[x][y] for x=-1, y=-1..nTbS*2-1 and x=0..nTbS*2-1, y=-1 is as follows:

[0133] pF[-1][-1]=(p[-1][0]+2*p[-1][-1]+p[0][-1]+2)>>2 (8-35)

[0134] pF[-1][y]=(p[-1][y+1]+2*p[-1][y]+p[-1][y-1]+2)>>2,y=0..nTbS*2-2

[0135] (8-36)

[0136] pF[-1][nTbS*2-1]=p[-1][nTbS*2-1] (8-37)

[0137] pF[x][-1]=(p[x-1][-1]+2*p[x][-1]+p[x+1][-1]+2)>>2,x=0..nTbS*2-2

[0138] (8-38)

[0139] pF[nTbS*2-1][-1]=p[nTbS*2-1][-1] (8-39)”

[0140] In the above example, filterFlag is set to 0 to not execute MDIS, and filterFlag is set to 1 to execute MDIS.

[0141] During the Joint Video Exploration Team (JVET) activities, the Joint Exploration Test Model Version 7 (JEM7) was drafted, including the following versions of the MDIS table for luma blocks:

[0142] sizeIndex Threshold [sizeIndex] 0 20 1 20 2 14 3 2 4 0 5 20 6 0

[0143] JEM7 is described in the following document: J. Chen, E. Alshina, GJ Sullivan, J.-R. Ohm, J. Boyce, “Algorithm description of Joint Exploration Test Model 7,” 7th JVET Meeting, Torino, Italy, July 2017, JVET-G1001, which is incorporated herein by reference in its entirety.

[0144] According to JEM 7, the video encoder 200 and the video decoder 300 may be configured to determine the size index as follows:

[0145] sizeIndex=(log2(BlockWidth)-2+log2(BlockHeight)-2) / 2+2-1

[0146] The video encoder 200 and the video decoder 300 may be configured to determine whether to apply a [1 2 1] / 4 smoothing filter to intra reference samples by determining an intra mode difference value as follows:

[0147] IntraModeDiff=min(abs(IntraModeIdx-HOR_IDX), abs(IntraModeIdx-VER_IDX))

[0148] In JEM7 and Figure 6 and Figure 7 In , HOR_IDX=18 and VER_IDX=50, because in addition to planar (IntraModeIdx=0) and DC mode (IntraModeIdx=1), JEM7 has 65 directional intra modes (IntraModeIdx 2-66).

[0149] The video encoder 200 and the video decoder 300 may be configured to determine whether to apply a smoothing filter based on the following conditions:

[0150] If IntraModeDiff > Threshold[sizeIndex], then Apply Smoothing Filter

[0151] VTM3 includes the following MDIS tables:

[0152]

[0153]

[0154] The block size index is defined in VTM3 as follows:

[0155] sizeIndex=(log2(BlockWidth)+log2(BlockHeight)) / 2

[0156] The video encoder 200 and the video decoder 300 may be configured to determine whether to apply a [1 2 1] / 4 smoothing filter to non-fractional intra-frame reference samples, or to switch the interpolation filter between smoothing (e.g., Gaussian interpolation) and non-smoothing (e.g., cubic interpolation) for fractional reference sample locations, as shown and described in the following documents: U.S. Provisional Patent Application 62 / 731,723 to A. Filippov et al., filed on September 14, 2018, and G. Van der Auwera et al., "CE3: A combination of tests 3.1.2 and 3.1.4 for intra reference sample interpolation filter", 12th JVET Meeting, Macau SAR, China, October 2018, JVET-L0628:

[0157] IntraModeDiff=min(abs(IntraModeIdx-HOR_IDX), abs(IntraModeIdx-VER_IDX))

[0158] Where HOR_IDX=18 and VER_IDX=50, and the condition:

[0159] If IntraModeDiff > Threshold[sizeIndex], then Apply Smoothing

[0160] In VTM3, the intra smoothing condition is set equal to true for wide angle modes with index <2 or >66. The reason is that in the case of wide angle intra prediction, two vertically adjacent prediction samples can use two non-adjacent reference samples.

[0161] Existing techniques for implementing wide-angle modes have potential problems. For example, for wide-angle mode in VTM3, reference sample intra-frame smoothing is enabled according to the above MDIS conditions. However, VTM3 introduces several wide-angle diagonal modes for non-square blocks, which result in prediction from non-fractional (i.e., integer) neighboring reference sample array positions (see Table 2). This situation also occurs if multiple reference lines are used for prediction in VTM3.

[0162] If, in a typical implementation, interpolation filters (smoothed or non-smoothed) are applied only when predicting from fractional nearby reference samples, wide angle diagonal modes predicting from non-fractional reference sample locations will not be predicted from smoothed reference samples.

[0163] To solve the above problems, the following techniques are proposed. The described techniques can be applied to luma and / or chroma prediction.

[0164] According to one example, an exception may be created for a wide angle mode that corresponds to a diagonal of a non-square block and is predicted from a non-fractional reference sample position by pre-filtering the reference sample using a smoothing filter (e.g., a 3-tap smoothing filter [1 2 1] / 4). In this case, the video encoder 200 and the video decoder 300 may be configured to determine that smoothing or non-smoothing interpolation filtering is not applied, and to copy the non-fractional samples from the reference sample array to the prediction block array. For example, this exception may be created for the wide angle modes -6, -10, -12, -14, 72, 76, 78, 80 included in Table 1. Thus, the video encoder 200 and the video decoder 300 may be configured to perform intra prediction differently in the wide angle mode than in other angle modes.

[0165] In some examples, the video encoder 200 and the video decoder 300 may be configured not to apply filtering to the aforementioned non-fractional wide angle mode, which means that the non-fractional unfiltered reference samples are copied to the prediction block. Similarly, in order to be consistent with the non-fractional wide angle mode, the smoothing filtering for non-fractional non-wide angle (square block diagonal) modes 2, 34, and 66 in Table 1 may be omitted.

[0166] In some examples, the video encoder 200 and the video decoder 300 can be configured to set the zero phase of the smoothing interpolation filter equal to the smoothing filter, such as [1 2 1 0] / 4 (a 4-tap filter). In this case, the smoothing interpolation filter is used to predict from both non-fractional and fractional sample positions in the reference sample array without exception. Similarly, the zero phase of the non-smoothing interpolation filter (identity filter, such as having filter taps [0 10 0] in the case of a 4-tap filter) can be applied to non-fractional positions of other modes.

[0167] In some examples, the video encoder 200 and the video decoder 300 can be configured to apply an intra smoothing filter "on-the-fly" when predicting from non-fractional reference sample positions, for example, a 3-tap filter with a tap of [1 2 1] / 4 is applied when predicting from non-fractional sample positions. In this example, for non-fractional positions, both pre-filtering and interpolation filtering of reference samples are bypassed.

[0168] In the above proposed technique, an intra-frame smoothing filter with taps of [1 2 1] / 4 is used as an example. An optional intra-frame smoothing filter, such as a filter with stronger smoothing properties and / or with a wider support (more filter taps), such as a filter with taps of [1 3 1] / 8, may lead to better prediction. Similarly, an interpolation filter with a wider support for wide-angle mode may lead to better prediction.

[0169] In VTM3, the MDIS condition for wide angle mode is as follows: "If mode index < 2 or > 66, then the intra smoothing condition is set equal to true." It is recommended to combine this wide angle condition with the MDIS angle difference condition as follows:

[0170] The block size index is defined as follows:

[0171] sizeIndex=(log2(BlockWidth)+log2(BlockHeight)) / 2

[0172] For example, whether to apply a [1 2 1] / 4 smoothing filter to non-fractional intra-frame reference samples or to switch the interpolation filter between smoothing (e.g., Gaussian interpolation) and non-smoothing (e.g., cubic interpolation) for fractional reference sample locations is determined as follows (see U.S. Provisional Patent Application 62 / 731,723 to A. Filippov et al., filed on September 14, 2018, and G. Van der Auwera et al., "CE3: A combination of tests 3.1.2 and 3.1.4 for intrareference sample interpolation filter," 12th JVET Meeting, Macau SAR, China, October 2018, JVET-L0628):

[0173] IntraModeDiff=min(abs(IntraModeIdx-HOR_IDX), abs(IntraModeIdx-VER_IDX))

[0174] Where HOR_IDX=18 and VER_IDX=50, and the condition:

[0175] If IntraModeDiff > Threshold[sizeIndex], then Apply Smoothing

[0176] Modify the table entries for sizeIndex 0, 1, 2 to a value of 16 to always smooth wide-angle mode for all block sizes:

[0177] sizeIndex Threshold [sizeIndex] 0 20→16 1 20→16 2 20→16 3 14 4 2 5 0 6 0 7 0

[0178] Figure 8 is a block diagram illustrating an example video encoder 200 that may perform the techniques of this disclosure. Figure 8 The disclosure is provided for purposes of illustration and should not be considered limiting of the techniques extensively illustrated and described in the present disclosure. For purposes of illustration, the present disclosure describes the video encoder 200 in the context of video codec standards, such as the HEVC video codec standard and the H.266 video codec standard under development. However, the techniques of the present disclosure are not limited to these video codec standards and are generally applicable to video encoding and decoding.

[0179] exist Figure 8 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 coding unit 220.

[0180] The video data memory 230 may store video data to be encoded by the components of the video encoder 200. The video encoder 200 may receive video data from, for example, the video source 104 ( Figure 1 ) receives the video data stored in the video data memory 230. DPB 218 can act as a reference picture memory, which stores the reference video data used by the video encoder 200 to predict subsequent video data. Video data memory 230 and DPB 218 can be formed by any of a variety of memory devices, such as dynamic random access memory (DRAM), including synchronous DRAM (SDRAM), magnetoresistive RAM (MRAM), resistive RAM (RRAM) or other types of memory devices. Video data memory 230 and DPB 218 can be provided by the same memory device or a separate memory device. In various examples, as shown in the figure, video data memory 230 can be on the chip with other components of the video encoder 200, or off the chip relative to those components.

[0181] 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. Instead, references to the video data memory 230 should be understood as references to memory storing video data received by the video encoder 200 for encoding (e.g., video data of a current block to be encoded). Figure 1 The memory 106 may also provide temporary storage of outputs from the various units of the video encoder 200 .

[0182] Show Figure 8 The various units of the video encoder 200 are described to help understand the operations performed by the video encoder 200. These units may be implemented as fixed-function circuits, programmable circuits, or a combination thereof. A fixed-function circuit refers to a circuit that provides a specific function and presets executable operations. A programmable circuit refers to a circuit that is programmable to perform various tasks and provides flexible functions with executable operations. For example, a programmable circuit may execute software or firmware that causes the programmable circuit to operate in a manner defined by instructions of the software or firmware. A fixed-function circuit may execute software instructions (e.g., receive parameters or output parameters), but the type of operation performed by the fixed-function circuit is generally unchanged. In some examples, one or more units may be different circuit blocks (fixed function or programmable), and in some examples, one or more units may be integrated circuits.

[0183] 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 in which 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 within the video encoder 200 (not shown) may store such instructions.

[0184] The video data memory 230 is configured to store received video data. The video encoder 200 may retrieve a picture of video data from the video data memory 230 and provide the video data to the residual generation unit 204 and the mode selection unit 202. The video data in the video data memory 230 may be original video data to be encoded.

[0185] The mode selection unit 202 includes a motion estimation unit 222, a motion compensation unit 224, and an intra prediction unit 226. The mode selection unit 202 may include additional functional units to perform video prediction according to other prediction modes. As an example, the mode selection unit 202 may include a palette unit, an intra block copy unit (which may be part of the motion estimation unit 222 and / or the motion compensation unit 224), an affine unit, a linear model (LM) unit, etc.

[0186] The mode selection unit 202 generally coordinates multiple encoding processes to test combinations of encoding parameters and the resulting rate-distortion values ​​for such combinations. The encoding parameters may include partitioning of the CTI into CUs, prediction modes of the CUs, transform types of residual data of the CUs, quantization parameters of residual data of the CUs, etc. The mode selection unit 202 may ultimately select a combination of encoding parameters that has a better rate-distortion value than other tested combinations.

[0187] The video encoder 200 may partition the picture retrieved from the video data memory 230 into a series of CTUs and encapsulate one or more CTUs in a slice. The mode selection unit 202 may partition the CTUs of the picture according to a tree structure (e.g., the QTBT structure or quadtree structure of HEVC described above). As described above, the video encoder 200 may form one or more CUs from the partitioned CTUs according to the tree structure. Such CUs may also be generally referred to as "video blocks" or "blocks".

[0188] Typically, the mode selection unit 202 also controls its components (e.g., the motion estimation unit 222, the motion compensation unit 224, and the intra prediction unit 226) to generate a prediction block for the current block (e.g., the current CU, or in HEVC, the overlapping portion of the PU and TU). For inter prediction of the current block, the motion estimation unit 222 may perform a motion search to identify one or more closely matching reference blocks in one or more reference pictures (e.g., one or more previously coded pictures stored in the DPB 218). Specifically, the motion estimation unit 222 may calculate a value representing the degree of similarity of the potential reference block to the current block, for example, based on the sum of absolute differences (SAD), the sum of squared differences (SSD), the mean absolute difference (MAD), the mean squared difference (MSD), etc. The motion estimation unit 222 may typically perform these calculations using the sample-by-sample difference between the current block and the reference block being considered. The motion estimation unit 222 may identify the reference block having the lowest value obtained from these calculations, indicating the reference block that most closely matches the current block.

[0189] 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, and for bidirectional inter prediction, the motion estimation unit 222 may provide two motion vectors. The motion compensation unit 224 may then use the motion vectors to generate a prediction block. For example, the motion compensation unit 224 may use the motion vectors to retrieve data for the reference block. As another example, if the motion vectors have fractional sample precision, the motion compensation unit 224 may interpolate the 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 their respective motion vectors and combine the retrieved data, for example, by sample-by-sample averaging or weighted averaging.

[0190] As another example, for intra prediction or intra prediction codec, the intra prediction unit 226 can generate a prediction block from samples adjacent to the current block. For example, for directional mode, the intra prediction unit 226 can generally mathematically combine the values ​​of adjacent samples and fill these calculated values ​​in a defined direction across the current block to produce a prediction block. As explained in more detail elsewhere in the present disclosure, the intra prediction unit 226 can perform wide-angle intra prediction and can be configured to perform smoothing filtering for wide-angle intra prediction mode. As another example, for DC mode, the intra prediction unit 226 can calculate the average of adjacent samples of the current block and generate a prediction block including the resulting average for each sample of the prediction block.

[0191] The mode selection unit 202 provides the prediction block to the residual generation unit 204. The residual generation unit 204 receives the original uncoded version of the current block from the video data memory 230 and receives the prediction block from the mode selection unit 202. The residual generation unit 204 calculates the sample-by-sample difference between the current block and the prediction block. The resulting sample-by-sample difference defines a residual block for the current block. In some examples, the residual generation unit 204 may also determine the difference between the sample values ​​in the residual block to generate the residual block using residual differential pulse code modulation (RDPCM). In some examples, the residual generation unit 204 may be formed using one or more subtractor circuits that perform binary subtraction.

[0192] 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 codec 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, for intra-frame prediction, the video encoder 200 may support PU sizes of 2N×2N or N×N; and for inter-frame prediction, support symmetric PU sizes of 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 PU sizes of 2N×nU, 2N×nD, nL×2N, and nR×2N.

[0193] In an example where the mode selection unit does not further partition the CU into PUs, each CU may be associated with a luma codec block and a corresponding chroma codec block. As described above, the size of the CU may refer to the size of the luma codec block of the CU. The video encoder 200 and the video decoder 300 may support a CU size of 2N×2N, 2N×N, or N×2N.

[0194] For other video codec techniques such as, for example, intra block copy mode codec, affine mode codec, and linear model (LM) mode codec, the mode selection unit 202 generates a prediction block for the current block being encoded via various units associated with the codec technique. In some examples, such as palette mode codec, the mode selection unit 202 may not generate a prediction block, but instead generate syntax elements that indicate how to reconstruct the block based on the selected palette. In this mode, the mode selection unit 202 may provide these syntax elements to the entropy coding unit 220 to be encoded.

[0195] As described above, the residual generation unit 204 receives video data of the current block and the corresponding prediction block. Then, the residual generation unit 204 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. Therefore,

[0196] The transform processing unit 206 applies one or more transforms to the residual block to generate a transform coefficient block (referred to herein as a "transform coefficient block"). The transform processing unit 206 may apply various transforms to the residual block to form a transform coefficient block. For example, the transform processing unit 206 may apply a discrete cosine transform (DCT), a directional transform, a Karhunen-Loeve transform (KLT), or a conceptually similar transform to the residual block. In some examples, the transform processing unit 206 may perform multiple transforms on the residual block, such as a primary transform and a secondary transform, such as a rotation transform. In some examples, the transform processing unit 206 does not apply a transform to the residual block.

[0197] The quantization unit 208 may quantize the transform coefficients in the transform coefficient block to produce a quantized transform coefficient block. The quantization unit 208 may quantize the transform coefficients of the transform coefficient block according to a quantization parameter (QP) value associated with the current block. The video encoder 200 (e.g., via the mode selection unit 202) may adjust the degree of quantization applied to the coefficient block associated with the current block by adjusting the QP value associated with the CU. Quantization may introduce information loss, and therefore, the quantized transform coefficients may have lower precision than the original transform coefficients produced by the transform processing unit 206.

[0198] The inverse quantization unit 210 and the inverse transform processing unit 212 may apply inverse quantization and inverse transform to the quantized transform coefficient block, respectively, to reconstruct a residual block from the transform coefficient block. The reconstruction unit 214 may generate a reconstructed block corresponding to the current block (although it may have a certain degree of distortion) based on the reconstructed residual block and the prediction block generated by the mode selection unit 202. For example, the reconstruction unit 214 may add samples of the reconstructed residual block to corresponding samples from the prediction block generated by the mode selection unit 202 to generate a reconstructed block.

[0199] Filter unit 216 may perform one or more filtering operations on the reconstructed block. For example, filter unit 216 may perform a deblocking operation to reduce blocking artifacts along the edge of the CU. In some examples, the operation of filter unit 216 may be skipped.

[0200] The video encoder 200 stores the reconstructed blocks in the DPB 218. For example, in an example where the operation of the filtering unit 216 is not performed, the reconstruction unit 214 can store the reconstructed blocks to the DPB 218. In an example where the operation of the filtering unit 216 is performed, the filtering unit 216 can store the filtered reconstructed blocks to the DPB 218. The motion estimation unit 222 and the motion compensation unit 224 can retrieve 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 can use the reconstructed blocks in the DPB 218 of the current picture to perform intra-frame prediction on other blocks in the current picture.

[0201] 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 the quantized transform coefficient blocks from the quantization unit 208. As another example, the entropy coding unit 220 may entropy encode the prediction syntax elements (e.g., 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 syntax elements as another example of video data to generate entropy-encoded data. For example, the entropy coding unit 220 may perform a context-adaptive variable length coding (CAVLC) operation, a CABAC operation, a variable to variable (V2V) length coding operation, a syntax-based context-adaptive binary arithmetic coding (SBAC) operation, a probability interval partitioning entropy (PIPE) coding operation, an exponential Golomb coding operation, or another type of entropy coding operation on the data. In some examples, the entropy coding unit 220 may operate in a bypass mode that does not entropy encode syntax elements.

[0202] The video encoder 200 may output a bitstream including entropy-encoded syntax elements required to reconstruct a block of a slice or a picture. Specifically, the entropy encoding unit 220 may output a bitstream.

[0203] The above operations are described for blocks. This description should be understood as operations for luma codec blocks and / or chroma codec blocks. As described above, in some examples, the luma codec block and the chroma codec block are the luma and chroma components of the CU. In some examples, the luma codec block and the chroma codec block are the luma and chroma components of the PU.

[0204] In some examples, operations performed for luma codec blocks do not need to be repeated for chroma codec blocks. As an example, in order to identify a motion vector (MV) and a reference picture for a chroma block, operations for identifying the MV and reference picture for a luma codec block do not need to be repeated. Specifically, the MV of the luma codec block may be scaled to determine the MV of the chroma block, and the reference picture may be the same. As another example, the intra prediction process may be the same for luma codec blocks and chroma codec blocks.

[0205] Fig. 9 is a block diagram illustrating an example video decoder 300 that may perform the techniques of this disclosure. Fig. 9 It is provided for the purpose of illustration and does not limit the techniques widely illustrated and described in this disclosure. For the purpose of illustration, this disclosure describes a video decoder 300 according to the technical description of JEM and HEVC. However, the techniques of this disclosure can be performed by video codec devices configured for other video codec standards.

[0206] exist Fig. 9 In the example of , the video decoder 300 includes a codec 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 prediction unit 318. The prediction processing unit 304 may include an addition unit to perform predictions 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.

[0207] The CPB memory 320 may store video data, such as an encoded video bitstream, to be decoded by components of the video decoder 300. The video data stored in the CPB memory 320 may be, for example, received from the computer readable medium 110 ( Figure 1). The CPB memory 320 may include a CPB that stores coded video data (e.g., syntax elements) from a coded video bitstream. In addition, the CPB memory 320 may store video data other than syntax elements of a coded and decoded picture, such as temporary data representing outputs from various units of the video decoder 300. The DPB 314 typically stores decoded pictures, and the video decoder 300 may output the decoded pictures and / or use them 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 any of a variety of memory devices, such as a dynamic random access memory (DRAM), including synchronous DRAM (SDRAM), magnetoresistive RAM (MRAM), resistive RAM (RRAM), or other types of memory devices. The CPB memory 320 and the DPB 314 may be provided by the same memory device or a separate memory device. In various examples, the CPB memory 320 may be on-chip with other components of the video decoder 300, or off-chip relative to those components.

[0208] Additionally or alternatively, in some examples, video decoder 300 may retrieve the video from memory 120 ( Figure 1 ) to retrieve the coded video data. That is, the memory 120 may store data as discussed above with the CPB memory 320. Likewise, when some or all of the functionality of the video decoder 300 is implemented in software executed by the processing circuitry of the video decoder 300, the memory 120 may store instructions to be executed by the video decoder 300.

[0209] Show Fig. 9 The various units shown in the figure are helpful for understanding the operations performed by the video decoder 300. These units may be implemented as fixed function circuits, programmable circuits, or a combination thereof. Figure 8 Similarly, a fixed-function circuit refers to a circuit that provides a specific function and has preset executable operations. A programmable circuit refers to a circuit that can be programmed to perform various tasks and provide flexible functions in the 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. A fixed-function circuit can execute software instructions (e.g., receive parameters or output parameters), but the type of operation performed by the fixed-function circuit is generally unchanged. In some examples, one or more units can be different circuit blocks (fixed function or programmable), and in some examples, one or more units can be integrated circuits.

[0210] 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 (e.g., object code) of the software received and executed by the video decoder 300.

[0211] The entropy decoding unit 302 may receive the encoded video data from the CPB and entropy decode the video data to reproduce the syntax elements. The prediction processing unit 304, the inverse quantization unit 306, the inverse transform processing unit 308, the reconstruction unit 310, and the filter unit 312 may generate decoded video data based on the syntax elements extracted from the bitstream.

[0212] Typically, the video decoder 300 reconstructs a picture on a block-by-block basis. The video decoder 300 may perform a reconstruction operation on each block individually (where the block currently being reconstructed (ie, decoded) may be referred to as a "current block").

[0213] 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 (multiple) transform mode indications. The inverse quantization unit 306 may use the QP associated with the quantized transform coefficient block to determine a degree of quantization, and likewise, determine a degree of inverse quantization for the inverse quantization unit 306 to apply. The inverse quantization unit 306 may, for example, perform a bitwise left shift operation to inverse quantize the quantized transform coefficients. The inverse quantization unit 306 may thereby form a transform coefficient block including the transform coefficients.

[0214] After the inverse quantization unit 306 forms the transform coefficient block, the inverse transform processing unit 308 may apply one or more inverse transforms to the transform coefficient block to generate a residual block associated with the current block. For example, the inverse transform processing unit 308 may apply an inverse DCT, an inverse integer transform, an inverse Karhunen-Loeve transform (KLT), an inverse rotational transform, an inverse directional transform, or another inverse transform to the coefficient block.

[0215] In addition, prediction processing unit 304 generates a prediction block based on the prediction information syntax element entropy decoded by entropy decoding unit 302. For example, if the prediction information syntax element indicates that the current block is inter-predicted, motion compensation unit 316 can generate a prediction block. In this case, the prediction information syntax element can indicate a reference picture in DPB 314 from which to retrieve the reference block, and a motion vector that identifies the position of the reference block in the reference picture relative to the position of the current block in the current picture. Motion compensation unit 316 can generally generate a prediction block in the same manner as described for motion compensation unit 224 ( Figure 8 ) is performed in a manner substantially similar to that described herein.

[0216] As another example, if the prediction information syntax element indicates that the current block is intra-predicted, the intra-prediction unit 318 may generate a prediction block according to the intra-prediction mode indicated by the prediction information syntax element. As explained in more detail elsewhere in this disclosure, the intra-prediction unit 318 may perform wide-angle intra-prediction and may be configured to perform smoothing filtering on the wide-angle intra-prediction mode. Again, the intra-prediction unit 318 may generally perform the same operations as described with respect to the intra-prediction unit 226 ( Figure 8 ) The intra prediction unit 318 may retrieve data of neighboring samples of the current block from the DPB 314.

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

[0218] The filter unit 312 may perform one or more filtering 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 may not necessarily be performed in all examples.

[0219] 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 prediction and previously decoded pictures for subsequent motion compensation. In addition, the video decoder 300 may output decoded pictures from the DPB for subsequent use in, for example, Figure 1 The display device 118 is displayed on the display device.

[0220] Fig.10 2 is a flowchart illustrating an example process for encoding a current block of video data. The current block may include a current CU. Although with respect to the video encoder 200 ( Figure 1 and Figure 8 ), but it should be understood that other devices may be configured to perform similar Fig.10 processing.

[0221] In this example, the video encoder 200 initially 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 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 of 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 of the block (360).

[0222] Fig.11 is a flowchart illustrating an example process for decoding a current block of video data. The current block may include a current CU. Although with respect to the video decoder 300 ( Figure 1 and Fig. 9 ), but it should be understood that other devices may be configured to perform similar Fig.11 processing.

[0223] The video decoder 300 may receive entropy-coded data of the current block, such as entropy-coded data of coefficients of a residual block corresponding to the current block and entropy-coded prediction information (370). The video decoder 300 may entropy decode the entropy-coded data to determine the prediction information of the current block and reproduce the coefficients of the residual block (372). The video decoder 300 may predict the current block, for example, by calculating the prediction block of the current block using an intra-frame or inter-frame prediction mode indicated by the prediction information of the current block (374). The video decoder 300 may then scan the reproduced coefficients to create a quantized transform coefficient block (376). The video decoder 300 may then inverse quantize and inverse transform the coefficients to generate a residual block (378). The video decoder 300 may finally decode the current block (380) by combining the prediction block and the residual block.

[0224] Fig.12 is a flowchart illustrating an example process for decoding a current block of video data. The current block may include a current CU. Although with respect to the video decoder 300 ( Figure 1 and Fig. 9 ), but it should be understood that other devices may be configured to perform similar Fig.12 As an example, Fig.12 The process of may also be performed by video encoder 200 as part of the process of determining how to encode a current block of video data.

[0225] exist Fig.12 In an example of 382, ​​video decoder 300 determines a size of a block of video data, where the block of video data includes a rectangular non-square block (382). For example, video decoder 300 may determine the size of the block of video data by determining a size index based on a height of the block and a width of the block. For example, video decoder 300 may determine the size index based on the height of the block and the width of the block by determining that the size index is equal to (log2(BlockWidth)+log2(BlockHeight)) / 2, where BlockWidth is the width of the block and BlockHeight is the height of the block.

[0226] The video decoder 300 determines an intra-frame prediction mode for the video data block (384). The video decoder 300 locates reference samples corresponding to the determined intra-frame prediction mode in neighboring blocks of the video data block (386). The reference samples may be non-fractional reference samples. The reference samples may be samples determined without interpolation filtering.

[0227] In response to the intra prediction mode of the video data block being a wide-angle intra prediction mode and corresponding to a diagonal direction of the block, the video decoder 300 filters the reference samples to determine filtered reference samples (388). The wide-angle intra prediction mode may be an intra prediction mode having a prediction angle between -135 degrees and -180 degrees or between 45 degrees and 90 degrees.

[0228] The method of claim 1, wherein filtering the reference samples to determine filtered reference samples comprises applying a smoothing filter to the reference samples. The smoothing filter may be, for example, a three-tap filter. In some examples, to apply the smoothing filter to the reference samples, the video decoder 300 may apply the smoothing filter before applying the interpolation filter to the reference samples or without applying the interpolation filter. In other examples, to apply the smoothing filter to the reference samples, the video decoder 300 may apply the smoothing interpolation filter to the reference samples.

[0229] The video decoder 300 generates a prediction block for the video data block from the filtered reference samples (390). The video decoder 300 may generate the prediction block using intra prediction in the manner described above.

[0230] Video decoder 300 determines a decoded version of the block of video data from the prediction block (392). For example, video decoder 300 may determine a decoded version of the block of video data by adding a residual block of video data to the prediction block.

[0231] In one example, the video decoder 300 may determine a threshold value based on the size index; determine an intra-mode difference value based on a difference between an intra-mode index of an intra-prediction mode and a horizontal index value and a difference between an intra-mode index of an intra-prediction mode and a vertical index value; and in response to the intra-mode difference value being greater than the threshold value, filter the reference sample to determine the filtered reference sample. To determine the intra-mode difference value, the video decoder 300 may determine that the intra-mode difference value is equal to min(abs(IntraModeIdx-HOR_IDX), abs(IntraModeIdx-VER_IDX)), where IntraModeIdx is an intra-mode index of an intra-prediction mode, HOR_IDX is a horizontal index value, and VER_IDX is a vertical index value. In one example, in response to determining that the size index is less than or equal to 2, the video decoder 300 determines that the threshold value is equal to 16.

[0232] Video decoder 300 outputs a decoded version of the block of video data (394). For example, video decoder 300 may output the decoded version of the block of video data as part of a picture for display, or by storing the decoded version of the block of video data in a reference picture memory as part of a reference picture. When performed by a video encoder, the video encoder may output the decoded version of the block of video data by storing the decoded version of the block of video data in a reference picture memory as part of a reference picture that may be used to encode a future picture of the video data.

[0233] It should be appreciated that, depending on the examples, certain actions or events of any technique described herein may be performed in a different order, may be added, combined, or excluded entirely (e.g., not all described actions or events are necessary for the practice of the technique). In addition, in some examples, actions or events may be performed in parallel, such as through multithreading, interrupt handling, or multiple processors, rather than sequentially.

[0234] In one or more examples, the functions may be implemented in hardware, software, firmware, or any combination thereof. If implemented in software, the functions may be stored or transmitted on a computer-readable medium as one or more instructions or codes and executed by a hardware-based processing unit. Computer-readable media may include computer-readable storage media corresponding to tangible media (e.g., data storage media), or communication media including any media that facilitates the transfer of a computer program from one place to another (e.g., according to a communication protocol). In this manner, computer-readable media may generally correspond to (1) non-temporary tangible computer-readable storage media or (2) communication media such as signals or carrier waves. Data storage media may 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 the present disclosure. A computer program product may include a computer-readable medium.

[0235] By way of example and not limitation, such computer-readable storage media may include one or more of 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 required program code in the form of instructions or data structures and can be accessed by a computer. In addition, any connection is appropriately referred to as a computer-readable medium. For example, if a coaxial cable, fiber optic cable, twisted pair, digital subscriber line (DSL) or wireless technology (such as infrared, radio and microwave) is used to send instructions from a website, server or other remote source, then 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 point to non-temporary tangible storage media. The disks and optical disks used herein include compact disks (CDs), laser optical disks, optical disks, digital versatile disks (DVDs), floppy disks and blue-ray disks, wherein the disks usually reproduce data magnetically, while the optical disks reproduce data in a laser optical manner. The above combination should also be included in the scope of computer-readable media.

[0236] Instructions may be executed by one or more processors, such as one or more DSPs, general-purpose microprocessors, ASICs, FPGAs, or other equivalent integrated or discrete logic circuits. Therefore, the term "processor" as used herein may refer to any of the above structures or any other structure suitable for implementing the techniques described herein. In addition, in some aspects, the functions described herein may be provided in dedicated hardware and / or software modules configured for encoding and decoding, or incorporated into a combined codec. In addition, these techniques may be fully implemented in one or more circuits or logic elements.

[0237] The techniques of the present disclosure may be implemented in a variety of devices or apparatuses, including wireless handsets, integrated circuits (ICs) or IC collections, such as chip collections. Various components, modules, or units are described in this disclosure to emphasize the functional aspects of devices configured to perform the disclosed techniques, but do not necessarily need to be implemented by different hardware units. Instead, as described above, the various units may be combined in a codec hardware unit, or provided by a collection of interoperable hardware units (including one or more processors as described above) together with appropriate software and / or firmware.

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

Claims

1. A method for decoding video data, the method comprising: determining a size of a block of video data, wherein the block of video data comprises a rectangular, non-square block; determining an intra prediction mode for the block of video data; Locating reference samples corresponding to the determined intra-frame prediction mode in neighboring blocks of the video data block; In response to the intra prediction mode of the video data block being a wide-angle intra prediction mode and corresponding to a diagonal direction of the block, filtering the reference samples to determine filtered reference samples; generating a prediction block of the video data block from the filtered reference samples; determining a decoded version of the block of video data from the prediction block; as well as outputting the decoded version of the video data block, wherein filtering the reference samples to determine filtered reference samples comprises applying a smoothing filter to the reference samples, and Wherein, applying the smoothing filter to the reference samples includes applying the smoothing filter without applying an interpolation filter to the reference samples.

2. The method according to claim 1, wherein: The reference samples include non-fractional reference samples.

3. The method according to claim 1, wherein: The reference sample points include sample points determined without interpolation filtering.

4. The method according to claim 1, wherein: The smoothing filter includes a 3-tap filter.

5. The method according to claim 1, wherein: The intra prediction mode of the video data block is the wide-angle intra prediction mode including an intra prediction mode having a prediction angle between -135 degrees and -180 degrees or between 45 degrees and 90 degrees.

6. The method according to claim 1, wherein: Determining a size of the block of video data includes determining a size index based on a height of the block and a width of the block.

7. The method according to claim 6, further comprising: determining a threshold based on the size index; determining an intra-mode difference value based on a difference between an intra-mode index of the intra-prediction mode and a horizontal index value and a difference between an intra-mode index of the intra-prediction mode and a vertical index value; In response to the intra mode difference being greater than the threshold, filtering the reference samples to determine the filtered reference samples.

8. The method of claim 7, wherein determining the intra-mode difference value comprises determining the intra-mode difference value equal to: min(abs(IntraModeIdx-HOR_IDX), abs(IntraModeIdx-VER_IDX)), where IntraModeIdx is the intra mode index of the intra prediction mode, HOR_IDX is the horizontal index value, and VER_IDX is the vertical index value.

9. The method according to claim 7, further comprising: In response to determining that the size index is less than or equal to 2, the threshold is determined to be equal to 16.

10. The method according to claim 6, wherein: Determining the size index based on the height of the block and the width of the block includes determining the size index equal to (log2(BlockWidth)+log2(BlockHeight)) / 2, where BlockWidth is the width of the block and BlockHeight is the height of the block.

11. The method according to claim 1, wherein: The decoding method is performed as part of an encoding process, and wherein outputting the decoded version of the block of video data comprises storing the decoded version of the block of video data as part of a reference picture.

12. A device for decoding video data, the device comprising: A memory for storing video data; and One or more processors configured to: determining a size of a block of video data, wherein the block of video data comprises a rectangular, non-square block; determining an intra prediction mode for the block of video data; Locating reference samples corresponding to the determined intra-frame prediction mode in neighboring blocks of the video data block; In response to the intra prediction mode of the video data block being a wide-angle intra prediction mode and corresponding to a diagonal direction of the block, filtering the reference samples to determine filtered reference samples; generating a prediction block of the video data block from the filtered reference samples; determining a decoded version of the block of video data from the prediction block; as well as outputting the decoded version of the video data block, wherein, in order to filter the reference samples to determine filtered reference samples, the one or more processors are further configured to apply a smoothing filter to the reference samples, and In order to apply the smoothing filter to the reference samples, the one or more processors are further configured to apply the smoothing filter without applying an interpolation filter to the reference samples.

13. The device according to claim 12, wherein: The reference samples include non-fractional reference samples.

14. The apparatus according to claim 12, wherein: The reference sample points include sample points determined without interpolation filtering.

15. The apparatus according to claim 12, wherein: The smoothing filter includes a 3-tap filter.

16. The apparatus according to claim 12, wherein: The intra prediction mode of the video data block is the wide-angle intra prediction mode including an intra prediction mode having a prediction angle between -135 degrees and -180 degrees or between 45 degrees and 90 degrees.

17. The apparatus according to claim 12, wherein: To determine the size of the block of video data, the one or more processors are further configured to determine a size index based on a height of a block and a width of a block.

18. The apparatus according to claim 17, wherein: The one or more processors are further configured to: determining a threshold based on the size index; determining an intra-mode difference value based on a difference between an intra-mode index of the intra-prediction mode and a horizontal index value and a difference between an intra-mode index of the intra-prediction mode and a vertical index value; In response to the intra mode difference being greater than the threshold, filtering the reference samples to determine the filtered reference samples.

19. The apparatus according to claim 18, wherein: To determine the intra-mode difference value, the one or more processors are further configured to determine that the intra-mode difference value is equal to: min(abs(IntraModeIdx-HOR_IDX), abs(IntraModeIdx-VER_IDX)), where IntraModeIdx is the intra mode index of the intra prediction mode, HOR_IDX is the horizontal index value, and VER_IDX is the vertical index value.

20. The apparatus of claim 18, wherein: The one or more processors are further configured to: In response to determining that the size index is less than or equal to 2, the threshold is determined to be equal to 16.

21. The apparatus of claim 17, wherein: To determine the size index based on the block height and the block width, the one or more processors are further configured to determine the size index equal to (log2(BlockWidth)+log2(BlockHeight)) / 2, where BlockWidth is the width of the block and BlockHeight is the height of the block.

22. The apparatus of claim 12, wherein: The one or more processors are configured to decode video data as part of an encoding process, and wherein, to output the decoded version of the block of video data, the one or more processors are further configured to store the decoded version of the block of video data as part of a reference picture.

23. A computer readable storage medium storing instructions which, when executed by one or more processors, cause the one or more processors to: determining a size of a block of video data, wherein the block of video data comprises a rectangular, non-square block; determining an intra prediction mode for the block of video data; Locating reference samples corresponding to the determined intra-frame prediction mode in neighboring blocks of the video data block; In response to the intra prediction mode of the video data block being a wide-angle intra prediction mode and corresponding to a diagonal direction of the block, filtering the reference samples to determine filtered reference samples; generating a prediction block of the video data block from the filtered reference samples; determining a decoded version of the block of video data from the prediction block; as well as outputting the decoded version of the video data block, wherein, in order to filter the reference samples to determine filtered reference samples, the instructions cause the one or more processors to apply a smoothing filter to the reference samples, and In order to apply the smoothing filter to the reference samples, the instructions cause the one or more processors to apply the smoothing filter without applying an interpolation filter to the reference samples.

24. The computer-readable storage medium of claim 23, wherein: The reference samples include non-fractional reference samples.

25. The computer-readable storage medium of claim 23, wherein: The reference sample points include sample points determined without interpolation filtering.

26. The computer-readable storage medium of claim 23, wherein: The smoothing filter includes a 3-tap filter.

27. The computer-readable storage medium of claim 23, wherein: The intra prediction mode of the video data block is the wide-angle intra prediction mode including an intra prediction mode having a prediction angle between -135 degrees and -180 degrees or between 45 degrees and 90 degrees.

28. The computer-readable storage medium of claim 23, wherein: To determine the size of the block of video data, the instructions cause the one or more processors to determine a size index based on a height of a block and a width of a block.

29. The computer readable storage medium of claim 28 storing further instructions that when executed cause the one or more processors to: determining a threshold based on the size index; determining an intra-mode difference value based on a difference between an intra-mode index of the intra-prediction mode and a horizontal index value and a difference between an intra-mode index of the intra-prediction mode and a vertical index value; In response to the intra mode difference being greater than the threshold, filtering the reference samples to determine the filtered reference samples.

30. The computer-readable storage medium of claim 29, wherein: To determine an intra-mode difference value, the instructions cause the one or more processors to determine the intra-mode difference value to be equal to: min(abs(IntraModeIdx-HOR_IDX), abs(IntraModeIdx-VER_IDX)), where IntraModeIdx is the intra mode index of the intra prediction mode, HOR_IDX is the horizontal index value, and VER_IDX is the vertical index value.

31. The computer readable storage medium of claim 29 storing further instructions that when executed cause the one or more processors to: In response to determining that the size index is less than or equal to 2, the threshold is determined to be equal to 16.

32. The computer-readable storage medium of claim 28, wherein: To determine the size index based on the height of the block and the width of the block, the instructions cause the one or more processors to determine the size index equal to (log2(BlockWidth)+log2(BlockHeight)) / 2, where BlockWidth is the width of the block and BlockHeight is the height of the block.

33. A computer-readable storage medium according to claim 23, wherein the instructions cause the one or more processors to: decode the video data as part of an encoding process, and wherein in order to output a decoded version of the video data block, the one or more processors are also configured to store the decoded version of the video data block as part of a reference picture.

34. An apparatus for decoding video data, the apparatus comprising: means for determining a size of a block of video data, wherein the block of video data comprises a rectangular, non-square block; means for determining an intra prediction mode for said block of video data; A component for locating a reference sample corresponding to the determined intra-frame prediction mode in a neighboring block of the video data block; means for filtering the reference samples to determine filtered reference samples in response to the intra prediction mode of the video data block being a wide angle intra prediction mode and corresponding to a diagonal direction of the block; means for generating a prediction block of said video data block from said filtered reference samples; means for determining a decoded version of the block of video data from the prediction block; as well as means for outputting said decoded version of said block of video data, wherein the means for filtering the reference samples to determine filtered reference samples comprises means for applying a smoothing filter to the reference samples, and The means for applying the smoothing filter to the reference samples includes means for applying the smoothing filter without applying an interpolation filter to the reference samples.