Selective Inter-Component Transform (ICT) for Image and Video Coding

Activating joint encoding/decoding in image and video coding through the selective inter-component transform (ICT) method solves the problems of complexity and inflexibility of CCLM and JCC methods in the existing technology, and achieves more efficient image and video coding. .

CN113678450BActive Publication Date: 2024-09-13FRAUNHOFER GESELLSCHAFT ZUR FORDERUNG DER ANGEWANDTEN FORSCHUNG EV
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202080020791.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Priority Date
2019-03-12
Filing Date
2020-03-11
Publication Date
2024-09-13
Estimated Expiration
2040-03-11

AI Technical Summary

Technical Problem

Existing image and video coding methods that apply a cross-component linear model (CCLM) between two chroma channel signals require complex prediction parameter calculations, and joint chroma coding (JCC) is relatively inflexible, especially in RGB coding and with Coding is less efficient in natural images or videos with significant color differences.

Method used

Using a selective inter-component transform (ICT) method, the joint encoding/decoding method is activated explicitly or implicitly via an entropy-encoded on/off flag or a non-binary index, allowing selective application of forward or decoding during image or video encoding. Inverse joint component transformation, supporting multiple ICT methods for increased flexibility.

Benefits of technology

Improves the flexibility and coding efficiency of image and video encoding, reduces encoder complexity, and improves coding gain in RGB encoding and content with significant color differences.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113678450B_ABST
    Figure CN113678450B_ABST
Patent Text Reader

Abstract

An encoder for encoding multiple components of an image content region of an image to be encoded, configured to: obtain multiple components representing the image content region; select an inter-component transform from a set of inter-component transforms; encode the multiple components using the selected inter-component transform to obtain encoded components; and provide the encoded components.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to selective inter-component transform (ICT) for image and video coding. Background Art

[0002] 1. Introduction, Prior Art

[0003] In natural still and moving color pictures (hereinafter referred to as images and videos), a large amount of signal correlation between the various color components can usually be observed. This is especially true for content represented in the YUV or YCbCr (luminance-chrominance) or RGB (red-green-blue) domain. In order to effectively utilize this inter-component redundancy in image or video coding, several prediction techniques have been proposed recently. The most notable ones are:

[0004] Cross-Component Linear Model (CCLM) prediction, a linear predictive coding (LPC) method that predicts the input signal of one component based on the signal of another (usually luminance) decoded component at the block level and encodes only the error, i.e., the difference between the input and the prediction;

[0005] Joint Chroma Coding (JCC), a method that encodes only the difference between two chroma residual signals (i.e., only a single downmix) and decodes the two chroma signals using a simple per-sample upmix rule "V=-U" or "Cr=-Cb" for YUV or YCbCr encoding, respectively. In other words, JCC upmixing means predicting V or Cr from U or Cb, respectively, without encoding the related errors or residuals for V and Cr, respectively, during the JCC downmixing process.

[0006] Both CCLM and JCC techniques, described in detail in [1] and [2] respectively, signal their activation in a particular coding block to the decoder via a single flag. Furthermore, it is worth noting that both schemes can in principle be applied between any pair of components, i.e.

[0007] In YUV or YCbCr encoding, between the luminance signal and the chrominance signal, or between two chrominance signals,

[0008] In RGB encoding, between the R signal and the G signal, or between the R signal and the B signal, or finally between the G signal and the B signal.

[0009] In the above list, the term "signal" may refer to a spatial domain input signal within a specific region or block of an input image or video, or may refer to the residual (i.e., difference or error) between the spatial domain input signal and a spatial domain prediction signal obtained using any spatial, spectral or temporal predictive coding technique (e.g., angular intra-frame prediction or motion compensation).

[0010] 2. Disadvantages of existing technologies

[0011] While the above solutions successfully improve the coding efficiency of modern image or video codecs, two drawbacks associated with the CCLM and JCC approaches can be recognized:

[0012] • Applying the CCLM method between two chroma channel signals requires a computationally relatively complex derivation of specific prediction parameters (CCLM weights) in both the encoder and the decoder from the top and left neighboring samples of the considered coding block.

[0013] The use of JCC techniques was found to be relatively inflexible, as downmixing and upmixing only supported signal differences. While on average this approach worked well for YUV or YCbCr encoded content, the coding gain was found to be relatively low for RGB encoded inputs and for natural images or videos recorded with cameras that have significant color differences.

[0014] Therefore, it is desirable to provide a more flexible method and apparatus for joint component coding of an image or video, which retains the low complexity of the JCC method. Summary of the invention

[0015] To address the above disadvantages, the present invention includes the following aspects, wherein the term signaling (or "signaling") refers to the transmission of coded information from an encoder to a decoder. Each of these aspects will be described in detail in a separate section.

[0016] 1. Block or picture selective application (i.e. activation) of one of at least two inter-component joint coding / decoding methods, and explicit block or picture-by-block signaling of the application of the joint coding / decoding via a (possibly entropy coded) on / off flag, or alternatively, a non-binary index;

[0017] Two or more inter-component methods can represent any of the following:

[0018] = encoding of a single downmix channel representing two color channels; where C' represents the decoded downmix channel, the decoded color channel being obtained by Cb' = a C' and Cr' = b C', where a and b represent specific mixing factors (usually a or b is set equal to 1);

[0019] · Encoding of two mixed channels; where C1' and C2' are decoded mixed channels; the decoded color components Cb' and Cr' are obtained by applying an orthogonal (or nearly orthogonal) transform of size 2 to the decoded mixed channels C1' and C2'.

[0020] Both methods can be extended to more than two color components. If mixing is applied to N>2 color components, it is also possible to encode M<N (where M>1) mixing channels and reconstruct the N color components given M<N decoded mixing channels.

[0021] 2. when joint coding / decoding is applied (i.e. activated), implicitly signalling which of the at least two inter-component methods is applied via an existing coded block flag bitstream element,

[0022] 3. Directly or indirectly signaling on a block-by-block or picture-by-picture basis the decoding parameters (e.g., upmix matrix, inverse transform type, inverse transform coefficients, rotation angle or linear prediction factor) of all inter-component joint encoding / decoding methods applied in the block or picture,

[0023] 4. When selecting one of the at least two inter-component joint encoding / decoding methods to be applied at the picture or block level, a fast decision is made at the encoder side (rather than an exhaustive search).

[0024] 3.1. Selective application of ICT with explicit application signaling

[0025] It is proposed to allow optional and selective application of Inter-Component Transform (ICT) for joint residual sample coding during image or video coding. Figure 1 As shown in , this ICT design applies a forward joint component transform (downmix) before or after a conventional component-by-component residual transform during encoding, and applies a corresponding inverse joint component transform (upmix) after or before a conventional component-by-component inverse residual transform during decoding. However, unlike the prior art of Section 1 or Section 2, the encoder can choose between more than one ICT method during encoding, i.e., not applying ICT encoding or applying one ICT method from a set of at least two ICT methods. Combined with the inventive aspects of Section 3.3, this results in greater flexibility than the prior art.

