Image decoding method and apparatus for coding image information including picture header
An image decoding method performed by a decoding apparatus according to the present document comprises the steps of: acquiring a flag indicating whether a picture header (PH) network abstraction layer (NAL) unit exists; acquiring a PH on the basis of the flag; and decoding a current picture related to the PH on the basis of the PH.
1 . A decoding apparatus for 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 a flag for whether a Picture Header (PH) Network Abstraction Layer (NAL) unit is present;
based on the flag representing that the PH NAL unit is present, obtain a PH for a current picture from the PH NAL unit;
based on the flag representing that the PH NAL unit is not present, obtain the PH for the current picture from a slice header for the current picture; and
decode the current picture based on the PH,
wherein based on the flag representing that the PH NAL unit is not present, the current picture includes only one slice.
2 . An encoding apparatus for image encoding, the encoding apparatus comprising:
a memory; and
at least one processor connected to the memory, the at least one processor configured to:
determine whether a Picture Header (PH) Network Abstraction Layer (NAL) unit including a PH related to a current picture is present;
based on the determination that the PH NAL unit is present, generate the PH NAL unit including the PH;
based on the determination that the PH NAL unit is not present, generate a slice header for the current picture including the PH;
generate a flag for whether the PH NAL unit is present based on a result of the determination; and
encode image information including the flag,
wherein based on the flag representing that the PH NAL unit is not present, the current picture includes only one slice.
3 . An apparatus for a bitstream of image information, the apparatus comprising:
at least one processor configured to generate the bitstream, based on the image information comprising a flag for whether a Picture Header (PH) Network Abstraction Layer (NAL) unit is present; and
a transmitter configured to transmit the bitstream of the image information comprising the flag,
wherein based on the flag representing that the PH NAL unit is present, a PH for a current picture is obtained from the PH NAL unit,
wherein based on the flag representing that the PH NAL unit is not present, the PH for the current picture is obtained from a slice header for the current picture, and
wherein based on the flag representing that the PH NAL unit is not present, the current picture includes only one slice.