Image decoding method and device
An image decoding method performed by a decoding device according to the present document comprises the steps of: obtaining image information; and updating a decoded picture buffer (DPB) on the basis of the image information, wherein the step of obtaining the image information comprises the steps of: obtaining an output layer set (OLS) DPB parameter index for a target OLS; and obtaining DPB parameter information relating to the target OLS on the basis of the OLS DPB parameter index.
1. An image decoding method performed by a decoding apparatus, the method comprising:
obtaining image information; and
updating a decoded picture buffer (DPB) based on the image information,
wherein the obtaining the image information includes:
obtaining an output layer set (OLS) DPB parameter index for a target OLS; and
obtaining DPB parameter information for the target OLS based on the OLS DPB parameter index,
wherein the OLS DPB parameter index is obtained based on a number of the OLS.
2. The image decoding method of claim 1 , wherein the DPB parameter information for the target OLS includes information on DPB size, information on maximum picture reorder number of the DPB for the target OLS, and information on maximum latency of the DPB.
3. The image decoding method of claim 1 , wherein the DPB parameter information for the target OLS and the OLS DPB parameter index are included in a video parameter set (VPS) syntax.
4. An image encoding method performed by an encoding apparatus, the method comprising:
updating a decoded picture buffer (DPB); and
encoding image information,
wherein the encoding the image information includes:
encoding DPB parameter information for output layer sets (OLSs); and
encoding an OLS DPB parameter index for DPB parameter information for a target OLS among the DPB parameter information for the OLSs,
wherein the OLS DPB parameter index is encoded based on a number of the OLS.
5. The image encoding method of claim 4 , wherein the DPB parameter information for the target OLS includes information on DPB size, information on maximum picture reorder number of the DPB for the target OLS, and information on maximum latency of the DPB.
6. The image encoding method of claim 4 , wherein the DPB parameter information for the target OLS and the OLS DPB parameter index are included in a video parameter set (VPS) syntax.
7. A non-transitory computer-readable storage medium storing a bitstream generated by a method, the method comprising:
updating a decoded picture buffer (DPB); and
encoding image information,
wherein the encoding the image information includes:
encoding DPB parameter information for output layer sets (OLSs);
encoding an OLS DPB parameter index for DPB parameter information for a target OLS among the DPB parameter information for the OLSs; and
generating the bitstream including the OLS DPB parameter index and the DPB parameter information for the OLSs,
wherein the OLS DPB parameter index is encoded based on a number of the OLS.