[0026] The selection and application (also called activation) of a specific one of at least two ICT methods can be performed globally for each image, video, frame, tile or slice (also called slice / slice in recent MPEG / ITU codecs, hereinafter referred to as picture). However, in block-based hybrid image or video encoding / decoding, it is preferably applied in a block-adaptive manner. The block for which one of the multiple supported ICT methods is selected for application may represent any of the following: a coding tree unit, a coding unit, a prediction unit, a transform unit, or any other block within the image, video, frame or slice.

[0027] Whether any of the multiple ICT methods is applied and which of these methods is applied is signaled within the bitstream using one or more syntax elements at the picture, slice, slice or block level (i.e., at the same granularity as the ICT is applied). In one embodiment (further described in Section 3.2), for each of the pictures or each block to which ICT coding is applicable, the fact that the ICT coding of the present invention is applied or not is signaled using an on / off flag (possibly entropy coded). In other words, the activation of the ICT method (of at least two ICT methods) of the present invention is explicitly signaled by a single bit or bin of each picture response block (a bit represents an entropy coded bit, which, if properly encoded, can consume an average size of less than 1 bit). In a preferred version of this embodiment, the application of the ICT method is signaled by a binary on / off flag. The information of which of the multiple ICT methods is applied is signaled via a combination of additionally transmitted coding block flags (see Section 3.2 for details). In another embodiment, the application of the ICT method and the ICT method used are signaled using non-binary syntax elements.

[0028] For both embodiments, a binary or non-binary syntax element indicating the use of an ICT method may only be present (in the syntax) if one or more coded block flags (which indicate whether the transform block has any non-zero transform coefficients) are equal to one. If no ICT-related syntax elements are present, the decoder infers that no ICT method is used.

[0029] In addition, the high-level syntax may include syntax elements that indicate the presence and meaning of block-level syntax elements (see Section 3.3). On the one hand, such high-level syntax elements may indicate whether any ICT methods are available for the current picture, slice or slice. On the other hand, the high-level syntax may indicate which subset of a larger set of ICT methods is available for the current picture, slice or slice of the picture.

[0030] In the following, we describe specific variants of inter-component transformations. Taking the chrominance components Cb and Cr of the image and video signals in the typically used YCbCr format as an example, these variants are described for two specific color components. Nevertheless, the present invention is not limited to this use case. The present invention can also be used for any other two color components (for example, for the red and blue components in RGB video). In addition, the present invention can also be applied to the encoding of more than two color components (such as the three components Y, Cb and Cr in YCbCr video, or the three components R, G and B in RGB video).

[0031] ICT Class 1: Transform-based Coding

[0032] In a first ICT variant, two color channels C1 and C2 may be transmitted. These two color channels represent the transformed components of a transform with (at least almost) orthogonal basis functions. Let C1′ and C2′ denote the reconstructed color channels. At the decoder end, the reconstructions Cb′ and Cr′ of the original color components are derived using a transform with orthogonal basis functions, which can be specified according to the following equation:

[0033]

[0034] Where α represents the rotation angle in the signal space, and w1 and w2 represent non-zero weighting factors. In most configurations, the weighting factors are selected as w2=w1 or w2=-w1. The advantage of this transformation is that in the encoder, the rotation angle α can be selected so that the variance of one of the two transmitted color channels (i.e., C1 or C2) is minimized, while the variance of the other color channel is maximized, which ultimately has the effect of improving coding efficiency. Due to rounding effects, the actual applied transformation may be slightly different from the above formula. The weighting factors w1 and w2 can be selected so that the transformation can be calculated using simplified arithmetic operations. For example, the applied transformation can be calculated according to the following formula:

[0035] Cb′=C′1+a·C′2,

[0036] Cr′=C′2-a·C′1.

[0037] In the above formula, we have chosen w1=w2=1 / cos α and a=tan α. Note that the above formula represents a specific configuration; other configurations that yield similarly simple reconstruction rules are possible. Multiplication with a (usually) real factor a can be solved by approximating real multiplication as integer multiplication and right shifting (e.g., using something like Cb′=C′1+((a int ·C′2)>>shift)). At the encoder end, the forward transform that maps the original color channels Cb and Cr to the actual coded components C1 and C2 can be calculated as the inverse of the reconstructed transform (including the corresponding approximation). One or more of the multiple supported ICT transforms can correspond to such orthogonal transforms with different rotation angles α (and appropriately selected weighting factors), or alternatively, different scaling factors a.

[0038] As mentioned above, the transform-based ICT method can be extended to more than two color components, in which case N>2 encoded color channels are linearly mapped to N reconstructed color components. The applied transform can be specified by a number of rotation angles or more generally by an NxN transformation matrix (with at least nearly orthogonal basis functions). For the case of N=2, the actual applied transform can be specified by a linear combination using integer arithmetic.

[0039] ICT Class 2: Downmix-based encoding, reducing the number of color channels

[0040] As mentioned above, the main advantage of the above transform-based ICT variant is that the variance of one of the resulting components becomes smaller compared to the variance of the other component (for blocks with a certain correlation). Usually, this will result in one of the components being quantized to zero (for the entire block). In order to simplify the implementation, the color transform can be implemented by forcing one of the resulting components (C1 or C2) to be quantized to zero. In this case, both the original color channels Cb and Cr are represented by a single transmitted component C. Given the reconstructed version of the color component, denoted by C', the reconstructed color channels Cb' and Cr' can be obtained according to the following formula:

[0041]

[0042] Where α represents the rotation angle and w represents the scaling factor. Similar to the above, the actual implementation can be simplified, for example according to:

[0043] Cb′=C′, Cr′=a·C′; or

[0044] Cr′=C′.Cb′=b·C′.

[0045] One or more of the multiple supported ICT transforms may correspond to such a joint component encoding with different rotation angles α or different scaling factors a, b (in conjunction with a decision about which color component is set equal to the transmitted component C). At the encoder, the actually encoded color component C is obtained by a so-called downmix, which may be represented as a linear combination C=m1·Cb+m2·Cr, where the factors m1 and m2 may be chosen, for example, in such a way as to minimize the distortion of the reconstructed color components Cb' and Cr'.

[0046] Similar to the above-mentioned variant 1, this second variant can also be extended to more than two color components. In this article, multiple configurations are possible. In the first configuration, N>2 original color channels are represented by a single joint color channel (M=1 resulting coded component). In another configuration, N>2 original color channels are represented by M<N (where M>1) resulting channels (e.g., M=N-1 channels). For both configurations, the reconstruction of the original color channels can be represented by a matrix (with N rows and M<N columns) with corresponding mixing factors (which can be implemented using integer multiplication and shifting).

