This disclosure relates to video coding and more particularly to techniques for partitioning a picture of video data.
Digital video capabilities can be incorporated into a wide range of devices, including digital televisions, laptop or desktop computers, tablet computers, digital recording devices, digital media players, video gaming devices, cellular telephones, including so-called smartphones, medical imaging devices, and the like. Digital video may be coded according to a video coding standard. Video coding standards may incorporate video compression techniques. Examples of video coding standards include ISO/IEC MPEG-4 Visual and ITU-T H.264 (also known as ISO/IEC MPEG-4 AVC) and High-Efficiency Video Coding (HEVC). HEVC is described in High Efficiency Video Coding (HEVC), Rec. ITU-T H.265 April 2015, which is incorporated by reference, and referred to herein as ITU-T H.265. Extensions and improvements for ITU-T H.265 are currently being considered for development of next generation video coding standards. For example, the ITU-T Video Coding Experts Group (VCEG) and ISO/IEC (Moving Picture Experts Group (MPEG) (collectively referred to as the Joint Video Exploration Team (JVET)) are studying the potential need for standardization of future video coding technology with a compression capability that significantly exceeds that of the current HEVC standard. The Joint Exploration Model 6 (JEM 6), Algorithm Description of Joint Exploration Test Model 6 (JEM 6), ISO/IEC JTC1/SC29/WG11 Document: JVET-F1001v3, April 2017, Hobart, AU, and the Joint Exploration Model 7 (JEM 7), Algorithm Description of Joint Exploration Test Model 7 (JEM 7), ISO/IEC JTC1/SC29/WG11 Document: JVET-G1001, July 2017, Torino, IT, each which are incorporated by reference herein, describe the coding features that are under coordinated test model study by the JVET as potentially enhancing video coding technology beyond the capabilities of ITU-T H.265. It should be noted that the coding features of JEM 6 and JEM 7 are implemented in JEM reference software. As used herein, the term JEM is used to collectively refer to algorithms included in JEM 6 and JEM 7 and implementations of JEM reference software.
Video compression techniques enable data requirements for storing and transmitting video data to be reduced. Video compression techniques may reduce data requirements by exploiting the inherent redundancies in a video sequence. Video compression techniques may sub-divide a video sequence into successively smaller portions (i.e., groups of frames within a video sequence, a frame within a group of frames, slices within a frame, coding tree units (e.g., macroblocks) within a slice, coding blocks within a coding tree unit, etc.). Intra prediction coding techniques (e.g., intra-picture (spatial)) and inter prediction techniques (i.e., inter-picture (temporal)) may be used to generate difference values between a unit of video data to be coded and a reference unit of video data. The difference values may be referred to as residual data. Residual data may be coded as quantized transform coefficients. Syntax elements may relate residual data and a reference coding unit (e.g., intra-prediction mode indices, motion vectors, and block vectors). Residual data and syntax elements may be entropy coded. Entropy encoded residual data and syntax elements may be included in a compliant bitstream.
In one example, a method of partitioning video data for video coding, comprises receiving a video block including sample values for a first component of video data and a second component of video data, partitioning the sample values for the first component of video data and the second component of video data according to a first quad tree binary tree partitioning structure, and for samples values of the first component of video data included in nodes of the first quad tree binary tree associated with an intra prediction type, further partitioning the samples according to a second quad tree binary tree.
In one example, a method of determining partitioning of video data comprises parsing a first quad tree binary tree partitioning structure, applying the first quad tree binary tree partitioning structure to a first component of video data, applying the first quad tree binary tree partitioning structure to a second component of video data, determining whether a node of the first quad tree binary tree is associated with an intra prediction type, upon determining that the node of the first quad tree binary tree is associated with an intra prediction type, parsing a second first quad tree binary tree partitioning structure, and applying the second quad tree binary tree partitioning structure to samples values of the first component of video data included in nodes of the first quad tree binary tree.
In general, this disclosure describes various techniques for coding video data. In particular, this disclosure describes techniques for partitioning a picture of video data. It should be noted that although techniques of this disclosure are described with respect to ITU-T H.264, ITU-T H.265, and JEM, the techniques of this disclosure are generally applicable to video coding. For example, the coding techniques described herein may be incorporated into video coding systems, (including video coding systems based on future video coding standards) including block structures, intra prediction techniques, inter prediction techniques, transform techniques, filtering techniques, and/or entropy coding techniques other than those included in ITU-T H.265 and JEM. Thus, reference to ITU-T H.264, ITU-T H.265, and/or JEM is for descriptive purposes and should not be construed to limit the scope of the techniques described herein. Further, it should be noted that incorporation by reference of documents herein is for descriptive purposes and should not be construed to limit or create ambiguity with respect to terms used herein. For example, in the case where an incorporated reference provides a different definition of a term than another incorporated reference and/or as the term is used herein, the term should be interpreted in a manner that broadly includes each respective definition and/or in a manner that includes each of the particular definitions in the alternative.
In one example, a device for partitioning video data for video coding comprises one or more processors configured to receive a video block including sample values for a first component of video data and a second component of video data, partition the sample values for the first component of video data and the second component of video data according to a first quad tree binary tree partitioning structure, and for samples values of the first component of video data included in nodes of the first quad tree binary tree associated with an intra prediction type, further partition the samples according to a second quad tree binary tree.
In one example, a non-transitory computer-readable storage medium comprises instructions stored thereon that, when executed, cause one or more processors of a device to receive a video block including sample values for a first component of video data and a second component of video data, partition the sample values for the first component of video data and the second component of video data according to a first quad tree binary tree partitioning structure, and for samples values of the first component of video data included in nodes of the first quad tree binary tree associated with an intra prediction type, further partition the samples according to a second quad tree binary tree.
In one example, an apparatus comprises means for receiving a video block including sample values for a first component of video data and a second component of video data, means for partitioning the sample values for the first component of video data and the second component of video data according to a first quad tree binary tree partitioning structure, and means for further partitioning the samples according to a second quad tree binary tree for samples values of the first component of video data included in nodes of the first quad tree binary tree associated with an intra prediction type.
In one example, a device for determining partitioning of video data comprises one or more processors configured to parse a first quad tree binary tree partitioning structure, apply the first quad tree binary tree partitioning structure to a first component of video data, apply the first quad tree binary tree partitioning structure to a second component of video data, determine whether a node of the first quad tree binary tree is associated with an intra prediction type, upon determining that the node of the first quad tree binary tree is associated with an intra prediction type, parse a second first quad tree binary tree partitioning structure, and apply the second quad tree binary tree partitioning structure to samples values of the first component of video data included in nodes of the first quad tree binary tree.
In one example, a non-transitory computer-readable storage medium comprises instructions stored thereon that, when executed, cause one or more processors of a device to parse a first quad tree binary tree partitioning structure, apply the first quad tree binary tree partitioning structure to a first component of video data, apply the first quad tree binary tree partitioning structure to a second component of video data, determine whether a node of the first quad tree binary tree is associated with an intra prediction type, upon determining that the node of the first quad tree binary tree is associated with an intra prediction type, parse a second first quad tree binary tree partitioning structure, and apply the second quad tree binary tree partitioning structure to samples values of the first component of video data included in nodes of the first quad tree binary tree.
In one example, an apparatus comprises means for parsing a first quad tree binary tree partitioning structure, means for applying the first quad tree binary tree partitioning structure to a first component of video data, means for applying the first quad tree binary tree partitioning structure to a second component of video data, means for determining whether a node of the first quad tree binary tree is associated with an intra prediction type, means for parsing a second first quad tree binary tree partitioning structure, upon determining that the node of the first quad tree binary tree is associated with an intra prediction type, and means for applying the second quad tree binary tree partitioning structure to samples values of the first component of video data included in nodes of the first quad tree binary tree.
The details of one or more examples are set forth in the accompanying drawings and the description below. Other features, objects, and advantages will be apparent from the description and drawings, and from the claims.
Video content typically includes video sequences comprised of a series of frames (or pictures). A series of frames may also be referred to as a group of pictures (GOP). Each video frame or picture may include a plurality of slices or tiles, where a slice or tile includes a plurality of video blocks. As used herein, the term video block may generally refer to an area of a picture or may more specifically refer to the largest array of sample values that may be predictively coded, sub-divisions thereof, and/or corresponding structures. Further, the term current video block may refer to an area of a picture being encoded or decoded. A video block may be defined as an array of sample values that may be predictively coded. It should be noted that in some cases pixel values may be described as including sample values for respective components of video data, which may also be referred to as color components, (e.g., luma (Y) and chroma (Cb and Cr) components or red, green, and blue components). It should be noted that in some cases, the terms pixel values and sample values are used interchangeably. Video blocks may be ordered within a picture according to a scan pattern (e.g., a raster scan). A video encoder may perform predictive encoding on video blocks and sub-divisions thereof. Video blocks and sub-divisions thereof may be referred to as nodes. Further, the node may refer to a leaf node in some instances and a root node in some instances.
ITU-T H.264 specifies a macroblock including 16×16 luma samples. That is, in ITU-T H.264, a picture is segmented into macroblocks. ITU-T H.265 specifies an analogous Coding Tree Unit (CTU) structure. In ITU-T H.265, pictures are segmented into CTUs. In ITU-T H.265, for a picture, a CTU size may be set as including 16×16, 32×32, or 64×64 luma samples. In ITU-T H.265, a CTU is composed of respective Coding Tree Blocks (CTB) for each component of video data (e.g., luma (Y) and chroma (Cb and Cr)). It should be noted that video having one luma component and the two corresponding chroma components may be described as having two channels, i.e., a luma channel and a chroma channel. Further, in ITU-T H.265, a CTU may be partitioned according to a quadtree (QT) partitioning structure, which results in the CTBs of the CTU being partitioned into Coding Blocks (CB). That is, in ITU-T H.265, a CTU may be partitioned into quadtree leaf nodes. According to ITU-T H.265, one luma CB together with two corresponding chroma CBs and associated syntax elements are referred to as a coding unit (CU). In ITU-T H.265, a minimum allowed size of a CB may be signaled. In ITU-T H.265, the smallest minimum allowed size of a luma CB is 8×8 luma samples. In ITU-T H.265, the decision to code a picture area using intra prediction or inter prediction is made at the CU level.
In ITU-T H.265, a CU is associated with a prediction unit (PU) structure having its root at the CU. In ITU-T H.265, PU structures allow luma and chroma CBs to be split for purposes of generating corresponding reference samples. That is, in ITU-T H.265, luma and chroma CBs may be split into respective luma and chroma prediction blocks (PBs), where a PB includes a block of sample values for which the same prediction is applied. In ITU-T H.265, a CB may be partitioned into 1, 2, or 4 PBs. ITU-T H.265 supports PB sizes from 64×64 samples down to 4×4 samples. In ITU-T H.265, square PBs are supported for intra prediction, where a CB may form the PB or the CB may be split into four square PBs (i.e., intra prediction PB types include M×M or M/2×M/2, where M is the height and width of the square CB). In ITU-T H.265, in addition to the square PBs, rectangular PBs are supported for inter prediction, where a CB may by halved vertically or horizontally to form PBs (i.e., inter prediction PB types include M×M, M/2×M/2, M/2×M, or M×M/2). Further, it should be noted that in ITU-T H.265, for inter prediction, four asymmetric PB partitions are supported, where the CB is partitioned into two PBs at one quarter of the height (at the top or the bottom) or width (at the left or the right) of the CB (i.e., asymmetric partitions include M/4×M left, M/4×M right, M×M/4 top, and M×M/4 bottom). Intra prediction data (e.g., intra prediction mode syntax elements) or inter prediction data (e.g., motion data syntax elements) corresponding to a PB is used to produce reference and/or predicted sample values for the PB.
JEM specifies a CTU having a maximum size of 256×256 luma samples. JEM specifies a quadtree plus binary tree (QTBT) block structure. In JEM, the QTBT structure enables quadtree leaf nodes to be further partitioned by a binary tree (BT) structure. That is, in JEM, the binary tree structure enables quadtree leaf nodes to be recursively divided vertically or horizontally.
In JEM, a QTBT is signaled by signaling QT split flag and BT split mode syntax elements. When a QT split flag has a value of 1, a QT split is indicated. When a QT split flag has a value of 0, a BT split mode syntax element is signaled. When a BT split mode syntax element has a value of 0 (i.e., BT split mode coding tree=0), no binary splitting is indicated. When a BT split mode syntax element has a value of 1 (i.e., BT split mode coding tree=11), a vertical split mode is indicated. When a BT split mode syntax element has a value of 2 (i.e., BT split mode coding tree=10), a horizontal split mode is indicated. Further, BT splitting may be performed until a maximum BT depth is reached. Thus, according to JEM, the QTBT illustrated in
In one example, when a maximum QT depth is reached the signaling of QT flag may be skipped and its value may be inferred, e.g., as 0. In one example, when a current depth is smaller than a minimum QT depth, then the signaling of a QT flag may be skipped and its value may be inferred, e.g., as 1. In one example, when a maximum depth is reached for the signaling of a partition type, then the associated syntax element may not be signaled in the bitstream and its value may be inferred. In one example, when a minimum depth for the signaling of a partition type is not yet reached, then the associated syntax element may not be signaled in the bitstream and its value may be inferred. In one example, when no QT split is allowed and when the current depth is smaller than minimum BT depth, then signaling of BT split may be modified to not allow BT split to equal 0.
As illustrated in
It should be noted that in some examples, MinQTSize, MaxBTSize, MaxBTDepth, and/or MinBTSize may be different for the different components of video.
In JEM, CBs are used for prediction without any further partitioning. That is, in JEM, a CB may be a block of sample values on which the same prediction is applied. Thus, a JEM QTBT leaf node may be analogous a PB in ITU-T H.265.
A video sampling format, which may also be referred to as a chroma format, may define the number of chroma samples included in a CU with respect to the number of luma samples included in a CU. For example, for the 4:2:0 sampling format, the sampling rate for the luma component is twice that of the chroma components for both the horizontal and vertical directions. As a result, for a CU formatted according to the 4:2:0 format, the width and height of an array of samples for the luma component are twice that of each array of samples for the chroma components.
As described above, intra prediction data or inter prediction data is used to produce reference sample values for a block of sample values. The difference between sample values included in a current PB, or another type of picture area structure, and associated reference samples (e.g., those generated using a prediction) may be referred to as residual data. Residual data may include respective arrays of difference values corresponding to each component of video data. Residual data may be in the pixel domain. A transform, such as, a discrete cosine transform (DCT), a discrete sine transform (DST), an integer transform, a wavelet transform, or a conceptually similar transform, may be applied to an array of difference values to generate transform coefficients. It should be noted that in ITU-T H.265, a CU is associated with a transform unit (TU) structure having its root at the CU level. That is, in ITU-T H.265, an array of difference values may be sub-divided for purposes of generating transform coefficients (e.g., four 8×8 transforms may be applied to a 16×16 array of residual values). For each component of video data, such sub-divisions of difference values may be referred to as Transform Blocks (TBs). It should be noted that in ITU-T H.265, TBs are not necessarily aligned with PBs.
It should be noted that in JEM, residual values corresponding to a CB are used to generate transform coefficients without further partitioning. That is, in JEM a QTBT leaf node may be analogous to both a PB and a TB in ITU-T H.265. It should be noted that in JEM, a core transform and a subsequent secondary transforms may be applied (in the video encoder) to generate transform coefficients. For a video decoder, the order of transforms is reversed. Further, in JEM, whether a secondary transform is applied to generate transform coefficients may be dependent on a prediction mode.
A quantization process may be performed on transform coefficients. Quantization scales transform coefficients in order to vary the amount of data required to represent a group of transform coefficients. Quantization may include division of transform coefficients by a quantization scaling factor and any associated rounding functions (e.g., rounding to the nearest integer). Quantized transform coefficients may be referred to as coefficient level values. Inverse quantization (or “dequantization”) may include multiplication of coefficient level values by the quantization scaling factor. It should be noted that as used herein the term quantization process in some instances may refer to division by a scaling factor to generate level values and multiplication by a scaling factor to recover transform coefficients in some instances. That is, a quantization process may refer to quantization in some cases and inverse quantization in some cases. Further, it should be noted that although in the examples below quantization processes are described with respect to arithmetic operations associated with decimal notation, such descriptions are for illustrative purposes and should not be construed as limiting. For example, the techniques described herein may be implemented in a device using binary operations and the like. For example, multiplication and division operations described herein may be implemented using bit shifting operations and the like.
In ITU-T H.265, an array of scaling factors is generated by selecting a scaling matrix and multiplying each entry in the scaling matrix by a quantization scaling factor. In ITU-T H.265, a scaling matrix is selected based on a prediction mode and a color component, where scaling matrices of the following sizes are defined: 4×4, 8×8, 16×16, and 32×32. Thus, it should be noted that ITU-T H.265 does not define scaling matrices for sizes other than 4×4, 8×8, 16×16, and 32×32. In ITU-T H.265, the value of a quantization scaling factor, may be determined by a quantization parameter, QP. In ITU-T H.265, the QP can take 52 values from 0 to 51 and a change of 1 for QP generally corresponds to a change in the value of the quantization scaling factor by approximately 12%. Further, in ITU-T H.265, a QP value for a set of transform coefficients may be derived using a predictive quantization parameter value (which may be referred to as a predictive QP value or a QP predictive value) and an optionally signaled quantization parameter delta value (which may be referred to as a QP delta value or a delta QP value). In ITU-T H.265, a quantization parameter may be updated for each CU and a quantization parameter may be derived for each of luma (Y) and chroma (Cb and Cr) components.
As illustrated in
As described above, the sample values of a reconstructed block may differ from the sample values of the current video block that is encoded. Further, it should be noted that in some cases, coding video data on a block-by-block basis may result in artifacts (e.g., so-called blocking artifacts, banding artifacts, etc.) For example, blocking artifacts may cause coding block boundaries of reconstructed video data to be visually perceptible to a user. In this manner, reconstructed sample values may be modified to minimize the difference between the sample values of the current video block that is encoded and/or minimize artifacts introduced by the video coding process. Such modifications may general be referred to as filtering. It should be noted that filtering may occur as part of an in-loop filtering process or a post-loop filtering process. For an in-loop filtering process, the resulting sample values of a filtering process may be used for predictive video blocks (e.g., stored to a reference frame buffer for subsequent encoding at video encoder and subsequent decoding at a video decoder). For a post-loop filtering process the resulting sample values of a filtering process are merely output as part of the decoding process (e.g., not used for subsequent coding). For example, in the case of a video decoder, for an in-loop filtering process, the sample values resulting from filtering the reconstructed block would be used for subsequent decoding (e.g., stored to a reference buffer) and would be output (e.g., to a display). For a post-loop filtering process, the reconstructed block would be used for subsequent decoding and the sample values resulting from filtering the reconstructed block would be output.
Deblocking (or de-blocking), deblock filtering, or applying a deblocking filter refers to the process of smoothing the boundaries of neighboring reconstructed video blocks (i.e., making boundaries less perceptible to a viewer). Smoothing the boundaries of neighboring reconstructed video blocks may include modifying sample values included in rows or columns adjacent to a boundary. ITU-T H.265 provides where a deblocking filter is applied to reconstructed sample values as part of an in-loop filtering process. ITU-T H.265 includes two types deblocking filters that may be used for modifying luma samples: a Strong Filter which modifies sample values in the three adjacent rows or columns to a boundary and a Weak Filter which modifies sample values in the immediately adjacent row or column to a boundary and conditionally modifies sample values in the second row or column from the boundary. Further, ITU-T H.265 includes one type of filter that may be used for modifying chroma samples: Normal Filter.
In addition to applying a deblocking filter as part of an in-loop filtering process, ITU-T H.265 provides where Sample Adaptive Offset (SAO) filtering may be applied in the in-loop filtering process. In ITU-T H.265, SAO is a process that modifies the deblocked sample values in a region by conditionally adding an offset value. ITU-T H.265 provides two types of SAO filters that may be applied to a CTB: band offset or edge offset. For each of band offset and edge offset, four offset values are included in a bitstream. For band offset, the offset which is applied depends on the amplitude of a sample value (e.g., amplitudes are mapped to bands which are mapped to the four signaled offsets). For edge offset, the offset which is applied depends on a CTB having one of a horizontal, vertical, first diagonal, or second diagonal edge classification (e.g., classifications are mapped to the four signaled offsets).
Another type of filtering process includes the so-called adaptive loop filter (ALF).
An ALF with block-based adaption is specified in JEM. In JEM, the ALF is applied after the SAO filter. It should be noted that an ALF may be applied to reconstructed samples independently of other filtering techniques. The process for applying the ALF specified in JEM at a video encoder may be summarized as follows: (1) each 2×2 block of the luma component for a reconstructed picture is classified according to a classification index; (2) sets of filter coefficients are derived for each classification index; (3) filtering decisions are determined for the luma component; (4) a filtering decision is determined for the chroma components; and (5) filter parameters (e.g., coefficients and decisions) are signaled.
According to the ALF specified in JEM, each 2×2 block is categorized according to a dassification index C, where C is an integer in the inclusive range of 0 to 24. C is derived based on its directionality D and a quantized value of activity Â, according to the following equation:
C=5D+Â
Maximum and minimum values of the gradients of horizontal and vertical directions may be set as:
g
h,v
max=max(gh, gv);
g
h,v
min=min(gh, gv);
g
d0,d1
max=max(gd0, gd1);
g
d0,d1
min=min(gd0, gd1);
In JEM to derive the value of the directionality D, the maximum and minimum values are compared against each other and with two thresholds t1and t2:
In JEM, the activity value A is calculated as:
As described above, applying the ALF specified in JEM at a video encoder includes deriving sets of filter coefficients for each classification index and determining filtering decisions. It should be noted that the derivation of sets of filter coefficients and determination of filtering decisions may be an iterative process. That is, sets of filter coefficients may be updated based on filtering decisions and filtering decisions may be updated based on updated sets of filter coefficients and this may be repeated multiple times. Further, a video encoder may implement various proprietary algorithms to determine sets of filter coefficients and/or to determine filtering decisions. The techniques described herein are generally applicable regardless of how sets of filter coefficients are derived for each classification index and how filtering decisions are determined.
According to one example, sets of filter coefficients are derived by initially deriving a set of optimal filter coefficients for each classification index. Optimal filter coefficients are derived by comparing desired sample values (i.e., sample values in the source video) to reconstructed sample values subsequent to applying the filtering and by minimizing the sum of squared errors (SSE) between the desired sample values and the reconstructed sample values subsequent to performing the filtering The derived optimal coefficients for each group may then be used to perform a basis filtering over the reconstructed samples in order to analyze the effectiveness of the ALF. That is, desired sample values, reconstructed sample values prior to applying the ALF, and reconstructed sample values subsequent to performing the ALF can be compared to determine the effectiveness of applying the ALF using the optimal coefficients.
According to the specified ALF in JEM, each reconstructed sample R(i,j) is filtered by determining the resulting in sample value R′(i,j) according to the following equation, wherein in the following equation below, L denotes filter length, and f(k,l) denotes the decoded filter coefficients.
It should be noted that JEM defines three filter shapes (a 5×5 diamond, a 7×7 diamond, and a 9×9 diamond). It should be noted that the 9×9 diamond filter shape is typically used for the basis filtering. It should be noted that in JEM, geometric transformations are applied to filter coefficients f(k,l) depending on gradient values: gv, g, gd1, gd2, as provided in Table 2.
Diagonal: fD(k, l)=f(l, k),
Vertical flip: fV(k, l)=f(k, K−l−1)
Rotation: fR(k, l)=f(K−l−1, k)
JEM provides where up to 25 sets of luma filter coefficients can be signaled (i.e., one for each possible classification index). Thus, the optimal coefficients could be signaled for each classification index occurring in a corresponding picture region. However, in order to optimize the amount of data required to signal sets of luma filter coefficients versus the effectiveness of the filter, rate distortion (RD) optimizations may be performed. For example, JEM provides where sets of filter coefficients of neighboring classification groups may be merged and signaled using an array mapping a set of filter coefficients to each classification index. Further, JEM provides where temporal coefficient prediction may be used to signal coefficients. That is, JEM provides where sets of filter coefficients for a current picture may be predicted based on sets of filter coefficients of a reference picture by inheriting the set of filter coefficients used for a reference picture. JEM further provides where for intra prediction pictures, a set of 16 fixed filters may be available for predicting sets of filter coefficients. As described above, the derivation of sets of filter coefficients and determination of filtering decisions may be an iterative process. That is, for example, the shape of the ALF may be determined based on how many sets of filter coefficients are signaled and similarly, whether the ALF is applied to a region of a picture may be based on the sets of filter coefficients that are signaled and/or the shape of the filter.
As described above, the process for applying the ALF specified in JEM at a video encoder includes signaling filter parameters. That is, JEM provides signaling that is used by a video encoder to indicate the filter parameters to a video decoder. A video decoder may then apply the ALF to reconstructed sample values based on the indicated filter parameters. JEM provides where for the luma component a picture-level flag may enable an ALF to be selectively applied to each CU in a picture. Further, JEM provides where an index value signaled at the picture level indicates the filter shape that is selected for the luma component (i.e., a 5×5 diamond, a 7×7 diamond, or a 9×9 diamond). It should be noted that larger filter shapes are generally more accurate, but require a larger number of filter coefficients. Further, JEM provides where for the luma component filter coefficients are signaled at the slice level. As described above, filter coefficients may be signaled directly for one or more of the 25 groups or signaled using a prediction techniques. Further, JEM provides where for the chroma component the ALF is enabled or disabled at the picture level. It should be noted that in JEM, for the chroma components, the entire picture is treated as one class and the filter shape is always a 5×5 diamond, a single set of filter coefficients is applied for each chroma component, and there is no CU level. Further, it should be noted that if the ALF is not enabled for the luma component, then the ALF is disabled for the chroma components.
As described above, intra prediction data or inter prediction data may associate an area of a picture (e.g., a PB or a CB) with corresponding reference samples. For intra prediction coding, an intra prediction mode may specify the location of reference samples within a picture. In ITU-T H.265, defined possible intra prediction modes include a planar (i.e., surface fitting) prediction mode (predMode: 0), a DC (i.e., flat overall averaging) prediction mode (predMode: 1), and 33 angular prediction modes (predMode: 2-34). In JEM, defined possible intra-prediction modes include a planar prediction mode (predMode: 0), a DC prediction mode (predMode: 1), and 65 angular prediction modes (predMode: 2-66). It should be noted that planar and DC prediction modes may be referred to as non-directional prediction modes and that angular prediction modes may be referred to as directional prediction modes. It should be noted that the techniques described herein may be generally applicable regardless of the number of defined possible prediction modes.
In addition to generating reference samples according to a prediction mode (which may be referred to as an intra prediction block), intra prediction coding may include modifying reference samples prior to generating residual data (e.g., during encoding) and/or modifying reference samples prior to reconstructing a video block (e.g., during decoding). JEM specifies techniques for modifying reference samples prior to generating residual data and modifying references samples prior to reconstructing a video block. One technique specified in JEM for modifying reference samples includes generating a predictive video block using a weighted combination of unfiltered and filtered reference samples, i.e., so-called Position Dependent Intra Prediction (PDPC).
In PDPC, a predictive video block is generated according to the following equation, p[x,y] is a new prediction. In the equation, r[x,y] represents reference samples generated for a directional prediction mode using unfiltered reference samples and q[x,y] represents reference samples generated for the directional prediction mode using filtered reference samples.
p[x, y]={(c1(v)[y/dy])r[x, −1]−(c2(v)[y/dy])r[−1, −1]+(c1(h)[x/dx])r[−1, y]−(c2(h)[x/dx])r[−1, −1]+b[, y]q[, y]+64 }>>7
b[x, y]=128−(c1(v)>>[y/dy])+(c2(v)>>[y/dy])−(c1(h)>>[x/dx])+(c2(v)>>[x/dx])
Where the x>>y operation represents an arithmetic right shift of a two's complement integer representation of x by y binary digits; and
Further, JEM provides a reference sample filtering mechanism, i.e., so-called Adaptive Reference Sample Smoothing (ARSS). As provided in JEM, in ARSS, two low pass filters (LPF) are used to process reference samples: a 3-tap LPF with the coefficients of [1, 2, 1]/4; and a 5-tap LPF with the coefficients of [2, 3, 6, 3, 2]/16. As provided in JEM, for the ARSS, a defined set of rules are used to determine which of the following applies (1) reference samples are not filtered; (2) reference samples are filters according to ITU-T H.265 rules (with modifications in some cases); (3) reference samples are filtered using the 3-tap LPF; or (4) reference samples are filtered using the 5-tap LPF. In JEM, ARSS is applied only for the luma component, in case that CU size is smaller than or equal to 1024 luma samples and larger than or equal to 64 luma samples, at least one coefficient sub-group in the luma coding block has a sign bit hidden and the intra prediction mode is not DC mode. Further, in JEM, when PDPC flag is equal to 1 for a CU, adaptive reference samples smoothing is disabled in this CU.
For inter prediction coding, a motion vector (MV) identifies reference samples in a picture other than the picture of a video block to be coded and thereby exploits temporal redundancy in video. For example, a current video block may be predicted from reference block(s) located in previously coded frame(s) and a motion vector may be used to indicate the location of the reference block. A motion vector and associated data may describe, for example, a horizontal component of the motion vector, a vertical component of the motion vector, a resolution for the motion vector (e.g., one-quarter pixel precision, one-half pixel precision, one-pixel precision, two-pixel precision, four-pixel precision), a prediction direction and/or a reference picture index value. Further, a coding standard, such as, for example ITU-T H.265, may support motion vector prediction. Motion vector prediction enables a motion vector to be specified using motion vectors of neighboring blocks. Examples of motion vector prediction include advanced motion vector prediction (AMVP), temporal motion vector prediction (TMVP), so-called “merge” mode, and “skip” and “direct” motion inference. Further, JEM supports advanced temporal motion vector prediction (ATMVP) and Spatial-temporal motion vector prediction (STMVP).
As described above, residual data generated for an area of a picture using a prediction and corresponding reference samples may be transformed to generate transform coefficients. Transform coefficients may be generated using transform matrices associated with a transform set. In JEM, in addition to using the DCT-II and 4×4 DST-VII transform types that are used in ITU-T H.265, an Adaptive Multiple Transform (AMT) scheme is used for residual coding for both inter and intra coded blocks. In JEM, the AMT using the following transform matrices DST-VII, DCT-VIII, DST-I and DCT-V. Each transform matrix in JEM may be implemented using horizontal (H) and a vertical (V) transform. In JEM, the AMT applies to the CUs with both width and height smaller than for equal to 64, and whether AMT applies or not is controlled by a CU level flag. When the CU level flag is equal to 0, DCT-II is applied in the CU to transform the residual. For luma coding block within an AMT enabled CU, two additional flags are signaled to identify the horizontal and vertical transform to be used.
In JEM, for intra prediction, three predefined set of transform candidates are defined as provided in Table 3.
In JEM, a transform set is selected based on an intra prediction mode as provided in Table 4.
Thus, in JEM for intra prediction, a transform subset is first identified based on Table 3 using the intra prediction mode of a CU with the CU-level AMT flag is equal to 1 and for each of the horizontal and vertical transform, one of the two transform candidates in the identified transform subset is determined.
As further described above, in JEM, whether a subsequent secondary transform is applied to generate transform coefficients may be dependent on a prediction mode. In JEM, applying a subsequent secondary transform may include performing a secondary transform independently for each 4×4 sub-group of transform coefficients, performing a secondary transform independently may be referred to as applying mode dependent Non-Separable Secondary Transform (MDNSST). It should be noted that in JEM, if both the width and height of a transform coefficient block is larger than or equal to 8, then a 8×8 non-separable secondary transform is applied to the top-left 8×8 region of the transform coefficients block and, if either the width or height of a transform coefficient block is equal to 4, a 4×4 non-separable secondary transform is applied and the 4×4 non-separable transform is performed on the top-left region of the transform coefficient block. In JEM, the transform selection rule is applied for both luma and chroma components. In JEM for the MDNSST, there are 35 non-separable transform matrices, where 11 is the number of transform sets for the directional intra prediction mode and each transform set includes 3 transform matrices and for non-directional modes, (i.e., Planar, DC and LM) only one transform set is applied which includes 2 transform matrices. In JEM each transform set is mapped to a prediction mode and a 2-bit CU-level index value (referred to as “NSST_idx” herein) is included in the bitstream to indicate a transform matrix for a transform set. It should be noted that in JEM, NSST_idx is signaled once per intra CU and is included in a bitstream after the corresponding transform coefficients. Further, in JEM, a value of zero for NSST_idx indicates that a secondary transform is not applied to the current CU. It should be noted that in JEM, MDNSST is only enabled when PDPC is not applied (i.e., the value of PDPC_idx is set equal to zero).
As described above, in JEM, a QTBT leaf node, which allows for arbitrary rectangular CBs, may be analogous to both a PB and a TB in ITU-T H.265. Thus, is some cases, JEM may provide less flexibility with respect to possible PB and TB structures than as provided in ITU-T H.265. As further described above, in ITU-T H.265, only square TBs are allowed and only limited PB shape are allowed (e.g., only square PBs are allowed for intra prediction). Thus, partitioning and associated signaling as defined ITU-T H.265 and JEM may be less than ideal. This disclosure describes techniques for partitioning video data.
Communications medium 110 may include any combination of wireless and wired communication media, and/or storage devices. Communications medium 110 may include coaxial cables, fiber optic cables, twisted pair cables, wireless transmitters and receivers, routers, switches, repeaters, base stations, or any other equipment that may be useful to facilitate communications between various devices and sites. Communications medium 110 may include one or more networks. For example, communications medium 110 may include a network configured to enable access to the World Wide Web, for example, the Internet. A network may operate according to a combination of one or more telecommunication protocols. Telecommunications protocols may include proprietary aspects and/or may include standardized telecommunication protocols. Examples of standardized telecommunications protocols include Digital Video Broadcasting (DVB) standards, Advanced Television Systems Committee (ATSC) standards, Integrated Services Digital Broadcasting (ISDB) standards, Data Over Cable Service Interface Specification (DOCSIS) standards, Global System Mobile Communications (GSM) standards, code division multiple access (CDMA) standards, 3rd Generation Partnership Project (3GPP) standards, European Telecommunications Standards Institute (ETSI) standards, Internet Protocol (IP) standards, Wireless Application Protocol (WAP) standards, and Institute of Electrical and Electronics Engineers (IEEE) standards.
Storage devices may include any type of device or storage medium capable of storing data. A storage medium may include a tangible or non-transitory computer-readable media. A computer readable medium may include optical discs, flash memory, magnetic memory, or any other suitable digital storage media. In some examples, a memory device or portions thereof may be described as non-volatile memory and in other examples portions of memory devices may be described as volatile memory. Examples of volatile memories may include random access memories (RAM), dynamic random access memories (DRAM), and static random access memories (SRAM). Examples of non-volatile memories may include magnetic hard discs, optical discs, floppy discs, flash memories, or forms of electrically programmable memories (EPROM) or electrically erasable and programmable (EEPROM) memories. Storage device(s) may include memory cards (e.g., a Secure Digital (SD) memory card), internal/external hard disk drives, and/or internal/external solid state drives. Data may be stored on a storage device according to a defined file format.
Referring again to
Referring again to
As illustrated in
Thus, referring to Table 5, the quadtree node size, which forms the root of the binary tree, may be determined based on CTU size and a QT Depth. If the quadtree is further split into binary trees, then binary tree leaf node sizes may be determined based on QT node size and BT depth, as illustrated in Table 6. Each of MaxBTSize, MaxBTDepth, and MinBTSize may be used to determine a minimum allowed binary tree leaf node size. For example, if CTU size is 128×128, QT Depth is 3, MaxBTSize is 16×16, and MaxBTDepth is 2, the minimum allowed binary tree leaf node size includes 64 samples (i.e., 8×8, 16×4, or 4×16). In this case, if MaxBTDepth is 1, the minimum allowed binary tree leaf node size includes 128 samples (i.e., 16×8 or 8×16). Table 7 illustrates block sizes of BT leaf nodes at various combinations of QT depths and BT depths for a CTU size of 128×128.
As described above, QTBT partitioning and associated signaling as defined in JEM may be less than ideal. In some examples, according to the techniques described herein, video encoder 200 may be configured to partition CTUs such that luma and chroma channels have a common partitioning structure up to a CU level, where a prediction type (e.g., intra or inter or skip mode) is associated with the CU. Further, depending on the prediction type (e.g., intra or inter or skip mode) one or both of the luma and chroma channels may be further partitioned. In one example, luma and chroma channels have a common partitioning structure up to a CU level and if a prediction type of intra is associated with the CU one or both of the luma and chroma channels may be further partitioned. It should be noted that in the examples below, a CU level refers to a leaf of the shared QTBT which forms the root for further partitioning of the luma and chroma channels. It should be noted that in one example, whether or not the luma and chroma channels may be partitioned beyond the CU level may be explicitly signaled (e.g., using a flag at the CTU level or a flag at the level in a partition tree where a prediction type is signaled) or may be inferred based on properties of video data (e.g., a CTU size). It should be noted that for a slice of video data having an intra type (which may be referred to as an intra prediction slice), only intra prediction modes are enabled and for a slice of video data having an inter type (which may be referred to as an inter prediction slice), both intra prediction modes and inter prediction modes are enabled. In one example, different partition schemes may be employed for intra slices and inter slices. For example, in one example, for intra slices, independent QTBTs may be used for the luma channel and the chroma channel and for inter slices, the luma channel and the chroma channel may be partitioned according to the techniques described herein. Further, it should be noted that in one example, various other techniques (e.g., techniques provided in ITU-T H.265) may be used to partition intra slices and for inter slices, the luma channel and the chroma channel may be partitioned according to the techniques described herein.
Referring to
In one example, types of partitioning that are enabled for each of the luma and/or chroma channels may be signaled using higher level syntax. For example, each of the luma and/or chroma channel partitioning types may be signaled at the CTU-level, the slice-level, or at a parameter-set level (e.g., a Picture Parameter set (PPS) or a Sequence Parameter Set (SPS)). As described above, QT split flag syntax elements and BT split mode syntax elements are associated with a depth, where a depth of zero corresponds to a root of a QTBT and higher value depths correspond to subsequent depths beyond the root. It should be noted that in some cases, depth may be defined with respect to a CU forming the root. In one example, whether and how the luma and/or chroma channels may be further partitioned beyond the CU associated with a intra prediction type may be based on maximum depth values. For example, further partitioning of the luma and/or chroma channels may be allowed only if it results in a depth that is less than or equal to a maximum depth. In one example, maximum depths for each of the luma and/or chroma channels may be signaled using higher level syntax. In one example, maximum depths may be provided for BT partitioning and/or QT partitioning. In one example, the maximum depths may be the same as the maximum depths specified for the QTBT partitioning rooted at the CTU-level. For example, for the luma channel, a maximum depth of 3 may be specified for QT partitioning and a maximum depth of 4 may be specified for BT partitioning.
In one example, whether and how the luma and/or chroma channels may be further partitioned beyond the CU associated with a intra prediction type may be based on the resulting shape and/or number of samples in a CB. For example, one or more of a minimum size (width x height), minimum height, and/or minimum width may be specified, such that a resulting CB must be greater than or equal to a specified minimum. In one example, minimum sizes/dimensions for each of the luma and/or chroma channels may be signaled using higher level syntax. In one example, the minimum sizes/dimensions/number of samples may be the same as the minimum sizes/dimensions/number of samples specified for the QTBT partitioning rooted at the CTU-level. Further, in one example, whether and how the luma and/or chroma channels may be further partitioned beyond the CU associated with a intra prediction type may be based on the shape and/or number of samples in the CTU and/or CU. For example, further partitioning of the luma and/or chroma channels may be enabled for CTUs and/or CUs having a size/dimension greater than or equal to minimum sizes/dimensions. Further, in one example, further partitioning of the luma and/or chroma channels may be enabled for CTUs and/or CUs having a size/dimension less than a minimum size/dimension. In one example, the minimum sizes/dimensions/number of samples may be the same as the minimum sizes/dimensions/number of samples specified for the QTBT partitioning rooted at the CTU-level. In one example, further partitioning of the luma and/or chroma channels may be enabled for CTUs and/or CUs having a size/dimension/number of samples less than or equal to a maximum size/dimension/number of samples. When the block size is smaller than the maximum, then partitioning (e.g., QT partitioning) may be inferred and no additional signaling is needed. In one example, the maximum sizes/dimensions/number of samples may be the same as the maximum sizes/dimensions/number of samples specified for the QTBT partitioning rooted at the CTU-level. In one example, each of the luma and/or chroma channels sizes/dimensions for CTUs and/or CUs may be signaled using higher level syntax. Further, in one example, each of the luma and/or chroma channel sizes/dimensions for CTUs and/or CUs may be predetermined.
Li, et al., “Multi-Type-Tree,” 4th Meeting: Chengdu, CN, 15-21 Oct. 2016, Doc. JVET-D0117r1 (hereinafter “Li”), describes an example where in addition to the symmetric vertical and horizontal BT split modes, two additional triple tree (TT) split modes are defined. Triple tree (TT) partitioning may refer to partitioning a node into three blocks about a direction. In Li, TT split modes for a node include: (1) horizontal TT partitioning at one quarter of the height from the top edge and the bottom edge of a node; and (2) vertical TT partitioning at one quarter of the width from the left edge and the right edge of a node.
F. Le Leannec, et al., “Asymmetric Coding Units in QTBT,” 4th Meeting: Chengdu, CN, 15-21 Oct. 2016, Doc. JVET-D0064 (hereinafter “Le Leannec”), describes an example where in addition to the symmetric vertical and horizontal BT split modes, four additional asymmetric BT split modes are defined. In Le Leannec, the four additionally defined BT split modes for a CU include: horizontal partitioning at one quarter of the height (at the top for one mode or at the bottom for one mode) or vertical partitioning at one quarter of the width (at the left for one mode or the right for one mode). The four additionally defined BT split modes in Le Leannec are illustrated in
As described above, in JEM, a QTBT is signaled by signaling QT split flag and BT split mode syntax elements.
As illustrated in Table 8, upon reaching a coding unit (BT split=0), a prediction type for the coding unit is determined. If the prediction type is inter, no further partitioning signaling occurs for the coding unit. If the prediction type is intra, a QTBT is signaled for the luma channel and a QTBT is signaled for the chroma channel. Table 9A illustrates a general case of signaling that occurs for a coding unit. As described above, in some examples, further partitioning may be disabled for one of the luma channel or the chroma channel. In such examples, either of coding_tree_luma( ) or coding_tree_unit_chroma( ) in Table 9A may be replaced with coding_block_luma( ) or coding_block_chroma( ).
Further, as described above, various techniques may be used to determine whether and how the luma and/or chroma channels may be further partitioned beyond the CU associated with a intra prediction type. Thus, in Table 9A, coding_tree_unit_luma( ) and coding_tree_unit_chroma( ) may provide semantics that enable various types of partitioning. For example, coding_tree_unit_chroma( ) may include semantics for applying BT or TT partitioning. In one example, the luma and chroma channels may be further partitioned beyond the CU associated with an intra prediction type according to separate partitioning trees or a shared partitioning tree. In one example, a flag may indicate whether the luma and chroma channels are further partitioned according to separate partitioning trees or a shared partitioning tree. Table 9B illustrates an example, where a flag (i.e., separate_tree_flag) indicates whether the luma and chroma channels are further partitioned according to separate partitioning trees (i.e., coding_tree_unit_luma( ) and coding_tree_unit_chroma( )) or a shared partitioning tree (i.e., coding_tree_unit_shared( )), where coding_tree_unit_shared( ) provides semantics that enables various types of partitioning.
In one example, whether the luma and chroma channels are further partitioned according to separate partitioning trees or a shared partitioning tree may be inferred based on properties of video data and/or coding parameters. For example, referring to Table 9B, the separate_tree_flag==TRUE condition may be replaced with a condition based on properties of video data and/or coding parameters. In one example, whether separate partition trees or a shared partitioning tree is used for further partitioning the luma and chroma channels may be conditioned on the number of samples (e.g., luma or chroma samples) included in the CU. In one example, when the number of samples included in the CU is less than or equal to a threshold (e.g., 64, 256, or 1024 samples), separate partition trees may be used for further partitioning the luma and chroma channels, otherwise a shared partition tree is used. In one example, when the number of samples included in the CU is greater than or equal to a threshold, separate partition trees may be used for further partitioning the luma and chroma channels, otherwise a shared partition tree is used.
As described above, for an intra prediction slice, only intra prediction modes are enabled and for an inter prediction slice both intra prediction modes and inter prediction modes are enabled. It should be noted that inter prediction slices may further be classified as being either a P type slice (or P slice) or a B type slice (B slice), where for a B slice uni-directional and bi-predictive inter prediction is enabled and for an P slice only uni-directional inter prediction is enabled. In one example, whether separate partition trees or a shared partitioning tree is used for further partitioning the luma and chroma channels may be conditioned on whether an inter prediction slice including the intra CU is a P slice or a B slice. It should be noted in one example, whether a flag is present and used to indicate whether the luma and chroma channels are further partitioned according to separate partitioning trees or a shared partitioning tree may be conditioned on a slice type. For example, in one example, separate_tree_flag in Table 9B may be present for P slices and not present for B slices or alternatively, separate_tree_flag in Table 9B may be present for B slices and not present for P slices. As described above, intra CUs may be included in intra slices and inter slices. In one example, intra CUs included in intra slices may be further partitioned where a flag may indicate whether the luma and chroma channels are further partitioned according to separate partitioning trees or a shared partitioning tree. Thus, in one example, separate_tree_flag in Table 9B may be present for intra and inter slices. In one example, separate_tree_flag in Table 9B may present for any subset of slice types. In one example, whether a flag is present and used to indicate whether the luma and chroma channels are further partitioned according to separate partitioning trees or a shared partitioning tree may be conditioned on properties of video data and/or coding parameters. For example, separate_tree_flag in Table 9B may present based on the size of an intra CU and/or the depth at which the intra CU occurs.
It should be noted that although separate_tree_flag in Table 9B is described as being signalled at the CU-level, in other examples, separate_tree_flag may be signaled at the CTU-level, the slice-level, a tile-level, a wavefront-level, or at a parameter-set level (e.g., a PPS or a SPS). Further, in one example, whether further partitioning of the luma and chroma channels according to separate partitioning trees or a shared partitioning tree is enabled (e.g., whether separate_tree_flag may be present based on video data and/or coding parameters) may be determined according to a higher level flag. For example, a flag included in a slice header, may indicate whether separate_tree_flag may be present at a CU-level and the actual presence of separate_tree_flag at a particular CU may be based on the size of the CU. Further, in one example, a parameter-set level flag may indicate whether a CTU-level flag is present, where the CTU-level flag indicates whether further partitioning of the CTU is done according to a shared partitioning tree or a separate partitioning trees. That is, the CTU-level flag may be similar to a separate_tree_flag present at the CU-level described in the examples above. In one example, the CTU-level flag may indicate whether no further partitioning of the CTU occurs, and in the cases where further partitioning of the CTU occurs, whether partitioning is done according to a shared partitioning tree or a separate partitioning trees. In one example, the CTU-level flag may not be included in the bitstream and inferred to indicate further partitioning occurs. It should be noted that the CTU-level flag may be present in a bitstream such that it is received before a video decoder infers implicit partitioning of CTUs intersecting a picture boundary into CUs. In this case, in some cases (e.g., the CTU-level flag indicates no further partitioning), individual flags do not need to be sent for further partitioning each of the largest inferred CU inside the picture boundary. In another example, the CTU-level flag may be present in a bitstream such that it is received in conjunction with the first CU of the CTU.
As described above, whether and how the luma and/or chroma channels may be further partitioned beyond the CU associated with a intra prediction type may be based on maximum depth values, where maximum depths for each of the luma and chroma channels may be signaled using higher level syntax. In one example, maximum depths for each of luma and chroma channels partitioned according to a shared partitioning tree may be signaled independently, in which case, each channel would be partitioned according to the shared tree up to its maximum depth. In one example, maximum depths for each of the luma and chroma channels partitioned according to separate partitioning trees may be signaled independently. For example, a flag included in a slice header may indicate whether separate_tree_flag may be present at a CU-level and the actual presence of separate_tree_flag at a particular CU may be based on the size of the CU and the slice header may further indicate a respective maximum depths for each of the luma and chroma channels.
As described above, the presence of separate_tree_flag in Table 9B may be based on the depth at which the intra CU occurs. In one example, the depth at which the intra CU occurs may be specified with respect to a root occurring (i.e., depth 0) at a CTU and may be referred to as cu_depth. As illustrated in the example of
Table 9C illustrates an example where separate_tree_flag is conditionally present in a bitstream based on an intra CUs having a cu_depth greater than or equal to a depth and when separate_tree_flag is not present in a bitstream, separate partitioning trees are used to partition the luma and chroma channels beyond the intra CU. Table 9D illustrates an example where separate_tree_flag is conditionally present in a bitstream based on an intra CUs having a cu_depth greater than or equal to a depth and when separate_tree_flag is not present in a bitstream, a shared partitioning tree is used to partition the luma and chroma channels beyond the intra CU. In one example, max_depth in Table 9C and 9D may be signaled using higher level syntax. For example, max_depth may be signaled at the CTU-level, the slice-level, or at a parameter-set level. In one example, max_depth in Table 9C and 9D may be equal to MaxBTDepth.
It should be noted that in some examples, the condition (cu_depth>=max_depth) in Tables 9C-9D may be replaced with (cu_depth==max_depth). Further, in some examples, the condition (cu_depth>=max_depth) in Tables 9C-9D may be replaced with the following condition (cu_depth>=max_depth OR cu_width==min_width OR cu_height==min_height), where cu_width is the width of the CU in number of samples, cu_height is the height of the CU in number of samples, min_width is a width threshold in number of samples, and min_height is a height threshold in number of samples. In this manner, in one example, the presence of separate_tree_flag in the bitstream may be further conditioned on the number of samples (e.g., luma or chroma samples) included in the intra CU. Further, it should be noted that in some examples, values for max_depth, min_width, and/or min_height may be based on a slice type (e.g., P or B) and/or a color component index values. In one example, (cu_depth>=max_depth) in each of the examples illustrated in Table 9C and Table 9D may be replaced with the condition (cu_depth<=max_depth), such that the signaling of separate_tree_flag would be skipped, based on an intra CUs having a cu_depth less than or equal to a depth. It should be noted that in this case, max_depth is a depth value that represents a threshold depth (i.e., for an intra CU having a depth less than or equal to max_depth, in this case, the value of separate_tree_flag is inferred). In one example, (cu_depth>=max_depth) in each of the examples illustrated in Table 9C and Table 9D may be replaced with the condition (cu_height<=min_height OR cu_width<=min_width), such that the signaling of separate_tree_flag would be skipped, based on an intra CUs being less than or equal to a size. It should be noted that in this case, min_height and min_width represent threshold values. In one example, (cu_depth>=max_depth) in each of the examples illustrated in Table 9C and Table 9D may be replaced with the condition (cu_height>=min_height OR cu_width>=min_width), such that the signaling of separate_tree_flag would be skipped, based on an intra CU being greater than or equal to a minimum size. In this manner, a video decoder may infer the value of separate_tree_flag based on a block size. It should be noted that, in some examples, the values of max_depth, min_width, and/or min_height may be dependent on the slice type (e.g., P or B slice) for the slice including the CU and/or a channel (e.g., luma or chroma).
As described above, in JEM, a QTBT leaf node for a color component (i.e., a CB in JEM) may be considered analogous to a PB and a TB in ITU-T H.265. As such, in JEM once a QTBT leaf node is reached, additional signaling is provided to indicate a prediction corresponding to the QTBT leaf node (e.g., an intra prediction direction) and transform characteristics corresponding to the residual corresponding to the QTBT leaf node (e.g., a NSST_idx). For example, referring to
As described above, in JEM once a QTBT leaf node is reached, additional signaling is provided to indicate a prediction corresponding to the QTBT leaf node and transform characteristics corresponding to the residual corresponding to the QTBT leaf node. Thus, in JEM, for each QTBT leaf node, respective signaling is provided to indicate a prediction corresponding to the QTBT leaf node and transform characteristics corresponding to the residual corresponding to the QTBT leaf node. In one example, according to the techniques described herein, CBs beyond the intra CU (e.g., each of the four luma CBs in
Referring again to the examples illustrated in Tables 9B-9D, in example, partitioning the luma and chroma channels beyond the intra CU using a shared partitioning tree may not be allowed, may be disabled based on higher level signaling (e.g., a CTU or slice level enable/disable flag), may be disabled based on properties of the CU (e.g., size, and/or depth), and/or may be disabled based on higher level signaling and/or properties of the CU. Table 9E illustrates an example where partitioning the luma and chroma channels beyond the intra CU using a shared partitioning tree is not allowed. That is, in the example of Table 9E, if the luma and chroma channels are not further partitioned according to separate partitioning trees, further partitioning terminates. That is, as illustrated in Table 9E, prediction and transform characteristic syntax is signaled for the intra CU without further partitioning of the luma and chroma channels. Table 9F illustrates an example where partitioning the luma and chroma channels beyond the intra CU using a shared partitioning tree is disabled based on higher level signaling and/or properties of the CU. That is, in Table 9F, the condition (CU Condition==TRUE) may be a condition based on higher level signaling and/or properties of the CU. It should be noted that in some examples, the condition (CU Condition==TRUE) may be a based on a property of a bitstream (i.e., determined without additional signaling). For example, (CU Condition==TRUE) may be a flag that is present based on a higher level (e.g., CTU level, slice level, parameter set level) enable/disable flag.
It should be noted that with respect to the example illustrated in Table 9E, not allowing partitioning of the luma and chroma channels beyond the intra CU using a shared partitioning tree may reduce the complexity of implementing a compliant video encoder and a compliant video decoder. However, in some cases, not allowing partitioning of the luma and chroma channels beyond the intra CU using a shared partitioning tree may result in a loss of coding efficiency.
As described above, whether separate partition trees or a shared partitioning tree is used for further partitioning the luma and chroma channels, where a CU associated with a intra prediction type forms the root for further partitioning the luma and/or chroma channels, may be conditioned on the number of samples (e.g., luma or chroma samples) included in the CU. In one example, a range of block sizes may be allowed to be partitioned according to a shared tree and a range of block sizes may be allowed to be partitioned according to separate trees. Table 9G illustrates an example where separate_tree_flag is conditionally present in a bitstream based on the following conditions (1) whether the size of the CU is greater than or equal to an upper size threshold (cu_width*cu_height>=Upper_TH); (2) whether the size of the CU is less than or equal to a lower size threshold (cu_width*cu_height<=lower_TH); and (3) whether further partitioning is allowed (no further partitioning allowed). It should be noted that the condition (no further partitioning allowed) in Table 9G may be similar to the (CU Condition==TRUE) condition described above. In one example, Upper_TH and/or Lower_TH may be signalled using high level signalling. For example, Upper_TH may be set to 1024 samples and Lower_TH may be set to 256 samples. In one example, the determination of whether no further partitioning is allowed may be based on the example conditions provided above, e.g., (cu_depth>=max_depth), (cu_depth>=max_depth OR cu_width==min_width OR cu_height==min_height), etc. In one example, the condition for determining whether no further partitioning is allowed may be signalled using high level signalling.
Table 9H illustrates an example where separate_tree_flag is conditionally present in a bitstream based on the following conditions (1) whether the size of the CU is greater than or equal to an upper size threshold (cu_width*cu_height>=Upper_TH); and (2) whether the size of the CU is less than or equal to a lower size threshold (cu_width*cu_height<=lower_TH).
In one example, whether separate partition trees or a shared partitioning tree is used for further partitioning the luma and chroma channels, where a CU associated with a intra prediction type forms the root for further partitioning the luma and/or chroma channels, may be conditioned on the value of a QP associated the CU. For example, in one example, separate_tree_flag may be conditionally present in a bitstream based on the following conditions (1) whether the value of a QP is greater than or equal to an upper threshold; (2) whether the value of a QP is less than or equal to a lower threshold; and/or (3) whether further partitioning is allowed. That is, for example, the conditions (cu_width*cu_height>=Upper_TH) and (cu_width*cu_height<=lower_TH) in Tables 9G and 9H may be respectively replaced with the conditions (QP>=Upper_QP_TH) and (QP<=Lower_QP_TH), where, in one example, Upper_QP_TH and/or Lower_QP_TH may be signalled using high level signalling. For example, Upper_QP_TH may be set to 40 and Lower_QP_TH may be set to 10. In one example, the minimum allowed leaf size for each of coding_tree_unit_luma( ), coding_tree_unit_chroma( ) and/or coding_tree_unit_shared( ) may be distinct. For example, coding_tree_unit_shared( ) may have a minimum allowed leaf size of 16 samples (e.g., 4×4) and coding_tree_unit_luma( ) and/or coding_tree_unit_chroma( ) may have a minimum allowed leaf size of 256 (e.g., 16×16).
As described above, inter prediction slices may further be classified as being either a P type slice or a B type slice and whether separate partition trees or a shared partitioning tree is used for further partitioning the luma and chroma channels may be conditioned on whether an inter prediction slice including the intra CU is a P slice or a B slice. Further, it should be noted that in ITU-T H.265, to support temporal scalability each inter slice may be associated with a temporal identifier (i.e., TemporalId variable), that indicates a level in a hierarchical temporal prediction structure. For example, slices in pictures forming a 30 Hz base layer may have TemporalId=0 and slices in pictures forming a 60 Hz scalable sub-layer may have TemporalId=1. It should be noted that pictures with a lower temporal identifier, i.e., pictures corresponding to a lower layer of video, are more frequently relied upon as predictors. For example, pictures included in a 30 Hz base layer would generally be more frequently relied upon as predictors than pictures included in a 60 Hz scalable sub-layer. The quality of pictures that are more frequently relied upon as predictors generally have a higher impact of video quality than the quality of pictures that are less frequently relied upon as predictors. Further, due to the hierarchical temporal prediction structure of temporal scalable video, when pictures at lower layers are low quality, errors may propagate to multiple higher layers of video (i.e., temporal error propagation). In contrast, when pictures at higher layers are low quality, temporal error propagation may be limited. As used herein, the term prediction depth of a picture may be used to refer to a value that quantifies how many pictures at various hierarchical layers rely (directly or indirectly) on the picture as a predictor. Prediction depth may be used to determine an expected temporal error propagation based on the quality of a picture. In one example, a prediction depth may correspond to TemporalId or may be function of TemporalId. In one example, a prediction depth may be equal to TemporalId plus one. In one example, according to the techniques described herein, whether separate partition trees are used, a shared partitioning tree is used, and/or whether further partitioning is allowed for an intra CU included in an inter prediction slice may be based on the prediction depth of the inter prediction slice. For example, in one example, whether further partitioning of an intra CU included in an inter prediction slice may be disabled if a prediction depth is greater than or equal to a threshold.
As described above, for example, with respect to Tables 9C and 9D, an example where separate_tree_flag may be conditionally present in a bitstream based on an intra CUs having a cu depth greater than or equal to a variable max_depth. In one example, the variable max_depth may be equal to or a function of prediction depth. Thus, in a manner similar to that described above, the signaling of syntax elements used for further partitioning an intra CU included in an inter prediction slice may be skipped based on a prediction depth and a video decoder may be configured to infer the values of syntax elements that are not included in the bitstream. In one example, for pictures having a prediction depth greater than a threshold, further partitioning of luma and chroma channels beyond the CU level may be disabled, e.g., partitioning as described in JEM may be used. In this manner, more precise partitioning techniques may be allowed for pictures having relatively a high prediction reliance compared to pictures having a relatively low prediction reliance, where less precise partitioning techniques utilize fewer bits in a bitstream. As described above, whether and how the luma and/or chroma channels may be further partitioned beyond the CU associated with a intra prediction type may be based on higher level signaling and/or properties of video blocks. For example, partitioning the luma and chroma channels beyond the intra CU using a shared partitioning tree may not be allowed, may be disabled based on higher level signaling (e.g., a CTU or slice level enable/disable flag), may be disabled based on properties of the CU (e.g., size, and/or depth), and/or may be disabled based on higher level signaling and/or properties of the CU. In a similar manner, whether and how the luma and/or chroma channels may be further partitioned beyond the CU associated with a intra prediction type may be based on higher level signaling and/or a prediction depth. For example partitioning the luma and chroma channels beyond the intra CU using a shared partitioning tree may not be allowed, may be disabled based on higher level signaling (e.g., a CTU or slice level enable/disable flag), may be disabled based on properties of prediction depth (e.g., size, and/or depth), and/or may be disabled based on higher level signaling and/or prediction depth.
may be included in a parameter set (e.g., VPS, SPS, or PPS) or a slice header. Further, in one example, highest_tid_sst_plus1 may be may be signaled conditionally based on the value of a flag that indicates if a shared separate tree tool is used for coding video data.
As described above, coding_tree_unit_shared( ) provides semantics that enables various types of partitioning and similar to coding_tree_unit_luma( ) or coding_tree_unit_chroma( ) may provide semantics that enables various types of partitioning (e.g., BT or TT partitioning). In some examples, coding_tree_unit_shared( ) may be constrained to further partition the luma and chroma channels only a predetermined depth beyond the CU. In one example, coding_tree_unit_shared( ) may be constrained to further partition the luma and chroma channels only one depth beyond the CU. For example, in this case, coding_tree_unit_shared( ) may include a single syntax element indicating one of: no split, a QT split, a horizontal BT split, a vertical BT split, a horizontal TT split, and/or a vertical TT split. In one example, coding_tree_unit_shared( ) may include a single syntax element indicating one of: a horizontal BT split, a vertical BT split. In one example, when coding_tree_unit_shared( ) includes a single syntax element possible splits may include any combination of: no split, a QT split, a horizontal BT split, a vertical BT split, a horizontal TT split, and/or a vertical TT split.
It should be noted that some ways of signaling a particular partition structure may be considered inefficient and/or redundant. For example, in some cases, BT and TT splits can result in square blocks that can be achieved by simply using QT splitting (e.g., a vertical BT split and subsequent horizontal BT splits for each node results in four squares). Video encoder 200 may be configured to disallow redundant and/or inefficient signaling. JEM provides where a BT split that results in an equivalent QT split is disallowed at a video encoder.
In one example, according to the techniques herein, when further partitioning luma and/or chroma channels where a CU associated with a intra prediction type forms a root node, one or more of the following techniques may be used to mitigate inefficient and/or redundant signaling. In one example, for the chroma channel, when a BT split results in an equivalent QT split, the split may be disallowed and signaling may be modified based on the split being disallowed. For example, referring to
In one example, video encoder 200 may be configured such that one or more of the following apply: when no further splits are allowed for a node, skip signaling partitioning and infer no-split; when no further QT splits are allowed for a node, skip signaling QT split and signal only if non-QT/no splits are allowed. In general, in one example, video encoder 200 may be configured such that, when no further splits of a particular type are allowed, then video encoder 200 may skip signaling splits of a particular type and signal only splits types that are available.
It should be noted that when further partitioning of luma and/or chroma channels is enabled for a CU associated with a intra prediction type, there may be multiple QTBTs that result in equivalent CBs.
Referring to Tables 10A-10B, the signaling used in Table 10A may be considered less efficient than the signaling in Table 10B, (i.e., Table 10A requires more bits to signal an equivalent resulting partition). Thus, in one example, video encoder 200 may be configured such the signaling in Table 10A is disallowed. In one example, video encoder 200 may be configured to perform an iterative partitioning process, such that video encoder 200 evaluates whether a resulting partition can be more efficiently represented using another partitioning. Further, it should be noted that using the signaling in Table 10B may provide additional efficiency gains making residual and metadata available at early points in a bitstream sequence.
As described above, for example with respect to
As described above, according to the techniques described herein, various types of partitioning may be allowed for the luma and/or chroma channels where a CU associated with a intra prediction type forms the root for further partitioning the luma and/or chroma channels. In one example, according to the techniques described herein, further partitioning of a CU associated with a intra prediction type may be constrained such that a BT and/or ABT node may not be further partitioned according to a QT partition. In one example, according to the techniques described herein, further partitioning of a CU associated with a intra prediction type may allow a BT and/or ABT node to be further partitioned according to a QT partition. In one example, according to the techniques described herein, further partitioning of a CU associated with a intra prediction type may be constrained such that a BT and/or TT node may not be further partitioned according a QT partition. In one example, according to the techniques described herein, further partitioning of a CU associated with a intra prediction type may allow a BT and/or TT node to be further partitioned according QT partitions. In the examples where BT, ABT, and TT nodes are allowed to be further partitioned according to QT partition, at each BT, ABT, and TT node a QT split flag may be signaled indicating whether a QT partition is applied. In the examples where BT, ABT, and TT nodes are not allowed to be further partitioned according to QT partition, at each BT, ABT, and TT having a BT, ABT, or TT node as an ancestor, node a QT split flag is not signaled. In one example, according to the techniques described herein, further partitioning of a CU associated with a intra prediction type may include a combination of BT, ABT, and TT partitioning. Tables 10C-10D illustrate examples of bin coding signaling used for signaling QT partitioning, BT partitioning, TT partitioning, and ABT partitioning according to the techniques described herein. As described above, in the examples where BT, ABT, and TT nodes may be further partitioned according to QT partition, at each BT, ABT, and TT node a QT split flag may be signaled indicating whether a QT partition is applied. Referring to Table 10C, when QT is not allowed after a BT, ABT, and TT, node Bin0 is not transmitted for nodes that have a BT, ABT, or TT node as an ancestor in the partition tree. With respect to Tables 10C-10D, it should be noted, that there may be cases when some partitions are either equivalent to others or some partitioning is not possible in which case the binarization may be modified for coding efficiency.
As described above, the presence of syntax element (e.g., separate_tree_flag) in the bitstream and whether and how an intra CU may be further partitioned may be conditioned on the depth of a block in a partitioning structure and block sizes. It should be noted that in one example, the depth of an ABT leaf may correspond to number of samples in included in the leaf. In one example, when further partitioning includes ABT partitioning, the value of separate_tree_flag may be inferred based on block size, and/or the depth of BT, TT, and/or ABT leaf nodes.
In one example, coding_tree_unit_luma( ) and/or coding_tree_unit_chroma( ) may be constrained such that QT partitioning is disabled. For example, in this case, for coding_tree_unit_luma( ) and/or coding_tree_unit_chroma( ) possible splits may include any combination of: no split, a horizontal BT split, a vertical BT split, a horizontal TT split, and/or a vertical TT split. Table 10E illustrates an example of bin coding signaling used for signaling no split, a horizontal BT split, a vertical BT split, a horizontal TT split, and/or a vertical TT split.
It should be noted that in some examples, when QT partitioning is disabled for coding_tree_unit_luma( ) and/or coding_tree_unit_chroma( ), a QT partitioning may still be allowed for coding_tree_unit_shared( ). Further, in some cases, QT partitioning is still allowed for ancestors video blocks which form the root of the coding_tree_unit_luma( ) and coding_tree_unit_chroma( ). Further, in some cases, disabling QT partitioning for coding_tree_unit_luma( ) and/or coding_tree_unit_chroma( ) may only be applicable for intra blocks in inter-slices and not applicable to intra blocks in intra-slices.
In one example, in a manner similar to that described above, one or more further partitioning types may be disabled for coding_tree_unit_shared( ), coding_tree_unit_luma( ) and/or coding_tree_unit_chroma( ) based on one or more of: channel type (luma or chroma), slice type, current QT/BT/TT depth, etc. In such cases, signaling may be simplified. For example, with respect to Table 10E, if TT splitting is disabled, the signaling may be simplified as provided in Table 10F.
As described above, quantization may include division of transform coefficients by a quantization scaling factor and any associated rounding functions (e.g., rounding to the nearest integer). In some cases, quantization may result in level values of zero, e.g., for a relatively high quantization parameter. A non-zero level value may be described as significant. In ITU-T H.265, a coded block flag (cbf) may be signaled for each component to indicate whether a transform block includes one or more transform coefficient levels that are not equal to 0 (e.g., coded block flags, cbf_luma, cbf_cb, and cbf_cr). Further, in ITU-T H.265 a cbf may be signaled at a root (root_cbf) to indicate the presence of cbf_luma, cbf_cb, and cbf_cr and thus, if a block corresponding to the root does not include an significant coefficients. That is, if root_cbf is 0, cbf_luma, cbf_cb, and cbf_cr are not included in the bitstream and if root_cbf is 1, cbf_luma, cbf_cb, and cbf_cr are included in the bitstream. In cases where coding_tree_unit_luma( ) and coding_tree_unit_chroma( ) are used to signal partitionings, coding_tree_unit_luma( ) corresponds to one color component and coding_tree_unit_chroma( ) corresponds to two color components. As a result, signaling the root_cbf for each of coding_tree_unit_luma( ) and coding_tree_unit_chroma( ) may be redundant. According to the techniques herein, in one example, signaling root_cbf is skipped for coding_tree_unit_luma( ) (i.e., cbf_luma is present). It should be noted that there may be cases where TUs are smaller than a CU. In such a cases, the root_cbf is associated with multiple cbf_luma values (i.e., one for each TU). In one example, signaling root_cbf may be skipped for the set of luma coefficients only when the TU size is the same as CU size. In one example, signaling root_cbf is skipped for coding_tree_unit_luma( ) and coding_tree_unit_chroma( ) (i.e., cbf_luma, cbf_cb, and cbf_cr are present). In one example, signaling of cbf_luma is skipped for coding_tree_unit_luma( ), (i.e., root_cbf is equivalent to cbf_luma). In one example, signaling of cbf_cb and cbf_cr is skipped for coding_tree_unit_chroma( ), (i.e., root_cbf indicates if either cb or cr have significant coefficients). It should be noted that the such signaling of root_cbf, cbf_luma, cbf_cb, and cbf_cr may be applicable to separate partitioning trees occurring at an level (e.g., slice level, picture level, etc.). Further, it should be noted that in some examples, when root_cbf is skipped for coding_tree_unit_luma( ) and/or coding_tree_unit_chroma( ), a root_cbf may still be signaled for coding_tree_unit_shared( ). Further, in some cases, skipping the signaling of root_cbf for coding_tree_unit_luma( ) and/or coding_tree_unit_chroma( ) may only be applicable for intra blocks in inter-slices and not applicable to intra blocks in intra-slices.
In this manner, video encoder 200 represents an example of a device configured to receive a video block including sample values for a first component of video data and a second component of video data, partition the sample values for the first component of video data and the second component of video data according to a first quad tree binary tree partitioning structure, and for samples values of the first component of video data included in nodes of the first quad tree binary tree associated with an intra prediction type, further partition the samples according to a second quad tree binary tree.
Referring again to
As described above, in JEM, for intra prediction, a core transform and a subsequent secondary transform may be applied to a residual aligned with a QTBT leaf node to generate transform coefficients based on a prediction mode. In the case where one or both of the luma and chroma channels may be further partitioned for prediction purposes according to the techniques described herein, the AMT and MDNSST techniques described in JEM may be less than ideal. In one example, according to the techniques described herein, AMT may be enabled (capable of being applied or not applied) or disabled (not capable of being applied) for the luma and chroma channels according to the techniques described herein. In one example, for the luma channel residual corresponding to and aligned with a luma CB, (where the luma CB is included in an intra prediction mode CU included in an inter prediction slice), AMT may be enabled and for the chroma channel residual corresponding to and aligned with a chroma CB, AMT may be disabled. That is, referring to the example illustrated in
As described above, in JEM, NSST_idx, includes four possible values (i.e., 0=MDNSST not applied; and 1-3 correspond to a transform matrix) is signaled once per intra CU. In one example, according to the techniques described herein, possible values of NSST_idx may be defined according to Table 11. In one example, TH1 and TH2 in Table 11 may be equal to 8.
Thus, according to the techniques described herein, for the chroma channel core transform coefficients, MDNSST may be enabled if the corresponding CU has a width and/or height greater than a threshold. Further, in one example, the MDNSST may be applied only in cases where the number of core transform coefficient level values greater than zero is greater than a threshold. Further, in one example, the MDNSST may not be applied if a CU does not include any core transform level values not equal to 0. In one example, the MDNSST may be applied only in cases where the transform-quantization bypass is not applied. In one example, NSST_idx may range from 0 to 2 for DC and planar prediction modes. In one example, the range of NSST_idx may be controlled using higher level syntax.
Coefficient quantization unit 206 may be configured to perform quantization of the transform coefficients. As described above, the degree of quantization may be modified by adjusting a quantization parameter. Coefficient quantization unit 206 may be further configured to determine quantization parameters and output QP data (e.g., data used to determine a quantization group size and/or delta QP values) that may be used by a video decoder to reconstruct a quantization parameter to perform inverse quantization during video decoding. It should be noted that in other examples, one or more additional or alternative parameters may be used to determine a level of quantization (e.g., scaling factors). The techniques described herein may be generally applicable to determining a level of quantization for transform coefficients corresponding to a component of video data based on a level of quantization for transform coefficients corresponding another component of video data.
As illustrated in
As described above, a video block may be coded using an intra prediction. Intra prediction processing unit 212 may be configured to select an intra prediction mode for a video block to be coded. Intra prediction processing unit 212 may be configured to evaluate a frame and/or an area thereof and determine an intra prediction mode to use to encode a current block. As illustrated in
As described above, JEM specifies techniques for modifying reference samples prior to generating residual data and modifying references samples prior to reconstructing a video block (e.g., PDPC and ARSS). In the case where one or both of the luma and chroma channels may be further partitioned for prediction purposes according to the techniques described herein, techniques for modifying reference samples in JEM may be less than ideal. In one example, according to the techniques described herein, for a luma channel CB include in an intra prediction mode CU included in an inter prediction slice, PDPC may be enabled and for the chroma channel CB included, PDPC may be disabled. That is, referring to the example illustrated in
In one example, according to the techniques described herein, for a luma channel CB included in an intra prediction mode CU included in an inter prediction slice, ARSS may be enabled and for the chroma channel CB, ARSS may be disabled. That is, referring to the example illustrated in
As described above, in JEM for the MDNSST, there are 35 non-separable transform matrices, where 11 is the number of transform sets for the directional intra prediction mode and each transform set includes 3 transform matrices and for non-directional modes, (i.e., Planar, DC and LM) only one transform set is applied which includes 2 transform matrices. As further described above, chroma channels may be further partitioned according to separate partitioning trees. In one example, the LM mode may be allowed for the chroma channel, when the chroma channels are further partitioned according to separate partitioning tree for any subset of slice types (e.g., B type only or intra and inter type slices). Further, in one example, for the chroma channels using the DC or Planar prediction modes a corresponding transform set may include 3 transform matrices.
Inter prediction processing unit 214 may be configured to perform inter prediction coding for a current video block. Inter prediction processing unit 214 may be configured to receive source video blocks and calculate a motion vector for PUs of a video block. A motion vector may indicate the displacement of a PU (or similar coding structure) of a video block within a current video frame relative to a predictive block within a reference frame. Inter prediction coding may use one or more reference pictures. Further, motion prediction may be uni-predictive (use one motion vector) or bi-predictive (use two motion vectors). Inter prediction processing unit 214 may be configured to select a predictive block by calculating a pixel difference determined by, for example, sum of absolute difference (SAD), sum of square difference (SSD), or other difference metrics. As described above, a motion vector may be determined and specified according to motion vector prediction. Inter prediction processing unit 214 may be configured to perform motion vector prediction, as described above. Inter prediction processing unit 214 may be configured to generate a predictive block using the motion prediction data. For example, inter prediction processing unit 214 may locate a predictive video block within a frame buffer (not shown in
As illustrated in
As described above, ITU-T H.265 includes two types deblocking filters that may be used for modifying luma samples: a Strong Filter and a Weak Filter and one type of filter that may be used for modifying chroma samples: Normal Filter. In ITU-T H.265, a boundary strength measure is used to determine whether a type of filter is applied. In one example, according to the techniques described herein, filter unit 216 may be configured to determine a boundary strength based on whether one or more of the following is applied during the coding of video data: PDPC, ARSS, AMT, and/or MDNSST.
Further, as described above, JEM provides where for the luma component a picture-level flag may enable an ALF to be selectively applied to each CU in a picture and where for the chroma component the ALF is enabled or disabled at the picture level. In the case where one or both of the luma and chroma channels may be further partitioned for prediction purposes according to the techniques described herein, techniques in JEM for applying the ALF and signaling whether the ALF is applied may be less than ideal. In one example, filter unit 216 may be configured to apply the ALF and signal whether the ALF is applied according to the techniques described herein.
In one example, the presence of a flag indicating whether the ALF is applied for a block (e.g., a CU or CB) is based on the depth of the block, where depth may be related to a CTU root or a CU root. This flag may be referred to as ALF ON/OFF. In one example, ALF ON/OFF and corresponding ALF signaling is not present if the depth of a block is greater than a threshold. In some examples, the threshold may be signaled in a bitstreams. In one example, the value of ALF ON/OFF may be inferred for intra blocks (e.g., a CU or CB). In one example, the value of ALF ON/OFF for intra blocks may be independent for the luma channel and the chroma channel. In one example, signaling used for ALF ON/OFF may be signaled at the root of intra-mode tree in inter slices. In one example, signaling used for ALF ON/OFF may be signaled at the root of intra-mode tree in inter slices, only if the depth the root of intra-mode tree is less than or equal to the depth allowed for signaling ALF ON/OFF. In one example, signaling used for ALF ON/OFF may be signaled at depths of intra-mode tree in inter slices, only if the depth the root of intra-mode tree is less than or equal to the depth allowed for signaling ALF ON/OFF In one example, ALF ON/OFF signaling for intra blocks may be based on a signaled partition depth independent of inter coded blocks, where ALF ON/OFF and corresponding ALF signaling is not present if the depth of a block is greater than a threshold. In one example, ALF may be applied to intra coded luma and chroma blocks selectively, where the selection may be signaled. In one example, separate sets of ALF coefficients may be signaled for intra-coded blocks, independent of inter-coded blocks. In one example, separate sets of ALF coefficients may be signaled for luma and chroma channels.
In one example, ALF chroma sample classifications may be derived using luma sample classification for intra blocks in inter slices. In one example, ALF CU-level ON/OFF for chroma may be derived using an ON/OFF state of one or more co-located luma CB's for intra blocks in inter slices e.g., chroma CU-level flag is ON only if at least one of the co-located luma CB is ON.
Referring again to
As described above, in the example of a CABAC, for a particular bin, a context model may be selected from a set of available context models associated with the bin. In some examples, a context model may be selected based on a previous bin and/or values of previous syntax elements. In particular, for a syntax element a CABAC context variable is indexed using a context table and a content index (ctxidx). As further described above, according to the techniques described herein, for inter slices, if the prediction type of a CU is intra, a QTBT is signaled for the luma channel and a QTBT is signaled for the chroma channel.
In one example, the context of a split information may be based on the depth of the intra mode CU. It should be noted that in one example, depths are determined separately for luma and chroma channels when a CU in an inter slice has an intra type.
In one example, the context of a split information may be based on the size of the intra mode CU. In one example, size may correspond to number of samples in a block.
In one example, split syntax elements may be signaled per channel and the adjacent blocks may correspond to depth of channel under consideration.
As described above, in some examples, a flag (e.g., separate_tree_flag) may indicate whether the luma and chroma channels are further partitioned according to separate partitioning trees or a shared partitioning tree. In one example, a single a CABAC context variable may be used for entropy coding the flag and the context may be updated based on the values of the flag. In one example, a set of CABAC contexts variables may be available for entropy coding the flag. In one example, the context variable selected from the set may be based on the value(s) of the flag in a neighboring (spatial or temporal) blocks. In one example, the context selection for coding of the flag may be based on the depth of current block.
In one example, the context used for entropy coding separate_tree_flag may be based on the size of the block. For example, a context might be chosen by comparing the height of the block to a threshold, width of the block to a threshold, height*width of the block to a threshold, and/or some other suitable calculation based on the height and/or width. In one example, a context may be chosen by comparing the height of the block to the width of the block. For example, selections may be made based on whether: height is greater than width, height is less than width, or height is equal to width.
In one example, the context used for entropy coding separate_tree_flag may be based on slice type. In one example, the contexts used for entropy coding separate_tree_flag may be initialized so that the context associated with a relatively large block (e.g., a block satisfying the condition (cu_width*cu_height>=Upper_TH)) corresponds to a probability that the flag denotes a separate tree is present and alternatively, that a relatively small block (e.g., a block satisfying the condition (cu_width*cu_height<=Lower_TH) corresponds to a probability that the flag denotes a shared tree is present.
In one example, the context used for entropy coding separate_tree_flag may be selected according to the example illustrated in Table 12.
With respect to Table 12, in some cases, the context for a set of (W, H) may be grouped into a context set. Further, in some cases, the context for a set of (W, H, SliceType) may be grouped into a context set. It should be noted that in the example illustrated in Table 12, a CTU size is illustrated as 128×128. In other examples, other CTU sizes may be used and the Table may be reduced or extended accordingly.
In one example, when coding ABT split information using context selection based on adjacent block, the context is based on the depth at which intra-mode was selected.
As described above, one or more partitioning types may be disabled for coding_tree_unit_shared( ), coding_tree_unit_luma( ) and/or coding_tree_unit_chroma( ) based on slice type. In particular, in one example, TT partitioning types may be disabled for I-slices. Using shared and separate trees with disabled TT partitioning types may provide for a better encoding complexity versus coding efficiency trade-off.
As described above, the partitioning techniques described herein may result in rectangular coding blocks, in contrast to partitioning techniques in ITU-T H.265 that result in square coding blocks having equal height and width dimensions which are a power of 2. That is, for example, in ITU-T H.265, a 64×64 CU can be recursively partitioned into 32×32, 16×16, and 8×8 CUs. The size of square coding blocks having equal height and width dimensions which are a power of 2 can be expressed as 2N. Further, computation of the average of sample values located at the boundary of a square coding block having equal height and width dimensions which are a power of 2 can be implemented using a simple bit-shift operation. That is, the average of sample values located at the boundary of an 2N×2N video block can be computed by shifting the sum of the sample values by N+1 (i.e., SUM(Sample Values)>>(N+1)). Some coding tools, for example, those included in ITU-T H.265, that utilize the computation of an average value for samples located at the boundary a coding block assume coding blocks are square having equal height and width dimensions which are a power of 2 and thus, use a bit-shift operation to implement an averaging function. Such average computations need to be modified in order to compute the average of sample values located at the boundary of an arbitrary shape rectangular block (e.g., a block having dimensions W×H) while maintaining the ability to use a simple bit-shift operation to implement a division by the number of values included in the average. Additionally, coding tools such as those described in H. Liu, “Local Illumination Compensation,” ITU-Telecommunications Standardization Sector, Study Group 16 Question 6, Video Coding Experts Group (VCEG), 52nd Meeting, 19-26 Jun. 2015, Warsaw, Poland, Document: VCEG-AZO6 and Zhang et al., “Enhanced Cross-component linear model chroma intra prediction,” 4th Meeting: Chengdu, Conn., 15-21 Oct. 2016, Document: JVET-D0110 require the derivation of parameters of a linear model. The derivation of such parameters includes computing the sums of values and of squares of values of samples located at the boundary of a coding block, and computing divisions by the number of samples included in such sums. Such divisions can be implemented using bit-shift operations when the number of samples is a power of 2, as is the case for square blocks having equal height and width dimensions which are a power of 2. Such sum computations need to be modified in order to compute the sums of sample values and of squared sample values located at the boundary of an arbitrary shape rectangular block while maintaining the ability to use a simple bit-shift operation to implement a division by the number of values included in a sum.
As described above, extensions and improvements for ITU-T H.265 are currently being considered for the development of next generation video coding standards. In response to a “Joint Call for Proposals on Video Compression with Capabilities beyond HEVC,” jointly issued by VCEG and MPEG, multiple descriptions of video coding were proposed by various groups at the 10th Meeting of ISO/IEC JTC1/SC29/WG11 16-20 Apr. 2018, San Diego, Calif. As a result of the multiple descriptions of video coding, a draft text of a video coding specification is described in “Versatile Video Coding (Draft 1),” 10th Meeting of ISO/IEC JTC1/SC29/WG11 16-20 Apr. 2018, San Diego, Calif., document JVET-J1001-v2, which is incorporated by reference herein, and referred to as JVET-J1001.
In JVET-J1001, CTUs are partitioned according a quadtree plus multi-type tree (QTMT) structure. The QTMT in JVET-J1001 is similar to the QTBT in JEM. However, in JVET-J1001, in addition to indicating binary splits, the multi-type tree may indicate so-called ternary (or triple tree (TT)) splits. A ternary split divides a block vertically or horizontally into three blocks. In the case of a vertical TT split, a block is divided at one quarter of its width from the left edge and at one quarter its width from the right edge and in the case of a horizontal TT split a block is at one quarter of its height from the top edge and at one quarter of its height from the bottom edge. Further, JVET-J1001 provides where a flag, qt_split_cu_flag, indicates recursive quadtree partitioning. That is, one or more qt_split_cu_flag values indicate the partitioning of a CTU into quadtree leaf nodes. At each quadtree leaf node, a multi-type tree syntax structure indicates recursive multi-type tree partitioning. That is, the multi-type tree syntax structure indicates further partitioning of a quadtree leaf node according to zero or more symmetric BT and/or TT splits. The multi-type tree syntax structure includes a flag, mtt_split_cu_flag, which indicates whether a coding unit is reached (i.e., the current block is not further split and forms a coding unit, where a coding unit forms a root for prediction and transform characteristic syntax) or whether the current block is further split according to a BT or TT split. When mtt_split_cu_flag indicates that the current block is further split, two flags, mtt_split_cu_vertical_flag and mtt_split_cu_binary_flag, are signaled indicate one of: a horizontal TT split, a horizontal BT split, a vertical TT split, or a vertical BT split. Table 13 provides a summary of how split modes are indicated according to mtt_split_cu_flag, mtt_split_cu_vertical_flag, and mtt_split_cu_binary_flag.
As indicated in Table 13, mtt_split_cu_vertical_flag and mtt_split_cu_binary_flag are not signaled when mtt_split_cu_flag indicates a CU is reached. Further, it should be noted that signaling of mtt_split_cu_flag is repeated after the signaling of mtt_split_cu_vertical_flag and mtt_split_cu_binary_flag. It should be noted that JVET-J1001 provides various conditions where multi-type tree syntax is not signaled and/or limited. For example, partitioning of a block may be disabled based on a minimum block size being reach and/or a maximum depth from a CTU being reached. For the sake of brevity, these conditions are not described in detail herein. However, reference is made to section 6 of JVET-J1001 which describes conditions where splits are allowed or disallowed. It should be noted that in some cases splits may be disallowed based on a block being located at a picture boundary.
As described above, separate_tree_flag may indicate whether the luma and chroma channels are further partitioned according to separate partitioning trees and separate_tree_flag may be conditionally present for CUs associated with a intra prediction based on the number of samples (e.g., luma or chroma samples) included in the CU. As further described above, in one example, partitioning the luma and chroma channels beyond the intra CU using a shared partitioning tree may not be allowed and in such cases separate_tree_flag indicates whether the luma and chroma channels are further partitioned according to separate partitioning trees or whether partitioning terminates. That is, as illustrated above, for example, with respect to the example illustrated in Table 9E, separate_tree_flag may indicate the presence of coding_tree_unit_luma( ) and coding_tree_unit_chroma( ) for further partitioning. As further described above, for separate partitioning trees coding_tree_unit_luma( ) and coding_tree_unit_chroma( ) possible splits may include any combination of: no split, a QT split, a horizontal BT split, a vertical BT split, a horizontal TT split, and/or a vertical TT split, where a QT split may be disabled based on depth.
As described above, mtt_split_cu_flag indicates when a CU is reached. Thus, a separate_tree_flag indicating whether the luma and chroma channels are further partitioned according to separate partitioning trees (where separate partitioning trees include possible splits of no split, a QT split, a horizontal BT split, a vertical BT split, a horizontal TT split, and/or a vertical TT split, where a QT split may be disable based on depth) or whether partitioning terminates may be conditionally present after a mtt_split_cu_flag having a particular value. Table 14 illustrates an example where separate_tree_flag is conditionally present when mtt_split_cu_flag has a value of 0. It should be noted with respect to the example illustrated in Table 14, the luma and chroma channel are partitioned according to a common QTMT according to mtt_split_cu_flag, mtt_split_cu_vertical_flag, and mtt_split_cu_binary_flag and separate_tree_flag indicates whether the luma and chroma channels are further partitioned according to separate partitioning trees or whether partitioning terminates.
As described above, one or more further partitioning types may be disabled for coding_tree_unit_luma( ) and coding_tree_unit_chroma( ) and in such cases, signaling may be simplified. Thus, partitioning types may be disabled for coding_tree_unit_chroma( ) (or coding_tree_unit_luma( )) based on the constraints above. For example, if the first split type for coding_tree_unit_luma( ) is QT, QT may be is disabled for coding_tree_unit_chroma( ), due to the constraint: The first split type in coding_tree_unit_chroma( ) is not the same as the first split type in coding_tree_unit_luma( ). It should be noted that in some cases, any further splitting of the chroma channel is disabled.
Thus, JVET-K1001 enables the luma and chroma channels in I (intra) slices to be further partitioned beyond the implicit quadtree split according to separate partitioning trees. Thus, in JVET-K1001, for I slices where qtbtt_dual_tree_intra_flag is equal to 1, there is one set of QT splits flags for the luma channel and one set of QT splits flags for the chroma channel and for I slices where qtbtt_dual_tree_intra_flag is equal to 0 or non I slice types, there is one set one set of QT splits flags (i.e., luma and chroma channels are partitioned according to a shared partitioning tree). It should be noted that according to qtbtt_dual_tree_intra_flag in JVET-K1001 only one of the shared or separate partitioning scheme is allowed for slice type, i.e., in JVET-K1001 for I slices whether the shared or separate partitioning scheme is used cannot be varied within a slice on a CTU level. In some cases, depending on the regional characteristics of an image, it may be useful to use a shared partitioning scheme for some CTUs included in a slice and use a separate partitioning scheme for other CTUs included in the slice.
Similar to JVET-J1001, JVET-K1001 provides where qt_split_cu_flag is entropy coded according to a context, but does not provide a context model for selecting a context for qt_split_cu_flag. It should be noted however, that the current software implementation of JVET-K1001 provides where a context is selected for qt_split_cu_flag by comparing the depth of the current node at which the instance of qt_split_cu_flag is present (i.e., depth at the instance of qt_split_cu_flag is present in a bitstream) to (i) the depth of the CU to the left, (ii) the depth of the CU to the right, (iii) the minimum depth in a set of neighboring CUs, and (iv) the maximum depth in a set of neighboring CUs.
According to the techniques described herein, context modeling for values of qt_split_cu_flag is described for the following scenarios: (1) values of qt_split_cu_flag included in a CTU where the luma and chroma channels are partitioned according to a shared partitioning tree, where all CTUs in the slice use the same partitioning scheme (e.g., an I slice in JVET-K1001 where qtbtt_dual_tree_intra_flag is equal to 0); (2) values of qt_split_cu_flag included in a CTU where the luma and chroma channels are partitioned according to a shared partitioning tree, where CTUs in the slice may use different (shared or separate) partitioning schemes; (3) values of qt_split_cu_flag included in a CTU where the luma and chroma channels are partitioned according to separate partitioning trees, where all CTUs in the slice use the same partitioning scheme (e.g., an I slice in JVET-K1001 where qtbtt_dual_tree_intra_flag is equal to 1); (4) values of qt_split_cu_flag included in a CTU where the luma and chroma channels are partitioned according to separate partitioning trees, where CTUs in the slice may use different (shared or separate) partitioning schemes. It should be noted that partitioning luma and chroma channels according to separate partitioning trees may include partitioning according to independent separate partitioning trees and/or partitioning according to separate partitioning trees beyond a shared partitioning tree, where a shared partitioning tree is implicit (e.g., as in JVET-K1001 where qtbtt_dual_tree_intra_flag is equal to 1) or explicitly signaled.
It should be noted that although the techniques here are described with respect to determining a context for qt_split_cu_flag, the techniques described herein may be equally applicable to determining a context for any of the split flags and/or bins of any of the partitioning syntax elements described herein.
Further, it should be noted that for separate partitioning trees, the context coding of qt_split_cu_flag in a luma channel (or a chroma channel) may make use of neighboring luma depths (or chroma depths) and/or neighboring chroma depths (or luma depths).
As illustrated in
Referring again to
Intra prediction processing unit 308 may be configured to receive intra prediction syntax elements and retrieve a predictive video block from reference buffer 316. Reference buffer 316 may include a memory device configured to store one or more frames of video data. Intra prediction syntax elements may identify an intra prediction mode, such as the intra prediction modes described above. In one example, intra prediction processing unit 308 may reconstruct a video block using according to one or more of the intra prediction coding techniques described herein. Inter prediction processing unit 310 may receive inter prediction syntax elements and generate motion vectors to identify a prediction block in one or more reference frames stored in reference buffer 316. Inter prediction processing unit 310 may produce motion compensated blocks, possibly performing interpolation based on interpolation filters. Identifiers for interpolation filters to be used for motion estimation with sub-pixel precision may be included in the syntax elements. Inter prediction processing unit 310 may use interpolation filters to calculate interpolated values for sub-integer pixels of a reference block. Filter unit 314 may be configured to perform filtering on reconstructed video data. For example, filter unit 314 may be configured to perform deblocking, SAO filtering, and/or ALF, as described above with respect to filter unit 216. Further, it should be noted that in some examples, filter unit 314 may be configured to perform proprietary discretionary filter (e.g., visual enhancements). As illustrated in
In one or more examples, the functions described may be implemented in hardware, software, firmware, or any combination thereof. If implemented in software, the functions may be stored on or transmitted over as one or more instructions or code on a computer-readable medium and executed by a hardware-based processing unit. Computer-readable media may include computer-readable storage media, which corresponds to a tangible medium such as data storage media, or communication media including any medium that facilitates transfer of a computer program from one place to another, e.g., according to a communication protocol. In this manner, computer-readable media generally may correspond to (1) tangible computer-readable storage media which is non-transitory or (2) a communication medium such as a signal or carrier wave. Data storage media may be any available media that can be accessed by one or more computers or one or more processors to retrieve instructions, code and/or data structures for implementation of the techniques described in this disclosure. A computer program product may include a computer-readable medium.
By way of example, and not limitation, such computer-readable storage media can comprise RAM, ROM, EEPROM, CD-ROM or other optical disk storage, magnetic disk storage, or other magnetic storage devices, flash memory, or any other medium that can be used to store desired program code in the form of instructions or data structures and that can be accessed by a computer. Also, any connection is properly termed a computer-readable medium. For example, if instructions are transmitted from a website, server, or other remote source using a coaxial cable, fiber optic cable, twisted pair, digital subscriber line (DSL), or wireless technologies such as infrared, radio, and microwave, then the coaxial cable, fiber optic cable, twisted pair, DSL, or wireless technologies such as infrared, radio, and microwave are included in the definition of medium. It should be understood, however, that computer-readable storage media and data storage media do not include connections, carrier waves, signals, or other transitory media, but are instead directed to non-transitory, tangible storage media. Disk and disc, as used herein, includes compact disc (CD), laser disc, optical disc, digital versatile disc (DVD), floppy disk and Blu-ray disc where disks usually reproduce data magnetically, while discs reproduce data optically with lasers. Combinations of the above should also be included within the scope of computer-readable media.
Instructions may be executed by one or more processors, such as one or more digital signal processors (DSPs), general purpose microprocessors, application specific integrated circuits (ASICs), field programmable logic arrays (FPGAs), or other equivalent integrated or discrete logic circuitry. Accordingly, the term “processor,” as used herein may refer to any of the foregoing structure or any other structure suitable for implementation of the techniques described herein. In addition, in some aspects, the functionality described herein may be provided within dedicated hardware and/or software modules configured for encoding and decoding, or incorporated in a combined codec. Also, the techniques could be fully implemented in one or more circuits or logic elements.
The techniques of this disclosure may be implemented in a wide variety of devices or apparatuses, including a wireless handset, an integrated circuit (IC) or a set of ICs (e.g., a chip set). Various components, modules, or units are described in this disclosure to emphasize functional aspects of devices configured to perform the disclosed techniques, but do not necessarily require realization by different hardware units. Rather, as described above, various units may be combined in a codec hardware unit or provided by a collection of interoperative hardware units, including one or more processors as described above, in conjunction with suitable software and/or firmware.
Moreover, each functional block or various features of the base station device and the terminal device used in each of the aforementioned embodiments may be implemented or executed by a circuitry, which is typically an integrated circuit or a plurality of integrated circuits. The circuitry designed to execute the functions described in the present specification may comprise a general-purpose processor, a digital signal processor (DSP), an application specific or general application integrated circuit (ASIC), a field programmable gate array (FPGA), or other programmable logic devices, discrete gates or transistor logic, or a discrete hardware component, or a combination thereof. The general-purpose processor may be a microprocessor, or alternatively, the processor may be a conventional processor, a controller, a microcontroller or a state machine. The general-purpose processor or each circuit described above may be configured by a digital circuit or may be configured by an analogue circuit. Further, when a technology of making into an integrated circuit superseding integrated circuits at the present time appears due to advancement of a semiconductor technology, the integrated circuit by this technology is also able to be used.
Various examples have been described. These and other examples are within the scope of the following claims.
This Nonprovisional application claims priority under 35 U.S.C. § 119 on provisional Application No. 62/678,824 on May 31, 2018, No. 62/692,374 on Jun. 29, 2018, No. 62/700,167 on Jul. 18, 2018, No. 62/702,319 on Jul. 23, 2018, No. 62/731,049 on Sep. 13, 2018, the entire contents of which are hereby incorporated by reference.
Filing Document | Filing Date | Country | Kind |
---|---|---|---|
PCT/JP2019/020965 | 5/27/2019 | WO | 00 |
Number | Date | Country | |
---|---|---|---|
62678824 | May 2018 | US | |
62692374 | Jun 2018 | US | |
62700167 | Jul 2018 | US | |
62702319 | Jul 2018 | US | |
62731049 | Sep 2018 | US |