기본 정보
- 저자
- DOI
- 10.48550/arxiv.1603.03482
- 저널
- arXiv (Cornell University)
- 발행년도
- 2022
- 발행기관
- Cornell University
- 피인용수
- 0
- 라이선스
- cc-by
- 논문 유형
- –
- 언어
- –
- 원문 페이지
- https://doi.org/10.48550/arxiv.1603.03482
- 토픽
- Color Science and Applications
- OpenAlex ID
- W6891803513
평가 내용
- 관련도
- 사업분야
- 필름·전자재료 · (13) 프리즘 필름
- 부 분야
- –
- R&D 측면
- –
- 확신도
- –
- 근거 용어
- –
- 판단 근거
- 임베딩 유사도 기반 평가로 '필름·전자재료 > 프리즘 필름' 분야에 선정된 논문입니다.
- R&D 활용 포인트
- –
- 평가 입력
- –
초록
This paper describes a technique for performing intra prediction of the chroma planes based on the reconstructed luma plane in the frequency domain. This prediction exploits the fact that while RGB to YUV color conversion has the property that it decorrelates the color planes globally across an image, there is still some correlation locally at the block level. Previous proposals compute a linear model of the spatial relationship between the luma plane (Y) and the two chroma planes (U and V). In codecs that use lapped transforms this is not possible since transform support extends across the block boundaries and thus neighboring blocks are unavailable during intra-prediction. We design a frequency domain intra predictor for chroma that exploits the same local correlation with lower complexity than the spatial predictor and which works with lapped transforms. We then describe a low-complexity algorithm that directly uses luma coefficients as a chroma predictor based on gain-shape quantization and band partitioning. An experiment is performed that compares these two techniques inside the experimental Daala video codec and shows the lower complexity algorithm to be a better chroma predictor.
본문 31,100자
본문 펼치기
## Predicting Chroma from Luma with Frequency Domain Intra Prediction
Nathan E. Egge and Jean-Marc Valin
Mozilla, Mountain View, USA
Xiph.Org Foundation
ABSTRACT
This paper describes a technique for performing intra prediction of the chroma planes based on the reconstructed
luma plane in the frequency domain. This prediction exploits the fact that while RGB to YUV color conversion
has the property that it decorrelates the color planes globally across an image, there is still some correlation
locally at the block level. <sup>1</sup> Previous proposals compute a linear model of the spatial relationship between the luma
plane (Y) and the two chroma planes (U and V). <sup>2</sup> In codecs that use lapped transforms this is not possible since
transform support extends across the block boundaries <sup>3</sup> and thus neighboring blocks are unavailable during intraprediction. We design a frequency domain intra predictor for chroma that exploits the same local correlation with
lower complexity than the spatial predictor and which works with lapped transforms. We then describe a lowcomplexity algorithm that directly uses luma coefficients as a chroma predictor based on gain-shape quantization
and band partitioning. An experiment is performed that compares these two techniques inside the experimental
Daala video codec and shows the lower complexity algorithm to be a better chroma predictor.
Keywords: Intra Prediction, Lapped Transforms, Color Image Coding, Chroma Correlation, Regression, GainShape Quantization, Perceptual Vector Quantization
1. INTRODUCTION
Still image and video codecs typically consider the problem of intra-prediction in the spatial domain. A predicted
image is generated on a block-by-block basis using the previously reconstructed neighboring blocks for reference,
and the residual is encoded using standard entropy coding techniques. Modern codecs use the boundary pixels
of the neighboring blocks along with a directional mode to predict the pixel values across the target block (e.g.,
AVC, HEVC, VP8, VP9, etc.). These directional predictors are cheap to compute (often directly copying pixel
values or applying a simple linear kernel), exploit local coherency (with low error near the neighbors) and predict
hard to code features (extending sharp directional edges across the block). In Figure 1 the ten intra-prediction
modes of WebM are shown for a given input block based on the 1 pixel boundary around that block.
In codecs that use lapped transforms these techniques are not applicable (e.g., VC-1, JPEG-XR, Daala, etc.).
The challenge here is that the neighboring spatial image data is not available until _after_ the target block has
been decoded and the appropriate unlapping filter has been applied across the block boundaries. Figure 2 shows
the decode pipeline of a codec using lapped transforms with a single block size. The support used in spatial intra
prediction is exactly the region that has not had the unlapping post-filter applied. Note that the pre-filter has
the effect of decorrelating the image along block boundaries so that the neighboring pixel values before unlapping
are particularly unsuitable for use in prediction.
Work has been done to use intra prediction with lapped transforms. Modifying AVC, de Oliveira and Pesquet
showed that it was possible to use the boundary pixels just outside the lapped region to use 4 of the 8 directional
intra prediction modes with lapped transforms. <sup>4</sup> The work of Xu, Wu and Zhang considers prediction as a
transform and proposes a frequency domain intra prediction method using non-overlapped blocks. <sup>5</sup> An early
experiment with the Daala video codec extended this idea using machine learning to train sparse intra predictors. <sup>6</sup>
However this technique is computationally expensive (4 multiplies per coefficient) and not easily vectorized.
Copyright 2014-2015 Mozilla Foundation. This work is licensed under [CC-BY](https://creativecommons.org/licenses/by/3.0/) 3.0.
Send correspondence to Nathan E. Egge _<_ [negge@xiph.org](mailto:negge@xiph.org) _>_ .
Figure 1. The 10 intra-prediction modes for 4x4 blocks in WebM (VP8).
Figure 2. State of blocks in the decode pipeline of a codec using lapped transforms. Immediate neighbors of the target
block (bold lines) cannot be used for spatial prediction as they still require post-filtering (dotted lines).
A promising technique was proposed by Lee and Cho to predict the chroma channels using the spatially
coincident reconstructed luma channel. <sup>1</sup> This was formally proposed for use in HEVC by Chen et al <sup>2</sup> however
was ultimately not selected due to the increased encoder and decoder running time of 20-30%. We propose
a similar technique that adapts the spatial chroma-from-luma intra prediction for use with frequency-domain
coefficients. We call this algorithm frequency-domain chroma-from-luma (FD-CfL).
More recently, work on the Daala video codec has included replacing scalar quantization with gain-shape
quantization. <sup>7</sup> We show that when prediction is used with gain-shape quantization, it is possible to design a
frequency-domain chroma-from-luma predictor without the added encoder and decoder overhead. An experimental evaluation between FD-CfL and the proposed PVQ-CfL algorithm shows this reduction in complexity
comes with no penalty to quality and actually provides an improvement at higher rates.
2. CHROMA FROM LUMA PREDICTION
In spatial-domain chroma-from-luma, the key observation is that the local correlation between luminance and
chrominance can be exploited using a linear prediction model. For the target block, the chroma values can be
estimated from the reconstructed luma values as
_C_ ( _u, v_ ) = _α · L_ ( _u, v_ ) + _β_ (1)
(a) (b) (c)
Figure 3. Comparison of (a) the original uncompressed image with composite images of (b) reconstructed luma and
predicted chroma using experimental Daala intra modes and (c) reconstructed luma and predicted chroma using FD-CfL.
where the model parameters _α_ and _β_ are computed as a linear least-squares regression using _N_ pairs of spatially
coincident luma and chroma pixel values along the boundary:
_<u>i</u>_ _._ (2)
_N_
_Li_
_Ci_
_N_ _·_
_<u>i</u>_
_Li · Ci −_
_<u>i</u>_
_Li_
_Ci −_ _α ·_
_α_ =
_<u>i</u>_
_<u>i</u>_
_Ci_
<u>�2</u> <sup>_,_</sup> _β_ =
_N_ _·_
_i_
_Li · Li −_
<u>��</u>
_i_
When _α_ and _β_ are sent explicitly in the bitstream, the pairs ( _Li, Ci_ ) are taken from the original, unmodified
image. However, the decoder can also compute the same linear regression using its previously decoded neighbors
and thus _α_ and _β_ can be derived _implicitly_ from the bitstream. Additional computation is necessary when the
chroma plane is subsampled (e.g., 4:2:0 and 4:2:2 image data) as the luma pixel values are no longer coincident
and must be resampled. In the next section we adapt the algorithm to the frequency-domain and show that this
issue does not exist at most block sizes.
2.1 EXTENSION TO FREQUENCY-DOMAIN
In codecs that use lapped transforms, the reconstructed pixel data is not available. However the transform coefficients in the lapped frequency domain are the product of two linear transforms: the linear pre-filter followed by
the linear forward DCT. Thus the same assumption of a linear correlation between luma and chroma coefficients
holds. In addition, we can take advantage of the fact that we are in the frequency domain to use only a small
subset of coefficients when computing our model.
The chroma values can then be estimated using frequency-domain chroma-from-luma (FD-CfL):
_CDC_ = _αDC_ _· LDC_ + _βDC_ (3)
_CAC_ ( _u, v_ ) = _αAC_ _· LAC_ ( _u, v_ ) (4)
where the _αDC_ and _βDC_ are computed using the linear regression in Equation 2 with the DC coefficients of the
three neighboring blocks: up, left and up-left. When estimating _CAC_ ( _u, v_ ) we can omit the constant offset _βAC_
as we expect the AC coefficients to be zero mean. Additionally, we do not include all of the AC coefficients from
the same three neighboring blocks when computing _αAC_ .
It is sufficient to use the three lowest AC coefficients from the neighboring blocks. This means that the
number of input pairs _N_ is constant regardless of the size of chroma block being predicted. Moreover, the input
AC coefficients have semantic meaning: we use the strongest horizontal, vertical and diagonal components. This
has the effect of preserving features across the block as edges are correlated between luma and chroma, see the
fruit and branch edges in Figure 3 (c).
2.2 TIME-FREQUENCY RESOLUTION SWITCHING
When image data is 4:4:4 or 4:2:0, the chroma and luma blocks are aligned so that the lowest 3 AC coefficients
describe the same frequency range. In codecs that support multiple block sizes (or that support 4:2:2 image
data) it is the case that the luma blocks and the chroma blocks are not aligned. For example, in the Daala video
codec the smallest block size supported is 4x4. In 4:2:0, when an 8x8 block of luma image data is split into four
4x4 blocks, the corresponding 4x4 chroma image data is still coded as a single 4x4 block.
This is a problem for FD-CfL as it requires the reconstructed luma frequency-domain coefficients to cover
the same spatial extent. In Daala this is overcome by borrowing a technique from the Opus audio codec. <sup>8</sup> Using
Time-Frequency resolution switching (TF) it is possible to trade off resolution in the spatial domain for resolution
in the frequency domain. Here the four 4x4 luma blocks are _merged_ into a single 8x8 block with half the spatial
resolution and twice the frequency resolution. We apply a 2x2 Hadamard transform to corresponding transform
coefficients in four 4x4 blocks to merge them into a single 8x8 block. The low frequency (LF) coefficients are
then used with FD-CfL, see Figure 4.
(a) (b)
Figure 4. (a) Circuit diagram of the 2x2 TF-merge algorithm that uses 7 adds and 1 shift. (b) Using TF-merge to
convert four 4x4 frequency domain luma blocks (Y) into a single 8x8 frequency domain block for use with TD-CfL when
image data is 4:2:0. Note that only the lower frequency (LF) portion is actually necessary and thus only that portion of
the TF-merge need be computed.
2.3 COMPLEXITY COMPARISON
Both the spatial and frequency domain chroma-from-luma techniques have the property that once the model
parameters _α_ and _β_ have been determined the entire chroma block can be computed with one multiply and one
add per pixel. This is far better than the frequency domain intra prediction used to predict the luma plane in
Daala which uses 4 multiplies and 4 adds. <sup>6</sup> An important question to answer is how does the computational
complexity of the model fitting step in FD-CfL compare to the HEVC proposal. <sup>2</sup> Note that the HEVC proposal
required resampling the entire luma block for 4:2:0 image data, a process which is roughly as expensive as a
TF-merge and is necessary for all luma block sizes (not just at the smallest block size).
<u>Spatial</u> <u>Domain</u> <u>Freq.</u> <u>Domain</u>
Block Size
<u>Mults</u> <u>Adds</u> <u>Mults</u> <u>Adds</u>
_<u>N</u>_ _<u>× N</u>_ <u>4</u> _<u>∗</u>_ _<u>N</u>_ <u>+ 2</u> <u>8</u> _<u>∗</u>_ _<u>N</u>_ <u>+ 3</u> <u>2</u> _<u>∗</u>_ <u>12 + 5</u> <u>4</u> _<u>∗</u>_ <u>12 + 5</u>
<u>4</u> _<u>×</u>_ <u>4</u> <u>18</u> <u>35</u> <u>29</u> <u>53</u>
<u>8</u> _<u>×</u>_ <u>8</u> <u>34</u> <u>67</u> <u>29</u> <u>53</u>
<u>16</u> _<u>×</u>_ <u>16</u> <u>66</u> <u>131</u> <u>29</u> <u>53</u>
Table 1. Comparison of cost to fit the model in Equation 2 using spatial and frequency domain chroma-from-luma.
To answer this question, Table 1 is provided which compares just the cost of fitting the chroma-from-luma
model. An interesting feature of the FD-CfL algorithm is that the cost to fit the model is independent of the
block size, as we only consider a small portion of the frequency domain coefficients. In the frequency domain
we use 12 ( _Li, Ci_ ) pairs (the 4 LF coefficients from the 3 neighboring blocks), versus 2 _∗_ _N_ pairs in the spatial
domain ( _N_ from each of the bordering left and up blocks). This means that for all chroma block sizes larger
than 4x4, model fitting in the frequency domain is actually cheaper than in the spatial domain.
3. GAIN-SHAPE QUANTIZATION
Most modern video and still image codecs use scalar quantization as a “lossy” way of reducing the amount
of information needed to code a block. After the block coefficients have been transformed into the frequencydomain, they are each quantized to an integer index which is entropy coded. In the decoder the transform
coefficients are reconstructed by reversing the quantization. For a coefficient _Ci_ and quantization step size _Qi_,
the quantization index _γi_ and reconstructed coefficient _C_ <sup>ˆ</sup> _i_ can be found by
_γi_ = _⌊Ci/Qi⌋_ (5)
_C_ ˆ _i_ = _γi · Qi_ (6)
Note that when the quantization step size is large (e.g., at low rates) the smaller, high frequency coefficients go
to zero. While good for compression (many codecs will run-length encode a string of zeros), this has the effect
of low-passing the block and removing much of the texture from the image.
An alternative to scalar quantization is to use vector quantization (VQ). Here the quantization index _γ_ no
longer represents a single coefficient, but rather an entire vector of coefficients. The idea is to take, for example,
the entire block of coefficients and treat them as an _n_ -dimensional vector. Quantization then amounts to finding
the index _γ_ of the nearest codeword ( _n_ -dimensional vector) in a possibly infinite VQ-codebook. The density of
codewords in the codebook around the _n_ -dimensional vector we are quantizing dictates the quantization error.
However, it has been shown that even for a fixed set of input vectors, designing an optimal VQ-codebook is an
NP-hard problem. Moreover, searching for the optimal quantization index _γ_ requires computing the distance
between the input vector and every VQ-codeword to select the closest.
In the Daala video codec we use gain-shape quantization. <sup>9</sup> A vector of coefficients x is separated into two
intuitive components: its magnitude ( _gain_ ) and its direction ( _shape_ ). The gain _g_ = _∥_ x _∥_ represents how much
energy is contained in the block, and the shape u = x _/ ∥_ x _∥_ indicates where that energy is distributed among the
coefficients. The gain is then quantized using scalar quantization, while the shape is quantized by finding the
nearest VQ-codeword in an algebraically defined codebook. This has the advantage of not needing to explicitly
store the VQ-codebook in the decoder as well as allowing the encoder to search only a small set of VQ-codewords
around the input vector. Given the gain quantization index _γg_, the shape vector quantization index _γu_ and an
implicitly defined VQ-codebook _CB_, the reconstructed gain _g_ ˆ and shape u ˆ can be found by
_g_ ˆ = _γg · Q_ (7)
u ˆ = _CB_ [ _γu_ ] (8)
and reconstructed coefficients x ˆ are thus
x ˆ = _g_ ˆ _·_ ˆ u (9)
By explicitly signaling the amount of energy in a block, and roughly where that energy is located, gainshape quantization is texture preserving. Because the algebraic codebook used in Daala is based on the pyramid
vector quantizer described by Fisher, <sup>10</sup> this technique is referred to as Perceptual Vector Quantization (PVQ).
A complete description of PVQ usage in Daala and its other advantages over scalar quantization is outside the
scope of this paper and and is described in detail by Valin. <sup>7</sup>
3.1 PREDICTION WITH PVQ
In block based codecs, both intra- and inter-prediction can often construct a very good predictor for the block
that will be decoded next. In the encoder, this predicted block is typically subtracted from the input image
and the residual is transformed to the frequency domain, quantized and entropy coded. When the transform is
linear, as is the case with codecs based on lapped transforms, this is equivalent to transforming the predictor
and computing the difference in the frequency domain. However, if one were to simply quantize the frequency
domain residual using PVQ, the texture preservation property described in the previous section would be lost.
This is because the energy that would be preserved is no longer that of the block being coded, but instead the
(a) (b)
Figure 5. (a) A Householder reflection plane is computed that aligns the prediction vector so that its largest component
is along an axis. (b) The input vector is reflected across the plane and the angle _θ_ is computed and coded using scalar
quantization. The axis on which the predictor lies is eliminated, the remaining _n −_ 1 dimensions are coded using PVQ.
gain represents how much the image is different from its predictor. In Daala, this is avoided by explicitly _not_
computing a residual, but instead extracting another intuitive parameter in gain-shape quantization.
Ideally, when the predictor is good we would like the cost of coding the gain and shape to be low. That is,
we would like the entropy of the symbols we code to be as small as possible. We can achieve this and retain the
energy preserving properties of PVQ by using a Householder reflection. Considering the predictor as another
_n_ -dimensional vector, a reflection plane is computed that aligns the predictor with one of the axes in our _n_ dimensional vector space making all but one of the components in the predictor equal zero. The encoder can
then reflect the input vector x across this reflection plane in a way that is perfectly reproducible in the decoder,
see Figure 5.
Let r be the _n_ -dimensional vector of predictor coefficients. Then the normal to the reflection plane can be
computed as
<u>r</u>
v = _∥_ r _∥_ <sup>+</sup> <sup>_s ·_</sup> <sup>e</sup> <sup>_m_</sup> (10)
where _s_ _·_ e _m_ is the signed unit vector in the direction of the axis we would like to reflect r onto. The input vector
x can then be reflected across this plane by computing
z = x _−_ 2 v <sup><u>v</u></sup> <sup>_TT_</sup> <sup><u>x</u></sup> v <sup>v</sup> (11)
We can measure how well the predictor r matches our input vector x by computing the cosine of the angle _θ_
between them as
<u>x</u> <sup>_T_</sup> <u>r</u> <u>z</u> <sup>_T_</sup> <u>r</u>
cos _θ_ = _∥_ x _∥∥_ r _∥_ <sup>=</sup> _∥_ z _∥∥_ r _∥_ <sup>=</sup> <sup>_−s_</sup> _∥_ <sup>_<u>z</u>_</sup> z <sup>_<u>m</u>_</sup> _∥_ (12)
We are free to choose any axis in our _n_ -dimensional space and we select e _m_ to be the dimension of the largest
component of our prediction vector r and _s_ = sgn( _rm_ ). Thus the largest component lies on the _m_ -axis after
reflection. When the predictor is good, we expect that the largest component of z will also be in the e _m_ direction
and _θ_ will be small. If we code _θ_ <sup>ˆ</sup> using scalar quantization, we can remove the largest dimension of z and reduce
the coding of x to a gain-shape quantization of the remaining _n −_ 1 coefficients where the gain has been reduced
to sin _θ · g_ . Given a predictor r, the reconstructed coefficients x ˆ are computed as
- _−_ _s ·_ cos _θ_ <sup>ˆ</sup> _·_ e _m_ + sin _θ_ <sup>ˆ</sup> _·_ ˆ u
x ˆ = _g_ ˆ
- (13)
When the predictor is poor, _θ_ will be large and the reflection is unlikely to make things easier to code. Thus
when _θ_ is greater than 90 <sup>_◦_</sup> we code a flag and use PVQ with no predictor. Conversely when r is exact, _θ_ <sup>ˆ</sup> is zero
and no additional information needs to be coded. In addition, because we expect r to have roughly the same
amount of energy as x, we can get additional compression performance by using _∥_ r _∥_ as a predictor for _g_ :
_g_ ˆ = _γg · Q_ + _∥_ r _∥_ (14)
3.2 CHROMA FROM LUMA USING PVQ PREDICTION
Let us now return to the frequency-domain chroma-from-luma (FD-CfL) algorithm from Section 2.1 and consider
what happens when it is used with gain-shape quantization. As an example, consider a 4x4 chroma block where
the 15 AC coefficients are coded using gain-shape quantization with the FD-CfL predictor from Equation 4. The
15-dimensional predictor r is simply a linearly scaled vector of the coincident reconstructed luma coefficients:
_CAC_ ( _u, v_ ) = _αAC_ _· LAC_ ( _u, v_ ) = _⇒_ r = _αAC_ _·_ ˆ x _L_ (15)
Thus the shape of the chroma predictor r is exactly that of the reconstructed luma coefficients x ˆ _L_ with one
exception:
<u>r</u> _<u>αAC</u>_ _<u>·</u>_ <u>ˆ</u> <u>x</u> _<u>L</u>_
_∥_ r _∥_ <sup>=</sup> _∥αAC_ _·_ ˆ x _L∥_ <sup>= sgn(</sup> <sup>_αAC_</sup> <sup>)</sup> _∥_ x <sup><u>x</u></sup> ˆ <sup><u>ˆ</u></sup> _L_ <sup>_<u>L</u>_</sup> _∥_ (16)
Because the chroma coefficients are sometimes inversely correlated with the coincident luma coefficients, the
linear term _αAC_ can be negative. In these instances the _shape_ of x ˆ _L_ points in exactly the wrong direction and
must be flipped.
Moreover, consider what happens to the gain of x _C_ when it is predicted from r . The PVQ prediction technique
assumes that _∥_ r _∥_ = _αAC_ _· ∥_ x ˆ _L∥_ is a good predictor of _gC_ = _∥_ x _C∥_ . Because _αAC_ for a block is learned from
its previously decoded neighbors, often it is based on highly quantized or even zeroed coefficients. When this
happens, _αAC_ _· ∥_ x ˆ _L∥_ is no longer a good predictor of _gC_ and the cost to code _∥_ x _C∥−_ _αAC_ _· ∥_ x ˆ _L∥_ using scalar
quantization is actually greater than the cost of just coding _gC_ alone.
Thus we present a modified version of PVQ prediction that is used just for chroma-from-luma intra prediction
called PVQ-CfL. For each set of chroma coefficients coded by PVQ, the prediction vector r is exactly the
coincident luma coefficients. Note that for 4:2:0 video we still need to apply the Time-Frequency resolution
switching (TF) described in Section 2.2 to merge the reconstructed coefficients of 4x4 luma blocks to get the
coincident predictor x ˆ _L_ for the corresponding 4x4 chroma block. We determine if we need to flip the predictor
by computing the sign of the cosine of the angle between x ˆ _L_ and x _C_ :
_f_ = sgn(ˆ x <sup>_T_</sup> _L_ <sup>x</sup> <sup>_C_</sup> <sup>)</sup> (17)
A negative sign means the angle between the two is greater than 90 <sup>_◦_</sup> and flipping x ˆ _L_ is guaranteed to make the
angle less than 90 <sup>_◦_</sup> .
We then code _f_ using a single bit <sup>_‡_</sup>, and the gain _g_ ˆ _C_ using scalar quantization with no predictor. The shape
quantization algorithm for x _C_ is unchanged except that r = _f_ _·_ x ˆ _L_ . This algorithm has the advantage over
FD-CfL of being both lower complexity (neither the encoder nor decoder need to compute a linear regression
per block) and providing better compression (the chroma gain _gC_ is never incorrectly predicted).
3.3 PVQ WITH FREQUENCY BANDS
Up to this point we have only examined the case when all of the AC coefficients for an _N ×N_ block are considered
together as a single input vector for PVQ prediction. In practice, it may be better to consider portions of the
AC coefficients together so partitions of the block where _g_ ˆ = 0 or _θ_ <sup>ˆ</sup> = 0 are coded more efficiently. Consider the
frequency band structure currently used by Daala in Figure 6. The PVQ-CfL technique in the previous section
is trivially modified to work with any arbitrary partitioning of block coefficients into bands.
_‡_ It is not strictly necessary to code a bit for _f_ . Instead the parameter _αAC_ could be found using least-squares regression
and the sign extracted. However, using a single bit to code _f_ is (1) better overall than relying on least-squares regression
which can be wrong and (2) reduces the complexity significantly.
Figure 6. The band structure of 4x4, 8x8 and 16x16 blocks in Daala.
Instead of considering whether to flip the direction of x _L_ for each band partition individually (a signaling
cost of 7 bits per 16x16 block), simply look at the lowest 4x4 AC partition and use the flip decision there for
the entire block. The assumption is that having those larger low frequency coefficients predicted well is far more
important than getting it exactly right at higher frequencies. When the quantization step size is large, the high
frequency coefficients will be sent to zero regardless.
4. EXPERIMENTAL EVALUATION
The two frequency-domain intra-prediction techniques described in this paper for predicting chroma coefficients
from reconstructed luma coefficients were evaluated within the framework of the experimental Daala video codec.
To make the comparison fair, only the AC chroma coefficients were predicted using chroma-from-luma with the
DC chroma coefficients being predicted as the average of its neighbors. Only gain-shape quantization was used
to code the transform coefficients, with implicitly predicted FD-CfL coefficients being passed as the predictor to
PVQ in one instance, and the PVQ-CfL algorithm being used in the other. All other video coding techniques
used were identical.
A sample of 50 still images taken from Wikipedia and downsampled to 1 megapixel were compressed at
varying quantization levels, and the resulting rate-distortion curves were computed on both the Cb and Cr
chroma planes using four different metrics. The Bjontegaard distance <sup>11</sup> was computed to measure the average
improvement in both Rate (at equivalent quality) and SNR (at equivalent size) between the two techniques. The
result of this experiment is shown in Table 2.
<u>Cb</u> <u>(plane</u> <u>1)</u> <u>Cr</u> <u>(plane</u> <u>2)</u>
Metric
<u>∆Rate</u> <u>(%)</u> <u>∆SNR</u> <u>(dB)</u> <u>∆Rate</u> <u>(%)</u> <u>∆SNR</u> <u>(dB)</u>
<u>PSNR</u> <u>-1.27280</u> <u>0.05171</u> <u>-0.57558</u> <u>0.02941</u>
<u>PSNR-HVS</u> <u>-2.67808</u> <u>0.13703</u> <u>-1.24695</u> <u>0.07459</u>
<u>SSIM</u> <u>-2.51125</u> <u>0.07116</u> <u>-1.66549</u> <u>0.05779</u>
<u>FastSSIM</u> <u>-3.18398</u> <u>0.06969</u> <u>-2.79776</u> <u>0.06737</u>
Table 2. Computation of the Bjontegaard distance (improvement) between the two rate-distortion curves, moving from
FD-CfL to PVQ-CfL, based on four quality metrics.
For every quality metric we considered, the PVQ-CfL technique did a better job of predicting Cb and Cr
chroma coefficients both delivering higher quality at the same rate (up to 0.13 dB improvement for PSNR-HVS <sup>12</sup> )
and better compression for equivalent distortion (3.2% smaller files for FastSSIM <sup>13</sup> ). Looking at the actual ratedistortion curves in Figure 7, we see that the largest improvements are found at higher rates. However, the
reduced complexity of PVQ-CfL over FD-CfL with no rate or quality penalty at lower rates means this technique
is clearly superior and thus has been adopted in Daala.
55
50
45
40
35
30
subset1_FD-CfL_Cb (PSNR)
subset1_PVQ-CfL_Cb (PSNR)
55
50
45
40
35
30
25
subset1_FD-CfL_Cb (PSNR-HVS)
subset1_PVQ-CfL_Cb (PSNR-HVS)
0.01 0.1 1 10
Rate (bits/pixel)
0.01 0.1 1 10
Rate (bits/pixel)
24
22
20
18
16
14
12
10
8
(a) (b)
16
14
12
subset1_FD-CfL_Cb (SSIM)
subset1_PVQ-CfL_Cb (SSIM)
10
8
6
4
2
subset1_FD-CfL_Cb (FastSSIM)
subset1_PVQ-CfL_Cb (FastSSIM)
0.01 0.1 1 10
Rate (bits/pixel)
0.01 0.1 1 10
Rate (bits/pixel)
(c) (d)
Figure 7. A comparison of the rate-distortion curves for FD-CfL and PVQ-CfL on the same set of 50 still images using
quality metrics (a) PSNR, (b) PSNR-HVS, (c) SSIM and (d) FastSSIM.
5. CONCLUSIONS
We have presented two new techniques for doing chroma-from-luma intra-prediction in the frequency domain for
use with video and still image codecs that employ lapped transforms. The first technique (FD-CfL) is suitable
for use in codecs based on scalar quantization and provides a reduction in complexity when compared to spatial
domain CfL as per block complexity stays constant with block size increases. The second technique (PVQCfL) extends the PVQ prediction technique in codecs using gain-shape quantization to allow for better chroma
prediction with no additional per block complexity from model fitting.
This work is part of the Daala project. <sup>14</sup> The full source code, including both of the algorithms described in
this paper is available in the project git repository. <sup>15</sup>
REFERENCES
[1] Lee, S.-H. and Cho, N.-I., “Intra prediction method based on the linear relationship between the channels
for yuv 4:2:0 intra coding,” in [ _Image_ _Processing_ _(ICIP),_ _2009_ _16th_ _IEEE_ _International_ _Conference_ _on_ ],
1037–1040 (Nov 2009).
[2] Kim, J., Park, S., Choi, Y., Jeon, Y., and Jeon, B., “New intra chroma prediction using inter-channel
correlation,” Joint Collaborative Team on Video Coding (JCT-VC) of ITU-T VCEG and ISO/IEC MPEG
(July 2010).
[3] Tran, T., Liang, J., and Tu, C., “Lapped transform via time-domain pre- and post-filtering,” _Signal_ _Pro-_
_cessing,_ _IEEE_ _Transactions_ _on_ 51, 1557–1571 (June 2003).
[4] de Oliveira, R. and Pesquet-Popescu, B., “Intra-frame prediction with lapped transforms for image coding,”
in [ _Acoustics,_ _Speech_ _and_ _Signal_ _Processing_ _(ICASSP),_ _2011_ _IEEE_ _International_ _Conference_ _on_ ], 805–808
(May 2011).
[5] Xu, J., Wu, F., and Zhang, W., “Intra-predictive transforms for block-based image coding,” _Signal_ _Process-_
_ing,_ _IEEE_ _Transactions_ _on_ 57, 3030–3040 (Aug 2009).
[6] “Introducing daala part 2: Frequency domain intra prediction.” `[http://people.xiph.org/~xiphmont/](http://people.xiph.org/~xiphmont/demo/daala/demo2.shtml)`
`[demo/daala/demo2.shtml](http://people.xiph.org/~xiphmont/demo/daala/demo2.shtml)` .
[7] Valin, J.-M. and Terriberry, T. B., “Perceptual vector quantization for video coding,” _SPIE Proceedings_ 9410
(2015).
[8] Valin, J.-M., Maxwell, G., Terriberry, T. B., and Vos, K., “High-quality, low-delay music coding in the opus
codec,” in [ _Audio_ _Engineering_ _Society_ _Convention_ _135_ ], (Oct 2013).
[9] “Daala, part 6: Perceptual vector quantization.” `[https://people.xiph.org/~jm/daala/pvq_demo/](https://people.xiph.org/~jm/daala/pvq_demo/)` .
[10] Fischer, T. R., “A pyramid vector quantizer,” _IEEE_ _Trans._ _on_ _Information_ _Theory_ 32, 568–583 (1986).
[11] Bjontegaard, G., “Calculation of average psnr differences between rd-curves,” Tech. Rep. VCEG-M33, ITU
T SG16/Q6, Austin, TX, USA (Apr 2001).
[12] Ponomarenko, N., Silvestri, F., Egiazarian, K., Carli, M., Astola, J., and Lukin, V., “On between-coefficient
contrast masking of dct basis functions,” in [ _Proceedings_ _of_ _the_ _Third_ _International_ _Workshop_ _on_ _Video_
_Processing_ _and_ _Quality_ _Metrics_ _for_ _Consumer_ _Electronics_ ], (January 2007).
[13] Chen, M.-J. and Bovik, A. C., “Fast structural similarity index algorithm,” in [ _Proc._ _ICASSP_ ], 994–997
(march 2010).
[14] “Daala website.” `[https://xiph.org/daala/](https://xiph.org/daala/)` .
[15] “Daala git repository.” `[https://git.xiph.org/daala.git](https://git.xiph.org/daala.git)` .
섹션 본문
섹션 본문이 없습니다.
참고문헌
참고문헌 정보가 없습니다.