[0047] More than one supported ICT method may include zero or more variants of transform-based methods (specified by rotation angles or scaling factors) and zero or more variants of downmix-based methods (specified by rotation angles or scaling factors) (possibly with additional flags specifying which color components are set equal to the transmitted components). This includes the following cases: (a) all ICT methods represent transform-based variants, (b) all ICT methods represent downmix-based variants, and (c) these two or ICT methods represent a mixture of transform-based and downmix-based variants. Here, it should be pointed out again that the rotation angles or mixing factors are not transmitted on a block basis. Instead, the set of ICT methods is predefined and known to both the encoder and the decoder. On a block basis, only an index identifying one of the multiple ICT methods is signaled (via a binary flag or a non-binary syntax element). A subset of the predefined set of ICT methods can be selected on a sequence, picture, slice or strip basis, in which case the index encoded on a block basis is used to signal the method selected from the corresponding subset.

[0048] According to an embodiment, a block of samples of a color component is transmitted using the concept of transform coding, comprising or at least comprising a two-dimensional transform that maps the block of samples to a block of transform coefficients, quantization of the transform coefficients, and entropy coding of the resulting quantization indices (also called transform coefficient levels). At the decoder end, the block of samples is reconstructed by first dequantizing the entropy decoded transform coefficient levels to obtain reconstructed transform coefficients (dequantization usually includes a multiplication with a quantization step size), and then applying an inverse transform to the transform coefficients to obtain a reconstructed block of samples. In addition, the block of samples transmitted using transform coding usually represents a residual signal, which specifies the difference between the original signal and the predicted signal. In this case, the decoded block of the image is obtained by adding the reconstructed block of residual samples to the predicted signal. At the decoder end, the ICT method can be applied as follows:

[0049] The ICT transform is applied to the reconstructed transform coefficients (after dequantization); the ICT transform is followed by an inverse 2d transform for each color component and, if applicable, the addition of a prediction signal;

[0050] • The ICT transform is applied to the reconstructed residual signal. This means that the coded color components are first dequantized and inversely transformed by a 2d transform. The resulting residual sample block is transformed using the ICT transform and the prediction signal can be added after the ICT transform.

[0051] It should be noted that if neither the ICT nor the 2d transform includes any rounding, then these two configurations will produce the same result. However, since in an embodiment all transforms can be specified in integer arithmetic including rounding, these two configurations do produce different results. It should be noted that the ICT transform can also be applied before dequantization or after adding the prediction signal.

[0052] As mentioned above, the actual implementation of the ICT methods may deviate from a single transform (due to the introduction of scaling factors that simplify the actual implementation). This fact should be taken into account by modifying the quantization step size accordingly. This means that in embodiments of the present invention, the choice of a specific ICT method implies a certain modification of the quantization parameters (and therefore, the resulting quantization step size). The modification of the quantization parameters can be achieved by adding delta quantization parameters to the standard quantization parameters. The delta quantization parameters can be the same for all ICT methods, or different delta quantization parameters can be used for different ICT methods. The delta quantization parameters used in conjunction with one or more ICT methods can be hard-coded or can be signaled as part of the high-level syntax of a slice, picture, slice or coded video sequence.

[0053] 3.2. Implicit signaling using at least one of the two ICT methods

[0054] As described in Section 3.1, the activation of the method of the present invention in at least two ICT methods is preferably explicitly signaled from the encoder to the decoder using an on / off flag to instruct the decoder to apply inverse ICT (i.e., the transpose of the ICT processing matrix) when decoding. However, for each picture or block in which ICT encoding (i.e., forward ICT) and decoding (i.e., inverse ICT) are activated, it is still necessary to signal to the decoder which of the at least two ICT methods should be used for the picture or block being processed at hand. Although it is intuitively possible to use explicit signaling of a particular ICT method (using one or more bits or bits per picture response block), implicit signaling is preferably used because it has been found that this form of signaling can minimize the auxiliary information overhead of the ICT scheme of the present invention.

[0055] There are two preferred embodiments for implicit signaling of the applied ICT method. Both make use of existing "residual zeroness" indicators in modern codecs such as HEVC and VVC [3], specifically, the coded block flag (CBF) bitstream element associated with each color component of each transform unit. A CBF value of 0 (false) means that the residual block is not encoded (i.e., all residual samples are quantized to zero, so there is no need to transmit the quantized residual coefficients in the bitstream), while a CBF value of 1 (true) means that at least one residual sample (or transform coefficient) is quantized to a non-zero value for a given block, so the quantized residual of the block is encoded in the bitstream.

[0056] 3.2.1. Implicit signaling of one of the two ICT methods

[0057] For joint ICT coding of two component residual signals, two CBF elements can be used for implicit ICT method signaling. When two ICT downmix / upmix methods are provided, the preferred implicit signaling is:

[0058]

[0059] 3.2.2. Implicit signaling of one of the three ICT methods

[0060] As in subsection 3.2.1, if two CBF elements are available for implicit ICT method signalling, but three ICT downmix / upmix methods are provided for the application instead of two, then the preferred implicit signalling is:

[0061]

[0062] If the CBF of both color components in a block is zero, no non-zero residual samples are encoded in the bitstream for either component, eliminating the need to convey information about the applied ICT method.

[0063] Optional direct or indirect signaling of ICT decoding parameters

[0064] The previous sections describe how to explicitly signal the activation of an ICT method in a picture or block (using an on / off flag), and how to implicitly signal the actual selection of one of at least two ICT methods for the affected color component (through the existing CBF "residual zero degree" indicator). The set of possible two or more ICT methods may include a discrete cosine transform (DCT) or discrete sine transform (DST) of size two or a Walsh-Hadamard transform (WHT) or Karhunen-Loève transform (KLT, also known as principal component analysis, PCA) instance, or some predetermined (fixed) or input-dependent (adaptive) parameterization of a Givens rotation or linear prediction coding function. All of these ICT methods result in one or two downmix signals for a given two input residual signals in their forward form, and in their inverse implementation result in two upmix signals for a given one or two (possibly quantized) downmix signals.

[0065] A set of two or more ICT methods with fixed parameterizations can be characterized by a specific pre-selection of rotation angles or coefficients of, for example, a transform or linear prediction function of size two. This parameterization is known to both the encoder and the decoder and therefore does not need to be transmitted in the bitstream. In the prior art [2], a fixed "-1" parameterization is used, resulting in a downmix rule "C = (Cb-Cr) / 2" and an upmix rule "Cb' = C, Cr' = -C". In this method, in the case where more than one ICT method is available for the encoder to choose from, the fixed set of two ICT methods (see Section 3.2.1) can be:

[0066]

[0067] And a fixed set of three ICT methods (see Section 3.2.2) (probably more preferable than the 2-element set) could be:

[0068]

[0069] This 3-element fixed set ICT design is similar to the sum-difference coding technique [4, 5] commonly used for perceptual and lossless audio coding, providing significant coding gain. However, it was found that this fixed approach produces a relatively uneven distribution of the coding gain on the two processed component signals. To remedy this problem, a more general rotation-based approach can be adopted, using a KLT of size 2 (also known as principal component analysis (PCA)). In this case, the downmix rule is given by:

[0070] C1=Cb·cosα+Cr·sinα or C1=Cb·sinα+Cr·cosα,

[0071] C2=-Cb·sinα+Cr·cosα or C2=Cb·cosα-Cr·sinα,

