US20220060746A1 - Method and apparatus for intra prediction with interpolation - Google Patents
Method and apparatus for intra prediction with interpolation Download PDFInfo
- Publication number
- US20220060746A1 US20220060746A1 US17/387,197 US202117387197A US2022060746A1 US 20220060746 A1 US20220060746 A1 US 20220060746A1 US 202117387197 A US202117387197 A US 202117387197A US 2022060746 A1 US2022060746 A1 US 2022060746A1
- Authority
- US
- United States
- Prior art keywords
- prediction
- interpolation
- mode
- samples
- block
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Abandoned
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N19/00—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
- H04N19/46—Embedding additional information in the video signal during the compression process
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N19/00—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
- H04N19/50—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using predictive coding
- H04N19/593—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using predictive coding involving spatial prediction techniques
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N19/00—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
- H04N19/10—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
- H04N19/102—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or selection affected or controlled by the adaptive coding
- H04N19/103—Selection of coding mode or of prediction mode
- H04N19/105—Selection of the reference unit for prediction within a chosen coding or prediction mode, e.g. adaptive choice of position and number of pixels used for prediction
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N19/00—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
- H04N19/10—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
- H04N19/134—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or criterion affecting or controlling the adaptive coding
- H04N19/136—Incoming video signal characteristics or properties
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N19/00—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
- H04N19/10—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
- H04N19/169—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding
- H04N19/17—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding the unit being an image region, e.g. an object
- H04N19/176—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding the unit being an image region, e.g. an object the region being a block, e.g. a macroblock
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N19/00—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
- H04N19/10—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
- H04N19/169—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding
- H04N19/182—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding the unit being a pixel
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N19/00—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
- H04N19/10—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
- H04N19/169—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding
- H04N19/186—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding the unit being a colour or a chrominance component
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N19/00—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
- H04N19/50—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using predictive coding
- H04N19/59—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using predictive coding involving spatial sub-sampling or interpolation, e.g. alteration of picture size or resolution
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N19/00—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
- H04N19/80—Details of filtering operations specially adapted for video compression, e.g. for pixel interpolation
Definitions
- the present principles relate to video compression and more particularly to performing intra prediction coding and decoding with interpolation of an image block.
- Intra coding using interpolation had been proposed in the standardization process of some of these standards, but was not included in those standards because of added complexity with insufficient coding gain. Those proposals suffered from other disadvantages, such as the interpolation calculation being approximate, or with only a few positive directions that use interpolations.
- a method comprises determining whether to encode a block in a video image using intra prediction or interpolation prediction. If it is determined to use interpolation prediction, the method further comprises identifying an interpolation prediction mode for the block, the mode having a particular direction of prediction, and determining, for the identified interpolation prediction mode, whether one or more samples to be used for the interpolation are excluded from a reference section for performing the interpolation prediction in the particular direction. If it is determined that one or more of the samples are excluded from the reference section, the method further comprises using a substitute reference sample in said interpolation prediction. If it is determined that one or more of the samples are included in the reference section, the method further comprises performing an interpolation prediction in the particular direction according to the interpolation prediction mode using reference samples.
- an apparatus comprising a memory, and a processor, configured to perform determining whether to encode a block in a video image using intra prediction or interpolation prediction. If it is determined to use interpolation prediction, the processor is further configured to perform identifying an interpolation prediction mode for the block, the mode having a particular direction of prediction, and determining, for the identified interpolation prediction mode, whether one or more samples to be used for the interpolation are excluded from a reference section for performing the interpolation prediction in the particular direction. If it is determined that one or more of the samples are excluded from the reference section, the processor is further configured to use a substitute reference sample in the interpolation prediction. If it is determined that one or more of the samples are included in the reference section, the processor is further configured to perform an interpolation prediction in the particular direction according to the interpolation prediction mode using reference samples.
- a method comprises determining whether to decode a block in a video image using intra prediction or interpolation prediction. If it is determined to use interpolation prediction, the method further comprises identifying an interpolation prediction mode for the block, the mode having a particular direction of prediction, and determining, for the identified interpolation prediction mode, whether one or more samples to be used for the interpolation are excluded from a reference section for performing the interpolation prediction in the particular direction. If it is determined that one or more of the samples are excluded from the reference section, the method further comprises using a substitute reference sample in said interpolation prediction. If it is determined that one or more of the samples are included in the reference section, the method further comprises performing an interpolation prediction in the particular direction according to the interpolation prediction mode using reference samples.
- an apparatus comprising a memory, and a processor, configured to perform determining whether to decode a block in a video image using intra prediction or interpolation prediction. If it is determined to use interpolation prediction, the processor is further configured to perform identifying an interpolation prediction mode for the block, the mode having a particular direction of prediction, and determining, for the identified interpolation prediction mode, whether one or more samples to be used for the interpolation are excluded from a reference section for performing the interpolation prediction in the particular direction. If it is determined that one or more of the samples are excluded from the reference section, the processor is further configured to use a substitute reference sample in the interpolation prediction. If it is determined that one or more of the samples are included in the reference section, the processor is further configured to perform an interpolation prediction in the particular direction according to the interpolation prediction mode using reference samples.
- a non-transitory computer readable medium containing data content generated according to any of the aforementioned encoding methods or encoder apparatus.
- a signal comprising video data generated according to any of the aforementioned encoding methods or encoder apparatus.
- FIG. 1 illustrates reference samples for intra prediction in HEVC.
- FIG. 2 illustrates intra prediction directions in HEVC.
- FIG. 3( a ) shows an extension of a positive vertical direction intersecting the left reference
- FIG. 3( b ) shows an extension of a positive horizontal direction intersecting the top reference.
- FIG. 4( a ) shows an extension of a positive vertical direction missing the left reference
- FIG. 4( b ) shows an extension of a positive horizontal direction missing the top reference.
- FIG. 5( a ) shows HEVC prediction mode 2
- FIG. 5( b ) shows HEVC prediction mode 34.
- FIG. 6 shows linear interpolation in one dimension.
- FIG. 7 shows linear interpolation in two dimensions.
- FIG. 8 shows interpolation in a positive vertical prediction.
- FIG. 9 shows interpolation method 1 where the left reference is extended below with its last sample value.
- FIG. 10 shows interpolation method 2 where a new bottom reference is estimated using the last sample of left reference.
- FIG. 11 shows interpolation method 3 where a new bottom reference is estimated using the last samples of top and left references.
- FIG. 12 shows an estimation of a bottom reference using an alternate bottom reference sample estimation.
- FIG. 13 illustrates a block diagram of an exemplary HEVC (High Efficiency Video Coding) video encoder.
- HEVC High Efficiency Video Coding
- FIG. 14A is a pictorial example depicting the HEVC reference sample generation
- FIG. 14B is a pictorial example depicting intra prediction directions in HEVC.
- FIG. 15 illustrates a block diagram of an exemplary HEVC video decoder.
- FIG. 16 shows one embodiment of a method under the described aspects.
- FIG. 17 shows one embodiment of an apparatus under the described aspects.
- FIG. 13 An exemplary HEVC encoder 100 is shown in FIG. 13 .
- a picture is partitioned into one or more slices where each slice can include one or more slice segments.
- a slice segment is organized into coding units, prediction units and transform units.
- the terms “reconstructed” and “decoded” may be used interchangeably, and the terms “picture” and “frame” may be used interchangeably.
- the term “reconstructed” is used at the encoder side while “decoded” is used at the decoder side.
- the HEVC specification distinguishes between “blocks” and “units,” where a “block” addresses a specific area in a sample array (e.g., luma, Y), and the “unit” includes the collocated blocks of all encoded color components (Y, Cb, Cr, or monochrome), syntax elements, and prediction data that are associated with the blocks (e.g., motion vectors).
- a “block” addresses a specific area in a sample array (e.g., luma, Y)
- the “unit” includes the collocated blocks of all encoded color components (Y, Cb, Cr, or monochrome), syntax elements, and prediction data that are associated with the blocks (e.g., motion vectors).
- a picture is partitioned into coding tree blocks (CTB) of square shape with a configurable size, and a consecutive set of coding tree blocks is grouped into a slice.
- a Coding Tree Unit (CTU) contains the CTBs of the encoded color components.
- a CTB is the root of a quadtree partitioning into Coding Blocks (CB), and a Coding Block may be partitioned into one or more Prediction Blocks (PB) and forms the root of a quadtree partitioning into Transform Blocks (TBs).
- CB Coding Tree Unit
- PB Prediction Blocks
- TBs Transform Blocks
- a Coding Unit includes the Prediction Units (PUs) and the tree-structured set of Transform Units (TUs), a PU includes the prediction information for all color components, and a TU includes residual coding syntax structure for each color component.
- the size of a CB, PB and TB of the luma component applies to the corresponding CU, PU and TU.
- the term “block” can be used to refer to any of CTU, CU, PU, TU, CB, PB and TB.
- the “block” can also be used to refer to a macroblock and a partition as specified in H.264/AVC, H.265 or other video coding standards, and more generally to refer to an array of data of various sizes.
- a picture is encoded by the encoder elements as described below.
- the picture to be encoded is processed in units of CUs.
- Each CU is encoded using either an intra or inter mode.
- intra prediction 160
- inter mode motion estimation ( 175 ) and compensation ( 170 ) are performed.
- the encoder decides ( 105 ) which one of the intra mode or inter mode to use for encoding the CU, and indicates the intra/inter decision by a prediction mode flag.
- Prediction residuals are calculated by subtracting ( 110 ) the predicted block from the original image block.
- CUs in intra mode are predicted from reconstructed neighboring samples within the same slice.
- the causal neighboring CUs have already been encoded/decoded when the encoding/decoding of the current CU is considered.
- the encoder and the decoder have the same prediction. Therefore, both the encoder and the decoder use the information from the reconstructed/decoded neighboring causal CUs to form prediction for the current CU.
- the intra prediction process in HEVC includes three steps: (1) reference sample generation, (2) intra sample prediction, and (3) post-processing of predicted samples.
- Exemplary HEVC reference samples are illustrated in FIG. 14A , where the reference pixel value at coordinate (x, y), with respect to one pixel above and to the left of the above-left corner of the current block, is indicated by R(x,y), and the predicted sample value at coordinate (x, y) of the current block is indicated by P(x,y).
- the corner pixel from the above-left decoded CU is used to fill up the gap between the above row and the left column references. If some of the samples are not available, for example, when the corresponding CUs is not in the same slice or the current CU is at a frame boundary, then reference sample substitution is performed where the missing samples are copied from the available samples in a clock-wise direction. Then, depending on the current CU size and the prediction mode, the reference samples are filtered using a specified filter. “Pixel” and “sample” are used interchangeably, unless otherwise noted.
- the next step, the intra sample prediction consists of predicting the pixels of the target CU based on the reference samples.
- HEVC supports a range of prediction methods.
- planar and DC prediction modes are used to predict smooth and gradually changing regions
- directional prediction modes also referred to as “angular prediction modes”
- HEVC supports 33 directional prediction modes which are indexed from 2 to 34. These prediction modes correspond to different prediction directions as illustrated in FIG. 14B , wherein the numbers (i.e., 2, 3, . . . , 34) denote intra prediction mode indices.
- the prediction modes 2-17 are denoted as horizontal prediction modes (H ⁇ 26 to H+32), as the predominant sources of prediction is in horizontal direction.
- the modes 18-34 are denoted as vertical prediction modes (V- 32 to V+32) accordingly.
- “H” and “V” in FIG. 14B are used to indicate the horizontal and vertical directionalities, respectively, while the numeric part of the identifier indicates the pixels' displacement (also referred to as “angle parameter”) at 1/32 pixel fractions.
- Table 1 shows the relationship between the directional prediction mode and the angle parameter A as specified by HEVC.
- the directions with non-negative displacements are also denoted as positive directions, and the directions with negative displacements (i.e., H ⁇ 2 to H ⁇ 26 and V ⁇ 2 to V ⁇ 32) are also denoted as negative directions.
- the defined angular directions have a sample accuracy of 1/32. That is, between any two adjacent reference samples, there are 32 possible directions.
- the defined directions can be distinguished as either vertical or horizontal.
- the prediction modes in horizontal directions use either only left reference samples, or some left and some top reference samples.
- the prediction modes in vertical directions use either only top reference samples, or some top and some left reference samples.
- the directions which use only left reference samples or only the top reference samples are defined to be positive directions.
- the horizontal positive directions from H0 to H+32 use only the left reference samples for prediction.
- the vertical positive directions from V0 to V+32 use only the top reference samples for prediction.
- Negative horizontal and vertical directions (H ⁇ 2 to H ⁇ 26 and V ⁇ 2 to V ⁇ 32) use reference samples both on the left and on the top for prediction.
- a reference array is first constructed using the top and left reference samples.
- the reference array is horizontal (i.e., a reference row) and for horizontal predictions, the reference array is vertical (i.e., a reference column).
- the reference array is simply the top or left reference samples depending on the direction:
- topRef[ x ] R ( x, 0),0 ⁇ x ⁇ 2 N , for vertical predictions
- the reference array For the modes with negative directions, the reference array needs pixels from both the top and left reference arrays. In this case, the reference array will extend to the negative indices beyond 0. Sample values on the reference array with positive indices are obtained as above depending on vertical or horizontal prediction. Those on the reference array with negative indices are obtained by projecting the left (for vertical predictions) or top reference pixels (for horizontal predictions) on the reference array in the prediction direction:
- topRef[ x ] R (0,( x*B+ 16)>>5?), ⁇ N ⁇ x ⁇ 0, for vertical predictions
- leftRef[ y ] R (( y*B+ 128)>>8,0), ⁇ N ⁇ y ⁇ 0, for horizontal predictions
- the prediction at any pixel position (x,y) inside the target PU is obtained by projecting the pixel position to the reference array along the selected direction and interpolating a value for the same at 1/32 pixel accuracy.
- the predicted sample value is computed by interpolating between two closest reference samples:
- i and f denote the integer part and the fractional part of the projected displacement from the pixel location (x,y). If ⁇ denotes the projected displacement, then
- prediction modes such as the DC mode and directly horizontal (i.e., mode 10) and directly vertical modes (i.e., mode 26) may cause discontinuity at the CU boundaries of the prediction samples. Therefore, such prediction modes are followed by a post-processing step where the boundary of the predicted samples are smoothed using a low-pass filter.
- directly horizontal mode refers to the prediction mode when the reference samples on the left side of a target block are repeated horizontally to the right for intra prediction.
- directly vertical mode refers to the prediction mode when the reference samples on the top of a target block are repeated vertically down for intra prediction.
- the decoder Since there are multiple intra prediction modes available, the decoder needs the mode information to form the prediction for an intra-coded CU.
- the encoder encodes the mode information using a most probable mode (MPM) set for the luma component.
- MPM most probable mode
- HEVC specifies an MPM set consisting of three distinct modes, which is constructed from the prediction modes of the intra coded CUs on the top and left of the current CU, the planar mode, the DC mode, and the directly vertical mode.
- the applicable luma intra prediction mode for the current block can be coded using two different options. If the applicable mode is included in a constructed list of three most probable modes (MPM), the mode is signaled by an index in the MPM list. Otherwise, the mode is signaled by a fixed-length binarization of the mode index.
- the three most probable modes are derived from the intra prediction modes of the top and left neighboring blocks.
- the corresponding coding block is further partitioned into one or more prediction blocks. Inter prediction is performed on the PB level, and the corresponding PU contains the information about how inter prediction is performed.
- the motion information i.e., motion vector and reference picture index
- AMVP advanced motion vector prediction
- a video encoder or decoder In the merge mode, a video encoder or decoder assembles a candidate list based on already coded blocks, and the video encoder signals an index for one of the candidates in the candidate list.
- the motion vector (MV) and the reference picture index are reconstructed based on the signaled candidate.
- AMVP a video encoder or decoder assembles candidate lists based on motion vectors determined from already coded blocks.
- the video encoder then signals an index in the candidate list to identify a motion vector predictor (MVP) and signals a motion vector difference (MVD).
- MVP motion vector predictor
- MVD motion vector difference
- the motion vector (MV) is reconstructed as MVP+MVD.
- the applicable reference picture index is also explicitly coded in the PU syntax for AMVP.
- the prediction residuals are then transformed ( 125 ) and quantized ( 130 ).
- the quantized transform coefficients, as well as motion vectors and other syntax elements, are entropy coded ( 145 ) to output a bitstream.
- the encoder may also skip the transform and apply quantization directly to the non-transformed residual signal on a 4 ⁇ 4 TU basis.
- the encoder may also bypass both transform and quantization, i.e., the residual is coded directly without the application of the transform or quantization process. In direct PCM coding, no prediction is applied and the coding unit samples are directly coded into the bitstream.
- the encoder decodes an encoded block to provide a reference for further predictions.
- the quantized transform coefficients are de-quantized ( 140 ) and inverse transformed ( 150 ) to decode prediction residuals.
- In-loop filters ( 165 ) are applied to the reconstructed picture, for example, to perform deblocking/SAO (Sample Adaptive Offset) filtering to reduce encoding artifacts.
- the filtered image is stored at a reference picture buffer ( 180 ).
- FIG. 15 illustrates a block diagram of an exemplary HEVC video decoder 300 .
- a bitstream is decoded by the decoder elements as described below.
- Video decoder 300 generally performs a decoding pass reciprocal to the encoding pass as described in FIG. 13 , which performs video decoding as part of encoding video data.
- the input of the decoder includes a video bitstream, which may be generated by video encoder 100 .
- the bitstream is first entropy decoded ( 330 ) to obtain transform coefficients, motion vectors, and other coded information.
- the transform coefficients are de-quantized ( 340 ) and inverse transformed ( 350 ) to decode the prediction residuals.
- the predicted block may be obtained ( 370 ) from intra prediction ( 360 ) or motion-compensated prediction (i.e., inter prediction) ( 375 ).
- AMVP and merge mode techniques may be used to derive motion vectors for motion compensation, which may use interpolation filters to calculate interpolated values for sub-integer samples of a reference block.
- In-loop filters ( 365 ) are applied to the reconstructed image.
- the filtered image is stored at a reference picture buffer ( 380 ).
- encoding of a frame of video sequence is based on a block structure.
- a frame is divided into square coding tree units (CTUs), which may undergo quadtree (QT) splitting to multiple coding units based on rate-distortion criteria.
- CTUs square coding tree units
- QT quadtree
- Each CU is either intra-predicted, that is spatially predicted from the causal neighbor CUs, or inter-predicted, that is, temporally predicted from reference frames already decoded.
- I-slices all CUs are intra-predicted, whereas in P and B slices the CUs can be either intra or inter-predicted.
- HEVC defines 35 prediction modes which include one planar mode (indexed as mode 0), one DC mode (indexed as mode 1) and 33 directional prediction modes (indexed as modes 2-34).
- the QTBT Quadtree plus Binary Tree
- a Coding Tree Unit (CTU) is firstly partitioned by a quadtree structure.
- the quadtree leaf nodes are further partitioned by a binary tree structure.
- the binary tree leaf node is named as Coding Units (CUs), which is used for prediction and transform without further partitioning.
- CUs Coding Units
- a CU consists of Coding Blocks (CBs) of different color components.
- CBs Coding Blocks
- the CUs or blocks resulting from a binary tree partition are also referred to as binary tree (BT) CUs or blocks
- the CUs or blocks resulting from a quadtree partition are also referred to as quadtree (QT) CUs or blocks.
- JEM 3 . 0 uses 65 directional intra prediction modes in addition to the planar and DC modes.
- the modes are numbered from 2 to 66 in the increasing order, in the same fashion as done in HEVC from 2 to 34.
- the 65 directional prediction modes include the 33 directional prediction modes specified in HEVC plus 32 additional directional prediction modes that correspond to angles in-between two original angles. In other words, the prediction direction in JEM has twice the angle resolution of HEVC.
- the higher number of prediction modes has been proposed to exploit the possibility of angular structures with proposed larger block sizes.
- JEM can also have rectangular CUs because of the QTBT structure.
- the reference array is constructed as follows:
- topRef[ x ] R ( x, 0),0 ⁇ x ⁇ W+H , for vertical predictions
- W and H denote the width and the height of the target CU, respectively.
- the reference array is constructed as above for positive indices.
- the projections of the left reference array (for vertical predictions) or top reference array (for horizontal predictions) are used:
- topRef[ x ] R (0,( x*B+ 16?)>>5?), ⁇ H ⁇ x ⁇ 0, for vertical predictions
- leftRef[ y ] R (( y*B+ 128)>>8,0), ⁇ W ⁇ y ⁇ 0, for horizontal predictions.
- the prediction process basically remains the same as in HEVC.
- the pixel values are computed as:
- HEVC and JEM aim to model different directional structures by different angular prediction models.
- some prediction directions are termed positive and some are termed negative.
- the prediction models work well when the intensity values do not change too much along the prediction direction.
- the intensity values on objects often undergo changes due to several reasons. For example, because of a color property of the object itself, lighting, depth, motion, etc., the intensity values over a PU can undergo changes that cannot be sufficiently modelled using pixel repetition. This is especially true when the PU size is large, for example, JEM has proposed to use CTU sizes up to 256. Therefore, we may consider other prediction models that may model the intensity change more efficiently.
- Intra prediction is intended to exploit spatial correlation among pixels which belong to the same objects, backgrounds or regions.
- the intra prediction in video coding standards such as H.264/AVC, H.265/HEVC, or JEM has been designed to capture directionalities of object orientations and the slow changing intensity regions or textures.
- the intra prediction includes 35 prediction modes which consist of one DC, one PLANAR, and 33 angular prediction modes. The angular modes are designed to model the directional structures of objects whereas the DC and the planar modes provide predictions for regions with slow and gradual intensity change and also for regions with varying textures.
- JEM Joint Exploration Model
- the number of prediction modes have been increased to 67 to accommodate further directions with bigger block sizes.
- the filtered pixel values from neighboring left and top neighbors are repeated in predefined directions followed by some post-filtering to eliminate abrupt changes at block boundaries in certain cases.
- interpolation besides simple pixel repetition for higher compression efficiency. While the pixel repetition is a good model for capturing the angularities of objects, it does not model the cases when the object intensities may change significantly. In such cases, prediction with interpolation can better model the directional structures leading to better compression efficiency.
- interpolation had been proposed in the HEVC standardization process but was not included in the final standard because of added complexity with insufficient coding gain. They suffered from the following disadvantages: the interpolation calculation is approximate, only a few positive directions use interpolations, and the normal predictions for those directions are replaced by proposed interpolations. In the described embodiments herein, new and better interpolation methods are described than the ones proposed. This proposal is different from the earlier proposed methods in several aspects: it uses a different interpolation algorithm that uses the exact interpolation, rather than any approximation as done previously. Secondly, it can apply the interpolation to all positive directions, not just a subset of positive directions.
- the number of directions over which the interpolation is applied can be decided a-priori.
- it does not replace the normal prediction by interpolative prediction, but proposes to include the latter as an additional model for prediction.
- the encoder can decide between the normal prediction method or the proposed method, and the method selected can be signaled using a 1-bit flag.
- the general concepts described herein aim at improving the prediction efficiency in intra prediction. They propose to use interpolation instead of simple pixel repetition along positive directions whenever the interpolation gives better RD performance. Interpolation requires two or more reference pixels. For strictly positive prediction modes, certain pixels in a target CU can have two reference samples at both ends of the prediction direction. In such cases, we propose to use the linear interpolation as an alternative prediction. For the other pixels who have only one reference sample, we propose to use estimated reference samples at the bottom of the CU which serve as second reference samples. These reference samples are estimated using the top and left reference samples.
- Intra prediction in video compression refers to the spatial prediction of a block of pixels using the information from the causal neighbor blocks, that is, the neighboring blocks in the same frame which have already been decoded. This is a powerful coding tool since it allows for high compression efficiency in INTRA frames, as well as in INTER frames whenever there is no better temporal prediction. Therefore, intra prediction has been included as a core coding tool in all video compression standards including H.264/AVC, HEVC, etc. In the following, for explanation purpose, we will refer to the intra prediction in HEVC standard and the current efforts to improve upon it, such as the JEM.
- encoding of a frame of video sequence is based on a quad-tree (QT) block structure.
- a frame is divided into square coding tree units (CTUs) which all undergo quad-tree based splitting to multiple coding units (CUs) based on rate-distortion criteria.
- Each CU contains at least one prediction unit (PU), which are the basis blocks for prediction tools.
- PU prediction unit
- Intra prediction a PU is spatially predicted from the causal neighbor PUs, i.e., the PUs on the top and the left.
- HEVC uses simple spatial models called prediction modes.
- the encoder constructs different predictions for the target block and chooses the one that leads to the best RD performance.
- one is a planar mode (indexed as mode 0)
- one is a DC mode (indexed as mode 1)
- the remaining 33 is angular modes.
- the angular modes aim to model the directional structures of objects in a frame. Therefore, the decoded pixel values in the top and left CUs are simply repeated along the defined directions to fill up the target block. Since this process can lead to discontinuities along the top and left reference boundaries for certain modes, those prediction modes include a subsequent post-filtering to smoothen the pixel values along those boundaries.
- the intra prediction process in HEVC consists of three steps: (1) reference sample generation (2) intra sample prediction and (3) post-processing of predicted samples.
- the reference sample generation process is illustrated in FIG. 1 .
- a row of 2N decoded samples on the top is formed from the previously reconstructed top and top right pixels to the current PU.
- a column of 2N samples on the left is formed from the reconstructed left and below left pixels.
- the corner pixel at the top-left position is also used to fill up the gap between the top row and the left column references.
- a method called reference sample substitution is performed where the missing samples are copied from the available samples in a clock-wise direction. Then, depending on the current CU size and the prediction mode, the reference samples are filtered using a specified filter.
- the next step i.e., the intra sample prediction, consists of predicting the pixels of the target CU based on the reference samples.
- HEVC supports a range of prediction models. Planar and DC prediction modes are used to predict smooth and gradually changing regions, whereas angular prediction modes are used to capture different directional structures.
- HEVC supports 33 directional prediction modes which are indexed from 2 to 34. These prediction modes correspond to different prediction directions as illustrated in FIG. 2 . The number denotes the prediction mode index associated with the corresponding direction.
- the modes 2 to 17 indicate horizontal predictions (H ⁇ 26 to H+32) and the modes 18 to 34 indicate vertical predictions (V ⁇ 32 to V+32).
- the defined angular directions have a sample accuracy of 1/32. That is, between any two adjacent reference samples, there are 32 possible directions.
- the defined directions can be distinguished as either vertical or horizontal.
- the predictions in horizontal directions use either only left reference samples or some left and some top reference samples.
- the predictions in vertical directions use either only top reference samples or some top and some left reference samples.
- the directions which use only left reference samples or only the top reference samples are defined to be positive directions.
- H0 to H+32 that use only the left reference samples.
- V0 to V+32 that use only the top reference samples.
- Other horizontal and vertical directions (H ⁇ 2 to H ⁇ 26 and V ⁇ 2 to V ⁇ 32) are defined to be negative directions and they use reference samples both on the left and on the top.
- Table 1 shows the relationship between the prediction mode and the angle parameter A as specified by HEVC.
- a reference array is first constructed using the top and left reference samples. For vertical predictions, the reference array is horizontal and for horizontal predictions, the reference array is vertical. For the modes with positive angle parameter A (modes 2 to 10 and 26 to 34), the reference array is simply the top or left reference samples depending on the direction:
- topRef[ x ] P [ x ⁇ 1][ ⁇ 1],0 ⁇ x ⁇ 2 N , for vertical predictions
- N is the CU size. It is conventional to initialize the sample co-ordinates to (0,0) at the top-left pixel of the target CU. Therefore, the top reference samples will have their y-coordinate as ⁇ 1 and the left reference samples will have their x-co-ordinate as ⁇ 1.
- the reference array For the modes with negative angle parameter A (modes 11 to 25), the reference array needs pixels from both the top and left reference. In this case, the reference array will extend to the negative indices beyond 0. Sample values on the reference array with positive indices are obtained as above depending on vertical or horizontal prediction. Those on the reference array with negative indices are obtained by projecting the left (for vertical predictions) or top reference pixels (for horizontal predictions) on the reference array along the prediction direction.
- the prediction at any pixel position (x, y) inside the target CU is obtained by projecting the pixel position to the reference array along the selected direction and then copying the reference array sample value at (x,y).
- the reference sample value is computed at a sample resolution of ( 1/32) by interpolating between two adjacent samples as illustrated below:
- i and f denote the integer part and the fractional part of the projected displacement from the pixel location (x,y).
- the vertical predictions are independent of the y-coordinate and the horizontal predictions are independent of the x-coordinate. This means that, for vertical predictions, the prediction values are repeated along the direction of prediction from the reference array on the top. Similarly, for horizontal predictions, the prediction values are repeated along the direction of prediction from the reference array on the left. Therefore, if two or more pixel co-ordinates have the same projection point on the reference array, they have identical prediction values.
- the number of prediction modes has been increased to 67, which includes one planar mode, one DC mode, and 65 angular modes.
- the higher number of angular modes correspond to 65 prediction directions where the prediction directions correspond to the 33 directions in HEVC plus additional 32 directions that correspond to the middle of any two adjacent directions.
- the prediction direction in JEM has twice the angle resolution of HEVC.
- the higher number of prediction modes have been proposed to exploit the possibility of such angular structures with proposed higher block sizes.
- the modes are numbered from 2 to 66 in the increasing order and in the same fashion as done in HEVC from 2 to 34.
- JEM can also have rectangular CUs because of quad-tree and binary-tree (QTBT) structure.
- QTBT binary-tree
- topRef[ x ] P [ x ⁇ 1][ ⁇ 1],0 ⁇ x ⁇ W+H , for vertical predictions
- leftRef[ y ] P [ ⁇ 1][ y ⁇ 1],0 ⁇ y ⁇ W+H , for horizontal predictions
- W and H denote the width and the height of the target CU, respectively.
- the prediction process basically remains the same as in HEVC.
- the pixel values are computed as:
- the directions have a sample accuracy of ( 1/32).
- prediction modes such as the DC mode and directly horizontal (H0 or 10) and vertical modes (V0 or 26) may cause discontinuity at the CU boundaries after the prediction. Therefore, in HEVC, as well as in JEM, such prediction modes are followed by a post-processing step where the boundary predicted samples are smoothed using a low-pass filter.
- HEVC and JEM aim to model different directional structures by different angular prediction models.
- some prediction models are termed positive and some are termed negative.
- A>0 some prediction models are termed positive and some are termed negative.
- the prediction direction is extended for some pixels in the opposite direction of the reference array, it intersects the other reference. For example, for vertical positive directions, the extension will intersect the left reference column. Similarly, for horizontal positive directions, the extension will intersect the top reference row. This is shown in FIG. 3 .
- the above interpolation formula can be rewritten as:
- ⁇ f(a) l*m, where m denotes the slope of the line segment.
- ⁇ f(a) is a function of only the distance between c and a, that is, l, since, for given values at a and b, the slope is fixed.
- the above formula can be used to interpolate pixel intensity at any pixel position that lies on a line segment joining two pixel locations. If P[x1] [y1] and P [x2] [y2] represent the pixel intensities at (x1, y1) and (x2, y2), respectively, then the intensity at (x, y), which lies on the line joining (x1, y1) and (x2, y2) can be computed as:
- d represents the distance between (x1, y1) and (x2, y2)
- l represents the distance between (x, y) and (x1, y1).
- ⁇ p represents the change in pixel intensity with respect to the value at (x1, y1).
- ⁇ x denote the projected displacement on the top reference.
- ⁇ y denote the projected displacement on the left reference.
- ⁇ y ( ( 1 + x ) ⁇ ( 1 + y ) ⁇ 10 ) ⁇ x
- ⁇ y ( ( ( 1 + x ) ⁇ ( 1 + y ) ) ⁇ 10 ) + ( ⁇ x ⁇ 1 ) ⁇ x
- i x and f x denote the integer part and the fractional part of ⁇ x . That is,
- i y and f y denote the integer part and the fractional part of ⁇ y . That is,
- ⁇ P here presents the change in prediction value with respect to the first reference sample.
- the length R which is the distance between the target pixel and the second reference sample is now changed.
- the new R now refers to the distance between the location of the target pixel and the reference sample on the bottom reference.
- d represent the distance from the left reference at which the extension of the prediction direction intersects the bottom reference. d can be calculated using triangle similarity as
- the interpolation at the target pixel is given as follows:
- interpolation is as in section 5.
- the chroma components' prediction is dependent on the LUMA component prediction mode.
- the chroma components are tested only with 5 prediction modes for selecting the best prediction mode.
- the modes are PLANAR, DC, purely horizontal (mode 10), purely vertical (mode 26), and the prediction mode of the LUMA component, called the direct (or derived) mode. If the direct mode equals any of the previous four, that is, planar, dc, purely horizontal, and purely vertical, then the vertical diagonal mode 34 is substituted for that mode.
- LM-Chroma In JEM, in addition to these five prediction modes (that is, planar (mode 0), DC (mode 1), purely horizontal (mode 18), purely vertical (mode 50), and the direct mode) there is a new mode called LM-Chroma. But the new mode does not use any of the defined prediction modes, rather the prediction is constructed from the reconstructed LUMA block.
- the direct mode In order to differentiate the direct mode from LM-CHROMA, the direct mode is called the DM_CHROMA mode. If the DM-CHROMA mode equals one of the fixed four modes (i.e., planar, DC, purely horizontal, and purely vertical), then the vertical diagonal mode 66 is substituted for that mode.
- the DM_CHROMA mode may correspond to the prediction mode of a LUMA CU which does not spatially correspond to the chroma CU under consideration
- interpolative predictions that we proposed above are models based on our physical intuition of object orientations and intensity variation in an image. They do not guarantee that the resulting RD performance will be necessarily better than the plain reference sample repetition. Therefore, under the present aspects described herein, it is proposed to include interpolation as an option by enabling a flag in the SPS, or PPS, or slice header.
- Every INTRA CU having a positive angular prediction will have either interpolative prediction or plain sample repetitive prediction. This is signaled to the decoder using a 1-bit flag.
- the 1-bit flag is context-encoded using context 0.
- the chroma components we can follow one of two signaling approaches.
- the one-bit flag can be context-encoded using either context 0, or a mode-dependent context.
- the second approach is to use no additional signaling for the chroma components' prediction. Rather, the chroma components can use the same signaling as the luma CU at the center or top-left corner of the CTU.
- the luma signaling flag is enabled and the direct mode (in HEVC) or DM_Chroma (in JEM) is strictly negative, then the CU is predicted with interpolation, else the usual angular prediction is performed.
- the JEM codec which is based on the HEVC codec. Except for the intra prediction with positive angular modes, every other tool remains unchanged.
- the flag indicating the interpolative prediction is context encoded with context zero.
- the proposed intra-prediction tools such as PDPC, NSST, EMT, etc., also remain unchanged.
- the chroma interpolation flag is derived from that of the luma CU located at the center of the CTU.
- the set of angular modes of prediction for which interpolation will be available can be one or more positive directions.
- the encoder decides between the interpolation prediction or the usual prediction based on the RD performance and this is signaled using a 1-bit flag which is context encoded with context 0.
- the decoder decodes the signaling flag only if the prediction mode belongs to the selected set. If the prediction mode does not belong to the set, the decoder does not decode any signaling flag and a default value of zero is assumed for the signaling flag.
- the signaling flag used with the center Luma CU is used to decide if to perform interpolation with the DM_Chroma mode. If there is no signaling flag for the Luma CU (because its prediction mode does not fall in the set of modes which can undergo interpolation), a default value of 0 is used indicating the normal prediction.
- the set of angular modes of prediction for which interpolation will be available can be one or more positive directions.
- the encoder decides between the interpolation prediction or the usual prediction based on the RD performance and this is signaled using a 1-bit flag which is context encoded with context 0.
- the decoder decodes the signaling flag only if the prediction mode belongs to the selected set. If the prediction mode does not belong to the set, the decoder does not decode any signaling flag and a default value of zero is assumed for the signaling flag.
- the signaling flag used with the center Luma CU is used to decide if to perform interpolation with the DM_Chroma mode. If there is no signaling flag for the Luma CU (because its prediction mode does not fall in the set of modes which can undergo interpolation), a default value of 0 is used indicating the normal prediction.
- the set of angular modes of prediction for which interpolation will be available can be one or more positive directions.
- the encoder decides between the interpolation prediction or the usual prediction based on the RD performance and this is signaled using a 1-bit flag which is context encoded with context 0.
- the decoder decodes the signaling flag only if the prediction mode belongs to the selected set. If the prediction mode does not belong to the set, the decoder does not decode any signaling flag and a default value of zero is assumed for the signaling flag.
- the signaling flag used with the center Luma CU is used to decide if to perform interpolation with the DM_Chroma mode. If there is no signaling flag for the Luma CU (because its prediction mode does not fall in the set of modes which can undergo interpolation), a default value of 0 is used indicating the normal prediction.
- the set of angular modes of prediction for which interpolation will be available can be one or more positive directions.
- the encoder decides between the interpolation prediction or the usual prediction based on the RD performance and this is signaled using a 1-bit flag which is context encoded with context 0.
- the decoder decodes the signaling flag only if the prediction mode belongs to the selected set. If the prediction mode does not belong to the set, the decoder does not decode any signaling flag and a default value of zero is assumed for the signaling flag.
- the signaling flag used with the center Luma CU is used to decide if to perform interpolation with the DM_Chroma mode. If there is no signaling flag for the Luma CU (because its prediction mode does not fall in the set of modes which can undergo interpolation), a default value of 0 is used indicating the normal prediction.
- any one of the embodiments 1-4 we follow any one of the embodiments 1-4.
- the option of adding interpolation is signaled in the slice header indicating that all CUs in a slice can use interpolation option.
- any one of the embodiments 1-4 we follow any one of the embodiments 1-4.
- the option of adding interpolation is signaled in the PPS header indicating that all CUs in a frame can use interpolation option.
- any one of the embodiments 1-4 we follow any one of the embodiments 1-4.
- the option of adding interpolation is signaled in the SPS header indicating that all frames in the sequence can use the interpolation option.
- the proposed interpolation methods will model object orientations with improved intensity variation over a normal repetitive prediction leading to better RD performance.
- FIG. 16 One embodiment of a method 1600 under the general aspects is illustrated in FIG. 16 .
- the method commences at Start block 1601 and proceeds to function block 1610 for determining whether to encode or decode a block using intra prediction or interpolation prediction. If it is determined that intra prediction is to be used, a normal intra prediction operation is performed. If, however, it is determined that an interpolation prediction is to be used, control proceeds from block 1610 to function block 1620 for identifying an interpolation prediction mode for the block. Control then proceeds from function block 1620 to function block 1630 for determining whether one or more samples to be used in the interpolation prediction are excluded from a reference set of samples.
- control proceeds from function block 1630 to function block 1650 for performing an interpolation prediction in the particular direction according to the interpolation prediction mode using reference samples in the set. If, however, it is determined that samples to be used in the interpolation prediction are excluded from the set of reference samples, control proceeds from function block 1630 to function block 1640 for using a substitute reference sample in the interpolation prediction.
- the substitute reference sample or samples can be obtained using one of the aforementioned interpolation methods that find a substitute reference sample to be used in the interpolation process.
- FIG. 17 One embodiment of an apparatus 1700 for encoding or decoding a video block under the present aspects is illustrated in FIG. 17 .
- the apparatus comprises a memory 1720 in signal communication with a processor 1710 .
- the memory 1720 and processor 1710 can have various other input and output ports.
- Processor 1710 is configured to determine whether to encode or decode a block in a video image using intra prediction or interpolation prediction. If it is determined to use interpolation prediction, the processor performs identifying an interpolation prediction mode for the block, the mode having a particular direction of prediction; determining, for the identified interpolation prediction mode, whether one or more samples to be used for the interpolation are excluded from a reference section for performing the interpolation prediction in the particular direction.
- the processor uses a substitute reference sample in performing interpolation prediction. If it is determined that one or more of the samples are included in the reference section, the processor performs an interpolation prediction in the particular direction according to the interpolation prediction mode using reference samples.
- processor or “controller” should not be construed to refer exclusively to hardware capable of executing software, and may implicitly include, without limitation, digital signal processor (“DSP”) hardware, read-only memory (“ROM”) for storing software, random access memory (“RAM”), and non-volatile storage.
- DSP digital signal processor
- ROM read-only memory
- RAM random access memory
- any switches shown in the figures are conceptual only. Their function may be carried out through the operation of program logic, through dedicated logic, through the interaction of program control and dedicated logic, or even manually, the particular technique being selectable by the implementer as more specifically understood from the context.
- any flow charts, flow diagrams, state transition diagrams, pseudocode, and the like represent various processes which may be substantially represented in computer readable media and so executed by a computer or processor, whether or not such computer or processor is explicitly shown.
- any element expressed as a means for performing a specified function is intended to encompass any way of performing that function including, for example, a) a combination of circuit elements that performs that function or b) software in any form, including, therefore, firmware, microcode or the like, combined with appropriate circuitry for executing that software to perform the function.
- the present principles as defined by such claims reside in the fact that the functionalities provided by the various recited means are combined and brought together in the manner which the claims call for. It is thus regarded that any means that can provide those functionalities are equivalent to those shown herein.
- an improved method of performing intra prediction for encoding or decoding uses interpolation.
- interpolation substitute samples are found for samples to be used in the interpolation calculation that lie outside a normal reference range.
- the substitute samples can be repeated end samples from the bottom of a reference portion to the left of the target block, or right samples of a reference portion above the target block, or some calculated or estimated value based on known reference samples.
- An encoder can signal to a decoder whether to use intra prediction or interpolation prediction.
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Compression Or Coding Systems Of Tv Signals (AREA)
Abstract
An improved method of performing intra prediction for encoding or decoding uses interpolation such that substitute samples are found for samples to be used in the interpolation calculation that lie outside a normal reference range. The substitute samples can be repeated end samples from the bottom of a reference portion to the left of the target block, or right samples of a reference portion above the target block. An encoder can signal to a decoder whether to use intra prediction or interpolation prediction.
Description
- The present principles relate to video compression and more particularly to performing intra prediction coding and decoding with interpolation of an image block.
- Various video coding standards have used intra coding, which uses prediction based on areas of the current image already coded or decoded. Intra coding using interpolation had been proposed in the standardization process of some of these standards, but was not included in those standards because of added complexity with insufficient coding gain. Those proposals suffered from other disadvantages, such as the interpolation calculation being approximate, or with only a few positive directions that use interpolations.
- These and other drawbacks and disadvantages of the prior art are addressed by the present described embodiments, which are directed to a method and apparatus for intra prediction with interpolation for encoding and decoding video signals.
- According to an aspect of the described aspects, there is provided a method. The method comprises determining whether to encode a block in a video image using intra prediction or interpolation prediction. If it is determined to use interpolation prediction, the method further comprises identifying an interpolation prediction mode for the block, the mode having a particular direction of prediction, and determining, for the identified interpolation prediction mode, whether one or more samples to be used for the interpolation are excluded from a reference section for performing the interpolation prediction in the particular direction. If it is determined that one or more of the samples are excluded from the reference section, the method further comprises using a substitute reference sample in said interpolation prediction. If it is determined that one or more of the samples are included in the reference section, the method further comprises performing an interpolation prediction in the particular direction according to the interpolation prediction mode using reference samples.
- According to another aspect of the described aspects, there is provided an apparatus. The apparatus comprises a memory, and a processor, configured to perform determining whether to encode a block in a video image using intra prediction or interpolation prediction. If it is determined to use interpolation prediction, the processor is further configured to perform identifying an interpolation prediction mode for the block, the mode having a particular direction of prediction, and determining, for the identified interpolation prediction mode, whether one or more samples to be used for the interpolation are excluded from a reference section for performing the interpolation prediction in the particular direction. If it is determined that one or more of the samples are excluded from the reference section, the processor is further configured to use a substitute reference sample in the interpolation prediction. If it is determined that one or more of the samples are included in the reference section, the processor is further configured to perform an interpolation prediction in the particular direction according to the interpolation prediction mode using reference samples.
- According to another aspect of the described aspects, there is provided a method. The method comprises determining whether to decode a block in a video image using intra prediction or interpolation prediction. If it is determined to use interpolation prediction, the method further comprises identifying an interpolation prediction mode for the block, the mode having a particular direction of prediction, and determining, for the identified interpolation prediction mode, whether one or more samples to be used for the interpolation are excluded from a reference section for performing the interpolation prediction in the particular direction. If it is determined that one or more of the samples are excluded from the reference section, the method further comprises using a substitute reference sample in said interpolation prediction. If it is determined that one or more of the samples are included in the reference section, the method further comprises performing an interpolation prediction in the particular direction according to the interpolation prediction mode using reference samples.
- According to another aspect of the described aspects, there is provided an apparatus. The apparatus comprises a memory, and a processor, configured to perform determining whether to decode a block in a video image using intra prediction or interpolation prediction. If it is determined to use interpolation prediction, the processor is further configured to perform identifying an interpolation prediction mode for the block, the mode having a particular direction of prediction, and determining, for the identified interpolation prediction mode, whether one or more samples to be used for the interpolation are excluded from a reference section for performing the interpolation prediction in the particular direction. If it is determined that one or more of the samples are excluded from the reference section, the processor is further configured to use a substitute reference sample in the interpolation prediction. If it is determined that one or more of the samples are included in the reference section, the processor is further configured to perform an interpolation prediction in the particular direction according to the interpolation prediction mode using reference samples.
- According to another aspect of the described aspects, there is provided a non-transitory computer readable medium containing data content generated according to any of the aforementioned encoding methods or encoder apparatus.
- According to another aspect of the described aspects, there is provided a signal comprising video data generated according to any of the aforementioned encoding methods or encoder apparatus.
- According to another aspect of the described aspects, there is provided computer program product comprising instructions which, when the program is executed by a processor and memory, cause the processor to carry out any of the aforementioned decoding methods.
- These and other aspects, features and advantages of the present principles will become apparent from the following detailed description of exemplary embodiments, which is to be read in connection with the accompanying drawings.
-
FIG. 1 illustrates reference samples for intra prediction in HEVC. -
FIG. 2 illustrates intra prediction directions in HEVC. -
FIG. 3(a) shows an extension of a positive vertical direction intersecting the left reference, andFIG. 3(b) shows an extension of a positive horizontal direction intersecting the top reference. -
FIG. 4(a) shows an extension of a positive vertical direction missing the left reference, andFIG. 4(b) shows an extension of a positive horizontal direction missing the top reference. -
FIG. 5(a) showsHEVC prediction mode 2, andFIG. 5(b) showsHEVC prediction mode 34. -
FIG. 6 shows linear interpolation in one dimension. -
FIG. 7 shows linear interpolation in two dimensions. -
FIG. 8 shows interpolation in a positive vertical prediction. -
FIG. 9 showsinterpolation method 1 where the left reference is extended below with its last sample value. -
FIG. 10 showsinterpolation method 2 where a new bottom reference is estimated using the last sample of left reference. -
FIG. 11 showsinterpolation method 3 where a new bottom reference is estimated using the last samples of top and left references. -
FIG. 12 shows an estimation of a bottom reference using an alternate bottom reference sample estimation. -
FIG. 13 illustrates a block diagram of an exemplary HEVC (High Efficiency Video Coding) video encoder. -
FIG. 14A is a pictorial example depicting the HEVC reference sample generation, andFIG. 14B is a pictorial example depicting intra prediction directions in HEVC. -
FIG. 15 illustrates a block diagram of an exemplary HEVC video decoder. -
FIG. 16 shows one embodiment of a method under the described aspects. -
FIG. 17 shows one embodiment of an apparatus under the described aspects. - An
exemplary HEVC encoder 100 is shown inFIG. 13 . To encode a video sequence with one or more pictures, a picture is partitioned into one or more slices where each slice can include one or more slice segments. A slice segment is organized into coding units, prediction units and transform units. - In the present application, the terms “reconstructed” and “decoded” may be used interchangeably, and the terms “picture” and “frame” may be used interchangeably. Usually, but not necessarily, the term “reconstructed” is used at the encoder side while “decoded” is used at the decoder side.
- The HEVC specification distinguishes between “blocks” and “units,” where a “block” addresses a specific area in a sample array (e.g., luma, Y), and the “unit” includes the collocated blocks of all encoded color components (Y, Cb, Cr, or monochrome), syntax elements, and prediction data that are associated with the blocks (e.g., motion vectors).
- For coding, a picture is partitioned into coding tree blocks (CTB) of square shape with a configurable size, and a consecutive set of coding tree blocks is grouped into a slice. A Coding Tree Unit (CTU) contains the CTBs of the encoded color components. A CTB is the root of a quadtree partitioning into Coding Blocks (CB), and a Coding Block may be partitioned into one or more Prediction Blocks (PB) and forms the root of a quadtree partitioning into Transform Blocks (TBs). Corresponding to the Coding Block, Prediction Block and Transform Block, a Coding Unit (CU) includes the Prediction Units (PUs) and the tree-structured set of Transform Units (TUs), a PU includes the prediction information for all color components, and a TU includes residual coding syntax structure for each color component. The size of a CB, PB and TB of the luma component applies to the corresponding CU, PU and TU. In the present application, the term “block” can be used to refer to any of CTU, CU, PU, TU, CB, PB and TB. In addition, the “block” can also be used to refer to a macroblock and a partition as specified in H.264/AVC, H.265 or other video coding standards, and more generally to refer to an array of data of various sizes.
- In the
exemplary encoder 100 ofFIG. 13 , a picture is encoded by the encoder elements as described below. The picture to be encoded is processed in units of CUs. Each CU is encoded using either an intra or inter mode. When a CU is encoded in an intra mode, it performs intra prediction (160). In an inter mode, motion estimation (175) and compensation (170) are performed. The encoder decides (105) which one of the intra mode or inter mode to use for encoding the CU, and indicates the intra/inter decision by a prediction mode flag. Prediction residuals are calculated by subtracting (110) the predicted block from the original image block. - In order to exploit the spatial redundancy, CUs in intra mode are predicted from reconstructed neighboring samples within the same slice. The causal neighboring CUs have already been encoded/decoded when the encoding/decoding of the current CU is considered. To avoid mismatch, the encoder and the decoder have the same prediction. Therefore, both the encoder and the decoder use the information from the reconstructed/decoded neighboring causal CUs to form prediction for the current CU.
- The intra prediction process in HEVC includes three steps: (1) reference sample generation, (2) intra sample prediction, and (3) post-processing of predicted samples. Exemplary HEVC reference samples are illustrated in
FIG. 14A , where the reference pixel value at coordinate (x, y), with respect to one pixel above and to the left of the above-left corner of the current block, is indicated by R(x,y), and the predicted sample value at coordinate (x, y) of the current block is indicated by P(x,y). For a CU of size N×N, a row of 2N decoded samples on the top is formed from the decoded CUs. Similarly, a column of 2N samples on the left is formed from the decoded CUs. The corner pixel from the above-left decoded CU is used to fill up the gap between the above row and the left column references. If some of the samples are not available, for example, when the corresponding CUs is not in the same slice or the current CU is at a frame boundary, then reference sample substitution is performed where the missing samples are copied from the available samples in a clock-wise direction. Then, depending on the current CU size and the prediction mode, the reference samples are filtered using a specified filter. “Pixel” and “sample” are used interchangeably, unless otherwise noted. - The next step, the intra sample prediction, consists of predicting the pixels of the target CU based on the reference samples. In order to predict different kinds of content efficiently, HEVC supports a range of prediction methods. In particular, planar and DC prediction modes are used to predict smooth and gradually changing regions, whereas directional prediction modes (also referred to as “angular prediction modes”) are used to capture different directional structures. HEVC supports 33 directional prediction modes which are indexed from 2 to 34. These prediction modes correspond to different prediction directions as illustrated in
FIG. 14B , wherein the numbers (i.e., 2, 3, . . . , 34) denote intra prediction mode indices. The prediction modes 2-17 are denoted as horizontal prediction modes (H−26 to H+32), as the predominant sources of prediction is in horizontal direction. The modes 18-34 are denoted as vertical prediction modes (V-32 to V+32) accordingly. “H” and “V” inFIG. 14B are used to indicate the horizontal and vertical directionalities, respectively, while the numeric part of the identifier indicates the pixels' displacement (also referred to as “angle parameter”) at 1/32 pixel fractions. - Table 1 shows the relationship between the directional prediction mode and the angle parameter A as specified by HEVC.
-
TABLE 1 Horizontal directions Mode index 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 A 32 26 21 17 13 9 5 2 0 −2 −5 −9 −13 −17 −21 −26 Vertical directions Mode index 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 A −32 −26 −21 −17 −13 −9 −5 −2 0 2 5 9 13 17 21 26 32 - The directions with non-negative displacements (i.e., H0 to H+32 and V0 to V+32) are also denoted as positive directions, and the directions with negative displacements (i.e., H−2 to H−26 and V−2 to V−32) are also denoted as negative directions.
- As shown in
FIG. 14B , the defined angular directions have a sample accuracy of 1/32. That is, between any two adjacent reference samples, there are 32 possible directions. As described above, the defined directions can be distinguished as either vertical or horizontal. The prediction modes in horizontal directions use either only left reference samples, or some left and some top reference samples. Similarly, the prediction modes in vertical directions use either only top reference samples, or some top and some left reference samples. The directions which use only left reference samples or only the top reference samples are defined to be positive directions. The horizontal positive directions from H0 to H+32 use only the left reference samples for prediction. Similarly, the vertical positive directions from V0 to V+32 use only the top reference samples for prediction. Negative horizontal and vertical directions (H−2 to H−26 and V−2 to V−32) use reference samples both on the left and on the top for prediction. - In HEVC reference code, a reference array is first constructed using the top and left reference samples. For vertical predictions, the reference array is horizontal (i.e., a reference row) and for horizontal predictions, the reference array is vertical (i.e., a reference column). For the modes with positive directions, the reference array is simply the top or left reference samples depending on the direction:
-
topRef[x]=R(x,0),0≤x≤2N, for vertical predictions -
leftRef[y]=R(0,y),0≤y≤2N, for horizontal predictions - For the modes with negative directions, the reference array needs pixels from both the top and left reference arrays. In this case, the reference array will extend to the negative indices beyond 0. Sample values on the reference array with positive indices are obtained as above depending on vertical or horizontal prediction. Those on the reference array with negative indices are obtained by projecting the left (for vertical predictions) or top reference pixels (for horizontal predictions) on the reference array in the prediction direction:
-
topRef[x]=R(0,(x*B+16)>>5?),−N≤x<0, for vertical predictions -
leftRef[y]=R((y*B+128)>>8,0),−N≤y<0, for horizontal predictions - where >> denotes a bit shift operation to the right and B represents the inverse angle parameter corresponding to angle parameter A.
- Once the reference array is constructed, the prediction at any pixel position (x,y) inside the target PU is obtained by projecting the pixel position to the reference array along the selected direction and interpolating a value for the same at 1/32 pixel accuracy. The predicted sample value is computed by interpolating between two closest reference samples:
-
P(x,y)=((32−f)*topRef[x+i]+f*topRef[x+i+1]+16)>>5),1<x,y<N, for vertical predictions (1) -
P(x,y)=((32−f)*leftRef[y+i]+f*leftRef[y+i+1]+16)>>5),1<x,y<N, for horizontal predictions, (2) - where i and f denote the integer part and the fractional part of the projected displacement from the pixel location (x,y). If Δ denotes the projected displacement, then
-
Δ=x*A, for horizontal predictions, and Δ=y*A, for vertical predictions. -
i=Δ>>5,f=Δ& 31 - where & denotes a bitwise AND operation. Note that, if f=0, that is, there is no fractional part, and the predicted sample value is equal to the reference array sample value in the direction of prediction.
- Some of the prediction modes such as the DC mode and directly horizontal (i.e., mode 10) and directly vertical modes (i.e., mode 26) may cause discontinuity at the CU boundaries of the prediction samples. Therefore, such prediction modes are followed by a post-processing step where the boundary of the predicted samples are smoothed using a low-pass filter. Here, directly horizontal mode refers to the prediction mode when the reference samples on the left side of a target block are repeated horizontally to the right for intra prediction. Similarly, directly vertical mode refers to the prediction mode when the reference samples on the top of a target block are repeated vertically down for intra prediction.
- Since there are multiple intra prediction modes available, the decoder needs the mode information to form the prediction for an intra-coded CU. The encoder encodes the mode information using a most probable mode (MPM) set for the luma component. HEVC specifies an MPM set consisting of three distinct modes, which is constructed from the prediction modes of the intra coded CUs on the top and left of the current CU, the planar mode, the DC mode, and the directly vertical mode.
- The applicable luma intra prediction mode for the current block can be coded using two different options. If the applicable mode is included in a constructed list of three most probable modes (MPM), the mode is signaled by an index in the MPM list. Otherwise, the mode is signaled by a fixed-length binarization of the mode index. The three most probable modes are derived from the intra prediction modes of the top and left neighboring blocks.
- For an inter CU, the corresponding coding block is further partitioned into one or more prediction blocks. Inter prediction is performed on the PB level, and the corresponding PU contains the information about how inter prediction is performed. The motion information (i.e., motion vector and reference picture index) can be signaled in two methods, namely, “merge mode” and “advanced motion vector prediction (AMVP)”.
- In the merge mode, a video encoder or decoder assembles a candidate list based on already coded blocks, and the video encoder signals an index for one of the candidates in the candidate list. At the decoder side, the motion vector (MV) and the reference picture index are reconstructed based on the signaled candidate.
- In AMVP, a video encoder or decoder assembles candidate lists based on motion vectors determined from already coded blocks. The video encoder then signals an index in the candidate list to identify a motion vector predictor (MVP) and signals a motion vector difference (MVD). At the decoder side, the motion vector (MV) is reconstructed as MVP+MVD. The applicable reference picture index is also explicitly coded in the PU syntax for AMVP.
- The prediction residuals are then transformed (125) and quantized (130). The quantized transform coefficients, as well as motion vectors and other syntax elements, are entropy coded (145) to output a bitstream. The encoder may also skip the transform and apply quantization directly to the non-transformed residual signal on a 4×4 TU basis. The encoder may also bypass both transform and quantization, i.e., the residual is coded directly without the application of the transform or quantization process. In direct PCM coding, no prediction is applied and the coding unit samples are directly coded into the bitstream.
- The encoder decodes an encoded block to provide a reference for further predictions. The quantized transform coefficients are de-quantized (140) and inverse transformed (150) to decode prediction residuals. Combining (155) the decoded prediction residuals and the predicted block, an image block is reconstructed. In-loop filters (165) are applied to the reconstructed picture, for example, to perform deblocking/SAO (Sample Adaptive Offset) filtering to reduce encoding artifacts. The filtered image is stored at a reference picture buffer (180).
-
FIG. 15 illustrates a block diagram of an exemplaryHEVC video decoder 300. In theexemplary decoder 300, a bitstream is decoded by the decoder elements as described below.Video decoder 300 generally performs a decoding pass reciprocal to the encoding pass as described inFIG. 13 , which performs video decoding as part of encoding video data. - In particular, the input of the decoder includes a video bitstream, which may be generated by
video encoder 100. The bitstream is first entropy decoded (330) to obtain transform coefficients, motion vectors, and other coded information. The transform coefficients are de-quantized (340) and inverse transformed (350) to decode the prediction residuals. Combining (355) the decoded prediction residuals and the predicted block, an image block is reconstructed. The predicted block may be obtained (370) from intra prediction (360) or motion-compensated prediction (i.e., inter prediction) (375). As described above, AMVP and merge mode techniques may be used to derive motion vectors for motion compensation, which may use interpolation filters to calculate interpolated values for sub-integer samples of a reference block. In-loop filters (365) are applied to the reconstructed image. The filtered image is stored at a reference picture buffer (380). - As described above, in HEVC, encoding of a frame of video sequence is based on a block structure. A frame is divided into square coding tree units (CTUs), which may undergo quadtree (QT) splitting to multiple coding units based on rate-distortion criteria. Each CU is either intra-predicted, that is spatially predicted from the causal neighbor CUs, or inter-predicted, that is, temporally predicted from reference frames already decoded. In I-slices all CUs are intra-predicted, whereas in P and B slices the CUs can be either intra or inter-predicted. For intra prediction, HEVC defines 35 prediction modes which include one planar mode (indexed as mode 0), one DC mode (indexed as mode 1) and 33 directional prediction modes (indexed as modes 2-34).
- In JEM (Joint Exploration Model) under study by the Joint Video Exploration Team (JVET) for designing the next generation video compression standard, the QTBT (Quadtree plus Binary Tree) structure removes the concept of multiple partition types in HEVC, i.e., removes the separation of CU, PU and TU concepts. A Coding Tree Unit (CTU) is firstly partitioned by a quadtree structure. The quadtree leaf nodes are further partitioned by a binary tree structure. The binary tree leaf node is named as Coding Units (CUs), which is used for prediction and transform without further partitioning. Thus, the CU, PU and TU have the same block size in the new coding QTBT block structure. In JEM, a CU consists of Coding Blocks (CBs) of different color components. For ease of notation, the CUs or blocks resulting from a binary tree partition are also referred to as binary tree (BT) CUs or blocks, and the CUs or blocks resulting from a quadtree partition are also referred to as quadtree (QT) CUs or blocks.
- As possible improvements to HEVC, JEM 3.0 uses 65 directional intra prediction modes in addition to the planar and DC modes. The modes are numbered from 2 to 66 in the increasing order, in the same fashion as done in HEVC from 2 to 34. The 65 directional prediction modes include the 33 directional prediction modes specified in HEVC plus 32 additional directional prediction modes that correspond to angles in-between two original angles. In other words, the prediction direction in JEM has twice the angle resolution of HEVC. The higher number of prediction modes has been proposed to exploit the possibility of angular structures with proposed larger block sizes.
- Corresponding to the higher number of modes, there is a higher number of angle parameter A values.
- In addition to square CUs, JEM can also have rectangular CUs because of the QTBT structure. In this case, for positive directions, the reference array is constructed as follows:
-
topRef[x]=R(x,0),0≤x≤W+H, for vertical predictions -
leftRef[y]=R(0,y),0≤y≤W+H, for horizontal predictions - where W and H denote the width and the height of the target CU, respectively. For negative directions, the reference array is constructed as above for positive indices. For negative indices, the projections of the left reference array (for vertical predictions) or top reference array (for horizontal predictions) are used:
-
topRef[x]=R(0,(x*B+16?)>>5?),−H≤x<0, for vertical predictions -
leftRef[y]=R((y*B+128)>>8,0),−W≤y<0, for horizontal predictions. - The prediction process basically remains the same as in HEVC. The pixel values are computed as:
-
P(x,y)=((32−f)*topRef[x+i]+f*topRef[x+i+1]+16)>>5,1<x<W,1<y<H, for vertical predictions (3) -
P(x,y)=((32−f)*leftRef[y+i]+f*leftRef[y+i+1]+16)>>5,1<x<W,1<y<H, for horizontal predictions. (4) - As described above, HEVC and JEM aim to model different directional structures by different angular prediction models. Depending on the directionality, some prediction directions are termed positive and some are termed negative. The prediction models work well when the intensity values do not change too much along the prediction direction. However, in natural imagery, the intensity values on objects often undergo changes due to several reasons. For example, because of a color property of the object itself, lighting, depth, motion, etc., the intensity values over a PU can undergo changes that cannot be sufficiently modelled using pixel repetition. This is especially true when the PU size is large, for example, JEM has proposed to use CTU sizes up to 256. Therefore, we may consider other prediction models that may model the intensity change more efficiently.
- Intra prediction is intended to exploit spatial correlation among pixels which belong to the same objects, backgrounds or regions. In this context, the intra prediction in video coding standards such as H.264/AVC, H.265/HEVC, or JEM has been designed to capture directionalities of object orientations and the slow changing intensity regions or textures. In HEVC, for example, the intra prediction includes 35 prediction modes which consist of one DC, one PLANAR, and 33 angular prediction modes. The angular modes are designed to model the directional structures of objects whereas the DC and the planar modes provide predictions for regions with slow and gradual intensity change and also for regions with varying textures. In the Joint Exploration Model (JEM), which aims at designing the future standard H.266, the number of prediction modes have been increased to 67 to accommodate further directions with bigger block sizes. In the case of directional prediction modes, the filtered pixel values from neighboring left and top neighbors are repeated in predefined directions followed by some post-filtering to eliminate abrupt changes at block boundaries in certain cases. In this disclosure, we propose to use interpolation besides simple pixel repetition for higher compression efficiency. While the pixel repetition is a good model for capturing the angularities of objects, it does not model the cases when the object intensities may change significantly. In such cases, prediction with interpolation can better model the directional structures leading to better compression efficiency.
- The idea of using interpolation had been proposed in the HEVC standardization process but was not included in the final standard because of added complexity with insufficient coding gain. They suffered from the following disadvantages: the interpolation calculation is approximate, only a few positive directions use interpolations, and the normal predictions for those directions are replaced by proposed interpolations. In the described embodiments herein, new and better interpolation methods are described than the ones proposed. This proposal is different from the earlier proposed methods in several aspects: it uses a different interpolation algorithm that uses the exact interpolation, rather than any approximation as done previously. Secondly, it can apply the interpolation to all positive directions, not just a subset of positive directions. Depending on the complexity requirements at the encoder and decoder, the number of directions over which the interpolation is applied can be decided a-priori. Third, it does not replace the normal prediction by interpolative prediction, but proposes to include the latter as an additional model for prediction. Depending on the RD performance, the encoder can decide between the normal prediction method or the proposed method, and the method selected can be signaled using a 1-bit flag.
- The general concepts described herein aim at improving the prediction efficiency in intra prediction. They propose to use interpolation instead of simple pixel repetition along positive directions whenever the interpolation gives better RD performance. Interpolation requires two or more reference pixels. For strictly positive prediction modes, certain pixels in a target CU can have two reference samples at both ends of the prediction direction. In such cases, we propose to use the linear interpolation as an alternative prediction. For the other pixels who have only one reference sample, we propose to use estimated reference samples at the bottom of the CU which serve as second reference samples. These reference samples are estimated using the top and left reference samples.
- Intra prediction in video compression refers to the spatial prediction of a block of pixels using the information from the causal neighbor blocks, that is, the neighboring blocks in the same frame which have already been decoded. This is a powerful coding tool since it allows for high compression efficiency in INTRA frames, as well as in INTER frames whenever there is no better temporal prediction. Therefore, intra prediction has been included as a core coding tool in all video compression standards including H.264/AVC, HEVC, etc. In the following, for explanation purpose, we will refer to the intra prediction in HEVC standard and the current efforts to improve upon it, such as the JEM.
- In HEVC, encoding of a frame of video sequence is based on a quad-tree (QT) block structure. A frame is divided into square coding tree units (CTUs) which all undergo quad-tree based splitting to multiple coding units (CUs) based on rate-distortion criteria. Each CU contains at least one prediction unit (PU), which are the basis blocks for prediction tools. In Intra prediction, a PU is spatially predicted from the causal neighbor PUs, i.e., the PUs on the top and the left. For that purpose, HEVC uses simple spatial models called prediction modes. Based on the decoded pixel values in the top and left PUs, called reference pixels, the encoder constructs different predictions for the target block and chooses the one that leads to the best RD performance. Out of the 35 defined modes, one is a planar mode (indexed as mode 0), one is a DC mode (indexed as mode 1) and the remaining 33 (indexed as mode 2-34) are angular modes. The angular modes aim to model the directional structures of objects in a frame. Therefore, the decoded pixel values in the top and left CUs are simply repeated along the defined directions to fill up the target block. Since this process can lead to discontinuities along the top and left reference boundaries for certain modes, those prediction modes include a subsequent post-filtering to smoothen the pixel values along those boundaries.
- The above prediction models work very well as long as the intensity values do not change too much. However, in natural imagery, the intensity values on objects often undergo changes due to several reasons. Either as a color property of the object itself, or because of lighting, depth, motion, etc., the intensity values over a PU can undergo changes which cannot be sufficiently modelled using pixel repetition. This is especially true when the PU size is large. In JEM, it has been proposed to use CTU sizes up to 256. Therefore, it is more meaningful to consider other prediction models such as interpolation which will model the intensity change much more efficiently.
- Before we describe the proposed interpolation models, we briefly present the intra prediction in HEVC in the following.
- The intra prediction process in HEVC consists of three steps: (1) reference sample generation (2) intra sample prediction and (3) post-processing of predicted samples. The reference sample generation process is illustrated in
FIG. 1 . For a PU of size N×N, a row of 2N decoded samples on the top is formed from the previously reconstructed top and top right pixels to the current PU. Similarly, a column of 2N samples on the left is formed from the reconstructed left and below left pixels. The corner pixel at the top-left position is also used to fill up the gap between the top row and the left column references. If some of the samples on top or left are not available, because of the corresponding CUs not being in the same slice, or the current CU being at a frame boundary, etc., then a method called reference sample substitution is performed where the missing samples are copied from the available samples in a clock-wise direction. Then, depending on the current CU size and the prediction mode, the reference samples are filtered using a specified filter. - The next step, i.e., the intra sample prediction, consists of predicting the pixels of the target CU based on the reference samples. As mentioned before, in order to predict different kinds of content efficiently, HEVC supports a range of prediction models. Planar and DC prediction modes are used to predict smooth and gradually changing regions, whereas angular prediction modes are used to capture different directional structures. HEVC supports 33 directional prediction modes which are indexed from 2 to 34. These prediction modes correspond to different prediction directions as illustrated in
FIG. 2 . The number denotes the prediction mode index associated with the corresponding direction. Themodes 2 to 17 indicate horizontal predictions (H−26 to H+32) and themodes 18 to 34 indicate vertical predictions (V−32 to V+32). - As shown in
FIG. 2 , the defined angular directions have a sample accuracy of 1/32. That is, between any two adjacent reference samples, there are 32 possible directions. The defined directions can be distinguished as either vertical or horizontal. The predictions in horizontal directions use either only left reference samples or some left and some top reference samples. Similarly, the predictions in vertical directions use either only top reference samples or some top and some left reference samples. The directions which use only left reference samples or only the top reference samples are defined to be positive directions. Thus, we have horizontal positive directions from H0 to H+32 that use only the left reference samples. Similarly, we have vertical positive directions from V0 to V+32 that use only the top reference samples. Other horizontal and vertical directions (H−2 to H−26 and V−2 to V−32) are defined to be negative directions and they use reference samples both on the left and on the top. Table 1 shows the relationship between the prediction mode and the angle parameter A as specified by HEVC. - In HEVC reference code, a reference array is first constructed using the top and left reference samples. For vertical predictions, the reference array is horizontal and for horizontal predictions, the reference array is vertical. For the modes with positive angle parameter A (
modes 2 to 10 and 26 to 34), the reference array is simply the top or left reference samples depending on the direction: -
topRef[x]=P[x−1][−1],0≤x≤2N, for vertical predictions -
leftRef[y]=P[−1][y−1],0<y<2N, for horizontal predictions - where N is the CU size. It is conventional to initialize the sample co-ordinates to (0,0) at the top-left pixel of the target CU. Therefore, the top reference samples will have their y-coordinate as −1 and the left reference samples will have their x-co-ordinate as −1.
- For the modes with negative angle parameter A (
modes 11 to 25), the reference array needs pixels from both the top and left reference. In this case, the reference array will extend to the negative indices beyond 0. Sample values on the reference array with positive indices are obtained as above depending on vertical or horizontal prediction. Those on the reference array with negative indices are obtained by projecting the left (for vertical predictions) or top reference pixels (for horizontal predictions) on the reference array along the prediction direction. - Once the reference array is constructed, the prediction at any pixel position (x, y) inside the target CU is obtained by projecting the pixel position to the reference array along the selected direction and then copying the reference array sample value at (x,y). The reference sample value is computed at a sample resolution of ( 1/32) by interpolating between two adjacent samples as illustrated below:
-
P[x][y]=((32−f)*topRef[x+i+1]+f*topRef[x+i+2]+16)>>5),0≤x,y<Nfor vertical predictions -
P[x][y]=((32−f)*leftRef[y+i+1]+f*leftRef[y+i+2]+16)>>5),0≤x,y<N, for horizontal predictions, - where i and f denote the integer part and the fractional part of the projected displacement from the pixel location (x,y).
- If Δ denotes the projected displacement, then
-
Δ=(x+1)*A, for horizontal predictions, and -
Δ=(y+1)*A, for vertical predictions. -
i=Δ>>5, -
f=Δ& 31. - Notice that, if f=0, that is, there is no fractional part, then the prediction is equal to the reference array sample in the direction of prediction.
- As we observe from the above expressions, the vertical predictions are independent of the y-coordinate and the horizontal predictions are independent of the x-coordinate. This means that, for vertical predictions, the prediction values are repeated along the direction of prediction from the reference array on the top. Similarly, for horizontal predictions, the prediction values are repeated along the direction of prediction from the reference array on the left. Therefore, if two or more pixel co-ordinates have the same projection point on the reference array, they have identical prediction values.
- In the JEM code the number of prediction modes has been increased to 67, which includes one planar mode, one DC mode, and 65 angular modes. The higher number of angular modes correspond to 65 prediction directions where the prediction directions correspond to the 33 directions in HEVC plus additional 32 directions that correspond to the middle of any two adjacent directions. In other words, the prediction direction in JEM has twice the angle resolution of HEVC. The higher number of prediction modes have been proposed to exploit the possibility of such angular structures with proposed higher block sizes. Corresponding to higher number of modes, we have higher number of angle parameter A values. The modes are numbered from 2 to 66 in the increasing order and in the same fashion as done in HEVC from 2 to 34.
- In addition to the square CUs, JEM can also have rectangular CUs because of quad-tree and binary-tree (QTBT) structure. In this case, for positive directions, the reference array is constructed as follows:
-
topRef[x]=P[x−1][−1],0≤x≤W+H, for vertical predictions -
leftRef[y]=P[−1][y−1],0≤y≤W+H, for horizontal predictions - where W and H denote the width and the height of the target CU, respectively. The prediction process basically remains the same as in HEVC. The pixel values are computed as:
-
P[x][y]=((32−f)*topRef[x+i+1]+f*topRef[x+i+2]+16)>>5,0<x<W,0<y<H,for vertical predictions -
P[x][y]=((32−f)*leftRef[y+i+1]+f*leftRef[y+i+2]+16)>>5,0≤x<W,0≤y<H, for horizontal predictions, - As in HEVC, the directions have a sample accuracy of ( 1/32).
- Some of the prediction modes such as the DC mode and directly horizontal (H0 or 10) and vertical modes (V0 or 26) may cause discontinuity at the CU boundaries after the prediction. Therefore, in HEVC, as well as in JEM, such prediction modes are followed by a post-processing step where the boundary predicted samples are smoothed using a low-pass filter.
- As shown in the previous section, all the angular prediction models in HEVC or JEM use samples on the reference array and repeat the values along the direction of prediction. Only for some predictions, the boundary pixels are low-pass filtered to avoid discontinuity. But then the number of boundary pixels affected by the filtering process is limited, from one to a few pixels. These prediction models are good as long as the change in intensity values along the selected directions is small. In natural imagery, it is common to have varying intensity values because of various reasons. Especially, when the CU size is large, it is more common to have higher changes in intensity values where directional structures span larger lengths. Therefore, a better approach would be to use models of intensity gradient. One such model is interpolation, which interpolates pixel values in-between two or more known pixel values.
- As shown in the previous section, HEVC and JEM aim to model different directional structures by different angular prediction models. Depending on the directionality, some prediction models are termed positive and some are termed negative. Notice that, for strictly positive angular predictions (i.e., with A>0), if the prediction direction is extended for some pixels in the opposite direction of the reference array, it intersects the other reference. For example, for vertical positive directions, the extension will intersect the left reference column. Similarly, for horizontal positive directions, the extension will intersect the top reference row. This is shown in
FIG. 3 . However, also note that, since the reference row on the top and the column on the left have finite lengths (2N in HEVC, H+W in JEM), predictions for some pixels, when extended in the opposite direction, will miss the other reference (SeeFIG. 4 ). For only the first and last angular prediction modes (2 and 34 in HEVC, 2 and 66 in JEM), all pixels in the target CU will have their prediction direction intersect the opposite reference when extended. This is shown inFIG. 5 . - The idea of copying the prediction at any pixel from the reference array is based on the intuition that, if any object in the CU has the selected directionality, the pixel value at the reference array and the pixel inside the CU will be correlated. For positive prediction directions, the directionalities intersect the CUs on the top and the left side of the current CU. Therefore, if the extended predictions intersect the other reference pixels, it is natural to expect that the reference pixel value at the intersection point will also be correlated to the target pixel inside the CU. This gives us the idea that we can improve the prediction value of the pixel inside the CU using two reference pixels instead of just the one pixel value on the reference array. The simplest way to do this is through linear interpolation, which we explain in the next section.
- Linear interpolation is a well-known mathematical technique to compute the value of a 1-D function at an intermediate point lying between two other points, where its values are known. If f(x) denotes a function whose values at x=a and x=b, b>a, are known, then its values at any point x, a≤x≤b, can be obtained by interpolation. The underlying assumption is that the function varies linearly between the given two points a, b and therefore given its values at x=a and x=b, its value at any other point between a and b can be determined exactly. On the other hand, if the function is not a linear one but its values are known only at two points, then the best we can do is to model the function as a straight line.
- Consider the function f(x) in
FIG. 6 . Let f(a) and f(b) denote its values at x=a and at x=b, respectively. Let us denote the length of the line segment between a and b as d≡|b−a|. Then, using linear interpolation, the value of f at a point c which is at 1 distance from a and r distance from b is found as: -
- This interpolation formula gives a value which lies between the two known values. That is, f(a)≤f(c)≤f(b) if f(b)≥f(a), or f(a)≥f(c)≥f(b) if f(b)≤f(a). As c gets closer to a, f(c) gets closer to f(a). Similarly, if c gets closer to b, f(c) gets closer to f(b). Finally if c=a, then f(c)=f(a), or if c=b, f(c)=f(b). The above interpolation formula can be rewritten as:
-
- where
-
- denotes the change with respect to f (a). We can also write Δf(a)=l*m, where m denotes the slope of the line segment. As we see, Δf(a) is a function of only the distance between c and a, that is, l, since, for given values at a and b, the slope is fixed.
- If the function f represents the intensity in an image, the above formula can be used to interpolate pixel intensity at any pixel position that lies on a line segment joining two pixel locations. If P[x1] [y1] and P [x2] [y2] represent the pixel intensities at (x1, y1) and (x2, y2), respectively, then the intensity at (x, y), which lies on the line joining (x1, y1) and (x2, y2) can be computed as:
-
P[x][y]=P[x1][y1]+ΔP, - where
-
- d represents the distance between (x1, y1) and (x2, y2), l represents the distance between (x, y) and (x1, y1). Δp represents the change in pixel intensity with respect to the value at (x1, y1). In image processing, it is customary to use bilinear interpolation, that uses four pixel values, to interpolate intermediate pixel values; but since we want to preserve directionality of structures, we will apply only linear interpolation along the prediction directions.
- In the following, for the clarity of presentation, the interpolation theory is presented only for the positive vertical predictions. For positive horizontal predictions, the theory remains the same since horizontal predictions can be implemented by swapping the top reference and the side reference and swapping the height and the width. Also for the sake of generality, we assume rectangular CUs since square CUs are just special cases as far as prediction is concerned. Note that, in quad-tree binary-tree (QTBT) partitioning, as done in JEM, we will have both square and rectangular CUs whereas in quad-tree partitioning as done in HEVC, we will have only square CUs. Therefore, the theory will be valid for both kinds of partitioning structures.
- Refer to
FIG. 8 . For easier explanation, we have displaced the origin of the co-ordinate system to the location of the top-left neighbor pixel of the target block. Therefore, the origin now coincides with the first sample of the top reference as well as the first sample of the left reference. We are interested in predicting the value of a pixel located at (x, y), 0≤x<W, 0≤y<H, in the target block. The co-ordinate of the pixel is (1+x, 1+y) in the new co-ordinate system. For the positive direction as shown, let (s, 0) denote the co-ordinate of the top reference sample (either one of the pixels or interpolated at resolution ( 1/32)) that would be normally copied at the target location. We will refer to the sample at (s, 0) as the first reference sample for the target pixel. We extend the prediction direction towards bottom left and let (0, t) denote the co-ordinate of the left reference sample (either one of the pixels or interpolated at resolution ( 1/32)). Both s and t have a sample resolution of ( 1/32). We will refer to the sample at (0, t) as the second reference sample for the target pixel. - Let Δx denote the projected displacement on the top reference. Similarly let Δy denote the projected displacement on the left reference. For positive prediction
-
Δx>=0, and -
Δy≥0. - As we have seen earlier, for an angle parameter A, Δx is given as
-
Δx=(1+y)*A - To compute Δy, we proceed as follows. First, using the projected displacements, we get
-
s=((1+x)<<5)+Δx, -
t=((1+y)<<5)+Δy. - Using similarity of triangles, we get:
-
- From this we get,
-
- Comparing this with the expression for t earlier, we get
-
- For implementation purpose, we can use
-
- Let ix and fx denote the integer part and the fractional part of Δx. That is,
-
i x=Δx>>5, and -
f x=Δx & 31. - Let P1 denote the first reference sample value. Then as we have seen earlier:
-
P 1=((32−f x)*topRef[x+i x+1]+f x*topRef[x+i x+2]+16)>>5. - Similarly, let iy and fy denote the integer part and the fractional part of Δy. That is,
-
i y=Δy>>5, and -
f y=Δy & 31. - Let P2 denote the second reference sample value. Then
-
P 2=(32−f y)*leftRef[y+i y+1]+f y*leftRef[y+i y+2]+16)>>5. - Denoting the distance of the pixel at (x,y) in the target block from the reference samples at (s, 0) and (0, t) by L and R, respectively, we can interpolate the value at (x,y) as:
-
- where D≡L+R, and
-
- ΔP here presents the change in prediction value with respect to the first reference sample.
- In the current prediction method, only P1 is used as the prediction. As we see here, in the interpolation approach, we just need to add an additional term to the existing prediction value. The additional term depends on the ratio
-
- and the difference between the two reference sample values.
- The ratio
-
- can be calculated using triangle similarity. Referring to
FIG. 8 , we see that -
- Therefore, the update term can be computed as
-
- Finally the interpolated value at target pixel position (x, y) is given as:
-
- In the present HEVC and JEM reference softwares, Δx and the prediction value P1 are already computed and available. Here are the additional steps for getting the interpolated prediction:
- 1. Compute Δy using the expression mentioned earlier.
- 2. Compute the integer part and the fractional part of Δy. Using these, compute the second reference sample value P2 on the left reference.
- 3. Compute s and compute the update term. Add the update term to the existing prediction value.
- As illustrated earlier, there may be some pixels for which the extension of prediction direction will not intersect the left reference. That is, we do not have a second reference sample. For these cases, we will have the integral part of t larger than the length of the left reference, that is, W+H. If we follow the existing prediction, i.e., repetition for these pixels and interpolation for the others, then there may be sharp discontinuities in the prediction inside the target block. To avoid this and to have smooth interpolation inside the target block, we will apply interpolation to all pixels inside the target block. Therefore, we need to find techniques which will still correspond to the physical notion of interpolation and be meaningful in the present context. In any case, we need to compute only the update term mentioned in the previous paragraph. Depending on how we calculate this term, we present four different interpolation methods in the following.
-
Interpolation Method 1 - In this method, we assume that the last pixel value of the left reference is repeated beyond its size. Therefore, for any target pixel, if the second reference sample falls beyond the length of the left reference, we just use the last reference sample, that is, the sample at H+W. Consequently, theoretically, the left reference is extended below as much as required, as shown in
FIG. 9 . - Recall that the integer and the fractional parts of Δy are iy and fy. Therefore, to compute the second reference sample, we do as follows:
-
if 1+y+i y ≥W+H,P 2=leftRef[W+H]; -
Else, -
P 2=(32−f y)*leftRef[y+i y+1]+f y*leftRef[y+i y+2]+16)>>5. - The rest of the steps remain the same as in the previous section.
-
Interpolation Method 2 - In this method, for the target pixels not having a second reference sample, we estimate a bottom row reference as shown in
FIG. 10 and use the sample on it as the second reference. The sample values on the bottom reference are all identical and they are equal to the last sample of the left reference. Note that this is an estimated reference, not a true reference since those sample values are not yet decoded. - For the pixels not having a second reference pixel, 1+y+iy≥W+H. In this case, the extension of the prediction direction will intersect the bottom reference. Therefore, the length R, which is the distance between the target pixel and the second reference sample is now changed. The new R now refers to the distance between the location of the target pixel and the reference sample on the bottom reference. Now using triangle similarity, we get
-
- Therefore, the interpolation is given as follows:
-
If i+y+i y <W+H, interpolation is done as insection 5. - Else,
-
-
Interpolation Method 3 - In this method, we do as in
Method 2 but estimate the bottom reference differently. Instead of repeating the last sample value of the left reference leftRef[W+H], we estimate the sample values using the last sample of top reference and the last sample of the left reference. - Refer to
FIG. 11 . Let d represent the distance from the left reference at which the extension of the prediction direction intersects the bottom reference. d can be calculated using triangle similarity as -
- Hence,
-
- This can be expressed, for implementation, as
-
- To compute the second reference sample P2, first we estimate the reference sample at (W+H, W+H) as
-
P[W+H][W+H]=(topRef[W+H]+leftRef[W+H])/2. - Then we estimate the second reference sample using linear interpolation
-
- Now the interpolation at the target pixel is done as follows:
-
If i+y+i y <W+H, interpolation is done as insection 5. - Else, compute P2 as above. Then compute ΔP and P[x][y] as
-
-
Interpolation Method 4 - In
method 3, we used a bottom reference length of (W+H). And estimated the values using leftRef[W+H] and topRef[W+H]. But for the interpolation of target pixels, we do not need a bottom reference of length W+H. This is because, for all positive vertical predictions, the second reference samples, if they are on the bottom reference, will lie within a distance of W. Secondly, we also observe that those bottom reference samples are closer to topRef[W] than topRef[W+H]. Therefore, for more accurate estimation of bottom reference, we can use topRef[W] instead of topRef[W+H] for bottom reference sample estimation. This is shown inFIG. 12 . - As in
method 3, first we calculate the distance d at which the extension intersects the bottom reference line: -
- We estimate the reference sample at (W, W+H) as a weighted average:
-
P[W][W+H]=(W*topRef[W]+(H+W)*left Ref[W+H]+((2*W+>>1))/(2*W+H). - Then we estimate the reference sample at distance d:
-
- The interpolation at the target pixel is given as follows:
-
If i+y+i y <W+H, interpolation is as insection 5. - Else, compute P2 as above. Then compute ΔP and P[x][y] as
-
- Note that, in all methods, for the pixels where the extension of the prediction direction intersects the left reference, i.e, when the true second reference is available, the interpolation is the same. They only differ for the pixels where the true second reference sample is not available, because the extension of the prediction direction misses the left reference.
- Chroma Interpolation
- In HEVC, the chroma components' prediction is dependent on the LUMA component prediction mode. The chroma components are tested only with 5 prediction modes for selecting the best prediction mode. The modes are PLANAR, DC, purely horizontal (mode 10), purely vertical (mode 26), and the prediction mode of the LUMA component, called the direct (or derived) mode. If the direct mode equals any of the previous four, that is, planar, dc, purely horizontal, and purely vertical, then the vertical
diagonal mode 34 is substituted for that mode. - In JEM, in addition to these five prediction modes (that is, planar (mode 0), DC (mode 1), purely horizontal (mode 18), purely vertical (mode 50), and the direct mode) there is a new mode called LM-Chroma. But the new mode does not use any of the defined prediction modes, rather the prediction is constructed from the reconstructed LUMA block. In order to differentiate the direct mode from LM-CHROMA, the direct mode is called the DM_CHROMA mode. If the DM-CHROMA mode equals one of the fixed four modes (i.e., planar, DC, purely horizontal, and purely vertical), then the vertical diagonal mode 66 is substituted for that mode.
- Furthermore, unlike in HEVC, in JEM the chroma CU partitioning is de-coupled from the LUMA CU partitioning in INTRA frames. Therefore, the DM_CHROMA mode may correspond to the prediction mode of a LUMA CU which does not spatially correspond to the chroma CU under consideration
- In the proposed interpolation, we perform interpolation for the direct mode (in HEVC) or the DM_CHROMA mode (in JEM) if the mode is strictly positive, either vertical or horizontal.
- Signaling of Interpolation
- The interpolative predictions that we proposed above are models based on our physical intuition of object orientations and intensity variation in an image. They do not guarantee that the resulting RD performance will be necessarily better than the plain reference sample repetition. Therefore, under the present aspects described herein, it is proposed to include interpolation as an option by enabling a flag in the SPS, or PPS, or slice header.
- Once the flag is enabled, every INTRA CU having a positive angular prediction will have either interpolative prediction or plain sample repetitive prediction. This is signaled to the decoder using a 1-bit flag. The 1-bit flag is context-encoded using
context 0. - For the chroma components, we can follow one of two signaling approaches. In one approach, we can transmit one bit signaling if the corresponding chroma CU uses interpolation or not, independent of the luma CU signaling. The one-bit flag can be context-encoded using either
context 0, or a mode-dependent context. The second approach is to use no additional signaling for the chroma components' prediction. Rather, the chroma components can use the same signaling as the luma CU at the center or top-left corner of the CTU. In this approach, if the luma signaling flag is enabled and the direct mode (in HEVC) or DM_Chroma (in JEM) is strictly negative, then the CU is predicted with interpolation, else the usual angular prediction is performed. - In the following section, we present several embodiments taking the above methods into consideration.
- In the following embodiments, we assume the JEM codec, which is based on the HEVC codec. Except for the intra prediction with positive angular modes, every other tool remains unchanged. The flag indicating the interpolative prediction is context encoded with context zero. The proposed intra-prediction tools such as PDPC, NSST, EMT, etc., also remain unchanged. The chroma interpolation flag is derived from that of the luma CU located at the center of the CTU.
- In this embodiment, we perform
interpolation using method 1 described in section 5.1. The set of angular modes of prediction for which interpolation will be available can be one or more positive directions. For a Luma CU having one such prediction mode, the encoder decides between the interpolation prediction or the usual prediction based on the RD performance and this is signaled using a 1-bit flag which is context encoded withcontext 0. The decoder decodes the signaling flag only if the prediction mode belongs to the selected set. If the prediction mode does not belong to the set, the decoder does not decode any signaling flag and a default value of zero is assumed for the signaling flag. For the Chroma CU, the signaling flag used with the center Luma CU is used to decide if to perform interpolation with the DM_Chroma mode. If there is no signaling flag for the Luma CU (because its prediction mode does not fall in the set of modes which can undergo interpolation), a default value of 0 is used indicating the normal prediction. - In this embodiment, we perform
interpolation using method 2 described in section 5.2. The set of angular modes of prediction for which interpolation will be available can be one or more positive directions. For a Luma CU having one such prediction mode, the encoder decides between the interpolation prediction or the usual prediction based on the RD performance and this is signaled using a 1-bit flag which is context encoded withcontext 0. The decoder decodes the signaling flag only if the prediction mode belongs to the selected set. If the prediction mode does not belong to the set, the decoder does not decode any signaling flag and a default value of zero is assumed for the signaling flag. For the Chroma CU, the signaling flag used with the center Luma CU is used to decide if to perform interpolation with the DM_Chroma mode. If there is no signaling flag for the Luma CU (because its prediction mode does not fall in the set of modes which can undergo interpolation), a default value of 0 is used indicating the normal prediction. - In this embodiment, we perform
interpolation using method 3 described in section 5.3. The set of angular modes of prediction for which interpolation will be available can be one or more positive directions. For a Luma CU having one such prediction mode, the encoder decides between the interpolation prediction or the usual prediction based on the RD performance and this is signaled using a 1-bit flag which is context encoded withcontext 0. The decoder decodes the signaling flag only if the prediction mode belongs to the selected set. If the prediction mode does not belong to the set, the decoder does not decode any signaling flag and a default value of zero is assumed for the signaling flag. For the Chroma CU, the signaling flag used with the center Luma CU is used to decide if to perform interpolation with the DM_Chroma mode. If there is no signaling flag for the Luma CU (because its prediction mode does not fall in the set of modes which can undergo interpolation), a default value of 0 is used indicating the normal prediction. - In this embodiment, we perform
interpolation using method 4 described in section 5.4. The set of angular modes of prediction for which interpolation will be available can be one or more positive directions. For a Luma CU having one such prediction mode, the encoder decides between the interpolation prediction or the usual prediction based on the RD performance and this is signaled using a 1-bit flag which is context encoded withcontext 0. The decoder decodes the signaling flag only if the prediction mode belongs to the selected set. If the prediction mode does not belong to the set, the decoder does not decode any signaling flag and a default value of zero is assumed for the signaling flag. For the Chroma CU, the signaling flag used with the center Luma CU is used to decide if to perform interpolation with the DM_Chroma mode. If there is no signaling flag for the Luma CU (because its prediction mode does not fall in the set of modes which can undergo interpolation), a default value of 0 is used indicating the normal prediction. - In this embodiment, we perform interpolation as in embodiments 1-4, except that the signaling flag is context-encoded using a mode-dependent context rather than
context 0. - In this embodiment, we perform interpolation as in embodiments 1-5, but use a separate signaling flag for the chroma components. The signaling flag is context-encoded with context zero.
- In this embodiment, we perform interpolation as in
embodiments 6, but the signaling flag for the chroma components is context-encoded with a mode-dependent context. - In this embodiment, we follow any one of the embodiments 1-4. The option of adding interpolation is signaled in the slice header indicating that all CUs in a slice can use interpolation option.
- In this embodiment, we follow any one of the embodiments 1-4. The option of adding interpolation is signaled in the PPS header indicating that all CUs in a frame can use interpolation option.
- In this embodiment, we follow any one of the embodiments 1-4. The option of adding interpolation is signaled in the SPS header indicating that all frames in the sequence can use the interpolation option.
- The proposed interpolation methods will model object orientations with improved intensity variation over a normal repetitive prediction leading to better RD performance.
- One embodiment of a
method 1600 under the general aspects is illustrated inFIG. 16 . The method commences atStart block 1601 and proceeds to functionblock 1610 for determining whether to encode or decode a block using intra prediction or interpolation prediction. If it is determined that intra prediction is to be used, a normal intra prediction operation is performed. If, however, it is determined that an interpolation prediction is to be used, control proceeds fromblock 1610 to functionblock 1620 for identifying an interpolation prediction mode for the block. Control then proceeds fromfunction block 1620 to functionblock 1630 for determining whether one or more samples to be used in the interpolation prediction are excluded from a reference set of samples. If it is determined that samples to be used in the interpolation prediction are included in the reference set of samples, control proceeds fromfunction block 1630 to functionblock 1650 for performing an interpolation prediction in the particular direction according to the interpolation prediction mode using reference samples in the set. If, however, it is determined that samples to be used in the interpolation prediction are excluded from the set of reference samples, control proceeds fromfunction block 1630 to functionblock 1640 for using a substitute reference sample in the interpolation prediction. The substitute reference sample or samples can be obtained using one of the aforementioned interpolation methods that find a substitute reference sample to be used in the interpolation process. - One embodiment of an
apparatus 1700 for encoding or decoding a video block under the present aspects is illustrated inFIG. 17 . The apparatus comprises amemory 1720 in signal communication with aprocessor 1710. Thememory 1720 andprocessor 1710 can have various other input and output ports.Processor 1710 is configured to determine whether to encode or decode a block in a video image using intra prediction or interpolation prediction. If it is determined to use interpolation prediction, the processor performs identifying an interpolation prediction mode for the block, the mode having a particular direction of prediction; determining, for the identified interpolation prediction mode, whether one or more samples to be used for the interpolation are excluded from a reference section for performing the interpolation prediction in the particular direction. If it is determined that one or more of the samples are excluded from the reference section, the processor uses a substitute reference sample in performing interpolation prediction. If it is determined that one or more of the samples are included in the reference section, the processor performs an interpolation prediction in the particular direction according to the interpolation prediction mode using reference samples. - The functions of the various elements shown in the figures may be provided through the use of dedicated hardware as well as hardware capable of executing software in association with appropriate software. When provided by a processor, the functions may be provided by a single dedicated processor, by a single shared processor, or by a plurality of individual processors, some of which may be shared. Moreover, explicit use of the term “processor” or “controller” should not be construed to refer exclusively to hardware capable of executing software, and may implicitly include, without limitation, digital signal processor (“DSP”) hardware, read-only memory (“ROM”) for storing software, random access memory (“RAM”), and non-volatile storage.
- Other hardware, conventional and/or custom, may also be included. Similarly, any switches shown in the figures are conceptual only. Their function may be carried out through the operation of program logic, through dedicated logic, through the interaction of program control and dedicated logic, or even manually, the particular technique being selectable by the implementer as more specifically understood from the context.
- The present description illustrates the present principles. It will thus be appreciated that those skilled in the art will be able to devise various arrangements that, although not explicitly described or shown herein, embody the present principles and are included within its spirit and scope.
- All examples and conditional language recited herein are intended for pedagogical purposes to aid the reader in understanding the present principles and the concepts contributed by the inventor(s) to furthering the art, and are to be construed as being without limitation to such specifically recited examples and conditions.
- Moreover, all statements herein reciting principles, aspects, and embodiments of the present principles, as well as specific examples thereof, are intended to encompass both structural and functional equivalents thereof. Additionally, it is intended that such equivalents include both currently known equivalents as well as equivalents developed in the future, i.e., any elements developed that perform the same function, regardless of structure.
- Thus, for example, it will be appreciated by those skilled in the art that the block diagrams presented herein represent conceptual views of illustrative circuitry embodying the present principles. Similarly, it will be appreciated that any flow charts, flow diagrams, state transition diagrams, pseudocode, and the like represent various processes which may be substantially represented in computer readable media and so executed by a computer or processor, whether or not such computer or processor is explicitly shown. In the claims hereof, any element expressed as a means for performing a specified function is intended to encompass any way of performing that function including, for example, a) a combination of circuit elements that performs that function or b) software in any form, including, therefore, firmware, microcode or the like, combined with appropriate circuitry for executing that software to perform the function. The present principles as defined by such claims reside in the fact that the functionalities provided by the various recited means are combined and brought together in the manner which the claims call for. It is thus regarded that any means that can provide those functionalities are equivalent to those shown herein.
- Reference in the specification to “one embodiment” or “an embodiment” of the present principles, as well as other variations thereof, means that a particular feature, structure, characteristic, and so forth described in connection with the embodiment is included in at least one embodiment of the present principles. Thus, the appearances of the phrase “in one embodiment” or “in an embodiment”, as well any other variations, appearing in various places throughout the specification are not necessarily all referring to the same embodiment.
- In conclusion, an improved method of performing intra prediction for encoding or decoding is provided that uses interpolation. In the interpolation, substitute samples are found for samples to be used in the interpolation calculation that lie outside a normal reference range. The substitute samples can be repeated end samples from the bottom of a reference portion to the left of the target block, or right samples of a reference portion above the target block, or some calculated or estimated value based on known reference samples. An encoder can signal to a decoder whether to use intra prediction or interpolation prediction.
Claims (2)
1.-13. (canceled)
14. A method, comprising:
determining whether to encode a block in a video image using intra prediction or intra prediction with pixel interpolation, wherein intra prediction with pixel interpolation comprises using a linear interpolation of a neighboring reference pixel from a top reference section above the block and a neighboring reference pixel from a left reference section left of the block;
on condition it is determined to use intra prediction with pixel interpolation:
identifying a prediction mode for the block, the prediction mode having a particular direction of prediction;
determining, for the identified prediction mode, whether a reference sample to be used for the interpolation is excluded from the left reference section for performing the intra prediction with pixel interpolation in the particular direction; and
on condition it is determined that the reference sample is excluded from the left reference section, performing the intra prediction with pixel interpolation in the particular direction using a substitute reference sample,
wherein the substitute reference sample is determined from a first reference sample corresponding to a width of the block in the top reference section and a second reference sample corresponding to a sum of the width and a height of the block in the left reference section.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
US17/387,197 US20220060746A1 (en) | 2017-05-31 | 2021-07-28 | Method and apparatus for intra prediction with interpolation |
Applications Claiming Priority (5)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
EP17305635.9A EP3410708A1 (en) | 2017-05-31 | 2017-05-31 | Method and apparatus for intra prediction with interpolation |
EP17305635.9 | 2017-05-31 | ||
PCT/EP2018/064186 WO2018220012A1 (en) | 2017-05-31 | 2018-05-30 | Method and apparatus for intra prediction with interpolation |
US201916617180A | 2019-11-26 | 2019-11-26 | |
US17/387,197 US20220060746A1 (en) | 2017-05-31 | 2021-07-28 | Method and apparatus for intra prediction with interpolation |
Related Parent Applications (2)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/EP2018/064186 Continuation WO2018220012A1 (en) | 2017-05-31 | 2018-05-30 | Method and apparatus for intra prediction with interpolation |
US16/617,180 Continuation US11102510B2 (en) | 2017-05-31 | 2018-05-30 | Method and apparatus for intra prediction with interpolation |
Publications (1)
Publication Number | Publication Date |
---|---|
US20220060746A1 true US20220060746A1 (en) | 2022-02-24 |
Family
ID=59034684
Family Applications (2)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
US16/617,180 Active 2038-08-17 US11102510B2 (en) | 2017-05-31 | 2018-05-30 | Method and apparatus for intra prediction with interpolation |
US17/387,197 Abandoned US20220060746A1 (en) | 2017-05-31 | 2021-07-28 | Method and apparatus for intra prediction with interpolation |
Family Applications Before (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
US16/617,180 Active 2038-08-17 US11102510B2 (en) | 2017-05-31 | 2018-05-30 | Method and apparatus for intra prediction with interpolation |
Country Status (4)
Country | Link |
---|---|
US (2) | US11102510B2 (en) |
EP (2) | EP3410708A1 (en) |
CN (1) | CN110832854B (en) |
WO (1) | WO2018220012A1 (en) |
Families Citing this family (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113347416B (en) * | 2019-01-02 | 2023-06-02 | Oppo广东移动通信有限公司 | Chroma intra prediction method and device, and computer storage medium |
CA3122891A1 (en) * | 2019-03-12 | 2020-09-17 | Guangdong Oppo Mobile Telecommunications Corp., Ltd. | Intra prediction method and apparatus, and computer-readable storage medium |
CN110072112B (en) * | 2019-03-12 | 2023-05-12 | 浙江大华技术股份有限公司 | Intra-frame prediction method, encoder and storage device |
CN110572680B (en) * | 2019-09-27 | 2023-10-24 | 腾讯科技(深圳)有限公司 | Video decoding and encoding method and device, storage medium, decoder and encoder |
Family Cites Families (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR101772459B1 (en) * | 2010-05-17 | 2017-08-30 | 엘지전자 주식회사 | New intra prediction modes |
PT3457689T (en) | 2010-05-25 | 2020-10-15 | Lg Electronics Inc | New planar prediction mode |
KR101373814B1 (en) * | 2010-07-31 | 2014-03-18 | 엠앤케이홀딩스 주식회사 | Apparatus of generating prediction block |
CN103262542A (en) * | 2010-10-26 | 2013-08-21 | 数码士有限公司 | Adaptive intra-prediction encoding and decoding method |
KR101383775B1 (en) * | 2011-05-20 | 2014-04-14 | 주식회사 케이티 | Method And Apparatus For Intra Prediction |
CA3017176C (en) | 2011-06-28 | 2020-04-28 | Samsung Electronics Co., Ltd. | Method and apparatus for image encoding and decoding using intra prediction |
WO2013107931A1 (en) * | 2012-01-19 | 2013-07-25 | Nokia Corporation | An apparatus, a method and a computer program for video coding and decoding |
WO2016066093A1 (en) * | 2014-10-31 | 2016-05-06 | Mediatek Inc. | Method of improved directional intra prediction for video coding |
WO2017018664A1 (en) | 2015-07-28 | 2017-02-02 | 엘지전자(주) | Intra prediction mode-based image processing method and apparatus therefor |
US10194170B2 (en) * | 2015-11-20 | 2019-01-29 | Mediatek Inc. | Method and apparatus for video coding using filter coefficients determined based on pixel projection phase |
-
2017
- 2017-05-31 EP EP17305635.9A patent/EP3410708A1/en not_active Withdrawn
-
2018
- 2018-05-30 EP EP18726493.2A patent/EP3632102B1/en active Active
- 2018-05-30 WO PCT/EP2018/064186 patent/WO2018220012A1/en active Application Filing
- 2018-05-30 US US16/617,180 patent/US11102510B2/en active Active
- 2018-05-30 CN CN201880042979.5A patent/CN110832854B/en active Active
-
2021
- 2021-07-28 US US17/387,197 patent/US20220060746A1/en not_active Abandoned
Also Published As
Publication number | Publication date |
---|---|
US11102510B2 (en) | 2021-08-24 |
US20210136408A1 (en) | 2021-05-06 |
WO2018220012A1 (en) | 2018-12-06 |
EP3632102A1 (en) | 2020-04-08 |
EP3410708A1 (en) | 2018-12-05 |
CN110832854A (en) | 2020-02-21 |
CN110832854B (en) | 2023-10-31 |
EP3632102B1 (en) | 2024-09-18 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11706447B2 (en) | Method and apparatus for intra prediction with multiple weighted references | |
US20220060746A1 (en) | Method and apparatus for intra prediction with interpolation | |
EP3306935A1 (en) | Image encoding and decoding method and image decoding device | |
US11381811B2 (en) | Method and apparatus for low-complexity bi-directional intra predication in video encoding and decoding | |
US11212554B2 (en) | Method and apparatus for low-complexity bi-directional intra prediction in video encoding and decoding | |
JP2019519995A (en) | Video Coding Using Adaptive Motion Information Improvement | |
WO2016130801A1 (en) | Coding tree unit (ctu) level adaptive loop filter (alf) | |
WO2018219925A1 (en) | Method and apparatus for signalling bi-directional intra prediction in video encoding and decoding | |
WO2018219923A1 (en) | Method and apparatus for bi-directional intra prediction in video coding | |
US20240155134A1 (en) | Method and apparatus for video coding using improved cross-component linear model prediction | |
US20230300325A1 (en) | Video coding method and apparatus using intra prediction | |
EP3410724A1 (en) | Method and apparatus for signalling bi-directional intra prediction in video encoding and decoding | |
WO2021133899A1 (en) | Motion estimation region for the merge candidates | |
US20240305815A1 (en) | Method and apparatus for video coding using intra prediction based on template matching | |
US20230421752A1 (en) | Method and apparatus for video coding using matrix based cross-component prediction | |
EP3422718A1 (en) | Method and apparatus for intra prediction with multiple weighted references | |
CN118451706A (en) | Template-based intra mode derivation method for chrominance components | |
CN118077196A (en) | Method and apparatus for decoder-side intra mode derivation | |
CN116918323A (en) | Video encoding and decoding method and apparatus for improving prediction signal of intra prediction |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
STPP | Information on status: patent application and granting procedure in general |
Free format text: DOCKETED NEW CASE - READY FOR EXAMINATION |
|
STPP | Information on status: patent application and granting procedure in general |
Free format text: NOTICE OF ALLOWANCE MAILED -- APPLICATION RECEIVED IN OFFICE OF PUBLICATIONS |
|
STPP | Information on status: patent application and granting procedure in general |
Free format text: NOTICE OF ALLOWANCE MAILED -- APPLICATION RECEIVED IN OFFICE OF PUBLICATIONS |
|
STCB | Information on status: application discontinuation |
Free format text: ABANDONED -- FAILURE TO PAY ISSUE FEE |