PH NAL unit coding-related image decoding method, and device for same
An image decoding method performed by a decoding device according to the present document is characterized by comprising the steps of: acquiring a flag indicating whether a picture header (PH) network abstraction layer (NAL) unit including a PH for the current picture is present; acquiring a video coding layer (VCL) NAL unit including a slice header and slice data for the current slice of the current picture; acquiring the PH on the basis of the flag; and decoding the current picture on the basis of the PH, the slice header, and the slice data.
1. An image decoding method performed by a decoding apparatus, the method comprising:
obtaining a flag for whether a Picture Header (PH) Network Abstraction Layer (NAL) unit including a PH for a current picture is present;
obtaining a Video Coding Layer (VCL) NAL unit including a slice header and slice data for a current slice in the current picture;
obtaining the PH based on the flag; and
decoding the current picture based on the PH, the slice header and the slice data,
wherein based on the flag representing that the PH NAL unit is not present, the current picture includes only the current slice.
2. The method of claim 1 , wherein based on the flag representing that the PH NAL unit is present, the PH is obtained from the PH NAL unit, and
based on the flag representing that the PH NAL unit is not present, the PH is obtained from the VCL NAL unit including the slice header and the slice data.
3. The method of claim 1 , wherein based on the flag representing that the PH NAL unit is not present, PH NAL units are not present for all pictures in a Coded Video Layer Sequence (CLVS) including the current picture.
4. The method of claim 3 , wherein based on the flag representing that the PH NAL unit is not present, picture headers for all the pictures in the CLVS are included in VCL NAL units including slice headers of all the pictures.
5. The method of claim 1 , wherein the flag is obtained in a Sequence Parameter Set (SPS).
6. An image encoding method performed by an encoding apparatus, the method comprising:
generating a Video Coding Layer (VCL) Network Abstraction Layer (NAL) unit including a slice header and slice data for a slice in a current picture;
determining whether a Picture Header (PH) NAL unit including a PH for the current picture is present;
generating the PH and a flag for whether the PH NAL unit is present based on a result of the determination; and
encoding image information including the VCL NAL unit, the PH and the flag,
wherein based on the flag representing that the PH NAL unit is not present, the current picture includes only the current slice.
7. The method of claim 6 , wherein based on the flag representing that the PH NAL unit is present, the PH is included in the PH NAL unit, and
based on the flag representing that the PH NAL unit is not present, the PH is included in the VCL NAL unit including the slice header and the slice data.
8. The method of claim 6 , wherein the flag is signaled in a Sequence Parameter Set (SPS).
9. The method of claim 6 , wherein based on the flag representing that the PH NAL unit is not present, PH NAL units are not present for all pictures in a Coded Video Layer Sequence (CLVS) including the current picture.
10. The method of claim 9 , wherein based on the flag representing that the PH NAL unit is not present, picture headers for all the pictures in the CLVS are included in VCL NAL units including slice headers of all the pictures.
11. A non-transitory computer-readable storage medium storing a bitstream generated by a method, the method comprising:
generating a Video Coding Layer (VCL) Network Abstraction Layer (NAL) unit including a slice header and slice data for a slice in a current picture;
determining whether a Picture Header (PH) NAL unit including a PH for the current picture is present;
generating the PH and a flag for whether the PH NAL unit is present based on a result of the determination;
encoding image information including the VCL NAL unit, the PH and the flag; and
generating the bitstream including the image information,
wherein based on the flag representing that the PH NAL unit is not present, the current picture includes only the current slice.
12. The computer-readable storage medium of claim 11 , wherein based on the flag representing that the PH NAL unit is present, the PH is obtained from the PH NAL unit, and
based on the flag representing that the PH NAL unit is not present, the PH is obtained from the VCL NAL unit including the slice header and the slice data.