[0072] In this case, it represents a forward KLT across both components, and the corresponding upmixing rule is:

[0073] Cb'=C1'·cosα-C2'·sinα or Cb'=C1'sinα+C2'·cosα,

[0074] Cr'=C1'·sinα+C2'·cosα or Cr'=C1'·cosα-C2'sinα,

[0075] The inverse KLT is represented accordingly; see also [6]. Note that for a rotation angle of α=π / 4, the right-hand notation in the above formula represents an orthogonal version of the third (third) ICT method in the fixed set of the above three ICT methods. Using the KLT / PCA method, different values ​​of the rotation angle -π≤α≤π can be used to parameterize the above-mentioned first, second and optional third ICT methods. In particular, fixed angles such as α1=-π / 8, α2=π / 8 and possibly α3=-π / 4 can be defined for a set of 3 ICT methods, where α1, α2, α3 are known to both the encoder and the decoder. It is worth noting that a single-output component variant of the KLT / PCA downmix rule can be defined, where C1'=0 or C2'=0, and accordingly, the upmix rule is simplified to reconstruct the Cb' and Cr' component signals only from the encoded C1' or only from the encoded C2' signal (see Section 3.1). In this way, a completely flexible and general set of 2 or more ICT methods is constructed, which can contain the above set of 2 fixed ICT parameterizations and the set of 3 fixed ICT parameterizations as subsets. This results in the fixed parameterization aspect.

[0076] It should be noted that for the field of image and video coding, usually only the bitstream syntax and decoding process are specified. In this context, the described downmix (forward ICT transform) will be interpreted as a specific example for obtaining a downmix channel for a specific upmix rule. The actual implementation in the encoder may differ from these examples.

[0077] For some encoding configurations, it is beneficial to determine the rotation angle α in an adaptive manner that depends on the input. In this case, α can be calculated from the two input component signals (here the Cb and Cr residuals) as:

[0078] α=1 / 2·tan -1 (2·CbCr / (Cb 2 -Cr 2 )) or α = 1 / 2 tan -1 (2·CbCr / (Cr 2 -Cb 2 )), which depends on the expression of the KLT downmix / upmix rule applied (see previous page). The above method of deriving α is based on a correlation-based (i.e. least squares) method. Alternatively, the formula can be used:

[0079] α=sign(CbCr)·tan -1 (sqrt(Cr 2 ) / sqrt(Cb 2 ))or

[0080] α=sign(CbCr)·tan-1 (sqrt(Cb 2 ) / sqrt(Cr 2 )),

[0081] Again it depends on the specific KLT downmix / upmix representation. This calculation represents an intensity-based principal angle calculation. Both correlation-based and intensity-based derivation methods (which produce almost identical results on natural image or video content) utilize the dot product:

[0082] CbCr=sum b∈B (Cb b ·Cr b ), Cb 2 =sum b∈B (Cb b ·Cb b ), Cr 2 =sum b∈B (Cr b ·Cr b ), where B is equal to the set of all sample positions belonging to the coding block (or picture) being processed. Inverse tangent operation tan -1 This is typically implemented using the atan2 programming function to obtain α with the correct sign, i.e., in the appropriate coordinate quadrant. The derived -π≤α≤π can be quantized (i.e., mapped) to one of a predefined number of angles and transmitted to the decoder at block or picture level together with the ICT on / off flag. Specifically, the following transmission options can be used to inform the decoder of the specific parameterization to be applied during the inverse ICT processing:

[0083] · First option: Transmit the quantization / mapping α of the ICT method for each coding block and / or each ICT method used in the coding block, directly as a quantization angle value or indirectly as an index into a lookup table of predefined angles. If only one ICT method is applied in a block and the quantization / mapping α is transmitted for each block, only one α is transmitted. If ICT coding in a block is not activated, no quantization / mapping α is transmitted for this block to improve efficiency.

[0084] · Second option: The quantized / mapped alpha values ​​are transmitted once per picture or video (set of pictures) for all ICT methods applied or applicable in said picture or video. This can be performed at the beginning of the picture or video, for example in a picture parameter set or, preferably, in a slice header in HEVC or VVC [3]. If ICT coding is not activated in the picture or video and / or no chroma coding is performed (e.g., only luma input), then the quantized / mapped alpha values ​​do not need to be transmitted. Likewise, each alpha parameter can be transmitted, either directly as a quantized angle value or indirectly as an index into a lookup table of predefined angle values.

[0085] These two options can be combined in parallel or sequentially.

[0086] To conclude the discussion of the adaptive parameterization aspects, we should note that it will be apparent to a person skilled in the art that slight deviations from the above parameter transmission options are easily achievable. For example, a per-picture or block ICT parameter transmission from the encoder to the decoder may be performed only for ICT methods selected from two or more ICT methods available for encoding, e.g. only for methods 1 and 2 or only for method 3. Furthermore, it is apparent that for a transform size of 2 (i.e., ICT across two color components), the KLT is equivalent to a DCT or WHT when α=π / 4 or α=-π / 4. Finally, other transforms than the KLT or generally downmix / upmix rules may be used as ICT, and other parameterizations than rotation angles may be performed (in the most general case, the actual upmix weights may be quantized / mapped and transmitted).

[0087] 3.4. Acceleration encoder selection using ICT method

[0088] In modern image and video encoders, one of a number of supported coding modes is typically selected based on a Lagrangian bit allocation technique. This means that for each supported mode m (or a subset thereof), the resulting distortion D(m) and the resulting number of bits R(m) are calculated, and the mode that minimizes the Lagrangian function D(m)+λR(m) is selected, where λ is a fixed Lagrangian multiplier. Since the determination of the distortion and rate terms D(m) and R(m) typically requires a 2d forward transform, a (rather complex) quantization, and test entropy coding for each mode, the encoder complexity increases with the number of supported modes. Therefore, the encoder complexity also increases with the number of ICT modes supported on a block basis.

[0089] However, there are possibilities to reduce the complexity of encoders used to evaluate ICT methods. Below, we focus on three examples:

[0090] In the encoder, the optimal rotation angle α can be derived based on the original (residual samples) of the color components of the block (e.g., by one of the methods described above), and given the derived angle, only the ICT method that represents the rotation closest to this angle is tested by deriving the actual distortion D(m) and the actual number of bits R(m) required for this method m.

[0091] If only downmix methods are supported (i.e. methods where N color components are represented by M < N transmission channels), the distortion caused by downmixing alone can be evaluated. Then, only the method m that causes the smallest downmix distortion is tested using the Lagrangian approach (i.e. by deriving the actual distortion D(m) and the actual bit rate R(m) associated with method m).

