Method and apparatus for chroma sampling
The present disclosure provides methods and apparatuses for processing chroma sampled pictures. An exemplary video processing method includes: determining whether a chroma component is included in a sequence of frames; and in response to a determination that the chroma component is included in the sequence, activating a sub-process for processing the sequence, wherein the sub-process comprises one or more of joint coding for chroma residues (JCCR), block differential pulse coded modulation (BDPCM), palette mode, or adaptive color transform (ACT).
1. A video processing method, comprising:
determining, based on a chroma format, whether a chroma component is included in a sequence of frames; and
signaling, based on the chroma component determination, a sub-process enabled flag to indicate whether a sub-process for processing the sequence is activated, wherein:
the sub-process enabled flag is set to zero in response to the chroma component not being included in the sequence; and
the sub-process enabled flag is set to one in response to the chroma component being included in the sequence, wherein the sub-process enabled flag being set to one indicates that the sub-process for processing the sequence is enabled and the sub-process enabled flag comprises a joint coding for chroma residues (JCCR) sub-process enabled flag or an adaptive color transform (ACT) sub-process enabled flag.
2. The method of claim 1 , wherein the chroma format comprises any one of: a monochrome type, a 4:2:0 sampling type, a 4:2:2 sampling type, or a 4:4:4 sampling type.
3. The method of claim 2 ,
wherein the sub-process enabled flag comprises any one or more of: the JCCR sub-process enabled flag, the ACT sub-process enabled flag, or a palette mode sub-process enabled flag.
4. The method of claim 3 , wherein enabling the sub-process for processing the chroma component comprises:
determining, for the JCCR sub-process, whether the chroma format is the monochrome type; and
in response to the chroma format being the monochrome type, setting the JCCR sub-process enabled flag to zero.
5. The method of claim 3 , wherein enabling the sub-process for processing the chroma component comprises:
determining, for the ACT sub-process, whether the chroma format is the 4:4:4 sampling type; and
in response to the chroma format being the 4:4:4 sampling type, setting the ACT sub-process enabled flag to one.
6. The method of claim 3 , wherein enabling the sub-process for processing the chroma component comprises:
determining, for the palette mode sub-process, whether the chroma format is one the monochrome type, the 4:2:0 sampling type, the 4:2:2 sampling type, or the 4:4:4 sampling type; and
in response to the chroma format being one of the monochrome type, the 4:2:0 sampling type, the 4:2:2 sampling type, or the 4:4:4 sampling type, setting the palette mode sub-process enabled flag to one.
7. The method of claim 3 , further comprising:
processing the sequence using the enabled sub-process.
8. A video processing apparatus, comprising:
at least one memory for storing instructions; and
at least one processor configured to execute the instructions to cause the apparatus to perform:
determining, based on a chroma format, whether a chroma component is included in a sequence of frames; and
signaling, based on the chroma component determination, a sub-process enabled flag to indicate whether a sub-process for processing the sequence is activated, wherein:
the sub-process enabled flag is set to zero in response to the chroma component not being included in the sequence; and
the sub-process enabled flag is set to one in response to the chroma component being included in the sequence, wherein the sub-process enabled flag being set to one indicates that the sub-process for processing the sequence is enabled and the sub-process enabled flag comprises a joint coding for chroma residues (JCCR) sub-process enabled flag or an adaptive color transform (ACT) sub-process enabled flag.
9. The apparatus of claim 8 , wherein
the sub-process enabled flag comprises any one or more of: the JCCR sub-process enabled flag, the ACT sub-process enabled flag, or a palette mode sub-process enabled flag.
10. The apparatus of claim 9 , wherein the at least one processor is configured to execute the instructions to cause the apparatus to perform:
determining, for the JCCR sub-process, whether the chroma format is a monochrome type;
in response to the chroma format being the monochrome type, setting the JCCR sub-process enabled flag to zero;
determining, for the ACT sub-process, whether the chroma format is a 4:4:4 sampling type; and
in response to the chroma format being the 4:4:4 sampling type, setting the ACT sub-process enabled flag to one.
11. The apparatus of claim 9 , wherein the at least one processor is configured to execute the instructions to cause the apparatus to perform:
determining, for the palette mode sub-process, whether the chroma format is one a monochrome type, a 4:2:0 sampling type, a 4:2:2 sampling type, or a 4:4:4 sampling type; and
in response to the chroma format being one of the monochrome type, the 4:2:0 sampling type, the 4:2:2 sampling type, or the 4:4:4 sampling type, setting the palette mode sub-process enabled flag to one.
12. The apparatus of claim 9 , wherein the at least one processor is configured to execute the instructions to cause the apparatus to perform:
processing the sequence using the enabled sub-process.
13. A non-transitory computer readable storage medium storing a set of instructions that are executable by one or more processing devices to cause a video processing apparatus to perform:
determining, based on a chroma format, whether a chroma component is included in a sequence of frames; and
signaling, based on the chroma component determination, a sub-process enabled flag to indicate whether a sub-process for processing the sequence is activated, wherein:
the sub-process enabled flag is set to zero in response to the chroma component not being included in the sequence; and
the sub-process enabled flag is set to one in response to the chroma component being included in the sequence, wherein the sub-process enabled flag being set to one indicates that the sub-process for processing the sequence is enabled and the sub-process enabled flag comprises a joint coding for chroma residues (JCCR) sub-process enabled flag or an adaptive color transform (ACT) sub-process enabled flag.
14. The non-transitory computer readable storage medium of claim 13 ,
the sub-process enabled flag comprises any one or more of: the JCCR sub-process enabled flag, the ACT sub-process enabled flag, or a palette mode sub-process enabled flag.
15. The non-transitory computer readable storage medium of claim 14 , wherein the set of instructions are executable by the one or more processing devices to cause the video processing apparatus to perform:
determining, for the JCCR sub-process, whether the chroma format is a monochrome type;
in response to the chroma format being the monochrome type, setting the JCCR sub-process enabled flag to zero;
determining, for the ACT sub-process, whether the chroma format is a 4:4:4 sampling type; and
in response to the chroma format being the 4:4:4 sampling type, setting the ACT sub-process enabled flag to one.
16. The non-transitory computer readable storage medium of claim 14 , wherein the set of instructions are executable by the one or more processing devices to cause the video processing apparatus to perform:
determining, for the palette mode sub-process, the chroma format is one of a monochrome type, a 4:2:0 sampling type, a 4:2:2 sampling type, or a 4:4:4 sampling type; and
in response to the chroma format being one of the monochrome type, the 4:2:0 sampling type, the 4:2:2 sampling type, or the 4:4:4 sampling type, setting the palette mode sub-process enabled flag to one.
17. The non-transitory computer readable storage medium of claim 14 , wherein the set of instructions are executable by the one or more processing devices to cause the video processing apparatus to perform:
processing the sequence using the enabled sub-process.