Scaling list-based video or image coding
According to the disclosure of the present document, scaling list data and scaling list-associated information can be signaled hierarchically, which can consequently reduce the amount of data to be signaled for video/image coding and increase coding efficiency.
1 . A decoding apparatus for an image decoding, the decoding apparatus comprising:
a memory; and
at least one processor connected to the memory, the at least one processor configured to:
obtain image information including residual information and an adaptation parameter set (APS) from a bitstream;
derive quantized transform coefficients for a current block based on the residual information;
derive scaling list data based on the APS;
derive transform coefficients by performing a dequantization process on the quantized transform coefficients based on the scaling list data;
derive residual samples by performing an inverse transform process based on the transform coefficients; and
generate reconstructed samples based on the residual samples,
wherein the APS includes APS ID information and APS type information,
wherein the APS ID information indicates an identifier of the APS,
wherein the APS type information represents a type of the APS among an APS related to an ALF (Adaptive Loop Filter), an APS related to an LMCS (Luma Mapping with Chroma Scaling), or an APS related to the scaling list data,
wherein a value of the APS type information being equal to 0 represents that the APS is the APS related to the ALF, the value of the APS type information being equal to 1 represents that the APS is the APS related to the LMCS, and the value of the APS type information being equal to 2 represents that the APS is the APS related to the scaling list data,
wherein the type of the APS is determined to be the APS related to the scaling list data based on the value of the APS type information being equal to 2,
wherein the scaling list data is included in the APS based on the value of the APS type information being equal to 2,
wherein the image information includes a sequence parameter set (SPS) and general constraints information,
wherein the SPS includes enabled flag information representing whether a scaling list is used or not,
wherein a value of the enabled flag information being equal to 1 represents that the scaling list is used and the value of the enabled flag information being equal to 0 represents that the scaling list is not used,
wherein the general constraints information includes constraint flag information related to the scaling list data,
wherein the value of the enabled flag information is determined to be equal to 0 based on a value of the constraint flag information being equal to 1, and
wherein the value of the enabled flag information is equal to 0 or 1 based on the value of the constraint flag information being equal to 0.
2 . An encoding apparatus for an image encoding, the encoding apparatus comprising:
a memory; and
at least one processor connected to the memory, the at least one processor configured to:
derive residual samples for a current block based on prediction samples;
derive transform coefficients by performing a transform process based on the residual samples;
derive quantized transform coefficients by performing a quantization process on the transform coefficients;
generate residual information on the quantized transform coefficients and an adaptation parameter set (APS); and
encode image information including the residual information and the APS,
wherein the APS includes APS ID information and APS type information,
wherein the APS ID information indicates an identifier of the APS,
wherein the APS type information represents a type of the APS among an APS related to an ALF (Adaptive Loop Filter), an APS related to an LMCS (Luma Mapping with Chroma Scaling), or an APS related to scaling list data,
wherein a value of the APS type information being equal to 0 represents that the APS is the APS related to the ALF, the value of the APS type information being equal to 1 represents that the APS is the APS related to the LMCS, and the value of the APS type information being equal to 2 represents that the APS is the APS related to the scaling list data,
wherein the type of the APS is configured to be determined to be the APS related to the scaling list data based on the value of the APS type information being equal to 2,
wherein the APS is configured to include the scaling list data based on the value of the APS type information being equal to 2,
wherein the image information includes a sequence parameter set (SPS) and general constraints information,
wherein the SPS includes enabled flag information representing whether a scaling list is used or not,
wherein a value of the enabled flag information being equal to 1 represents that the scaling list is used and the value of the enabled flag information being equal to 0 represents that the scaling list is not used,
wherein the general constraints information includes constraint flag information related to the scaling list data,
wherein a value of the constraint flag information being equal to 1 represents that the value of the enabled flag information is determined to be equal to 0, and
wherein the value of the constraint flag information being equal to 0 represents that the value of the enabled flag information is equal to 0 or 1.
3 . An apparatus for transmitting data for an image, the apparatus comprising:
at least one processor configured to obtain a bitstream for the image, wherein the bitstream is generated based on deriving residual samples for a current block based on prediction samples, deriving transform coefficients by performing a transform process based on the residual samples, deriving quantized transform coefficients by performing a quantization process on the transform coefficients, generating residual information on the quantized transform coefficients and an adaptation parameter set (APS), and encoding image information including the residual information and the APS to generate the bitstream; and
a transmitter configured to transmit the data comprising the bitstream,
wherein the APS includes APS ID information and APS type information,
wherein the APS ID information indicates an identifier of the APS,
wherein the APS type information represents a type of the APS among an APS related to an ALF (Adaptive Loop Filter), an APS related to an LMCS (Luma Mapping with Chroma Scaling), or an APS related to the scaling list data,
wherein a value of the APS type information being equal to 0 represents that the APS is the APS related to the ALF, the value of the APS type information being equal to 1 represents that the APS is the APS related to the LMCS, and the value of the APS type information being equal to 2 represents that the APS is the APS related to scaling list data,
wherein the type of the APS is configured to be determined to be the APS related to the scaling list data based on the value of the APS type information being equal to 2,
wherein the APS is configured to include the scaling list data based on the value of the APS type information being equal to 2,
wherein the image information includes a sequence parameter set (SPS) and general constraints information,
wherein the SPS includes enabled flag information representing whether a scaling list is used or not,
wherein a value of the enabled flag information being equal to 1 represents that the scaling list is used and the value of the enabled flag information being equal to 0 represents that the scaling list is not used,
wherein the general constraints information includes constraint flag information related to the scaling list data,
wherein a value of the constraint flag information being equal to 1 represents that the value of the enabled flag information is determined to be equal to 0, and
wherein the value of the constraint flag information being equal to 0 represents that the value of the enabled flag information is equal to 0 or 1.