[0092] When encoding two mixed channels C1' and C2', both of which require non-zero CBF (as in the case of method 3 in Section 3.2.2), encoder speedup can be achieved by testing whether the quantized version of the first mixed channel (e.g., C1') exhibits at least one non-zero quantization coefficient after quantizing the first mixed channel. If so (i.e., its CBF is non-zero), the second mixed channel (e.g., C2') can be quantized and then the two-pass method tested using the Lagrangian method. However, if the quantized version of the first mixed channel exhibits only zero quantization coefficients (i.e., its CBF is zero), the quantization of the second mixed channel can be skipped and the Lagrangian test of the two-pass method can be aborted, because for a given quantization parameter, the two-pass method cannot be implicitly signaled and is therefore prohibited.

[0093] 3.5. Contextual Modeling of ICT Signs and Patterns

[0094] Signaling for ICT use can be coupled to CBF information. When both CBF flags, i.e., the CBF for each transform block (TB) of each chrominance component, are equal to 0, no signaling is required. Otherwise, depending on the configuration of the ICT application, the ICT flag can be transmitted in the bitstream. The distinction between internal context modeling and external context modeling is helpful in this context, i.e., internal context modeling selects one context model in the context model set, while external context modeling selects the context model set. The configuration of internal context modeling is an evaluation of neighboring TBs, for example, using the upper and left neighbors and checking their ICT flag values. The mapping from values ​​to context indices in the context model set can be additive (i.e., c_idx=L+B), exclusive disjoint (i.e., c_idx=(L<<1)+A), or actively (i.e., c_idx=min(1,L+B)). For external context modeling, the CBF condition of the ICT flag can be adopted. For example, for a configuration using three transforms distinguished by a combination of CBF flags, a separate context set is adopted for each CBF combination. Alternatively, both external context modeling and internal context modeling may take into account tree depth and block size, so that different context models or different sets of context models are used for different block sizes.

[0095] In a preferred embodiment of the present invention, a single context model is used for the ICT marker, that is, the context model set size is equal to 1.

[0096] In another preferred embodiment of the present invention, internal context modeling evaluates neighboring transform blocks and derives context model indices. In this case, the context model set size is equal to 3 when additive evaluation is used.

[0097] In a preferred embodiment of the present invention, external context modeling employs a different set of context models for each CBF flag combination, which results in three sets of context models when the ICT is configured in a way that each CBF combination results in a different ICT transformation.

[0098] In another preferred embodiment of the present invention, when both CBF flags are equal to one, the external context modeling adopts a dedicated context model set, and the same context model set is adopted in other cases. BRIEF DESCRIPTION OF THE DRAWINGS

[0099] Figure 1 An apparatus for predictively encoding a picture into a data stream using transform-based residual coding is shown.

[0100] Figure 2 A corresponding decoder is shown, ie an apparatus configured to also use transform based residual decoding to predict decoded pictures from a data stream.

[0101] Figure 3 The relationship between the reconstruction signal (ie the reconstructed picture) on the one hand and the combination of the prediction signal and the prediction residual signal signaled in the data stream on the other hand is shown.

[0102] Figure 4a and Figure 4b The functions of a corresponding encoder and a corresponding decoder are shown respectively. DETAILED DESCRIPTION

[0103] The following description of the drawings begins by presenting a description of an encoder and a decoder in a block-based prediction codec for encoding a picture of a video, in order to form an example of a coding framework in which embodiments of the present invention may be constructed. Figures 1 to 3 The following describes an embodiment of the concepts of the present invention and how these concepts can be respectively implemented into Figure 1 and Figure 2 4 and the following description of the encoder and decoder, but the embodiment described in the subsequent FIG. 4 and the following content can also be used to form a non-according Figure 1 and Figure 2 The encoder and decoder operate on the coding framework according to which the encoder and decoder operate.

[0104] The same or equivalent elements or elements having the same or equivalent functions are denoted by the same or equivalent reference numerals in the following description even if they appear in different drawings.

[0105] In the following description, a number of details are set forth to provide a more thorough explanation of embodiments of the present invention. However, it will be clear to those skilled in the art that embodiments of the present invention may be practiced without these specific details. In other cases, well-known structures and devices are shown in block diagram form rather than in detail to avoid obscuring embodiments of the present invention. In addition, unless otherwise specifically stated, the features of the different embodiments described below may be combined with each other.

[0106] Figure 1 An apparatus is shown for predictively encoding a picture 12 into a data stream 14 using, for example, transform-based residual coding. The apparatus or encoder is denoted by reference numeral 10 . Figure 2 A corresponding decoder 20 is shown, i.e. an apparatus 20 configured to predict a decoded picture 12' from a data stream 14 also using transform-based residual decoding, wherein a prime sign is used to indicate that the picture 12' reconstructed by the decoder 20 deviates from the picture 12 originally encoded by the apparatus 10 in terms of coding losses introduced by quantization of the prediction residual signal. Figure 1 and Figure 2 Transform-based prediction residual coding is used exemplarily, but the embodiments of the present application are not limited to such prediction residual coding. Figure 1 and Figure 2 The same is true for the other details of the description, as will be outlined below.

[0107] The encoder 10 is configured to perform a spatial to spectral transform on the prediction residual signal and to encode the prediction residual signal thus obtained into the data stream 14. Likewise, the decoder 20 is configured to decode the prediction residual signal from the data stream 14 and to perform a spectral to spatial transform on the prediction residual signal thus obtained.

[0108] Internally, the encoder 10 may include a prediction residual signal former 22, which generates a prediction residual 24 in order to measure the deviation of the prediction signal 26 from the original signal, i.e. from the picture 12. The prediction residual signal former 22 may, for example, be a subtractor which subtracts the prediction signal from the original signal, i.e. from the picture 12. The encoder 10 then also includes a transformer 28 which performs a spatial to spectral transform on the prediction residual signal 24 to obtain a spectral domain prediction residual signal 24', which is then quantized by a quantizer 32, which is also included in the encoder 10. The prediction residual signal 24" thus quantized is encoded into the bitstream 14. For this purpose, the encoder 10 may optionally include an entropy encoder 34, which entropy encodes the transformed and quantized prediction residual signal into the data stream 14. The prediction signal 26 is generated by a prediction stage 36 of the encoder 10 based on the prediction residual signal 24" encoded into the data stream 14 and decodable from the data stream 14. For this purpose, as Figure 1As shown in , the prediction stage 36 may internally include a dequantizer 38 for dequantizing the prediction residual signal 24" so as to obtain a spectral domain prediction residual signal 24"', which corresponds to the signal 24' except for the quantization losses, and then an inverse transformer 40 performs an inverse transformation, i.e. a spectrum-to-spatial transformation, on the latter prediction residual signal 24"' to obtain a prediction residual signal 24", which corresponds to the original prediction residual signal 24 except for the quantization losses. The combiner 42 of the prediction stage 36 then recombines the prediction signal 26 and the prediction residual signal 24"" such as by addition to obtain a reconstructed signal 46, i.e. a reconstruction of the original signal 12. The reconstructed signal 46 may correspond to the signal 12'. The prediction module 44 of the prediction stage 36 then generates the prediction signal 26 based on the signal 46 by using, for example, spatial prediction, i.e. intra-picture prediction, and / or temporal prediction, i.e. inter-picture prediction.

