Video or image coding based on signaling of scaling list data
According to the disclosure of the present document, scaling list data delivered in an adaptation parameter set (APS) may be signaled through a hierarchical structure, and the amount of data that needs to be signaled for video/image coding may be reduced and implementation may be facilitated by placing limits on the scaling list data delivered in the APS.
1. An image decoding method performed by a decoding apparatus, the method comprising:
obtaining image information including prediction information and residual information from a bitstream;
deriving prediction samples for a current block by performing a prediction based on the prediction information;
deriving quantized transform coefficients for the current block based on the residual information;
deriving transform coefficients by performing a dequantization process on the quantized transform coefficients based on scaling list data;
deriving residual samples based on the transform coefficients; and
generating reconstruction samples based on the prediction samples and the residual samples,
wherein the image information includes an adaptation parameter set (APS), header information, general constraints information and a sequence parameter set (SPS),
wherein the APS includes APS ID information and APS type information,
wherein the scaling list data is included in the APS based on the APS type information,
wherein the header information includes APS ID information related to scaling list data,
wherein the APS including the scaling list data is specified based on the APS ID information related to the scaling list data included in the header information,
wherein the SPS includes first enabled flag information related to whether the scaling list data is used,
wherein the scaling list data is included in the APS based on a value of the first enabled flag information being equal to 1,
wherein the general constraints information includes constraint flag information related to the scaling list data,
wherein based on a value of the constraint flag information being equal to 1, the value of the first enabled flag information is determined to be equal to 0, and
wherein based on a value of the constraint flag information being equal to 0, the value of the first enabled flag information is equal to 0 or 1.
2. An image encoding method performed by an encoding apparatus, comprising:
deriving prediction samples for a current block by performing a prediction;
deriving residual samples for the current block based on the 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 prediction information based on the prediction;
generating residual information based on the quantized transform coefficients; and
encoding image information including the prediction information and the residual information,
wherein the image information includes an adaptation parameter set (APS), header information, general constraints information and a sequence parameter set (SPS),
wherein the APS includes APS ID information and APS type information,
wherein scaling list data for the quantized transform coefficients is included in the APS based on the APS type information,
wherein the header information includes APS ID information related to scaling list data,
wherein the APS including the scaling list data is specified based on the APS ID information related to the scaling list data included in the header information;
wherein the SPS includes first enabled flag information related to whether the scaling list data is used,
wherein the scaling list data is included in the APS based on a value of the first enabled flag information being equal to 1,
wherein the general constraints information includes constraint flag information related to the scaling list data,
wherein based on a value of the constraint flag information being equal to 1, the value of the first enabled flag information is determined to be equal to 0, and
wherein based on a value of the constraint flag information being equal to 0, the value of the first enabled flag information is equal to 0 or 1.
3. A transmission method of data for an image, the method comprising:
obtaining a bitstream for the image, wherein the bitstream is generated based on deriving prediction samples for a current block by performing a prediction, deriving residual samples for the current block based on the 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 prediction information based on the prediction, generating residual information based on the quantized transform coefficients, encoding image information including the prediction information and the residual information; and
transmitting the data comprising the bitstream,
wherein the image information includes an adaptation parameter set (APS), header information, general constraints information and a sequence parameter set (SPS),
wherein the APS includes APS ID information and APS type information,
wherein scaling list data for the quantized transform coefficients is included in the APS based on the APS type information,
wherein the header information includes APS ID information related to scaling list data,
wherein the APS including the scaling list data is specified based on the APS ID information related to the scaling list data included in the header information,
wherein the SPS includes first enabled flag information related to whether the scaling list data is used,
wherein the scaling list data is included in the APS based on a value of the first enabled flag information being equal to 1,
wherein the general constraints information includes constraint flag information related to the scaling list data,
wherein based on a value of the constraint flag information being equal to 1, the value of the first enabled flag information is determined to be equal to 0, and
wherein based on a value of the constraint flag information being equal to 0, the value of the first enabled flag information is equal to 0 or 1.