Method and device for decoding video
The present invention discloses a video decoding method performed by a video decoding device. The video decoding method according to an embodiment may include the steps of: obtaining NAL unit type information indicating a type of a current network abstraction layer (NAL) unit from a bitstream; and decoding, when the NAL unit type information indicates that the NAL unit type of the current NAL unit is an encoded data for an slice, the slice based on whether a mixed NAL unit type is applied to a current picture.
1 . A video decoding method performed by a video decoding device, the method comprising:
obtaining a first flag indicating whether a current picture includes subpictures having different network abstraction layer (NAL) unit types; and
obtaining second flags respectively corresponding to the subpictures,
wherein each of the second flags indicates whether a corresponding subpicture is treated as a picture in a decoding process,
wherein, when the first flag indicates that the current picture includes subpictures having different NAL unit types, second flags for all subpictures including at least one of P slice or B slice among the subpictures are restricted to have a first value, and
wherein the first value indicates that the corresponding subpicture is treated as a picture in a decoding process.
2 . A video decoding device comprising:
a memory configured to store one or more instructions; and
a processor configured to:
obtain a first flag indicating whether a current picture includes subpictures having different network abstraction layer (NAL) unit types; and
obtain second flags respectively corresponding to the subpictures,
wherein each of the second flags indicates whether a corresponding subpicture is treated as a picture in a decoding process,
wherein, when the first flag indicates that the current picture includes subpictures having different NAL unit types, second flags for all subpictures including at least one of P slice or B slice among the subpictures are restricted to have a first value, and
wherein the first value indicates that the corresponding subpicture is treated as a picture in a decoding process.
3 . A video encoding method performed by a video encoding device, the method comprising:
determining whether a current picture includes subpictures having different network abstraction layer (NAL) unit types;
determining whether the subpicture is treated as a picture in a decoding process; and
generating a first flag indicating whether the current picture includes subpictures having different NAL unit types and second flags respectively corresponding to the subpictures, wherein
wherein each of the second flags indicates whether a corresponding subpicture is treated as a picture in a decoding process,
wherein, when the first flag indicates that the current picture includes subpictures having different NAL unit types, second flags for all subpictures including at least one of P slice or B slice among the subpictures are restricted to have a first value, and
wherein the first value indicates that the subpicture is treated as a picture in a decoding process.
4 . A method of storing a bitstream of a video into a non-transitory computer-readable storage medium, wherein the bitstream is generated by a method performed by a video processing device, the method comprising:
determining whether a current picture includes subpictures having different network abstraction layer (NAL) unit types;
determining whether the subpicture is treated as a picture in a decoding process;
generating a first flag indicating whether the current picture includes subpictures having different NAL unit types and second flags respectively corresponding to the subpictures; and
generating the bitstream including the first flag and the second flags,
wherein each of the second flags indicates whether a corresponding subpicture is treated as a picture in a decoding process,
wherein, when the first flag indicates that the current picture includes subpictures having different NAL unit types, second flags for all subpictures including at least one of P slice or B slice among the subpictures are restricted to have a first value, and
wherein the first value indicates that the subpicture is treated as a picture in a decoding process.