[0109] Likewise, if Figure 2 As shown in , the decoder 20 may be internally composed of components corresponding to the prediction stage 36 and interconnected in a manner corresponding to the prediction stage 36. Specifically, the entropy decoder 50 of the decoder 20 may entropy decode the quantized spectral domain prediction residual signal 24″ from the data stream, whereby the dequantizer 52, the inverse transformer 54, the combiner 56 and the prediction module 58 interconnected and cooperating in the manner of the modules described above with respect to the prediction stage 36 recover the reconstructed signal based on the prediction residual signal 24″, thus as shown in Figure 2 As shown in , the output of combiner 56 produces the reconstructed signal, namely picture 12'.

[0110] Although not specifically described above, it is easy to understand that the encoder 10 can set some encoding parameters, including, for example, prediction modes, motion parameters, etc., according to some optimization schemes, such as, for example, in a manner to optimize some rate and distortion related criteria, i.e., encoding costs. For example, the encoder 10 and the decoder 20 and the corresponding modules 44, 58 can support different prediction modes, such as intra-frame coding mode and inter-frame coding mode, respectively. The granularity at which the encoder and the decoder switch between these prediction mode types can correspond to the subdivision of the pictures 12 and 12' into coding segments or coding blocks, respectively. For example, in units of these coding segments, the pictures can be subdivided into intra-frame coding blocks and inter-frame coding blocks. As outlined in more detail below, the intra-frame coding blocks are predicted based on the spatial neighborhood of the corresponding block that has been encoded / decoded. There may be several intra-frame coding modes and are selected for the corresponding intra-frame coding segments, including directional or angular intra-frame coding modes, according to which the corresponding segments are filled by extrapolating the sample values ​​of the neighborhood along the direction specific to the corresponding directional intra-frame coding mode into the corresponding intra-frame coding segment. For example, the intra-coding mode may also include one or more other modes, such as a DC coding mode, according to which the prediction of the corresponding intra-coded block assigns a DC value to all samples within the corresponding intra-coded segment; and / or a plane intra-coding mode, according to which the prediction of the corresponding block is approximated or determined as a spatial distribution of sample values ​​described by a two-dimensional linear function at the sample positions of the corresponding intra-coded block, with the tilt and offset of the plane defined by the two-dimensional linear function driven based on neighboring samples. In contrast, inter-coded blocks may, for example, be predicted in time. For inter-coded blocks, a motion vector may be signaled within the data stream, which indicates a spatial displacement of a previously coded picture portion of the video to which the picture 12 belongs, at which the previously coded / decoded picture is sampled to obtain a prediction signal for the corresponding inter-coded block. This means that, in addition to the residual signal encoding included in the data stream 14, such as the entropy coded transform coefficient levels representing the quantized spectral domain prediction residual signal 24″, the data stream 14 may be encoded with coding mode parameters for assigning coding modes to various blocks, prediction parameters for some blocks such as motion parameters for inter-frame coded segments, and optionally other parameters such as parameters for controlling and signaling the subdivision of the pictures 12 and 12′ into segments, respectively. The decoder 20 uses these parameters to subdivide the pictures in the same way as the encoder, assign the same prediction modes to the segments, and perform the same prediction to produce the same prediction signal.

