Method for encoding/decoding image signal, and device therefor
A method for decoding an image according to the present invention may comprise the steps of: deriving a residual coefficient of a current block; dequantizing the residual coefficient; deriving a common residual signal by performing inverse transform of the dequantized residual coefficient; and deriving a first residual signal of a first chroma component and a second residual signal of a second chroma component on the basis of the common residual signal.
1 . A method of decoding a video, the method comprising:
determining whether a joint chrominance residual transformation method is applied to a current block; and
at least one of:
upon determining that the joint chrominance residual transformation method is applied to the current block, decoding a transform residual signal without performing a transform skip, wherein the transform residual signal represents a first residual signal for a first chroma component, and the transform residual signal is used to derive a second residual signal for a second chroma component according to the joint chrominance residual transformation method, or
upon determining that the joint chrominance residual transformation method is not applied to the current block, determining whether to perform the transform skip while decoding the transform residual signal.
2 . The method of claim 1 , wherein determining whether the joint chrominance residual transformation method is applied to the current block comprises parsing a first flag,
wherein a first value of the first flag indicates that the joint chrominance residual transformation method is applied to the current block, and
wherein a second value of the first flag indicates that the joint chrominance residual transformation method is not applied to the current block.
3 . The method of claim 2 , wherein determining whether to perform the transform skip while decoding the transform residual signal comprises parsing a second flag,
wherein a first value of the second flag indicates not performing the transform skip while decoding the transform residual signal, and
wherein a first value of the second flag indicates performing the transform skip while decoding the transform residual signal.
4 . The method of claim 3 , further comprising:
upon determining that the joint chrominance residual transformation method is applied to the current block, refraining from parsing the second flag.
5 . A system comprising:
one or more processors; and
one or more non-transitory computer readable media storing instructions that, when executed by the one or more processors, cause the one or more processors to perform operations comprising:
determining whether a joint chrominance residual transformation method is applied to a current block; and
at least one of:
upon determining that the joint chrominance residual transformation method is applied to the current block, decoding a transform residual signal without performing a transform skip, wherein the transform residual signal represents a first residual signal for a first chroma component, and the transform residual signal is used to derive a second residual signal for a second chroma component according to the joint chrominance residual transformation method, or
upon determining that the joint chrominance residual transformation method is not applied to the current block, determining whether to perform the transform skip while decoding the transform residual signal.
6 . The system of claim 5 , wherein determining whether the joint chrominance residual transformation method is applied to the current block comprises parsing a first flag,
wherein a first value of the first flag indicates that the joint chrominance residual transformation method is applied to the current block, and
wherein a second value of the first flag indicates that the joint chrominance residual transformation method is not applied to the current block.
7 . The system of claim 6 , wherein determining whether to perform the transform skip while decoding the transform residual signal comprises parsing a second flag,
wherein a first value of the second flag indicates not performing the transform skip while decoding the transform residual signal, and
wherein a first value of the second flag indicates performing the transform skip while decoding the transform residual signal.
8 . The system of claim 7 , the operations further comprising:
upon determining that the joint chrominance residual transformation method is applied to the current block, refraining from parsing the second flag.
9 . One or more non-transitory computer readable media storing instructions that, when executed by one or more processors, cause the one or more processors to perform operations comprising:
determining whether a joint chrominance residual transformation method is applied to a current block; and
at least one of:
upon determining that the joint chrominance residual transformation method is applied to the current block, decoding a transform residual signal without performing a transform skip, wherein the transform residual signal represents a first residual signal for a first chroma component, and the transform residual signal is used to derive a second residual signal for a second chroma component according to the joint chrominance residual transformation method, or
upon determining that the joint chrominance residual transformation method is not applied to the current block, determining whether to perform the transform skip while decoding the transform residual signal.
10 . The one or more non-transitory computer readable media of claim 9 , wherein determining whether the joint chrominance residual transformation method is applied to the current block comprises parsing a first flag,
wherein a first value of the first flag indicates that the joint chrominance residual transformation method is applied to the current block, and
wherein a second value of the first flag indicates that the joint chrominance residual transformation method is not applied to the current block.
11 . The one or more non-transitory computer readable media of claim 9 , wherein determining whether to perform the transform skip while decoding the transform residual signal comprises parsing a second flag,
wherein a first value of the second flag indicates not performing the transform skip while decoding the transform residual signal, and
wherein a first value of the second flag indicates performing the transform skip while decoding the transform residual signal.
12 . The one or more non-transitory computer readable media of claim 11 , the operations further comprising:
upon determining that the joint chrominance residual transformation method is applied to the current block, refraining from parsing the second flag.
13 . A method of encoding a video, the method comprising:
determining whether to apply a joint chrominance residual transformation method to a current block; and
at least one of:
upon determining to apply the joint chrominance residual transformation method to the current block, encoding a transform residual signal without performing a transform skip, wherein the transform residual signal represents a first residual signal for a first chroma component, and wherein the transform residual signal is used to derive a second residual signal for a second chroma component according to the joint chrominance residual transformation method, or
upon determining not to apply the joint chrominance residual transformation method to the current block:
determining whether to perform the transform skip while encoding the transform residual signal, and
encoding the transform residual signal in accordance with determining whether to perform the transform skip.
14 . The method of claim 13 , further comprising:
encoding a first flag indicating whether the joint chrominance residual transformation method is applied to the current block,
wherein a first value of the first flag indicates that the joint chrominance residual transformation method is applied to the current block, and
wherein a second value of the first flag indicates that the joint chrominance residual transformation method is not applied to the current block.
15 . The method of claim 14 , further comprising:
encoding a second flag indicating whether to perform the transform skip while decoding the transform residual signal,
wherein a first value of the second flag indicates not performing the transform skip while decoding the transform residual signal, and
wherein a first value of the second flag indicates performing the transform skip while decoding the transform residual signal.
16 . The method of claim 14 , further comprising:
upon determining to apply the joint chrominance residual transformation method to the current block, refraining from encoding a second flag indicating whether to perform the transform skip while decoding the transform residual signal.
17 . A system comprising:
one or more processors; and
one or more non-transitory computer readable media storing instructions that, when executed by the one or more processors, cause the one or more processors to perform operations comprising:
determining whether to apply a joint chrominance residual transformation method to a current block; and
at least one of:
upon determining to apply the joint chrominance residual transformation method to the current block, encoding a transform residual signal without performing a transform skip, wherein the transform residual signal represents a first residual signal for a first chroma component, and wherein the transform residual signal is used to derive a second residual signal for a second chroma component according to the joint chrominance residual transformation method, or
upon determining not to apply the joint chrominance residual transformation method to the current block:
determining whether to perform the transform skip while encoding the transform residual signal, and
encoding the transform residual signal in accordance with determining whether to perform the transform skip.
18 . The system of claim 17 , the operations further comprising:
encoding a first flag indicating whether the joint chrominance residual transformation method is applied to the current block,
wherein a first value of the first flag indicates that the joint chrominance residual transformation method is applied to the current block, and
wherein a second value of the first flag indicates that the joint chrominance residual transformation method is not applied to the current block.
19 . The system of claim 18 , the operations further comprising:
encoding a second flag indicating whether to perform the transform skip while decoding the transform residual signal,
wherein a first value of the second flag indicates not performing the transform skip while decoding the transform residual signal, and
wherein a first value of the second flag indicates performing the transform skip while decoding the transform residual signal.
20 . The system of claim 18 , the operations further comprising:
upon determining to apply the joint chrominance residual transformation method to the current block, refraining from encoding a second flag indicating whether to perform the transform skip while decoding the transform residual signal.
21 . One or more non-transitory computer readable media storing instructions that, when executed by one or more processors, cause the one or more processors to perform operations comprising:
determining whether to apply a joint chrominance residual transformation method to a current block; and
at least one of:
upon determining to apply the joint chrominance residual transformation method to the current block, encoding a transform residual signal without performing a transform skip, wherein the transform residual signal represents a first residual signal for a first chroma component, and wherein the transform residual signal is used to derive a second residual signal for a second chroma component according to the joint chrominance residual transformation method, or
upon determining not to apply the joint chrominance residual transformation method to the current block:
determining whether to perform the transform skip while encoding the transform residual signal, and
encoding the transform residual signal in accordance with determining whether to perform the transform skip.
22 . The one or more non-transitory computer readable media of claim 21 , the operations further comprising:
encoding a first flag indicating whether the joint chrominance residual transformation method is applied to the current block,
wherein a first value of the first flag indicates that the joint chrominance residual transformation method is applied to the current block, and
wherein a second value of the first flag indicates that the joint chrominance residual transformation method is not applied to the current block.
23 . The one or more non-transitory computer readable media of claim 22 , the operations further comprising:
encoding a second flag indicating whether to perform the transform skip while decoding the transform residual signal,
wherein a first value of the second flag indicates not performing the transform skip while decoding the transform residual signal, and
wherein a first value of the second flag indicates performing the transform skip while decoding the transform residual signal.
24 . The one or more non-transitory computer readable media of claim 22 , the operations further comprising:
upon determining to apply the joint chrominance residual transformation method to the current block, refraining from encoding a second flag indicating whether to perform the transform skip while decoding the transform residual signal.