High level syntax for video coding and decoding
A method of decoding video data from a bitstream, the bitstream comprising video data corresponding to multiple slices, wherein the bitstream comprises a header comprising syntax elements to be used when decoding one or more slices; wherein the decoding comprising parsing the picture header, parsing at least one APS ID related syntax element prior to syntax elements relating to decoding tools; and decoding said bitstream using said syntax elements.
1 . A method of decoding a bitstream, wherein the bitstream comprises a picture header comprising a syntax element to be applied to all slices of a picture, the method comprising:
decoding, from the picture header, a syntax element specifying an ID of an Adaptation Parameter Set (APS) of Luma Mapping with Chroma Scaling (LMCS), prior to decoding a syntax element related to SAO from the picture header, wherein the syntax element specifying the ID of the APS of LMCS is decoded from the picture header when it is determined based on a flag decoded from the picture header that LMCS is enabled for a current picture; and
decoding said bitstream using a decoded syntax element.
2 . A method of encoding video data into a bitstream, wherein the bitstream comprises a picture header comprising a syntax element to be applied to all slices of a picture, the method comprising:
encoding, into the picture header, a flag indicating that Luma Mapping with Chroma Scaling (LMCS) is enabled for a current picture;
encoding, into the picture header, a syntax element specifying an ID of an Adaptation Parameter Set (APS) of LMCS, prior to encoding a syntax element relating to SAO into the picture header when the flag encoded into the picture header indicates that LMCS is enabled for the current picture.
3 . The method according to claim 1 , wherein the flag is decoded from the picture header when sps_lmcs_enabled_flag has a value of 1.
4 . The method according to claim 1 , wherein the syntax element specifying the ID of the APS of LMCS is after a syntax element, in the picture header, being capable of indicating that the current picture is never used as a reference picture.
5 . The method according to claim 1 , wherein the syntax element specifying the ID of the APS of LMCS is after a syntax element, in the picture header, being capable of indicating that the current picture is a gradual decoding refresh picture.
6 . The method according to claim 1 , wherein the syntax element specifying the ID of the APS of LMCS is after picture type information in the picture header.
7 . The method according to claim 1 , wherein the syntax element specifying the ID of the APS of LMCS is after a ph_pic_parameter_set_id in the picture header.
8 . The method according to claim 1 , wherein a syntax element specifying an ID of an APS of a scaling list is decoded from the picture header prior to decoding the syntax element related to SAO.
9 . The method according to claim 8 , wherein the APS of the scaling list contains information used to derive a scaling matrix.
10 . The method according to claim 1 , wherein a syntax element specifying an ID of an APS of Adaptive Loop Filter (ALF) is decoded from the picture header prior to decoding the syntax element related to SAO.
11 . The method according to claim 10 , wherein the APS of ALF contains information related to the signaling of clipping values.
12 . The method according to claim 1 , wherein SAO corresponds to a loop filtering process which is capable of modifying pixel values of reconstructed pixels, and the syntax element related to SAO is an enabled flag for SAO.
13 . A decoder for decoding a bitstream, wherein the bitstream comprises a picture header comprising a syntax element to be applied to all slices of a picture, wherein the decoder comprises:
a unit configured to decode, from the picture header, a syntax element specifying an ID of an Adaptation Parameter Set (APS) of Luma Mapping with Chroma Scaling (LMCS), prior to decoding a syntax element relating to SAO from the picture header, wherein the syntax element specifying the ID of the APS of LMCS is decoded from the picture header when it is determined based on a flag decoded from the picture header that LMCS is enabled for a current picture; and
wherein the unit is configured to decode said bitstream using a decoded syntax element.
14 . An encoder for encoding video data into a bitstream, wherein the bitstream comprises a picture header comprising a syntax element to be applied to all slices of a picture, wherein the encoder comprises:
a unit configured to encode, into the picture header, a flag indicating that Luma Mapping with Chroma Scaling (LMCS) is enabled for a current picture;
a unit configured to encode, into the picture header, a syntax element specifying an ID of an (Adaptation Parameter Set) (APS) of LMCS, prior to encoding a syntax element relating to SAO into the picture header when the flag encoded into the picture header indicates that LMCS is enabled for the current picture.
15 . A non-transitory computer readable storage medium storing a program for causing a computer to execute a method of decoding a bitstream, wherein the bitstream comprises a picture header comprising a syntax element to be applied to all slices of a picture, wherein the method comprises:
decoding, from the picture header, a syntax element specifying an ID of an Adaptation Parameter Set (APS) of Luma Mapping with Chroma Scaling (LMCS), prior to decoding a syntax element related to SAO from the picture header, wherein the syntax element specifying the ID of the APS of LMCS is decoded from the picture header when it is determined based on a flag decoded from the picture header that LMCS is enabled for a current picture; and
decoding said bitstream using a decoded syntax element.
16 . A non-transitory computer readable storage medium storing a program for causing a computer to execute a method of encoding video data into a bitstream, wherein the bitstream comprises a picture header comprising a syntax element to be applied to all slices of a picture, the method comprising:
encoding, into the picture header, a flag indicating that Luma Mapping with Chroma Scaling (LMCS) is enabled for a current picture;
encoding, into the picture header, a syntax element specifying an ID of an Adaptation Parameter Set (APS) of LMCS, prior to encoding a syntax element relating to SAO into the picture header when the flag encoded into the picture header indicates that LMCS is enabled for the current picture.