Encoder, decoder, encoding method, and decoding method
An encoder includes circuitry and memory coupled to the circuitry. In operation, the circuitry: determines whether an image format of a video is a format including a chroma component; when it is determined that the image format is a format including a chroma component, signals a flag indicating whether application of JCCR is allowed or not in a header of a stream, and (i) encodes the video with application of the JCCR allowed, or (ii) encodes the video with application of the JCCR not allowed; and when it is determined that the image format is a format including no chroma component, signals no flag indicating whether application of the JCCR is allowed or not in the header of the stream, and encodes the video with application of the JCCR not allowed.
1. An encoder comprising:
circuitry; and
memory coupled to the circuitry, wherein
in operation, the circuitry:
determines whether an image format of a video is a format including a chroma component;
when it is determined that the image format is a format including a chroma component, signals a flag indicating whether application of joint coding of chroma residuals (JCCR) is allowed or not in a header of a stream, and (i) encodes the video with application of the JCCR allowed, or (ii) encodes the video with application of the JCCR not allowed, the JCCR being a process of transforming one of two chroma components to derive the other of the two chroma components; and
when it is determined that the image format is a format including no chroma component, does not signal the flag indicating whether application of the JCCR is allowed or not in the header of the stream, and encodes the video with application of the JCCR not allowed.
2. A decoder comprising:
circuitry; and
memory coupled to the circuitry, wherein
in operation, the circuitry:
determines whether an image format of a video is a format including a chroma component;
when it is determined that the image format is a format including a chroma component, parses a flag indicating whether application of joint coding of chroma residuals (JCCR) is allowed or not from a header of a stream, and (i) decodes the video with application of the JCCR allowed, or (ii) decodes the video with application of the JCCR not allowed, the JCCR being a process of transforming one of two chroma components to derive the other of the two chroma components; and
when it is determined that the image format is a format including no chroma component, does not parse the flag indicating whether application of the JCCR is allowed or not from the header of the stream, and decodes the video with application of the JCCR not allowed. header of a sequence.