[0111] Figure 3 The relationship between the reconstruction signal (i.e. the reconstructed picture 12') on the one hand and the combination of the prediction signal 26 and the prediction residual signal 24"" signaled in the data stream 14 on the other hand is shown. As mentioned above, the combination can be additive. The prediction signal 26 is Figure 31 is shown as subdividing the picture area into intra-coded blocks indicated illustratively using hatching and inter-coded blocks indicated illustratively using non-hatched lines. The subdivision may be any subdivision, such as a regular subdivision of the picture area into rows and columns of square blocks or non-square blocks, or a multi-tree subdivision of the picture 12 from a tree root block into a plurality of leaf blocks of variable size, such as a quadtree subdivision, etc. Figure 3 A hybrid of this is shown in , where the picture area is first subdivided into rows and columns of tree root blocks, which are then further subdivided into one or more leaf blocks according to a recursive multi-tree.

[0112] Furthermore, the data stream 14 may be encoded with an intra-coding mode for the intra-coding block 80, which assigns one of several supported intra-coding modes to the corresponding intra-coding block 80. For the inter-coding block 82, one or more motion parameters may be encoded in the data stream 14. In general, the inter-coding block 82 is not limited to being temporally coded. Alternatively, the inter-coding block 82 may be any block predicted from a previously coded portion beyond the current picture 12 itself (e.g., a previously coded picture of the video to which the picture 12 belongs, or a picture of another view or hierarchically lower layer in the case where the encoder and decoder are scalable encoders and decoders, respectively).

[0113] Figure 3 The prediction residual signal 24'' in is also shown to subdivide the picture area into blocks 84. These blocks may be referred to as transform blocks in order to distinguish them from the encoding blocks 80 and 82. In practice, Figure 3 It is shown that the encoder 10 and the decoder 20 can use two different subdivisions of the picture 12 and the picture 12' into blocks, namely one subdivision into coding blocks 80 and 82 and another subdivision into transform blocks 84, respectively. The two subdivisions can be identical, i.e. each coding block 80 and 82 can simultaneously form a transform block 84, but Figure 3 The following situation is shown: for example, the subdivision into transform block 84 forms an extension of the subdivision into coding blocks 80, 82, so that any boundary between two blocks in blocks 80 and 82 overlaps the boundary between two blocks 84, or in other words, each block 80, 82 coincides with one of the transform blocks 84 or coincides with a cluster of transform blocks 84. However, the subdivision can also be determined or selected independently of each other, so that the transform block 84 can alternatively cross the block boundary between blocks 80, 82. As far as the subdivision into transform block 84 is concerned, similar statements are therefore made as for the subdivision into blocks 80, 82, i.e. the block 84 can be the result of a regular subdivision of the picture area into blocks (with or without arrangement into rows and columns), the result of a recursive multi-tree subdivision of the picture area, or a combination thereof or any other type of blocking. Incidentally, it should be noted that blocks 80, 82 and 84 are not limited to square, rectangular or any other shape.

[0114] Figure 3It is further shown that the combination of the prediction signal 26 and the prediction residual signal 24"" directly results in the reconstructed signal 12'. However, it should be noted that according to alternative embodiments more than one prediction signal 26 may be combined with the prediction residual signal 24"" to form the picture 12'.

[0115] exist Figure 3 In the embodiment described below, the transform block 84 should have the following meaning. The transformer 28 and the inverse transformer 54 perform their transforms in units of these transform blocks 84. For example, many codecs use some kind of DST or DCT for all transform blocks 84. Some codecs allow skipping of transforms, so that for some transform blocks 84, the prediction residual signal is encoded directly in the spatial domain. However, according to the embodiments described below, the encoder 10 and the decoder 20 are configured in a way that they support several transforms. For example, the transforms supported by the encoder 10 and the decoder 20 may include:

[0116] οDCT-II (or DCT-III), where DCT stands for Discrete Cosine Transform

[0117] οDST-IV, where DST stands for discrete sine transform

[0118] οDCT-IV

[0119] οDST-VII

[0120] οIdentity Transformation (IT)

[0121] Naturally, the transformer 28 should support all forward transform versions of these transforms, while the decoder 20 or inverse transformer 54 should support their corresponding backward or inverse versions:

[0122] οInverse DCT-II (or Inverse DCT-III)

[0123] οReverse DST-IV

[0124] οInverse DCT-IV

[0125] οReverse DST-VII

[0126] οIdentity Transformation (IT)

[0127] The subsequent description provides more details on which transforms may be supported by the encoder 10 and decoder 20. In any case, it should be noted that the set of supported transforms may include only one transform, such as a spectral to spatial or spatial to spectral transform.

[0128] As already outlined above, Figures 1 to 3 It has been presented as an example in which the inventive concepts further described below can be implemented to form specific examples of encoders and decoders according to the present application. In this regard, Figure 1 and Figure 2 The encoder and decoder of can represent possible implementations of the encoder and decoder described below, respectively. However, Figure 1 and Figure 2 However, an encoder according to an embodiment of the present application may use the concepts outlined in more detail below to perform block-based encoding of the picture 12 and with Figure 1 The encoder is different, for example, in that it is not a video encoder but a still picture encoder, in that it does not support inter-frame prediction, or in that it uses a different Figure 3 The subdivision into blocks 80 is performed in the manner illustrated in FIG. 1 . Similarly, a decoder according to an embodiment of the present application may use the coding concept further outlined below to perform block-based decoding of the picture 12 ′ from the data stream 14, but may be used in conjunction with Figure 2 The decoder 20 of FIG. 1 is different from the decoder 20 of FIG. 1 , for example, in that it is not a video decoder but a still picture decoder, in that intra-frame prediction is not supported, or in that the decoder is decoded in a different manner than that described with respect to FIG. Figure 3 The described approach subdivides the picture 12 ′ into blocks and / or consists in deriving the prediction residual from the data stream 14 not in the transform domain but, for example, in the spatial domain.

[0129] Embodiments of the invention will now be described with reference at least in part to Figure 4a and Figure 4b , Figure 4a and Figure 4b The functions of the corresponding encoders 601, 602 and the corresponding decoders 651, 652 are shown respectively. As far as the order of selecting the inter-component transform 621 or 622, its inverse version 621' or 622' of the present invention is concerned, Figure 4a and Figure 4b The configurations are different from each other.

[0130] The description provided herein with reference to the features of the encoder is also applicable without limitation to a corresponding decoder adapted to receive a signal or bit stream from the encoder, for example, directly received using a data connection such as a wireless or wired network, or indirectly received using a storage medium such as a portable media or a server. Vice versa, the features explained in conjunction with the decoder can be implemented without limitation as corresponding features in the encoder according to the embodiment. This especially includes that the features of the evaluation information associated with the decoder directly and explicitly disclose the corresponding features of the encoder for generating and / or transmitting the corresponding information. In particular, the encoder may include a function corresponding to the decoder claimed for protection, in particular for testing and evaluating the selected encoding.

[0131] Although some aspects have been described in the context of an apparatus, it is clear that these aspects also represent a description of the corresponding method, where the blocks or devices correspond to method steps or features of method steps. Similarly, aspects described in the context of method steps also represent a description of the corresponding blocks or items or features of the corresponding apparatus.

[0132] The encoded image or video signal of the present invention may be stored on a digital storage medium, or may be transmitted on a transmission medium such as a wireless transmission medium or a wired transmission medium such as the Internet.

[0133] Depending on certain implementation requirements, embodiments of the present invention may be implemented in hardware or software. The implementation may be performed using a digital storage medium, such as a floppy disk, DVD, CD, ROM, PROM, EPROM, EEPROM or flash memory, on which electronically readable control signals are stored, which cooperate with (or can cooperate with) a programmable computer system to perform the corresponding method.

[0134] Some embodiments according to the invention comprise a data carrier having electronically readable control signals, which are capable of cooperating with a programmable computer system, such that one of the methods described herein is performed.

[0135] Generally, embodiments of the present invention can be implemented as a computer program product with a program code, when the computer program product runs on a computer, the program code is operative for performing one of the methods.The program code may, for example, be stored on a machine readable carrier.

[0136] Other embodiments comprise the computer program for performing one of the methods described herein, stored on a machine readable carrier.

[0137] In other words, an embodiment of the inventive method is, therefore, a computer program having a program code for performing one of the methods described herein, when the computer program runs on a computer.

[0138] A further embodiment of the inventive methods is, therefore, a data carrier (or a digital storage medium, or a computer-readable medium) on which is recorded the computer program for performing one of the methods described herein.

[0139] A further embodiment of the inventive method is, therefore, a data stream or a sequence of signals representing the computer program for performing one of the methods described herein.The data stream or the sequence of signals may, for example, be configured to be transmitted via a data communication connection, for example via the Internet.

[0140] A further embodiment comprises a processing means, for example a computer or a programmable logic device, configured to or adapted to perform one of the methods described herein.

[0141] A further embodiment comprises a computer having installed thereon the computer program for performing one of the methods described herein.

[0142] In some embodiments, a programmable logic device (e.g., a field programmable gate array) may be used to perform some or all of the functions of the methods described herein. In some embodiments, a field programmable gate array may collaborate with a microprocessor to perform one of the methods described herein. Generally, these methods are preferably performed by any hardware device.

[0143] The above embodiments are only used to illustrate the principles of the present invention. It should be understood that modifications and changes to the arrangements and details described herein will be clear to those skilled in the art. Therefore, it is intended to be limited only by the scope of the attached patent claims, rather than by the specific details presented by the description and explanation of the embodiments herein.

[0144] 4. References

[0145] [1] K. Zhang, J. Chen, L. Zhang, M. Karczewicz, "Enhanced cross-componentlinear model intra prediction," JVET-D0110, 2016, http: / / phenix.it-sudparis.eu / jvet / doc_end_user / current_document.php? id=2806

[0146] [2] J. Lainema, "CE7-rel.: Joint coding of chrominance residuals," JVET-M0305, Marrakech, January 2019 http: / / phenix.it-sudparis.eu / jvet / doc_end_user / current_document.php? id=5112

[0147] [3] B. Bross, J. Chen, S. Liu, “Versatile Video Coding (Draft 4),” 4th edition, JVET-M1001, Marrakech, February 2019 http: / / phenix.it-sudparis.eu / jvet / doc_end_user / current_document.php? id=5755

[0148] [4]J. D. Johnston, “Perceptual Transform Coding of Wideband Stereo Signals,” in Proc. IEEE Int. Conf. Acoust. Speech Sig. Process. (ICASSP), Glasgow, vol. 3, pp. 1993–1996, May 1989.

[0149] [5] J.D. Johnston and A.J.S. Ferreira, “Sum-Difference Stereo Transform Coding,” in Proc. IEEE Int. Conf. Acoust. Speech Sig. Process. (ICASSP), San Francisco, vol. 2, pp. 569–572, March 1992.

[0150] [6] RG van der Waal and RNJ Veldhuis, “Subband Coding of Stereophonic Digital Audio Signals,” in Proc. IEEE Int. Conf. Acoust. Speech Sig. Process. (ICASSP), Toronto, pp. 3601–3604, April 1991. https: / / www.computer.org / csdl / proceedings / icassp / 199I / 0003 / 00 / 00151053.pdf

Claims

1. A block-based video encoder for jointly encoding residual samples of a first chroma block Cb and a second chroma block Cr, wherein the first chroma block and the second chroma block are different color components of a corresponding picture block, the video encoder being configured to: Selecting a coefficient pair (a, b) from a plurality of coefficient pairs; Determine a joint coding block C according to the first chroma block and the second chroma block, wherein a reconstructed joint coding block C' can be obtained from the encoded joint coding block, and the reconstructed first chroma block Cb' and the reconstructed second chroma block Cr' can be determined according to Cb'=a C' and Cr'=b C'; encoding the joint coding block; as well as The coefficient pair (a, b) selected from the plurality of coefficient pairs is signaled to a decoder using a coding block flag CBF of the reconstructed first chroma block and a coding block flag CBF of the reconstructed second chroma block, wherein if the CBF of the reconstructed first chroma block is set, it indicates that at least one residual sample of the reconstructed first chroma block is non-zero, and if the CBF of the reconstructed second chroma block is set, it indicates that at least one residual sample of the reconstructed second chroma block is non-zero.

2. The block-based video encoder of claim 1 , configured to encode the joint coding block by: transforming the jointly coded block using a 2D transform to map to a transform coefficient block; quantizing the transform coefficient block; and The quantized block is entropy encoded.

3. The block-based video encoder of claim 1, configured to select the coefficient pair (a, b) by minimizing a rate-distortion cost function with respect to the plurality of coefficient pairs.

4. The block-based video encoder of claim 1 , wherein the coded block flag of the reconstructed first chroma block and the coded block flag of the reconstructed second chroma block are existing bitstream elements that are also used when the first chroma block and the second chroma block are not jointly encoded.

5. The block-based video encoder of claim 1, configured to determine whether to jointly encode the first chroma block and the second chroma block or to encode the first chroma block and the second chroma block separately.

6. The block-based video encoder of claim 5, configured to determine whether to perform joint encoding or separate encoding by evaluating a rate-distortion cost function.

7. The block-based video encoder of claim 5, configured to signal to a decoder a binary flag indicating whether the first chroma block and the second chroma block are jointly encoded.

8. The block-based video encoder of claim 1, wherein the plurality of coefficient pairs comprises three coefficient pairs (a1, b1), (a2, b2), and (a3, b3), and wherein, The block-based video encoder is configured to signal the selected coefficient pair by using a coded block flag CBF associated with the reconstructed first chroma block and by using a coded block flag CBF associated with the reconstructed second chroma block based on a rule according to:

9. A block-based video decoder for decoding, from a bitstream, a jointly encoded residual sample of a first chroma block and a second chroma block, wherein the first chroma block and the second chroma block are different chroma color components of a corresponding picture block, the video decoder being configured to: decoding from the bitstream a binary flag indicating that the first chroma block and the second chroma block are jointly encoded; Determining a reconstructed jointly coded block C' from the bitstream; Decoding a coded block flag CBF of a reconstructed first chroma block Cb' and a coded block flag CBF of a reconstructed second chroma block Cr' from the bitstream, wherein if the CBF of the reconstructed first chroma block is set, it indicates that at least one residual sample of the reconstructed first chroma block is non-zero, and if the CBF of the reconstructed second chroma block is set, it indicates that at least one residual sample of the reconstructed second chroma block is non-zero; determining a coefficient pair (a, b) from among a plurality of coefficient pairs based on the CBF of the reconstructed first chroma block and the CBF of the reconstructed second chroma block; and The reconstructed first chroma block Cb' and the reconstructed second chroma block Cr' are determined according to the following formula: Cb' = a C' and Cr' = b C'.

10. The block-based video decoder of claim 9, wherein the coded block flag of the reconstructed first chroma block and the coded block flag of the reconstructed second chroma block are existing bitstream elements that are also used when the first chroma block and the second chroma block are not jointly encoded.

11. The block-based video decoder of claim 9, wherein a or b is equal to 1.

12. The block-based video decoder of claim 9, wherein the plurality of coefficient pairs comprises three coefficient pairs (a1, b1), (a2, b2), and (a3, b3), and wherein, The block-based video encoder is configured to determine the coefficient pair by using a CBF associated with the reconstructed first chroma block and by using a CBF associated with the reconstructed second chroma block based on a rule according to:

13. The block-based video decoder of claim 9, configured to decode the binary flag by using a context model selected based on the CBF of the reconstructed first chroma block and the CBF of the reconstructed second chroma block.

14. A block-based video coding method for jointly coding residual samples of a first chroma block Cb and a second chroma block Cr, wherein the first chroma block and the second chroma block are different chroma color components of a corresponding picture block, the method comprising: Selecting a coefficient pair (a, b) from a plurality of coefficient pairs; Determine a joint coding block C according to the first chroma block and the second chroma block, wherein a reconstructed joint coding block C' can be obtained from the encoded joint coding block, and the reconstructed first chroma block Cb' and the reconstructed second chroma block Cr' can be determined according to Cb'=a C' and Cr'=b C'; encoding the joint coding block; as well as The coefficient pair (a, b) selected from the plurality of coefficient pairs is signaled to a decoder using a coding block flag CBF of the reconstructed first chroma block and a coding block flag CBF of the reconstructed second chroma block, wherein if the CBF of the reconstructed first chroma block is set, it indicates that at least one residual sample of the reconstructed first chroma block is non-zero, and if the CBF of the reconstructed second chroma block is set, it indicates that at least one residual sample of the reconstructed second chroma block is non-zero.

15. A block-based video decoding method for decoding residual samples of a first chroma block and a second chroma block jointly encoded from a bitstream, wherein the first chroma block and the second chroma block are different color components of a corresponding picture block, the method comprising: decoding from the bitstream a binary flag indicating that the first chroma block and the second chroma block are jointly encoded; Determining a reconstructed jointly coded block C' from the bitstream; Decoding a coded block flag CBF of a reconstructed first chroma block Cb' and a coded block flag CBF of a reconstructed second chroma block Cr' from the bitstream, wherein if the CBF of the reconstructed first chroma block is set, it indicates that at least one residual sample of the reconstructed first chroma block is non-zero, and if the CBF of the reconstructed second chroma block is set, it indicates that at least one residual sample of the reconstructed second chroma block is non-zero; Determining a coefficient pair (a, b) from among a plurality of coefficient pairs based on the CBF of the reconstructed first chroma block and the CBF of the reconstructed second chroma block; as well as The reconstructed first chroma block Cb' and the reconstructed second chroma block Cr' are determined according to Cb'=a C' and Cr'=b C'.