Residual and coefficients coding for video coding
Methods, apparatuses, and non-transitory computer-readable storage mediums are provided for video coding. The method includes: in response to determining that transform skip is disabled, disabling, by a decoder, a presence of a rice parameter for transform skip residual coding. The method may further include adopting a flag of transform skip, sps_transform_skip_enabled_flag, to condition a presence of sps_ts_residual_coding_rice_present_in_sh_flag.
1 . A method for video decoding, comprising: in response to determining that transform skip is disabled, determining, by a decoder, that a syntax element related to a rice parameter for transform skip residual coding is not present; and
adopting a flag of transform skip, sps_transform_skip_enabled_flag, to condition a presence of flag sps_ts_residual_coding_rice_present_in_sh_flag.
2 . The method for video decoding of claim 1 , further comprising: in response to determining that the flag, sps_transform_skip_enabled_flag, is equal to 0 indicating that the transform skip is disabled, inferring the sps_ts_residual_coding_rice_present_in_sh_flag to be 0 and not signaled.
3 . The method for video decoding of claim 1 , further comprising: in response to determining that the flag, sps_transform_skip_enabled_flag, is equal to 1 indicating that the transform skip is not disabled, receiving the sps_ts_residual_coding_rice_present_in_sh_flag.
4 . The method for video decoding of claim 1 , further comprising:
in response to determining that a flag of transform skip, sps_transform_skip_enabled_flag, is signaled as enabled, receiving a control flag, in a sequence parameter set or in a sequence parameter set range extension syntax, to indicate whether the syntax element related to the rice parameter for transform skip residual coding is present or not.
5 . The method for video decoding of claim 4 , further comprising:
in response to determining that the control flag is equal to 1, receiving one syntax element for a slice to determine the rice parameter for transform skip residual coding.
6 . The method for video decoding of claim 4 , further comprising:
in response to determining that the control flag is equal to 0, adopting a default rice parameter for a slice, and no further syntax element is signaled to indicate the rice parameter for transform skip residual coding.
7 . The method for video decoding of claim 1 , further comprising: in response to determining that sps_ts_residual_coding_rice_present_in_sh_flag is equal to 1, determining that an index, sh_ts_residual_coding_rice_idx_minus1, is present in slice header (SH) syntax structures referring to Sequence Parameter Set (SPS).
8 . The method for video decoding of claim 1 , further comprising: in response to determining that sps_ts_residual_coding_rice_present_in_sh_flag is equal to 0, determining that an index, sh_ts_residual_coding_rice_idx_minus1, is not present in slice header (SH) syntax structures referring to Sequence Parameter Set (SPS).
9 . The method for video decoding of claim 1 , further comprising: in response to determining that sps_ts_residual_coding_rice_present_in_sh_flag is not present, inferring a value of sps_ts_residual_coding_rice_present_in_sh_flag to be 0.
10 . An apparatus for video decoding, comprising:
one or more processors; and
a memory configured to store instructions executable by the one or more processors; wherein
the one or more processors, upon execution of the instructions, are configured to perform operations comprising:
in response to determining that transform skip is disabled, determine that a syntax element related to a rice parameter for transform skip residual coding is not present; and
adopting a flag of transform skip, sps_transform_skip_enabled_flag, to condition a presence of flag sps_ts_residual_coding_rice_present_in_sh_flag.
11 . The apparatus of claim 10 , wherein the one or more processors, upon execution of the instructions, are further configured to: in response to determining that the flag, sps_transform_skip_enabled_flag, is equal to 0 indicating that the transform skip is disabled, infer the sps_ts_residual_coding_rice_present_in_sh_flag to be 0 and not signaled.
12 . The apparatus of claim 10 , wherein the one or more processors, upon execution of the instructions, are further configured to: in response to determining that the flag, sps_transform_skip_enabled_flag, is equal to 1 indicating that the transform skip is not disabled, receive the sps_ts_residual_coding_rice_present_in_sh_flag.
13 . The apparatus of claim 10 , wherein the one or more processors, upon execution of the instructions, are further configured to:
in response to determining that a flag of transform skip, sps_transform_skip_enabled_flag, is signaled as enabled, receive a control flag, in a sequence parameter set or in a sequence parameter set range extension syntax, to indicate whether the syntax element related to the rice parameter for transform skip residual coding is present or not.
14 . A non-transitory computer-readable storage medium storing a bitstream to be decoded by a decoding method, wherein the decoding method comprises:
in response to determining that transform skip is disabled, determining that a syntax element related to a rice parameter for transform skip residual coding is not present; and
adopting a flag of transform skip, sps_transform_skip_enabled_flag, to condition a presence of flag sps_ts_residual_coding_rice_present_in_sh_flag.
15 . A non-transitory computer-readable storage medium of claim 14 , wherein the decoding method further comprises: in response to determining that the flag, sps_transform_skip_enabled_flag, is equal to 0 indicating that the transform skip is disabled, inferring the sps_ts_residual_coding_rice_present_in_sh_flag to be 0 and not signaled.
16 . A non-transitory computer-readable storage medium of claim 14 , wherein the decoding method further comprises: in response to determining that the flag, sps_transform_skip_enabled_flag, is equal to 1 indicating that the transform skip is not disabled, receiving the sps_ts_residual_coding_rice_present_in_sh_flag.
17 . A method for transmitting a bitstream, comprising:
generating a bitstream by performing an encoding method; and
transmitting the bitstream,
wherein the encoding method comprises:
when transform skip is disabled, not signaling a syntax element related to a rice parameter for transform skip residual coding; and
adopting a flag of transform skip, sps_transform_skip_enabled_flag, to condition a presence of flag sps_ts_residual_coding_rice_present_in_sh_flag.